BBShelp 版 (精华区)

发信人: trijif (广扬塔), 信区: BBShelp
标  题: 日月光华ANSI版短期培训班·第三章 (转载)
发信站: 哈工大紫丁香 (Sat Jan 27 21:54:14 2007), 站内



















发信人: Spirit (妖精雨·雨之魂·天凉好个妖), 信区: ANSI
标  题: 第三章
发信站: 日月光华 (2007年01月27日19:12:31 星期六), 站内信件

───────────────────────────────────────
              __                                                    ___       
            ╱█  __  __  ______  ______                          ╱∠-╲     
          ╱__█  █  █  █__ ̄   ̄█ ̄                         /╱︵╲\\    
      __╱   ̄█  █╲█  ▁  █  __█__                        (╱⌒  \\│   
       ̄       ̄   ̄   ̄   ̄ ̄ ̄   ̄ ̄ ̄                       ╱_ /  _)_/    
            日月光华ANSI版短期培训班                           /__   /__      
                                                               ▏  ╱/╱      
                                                      ____    /▏╱╱ ╲      
                                                    ╱◣●\  /\︶╱     \     
    第 三 章:   ANSIEditor 和复制粘贴              /◆ _  / │ ~╲      │    
                                                 ▕▲ ╰)/─│ ☉│  │ │    
                                                 ▕◢  ^ \─│   │  │ │    
    主讲教师:  Spirit                             ╲▼■/  │ ☉│  │_│    
    时间安排:  2007年01月27日                       ▔▔   │   │   | |     
    当班教师:  Spirit,mwx,savvy,mote等                  │  ︵___/ \_   
                                                            │ (~──||||-'  
───────────────────────────────────────

──|软件简介|────────────────────────────────
                                                                              
        前面的课程我们已经讲解了AscIIart作的核心部分——ANSI控制码。这讲将    
    介绍一下制作ANSI的工具以及如何正确地复制粘贴。                            
                                                                              
        制作ANSI作品时,如果靠手动输入ANSI控制符,效率太差,于是就有了离线    
    ANSI编辑工具, 如AnsiEditor、大萝卜、Asciiart Tool等。现在大陆最为常用    
    的是AnsiEditor,这是一款所见即所得的图形界面ANSI编辑工具,可以通过鼠标    
    和键盘的操作,可以方便得设置文本的颜色、字体等等属性。它还提供了如智能    
    翻转、推荐字符等一系列的贴心的功能,为大家制作AsciiArt带来了便捷。        
                                                                              
        另一个推荐的制作ANSI的工具是bmp2asc,这是一个将图片文件变成ANSI的    
    工具,将在后续的课程中讲解。                                              
                                                                              
        浏览ANSI作品只有使用Term在telnet或ssh 模式下才能得到最佳的效果。大    
    陆最常用的有Fterm、Cterm和Sterm,Unix用户可以使用Qterm。Term可以根据自    
    己习惯选择,Fterm在光华用户最多,而Sterm和CtermIII对复制粘贴支持较好。    
                                                                              
        ANSI版的培训,希望大家始终能用Term浏览,作业用AnsiEditor来完成。      
                                                                              
────────────────────────────────────|⑴|─

──|AE示意图|────────────────────────────────  
                                                                              
    ▕⿷示意图 - AnsiEditor                                      ▏           
    ▕文件(F) 编辑(E) 查看(V) 工具(T) 动画(A) 帮助(H) ←菜单栏   ▏           
    ▕|□ 凵 回 ヅ|ⅴ ω ■ ㄨ|← →|╳|?                       ▏           
    ▕              ↖                                     ↖|ホ ▏           
    ▕                工具栏                               ﹟|◆ ▏           
    ▕                                            工具箱→ /|彡 ▏           
    ▕                                                     □|□ ▏           
    ▕                      工作区                         →|↓ ▏           
    ▕                                                           ▏           
    ▕                                        特殊字符框→ ▓ ▼ ▏           
    ▕                                                           ▏           
    ▕                                                     ■竖排▏           
    ▕          调色板               面版属性              ■插入▏           
    ▕            ↓                     ↓                      ▏           
    ▕|■ |■■■■■■■□回 ■闪烁 ■反色 ■下划线 默认字体    ▏           
    ▕| ■|■■■■■■■■回                                    ▏           
    ▕|按F1可以得到帮助          ←状态栏       | 1,21  | 2,10   ▏           
                                                        by brightwang@lilybbs 
────────────────────────────────────|⑵|─

──|功能简介|────────────────────────────────
                                                                              
    AnsiEditor的许多工具都简单易用,把鼠标悬停在某一工具即可出现简单介绍。   
    这里就不对每个工具一一详细介绍了。                                         
                                                                              
     工具箱                           ┆ →|↓  水平和垂直翻转  倒置文本的   
                                      ┆        水平或垂直方向。使用的时候   
      正常编辑 →↖|ホ← 画笔         ┆        推荐开启智能翻转。           
        橡皮擦 →﹟|◆← 油漆桶       ┆                                      
      颜色吸管 →/|彡← 格式刷       ┆    上     水平     上      ┓┏      
          加亮 →■|■← 变暗         ┆  左  右   ─→   右  左    ┃┛┏    
      水平翻转 →→|↓← 垂直翻转     ┆    下     翻转     下      ┛━┗    
    特殊字符框 →▓ ▼← 选择字符集   ┆                                      
                                      ┆  垂┃翻        翻转        普↑翻    
    ■|■  加亮和变暗  对某一选区操   ┆  直↓转        示例        通┃转    
           作,使其前景色都变为高亮。 ┆                                     
                                      ┆    下      ┏┓     智能     ┏┓    
      ╭╮  加亮  ╭╮  变暗  ╭╮    ┆  左  右    ┃┗┓   ←─   ┏┛┃    
      ╰╯  ─→  ╰╯  ─→  ╰╯    ┆    上      ┗━┛   翻转   ┗━┛    
                                                                              
────────────────────────────────────|⑶|─

──|功能简介|────────────────────────────────
                                                                              
     ▓ ▼  特殊字符框  点击▓或按  ┆  版面属性                              
            Esc 键,弹出特殊字符框,┆                                        
     可以点击右方按钮▼,弹出“选择 ┆    版面属性对应了ANSI控制序列:        
     字符集”的菜单。               ┆                                        
                                    ┆    *[5m   *[7m    *[4m     *[I        
     ▼→                           ┆     ↓     ↓      ↓       ↓        
          √默认字符集              ┆   ■闪烁 ■反色 ■下划线 默认字体     
            AnsiEditor1.0           ┆                                        
            常用组合字符     ┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅
         ─────────                                                     
            所有符号              调色板                                   
            常用符号                                                           
            日俄希文          |■ |■■■■■■■□回     最右边的回和回,   
            注音单位          | ■|■■■■■■■■回  ← 分别为透明前景/    
            字母数字                     ↑               背景色。选中后文   
            特殊汉字             鼠标左键选择前景色       字录入将不改变当   
                                 鼠标右键选择背景色       前的前景/背景色    
                                                                              
────────────────────────────────────|⑷|─

──|AE的使用|────────────────────────────────
                                                                              
    AnsiEditor的编辑功能与普通文本编辑器基本雷同。这里介绍一些特别的地方。  
                                                                              
     ■竖排   选中后,输入字符,光标会下移一行,快捷键是Ctrl+T。  
                                                                              
     ■插入   选中是插入模式,不选是改写模式,快捷键是ins。   ╔              
                                                                ↖  ═        
    删除字符  按del或backspace键可删除当前或光标前一个字符。        ╦        
              如果选中区域,按del则该区域被整块删除。               ╗        
                                                                    ╕        
    重复录入  用快捷键F4可以录入上一次录入的字符。                  ╬        
                                                                    ╝        
    智能推荐  在编辑时按下Ctrl,然后点击右键,弹出推荐字符          ╩        
              栏。推荐字符根据上下文动态更新。比如,光标前          ╧        
              一个字符为“╔” ,推荐字符将为:                     ╪        
              ═ ╦ ╗ ╕ ╛ ╝ ╬ ╣ ╡ ╩ ╤ ╧ ╪                          
                                                                智能推荐      
    撤消重做  AnsiEditor支持无限次的undo/redo。                               
                                                                              
────────────────────────────────────|⑸|─

──|AE的使用|────────────────────────────────
                                                                              
    特殊复制  提供复制为纯文本(即不带ansi格式)和复制为Html两种特殊复制。    
                                                                              
    特殊粘贴  粘贴时忽略掉某些ANSI属性,可以忽略前景、忽略背景或完全忽略。    
              在某些场合下可以大大提高编辑效率。                              
                                                                              
    文字替换  跟一般的文本编辑器的文本替换没什么大差别。在选定状态下,替换    
              只影响选定区域内的文字;非选定状态下,替换整个工作区的文字。    
                                                                              
    显示网格  便于精确定位。可自定义网格的线型与颜色,快捷键是ctrl+g。        
                                                                              
    无缝查看  快捷键F11即可切换为无缝与原尺寸窗口。色块图在Term里看起来会     
              裂开,通过将窗口缩小到一定尺寸就可以看到漂亮的无缝图形。        
                                                                              
    组合字形  菜单栏上的工具->组合字形编辑器或工具栏上的附带工具,或者按F8    
     编辑器   键,即可打开组合字形编辑器。这是一个方便的功能,但是使用这个    
              一是不能体现自己的风格创意,另一方面会养成你的惰性。希望能权    
              衡使用。                                                        
                                                                              
────────────────────────────────────|⑹|─

──|AE快捷键|────────────────────────────────
                                                                              
    工具箱                            ┆    字符属性                          
                                      ┆                                      
        指针           Ctrl+P         ┆        暗前景色       Ctrl+Num       
        画笔           Ctrl+D         ┆        亮前景色       Ctrl+Shift+Num 
        橡皮擦         Ctrl+E         ┆        背景色         Alt +Num       
        油漆桶         Ctrl+W         ┆                                      
        吸管           Ctrl+I         ┆        闪烁           Ctrl+B         
        格式刷         Ctrl+F         ┆        反色           Ctrl+R         
        特殊字符框     Esc            ┆        下划线         Ctrl+U         
        竖排           Ctrl+T         ┆                                      
        插入           Insert         ┆    文件                              
                                      ┆                                      
    查看                              ┆        新建           Ctrl+N         
                                      ┆        打开           Ctrl+O         
        切换显示网格   Ctrl+G         ┆        保存           Ctrl+S         
        切换无缝显示   F11            ┆        导出           F12            
                                      ┆                                      
                                                                              
────────────────────────────────────|⑺|─

──|AE快捷键|────────────────────────────────
                                                                              
    编辑                              ┆    光标                              
                                      ┆                                      
        撤销           Ctrl+Z         ┆        左移           ←             
        重做字编辑器   Ctrl+Y         ┆        右移           →             
        最后一个字符   F4             ┆        上移           ↑             
        复制           Ctrl+C         ┆        下移           ↓             
        复制为纯文本   Ctrl+Ins       ┆                                      
        粘贴           Ctrl+V         ┆        下移           Ctrl+Enter     
        粘贴为纯文本   Shift+Ins      ┆        下一行行首     Enter          
        剪切           Ctrl+X         ┆                                      
        删除           Del            ┆        行首           Home           
        全选           Ctrl+A         ┆        屏幕左上角     Ctrl+Home      
        全部清除       Ctrl+L         ┆        行末           End            
        替换           Ctrl+H         ┆        屏幕右下角     Ctrl+End       
        上下文菜单     鼠标右键       ┆        第一行         PgUp           
        智能字符       Ctrl+鼠标右键  ┆        最后一行       PgDn           
                                      ┆                                      
                                                                              
────────────────────────────────────|⑻|─

──|复制粘贴|────────────────────────────────  
                                                                                
  一  在Fterm中复制粘贴                                                         
                                            ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄      
      ANSI彩色复制  ANSI彩色粘贴                                                
                                                ◤ ▄▄▄    ▄▄▄ ◥          
          开启后可以进行彩色复制和粘贴。              █      █                
          可以在编辑菜单、右键菜单和工               ▌▌     ▌▌              
          具条上找到。                               █        █               
                                                   ▄▄▄    ▄▄▄             
      自动拷贝到剪贴板  开启后选取的内              ▄▄▄▄▄▄▄              
                        容会被自动复制          ◣        ┃        ◢          
          到剪贴板而不必使用ctrl+ins。                    ┃                    
          可以在右键菜单和工具条上找到。    SpiritRain    ┃    RYGH  ▄        
                                            ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄      
      矩形选择  开启后话鼠标按矩形区域         ▄▄▄▄▄▄▄▄▄▄▄▄         
                选取内容,否则按行选取     ▄▄▄◤▄▄▄▄▄▄▄▄◥▄▄▄     
          内容。可以在编辑菜单上找到。      ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄      
                                                                                
                                                                                
────────────────────────────────────|⑼|─  

──|复制粘贴|────────────────────────────────  
                                                                                
  二  在CtermIII中复制粘贴                                                      
                                                                                
      ANSI彩色复制  对选定的区域或者全屏进行彩色复制。                          
                    可以在编辑菜单、工具条和右键菜单上找到。                    
                                                                                
      ANSI彩色粘贴  粘贴带ANSI控制符的字符,粘贴时应当去掉“粘贴时使用自动排    
                    版”和“段落之间空一行”选项。位置同“ANSI彩色复制”。      
                                                                                
      自动复制      同Fterm“自动拷贝到剪贴板”。但是打开自动复制就无法彩色     
                    复制。若想彩色复制必须关闭此功能。可以在编辑菜单里找到。    
                                                                                
      选择矩形区域  同Fterm“块状复制”。可以在编辑菜单、工具条上找到。         
                                                                                
  三  在Cterm2000中复制粘贴                                                     
                                                                                
      Cterm2000中没有任何状态按钮。按住shift选取内容就是矩形选取,复制是带      
      颜色复制,不按shift选取是按行选取,复制是不带颜色的。                     
                                                                                
────────────────────────────────────|⑽|─  
                                                                                
──|复制粘贴|────────────────────────────────  
                                                                                
  四  在Sterm中复制粘贴                                                         
                                                                                
      copy with color code  同Fterm“ANSI彩色复制”。由于没有彩色粘贴开         
      关,无把彩色的粘贴成黑白的。可以在edit菜单、右键菜单和工具条上找到。      
                                                                                
      copy on select  同Fterm“自动拷贝到剪贴板”。可以在edit菜单里找到。       
                                                                                
      Rectangle select area  同Fterm“矩形选择”。可在右键菜单和工具条上找到。  
                                                                                
  五  Term与Term间复制粘贴                                                      
                                                                                
      Term与Term直间的兼容性不好, Cterm和Sterm复制出的控制符是两个*(ASC27)控   
      制符组成的,而Fterm只有一个*(ASC27)。                                     
       ◆ 高版本的Sterm能正确识别这两个格式。                                   
       ◆ 高版本的Fterm则需要用输入辅助窗输入S/Cterm复制的内容。                
       ◆ 而Fterm复制到Cterm中,则需要通过一个DoubleEsc的软件,或者用文本编辑   
          器的查找替换功能。                                                    
      所以尽量在同一个Term里复制粘贴。                                          
────────────────────────────────────|⑾|─  
                                                                                
──|复制粘贴|────────────────────────────────  
                                                                                
  六  AnsiEditor和Term的复制粘贴                                                
                                                                                
      Term复制到AnsiEditor可以直接复制,只是注意可能会有高低亮的问题。          
                                                                                
      AnsiEditor复制到Term需要根据Term和BBS的种类设置。在菜单“工具->选项”     
      的“代码选项”中,将“ESC控制符”设为“ESC - Fterm  Firebird”如果需      
      在台湾的Maple的BBS,如ptt上粘贴,则应设为“Ctrl+U - Fterm Firebird”。    
                                                                                
      另外建议,非大幅的作品复制可以通过AnsiEditor中转一下。                    
                                                                                
  七  自动换行问题                                                              
                                                                                
      另外也需要注意列宽对排版的影响。除了水木的KBS外,各大BBS站几乎都对列      
      宽有限制,规定一行的最多只有255个字符,超过额定字符数后会被自动换行。     
      所以复制ANSI作品时尽量少复制右边空格,还可以用Esc+x改变列宽为254。另      
      外这个限制使部分作品可能无法正确显示,只能通过手动精简代码甚至使用移      
      位控制符来使作品得到正确显示。                                            
                                                                                
────────────────────────────────────|⑿|─  
                                                                                
──|复制粘贴|────────────────────────────────  
                                                                                
  八  无损的复制粘贴                                                            
                                                                                
      使用Term进行复制和粘贴时应当记住,颜色代码Term软件做过自己的处理,与      
      原作的不同。通常只对颜色和高亮的支持较好,对下划线,反显等的支持因软      
      件而异。下面解释几个方法,复制代码和作者完全相同。虽然操作比较繁索,      
      但是建议在复制ANSI作品时,尽量使用这种方式来保证复制的正确性。            
                                                                                
      同一站内复制粘贴  入编辑文章的界面。光标移动到起始行,按下Ctrl+U标记      
                        区块,移到结束行,再按下Ctrl+U结束标记。如果在同一      
          篇文章内,光标移动到指定位置,按下Ctrl+C粘贴区块。如果不在同一篇
          文章内,选定区块后按下Esc+e汇出到剪贴簿,需要的时候再用Esc+i汇入   
          剪贴簿的内容,剪贴簿的内容永远不丢失。         
                                                                                
      不同站间复制粘贴  可以用U寄回信箱,把信件内容粘贴在一个文本文档中,把     
                        此文本文档的后缀名改为.uue,再用压缩软件解压缩。解      
          出的文件用文本编辑打开,里面就是文件的完整内容。不过现在很多站不      
          提供U寄回功能。有的站提供E-mail方式寄回,有的站提供zmodem下载等。     
          如果都没提供只能用Cterm的抓TCP包方式,篇幅有限这里不一一讲解了。      
────────────────────────────────────|⒀|─  
                                                                                
──|本次作业|────────────────────────────────
                                                                              
  一  A类作业(所有正式学员需要完成)                                          
                                                                              
      1. 熟悉至少一种Term的使用,熟悉ansieditor的使用(该题无需书面提交)       
      2. 只格式刷和刷子做一个ansi,作品大小、形式不限                         
      3. 有兴趣的学员可以预习后续课程(该题无需书面提交)                       
      4. 将本教程中的Fterm图形复制出,并且复制成两个,且要并排排列。(此题    
         需要用到代码的简化,并且能理解,并非所有作品都能在光华很好的显示)   
                                                                              
  二  B类作业(建议版主学员或有兴趣的学员完成)                                
                                                                              
      无                                                                      
                                                                              
  三  C类作业(希望有一定ANSI基础或有兴趣的学员完成)                          
                                                                              
      无                                                                      
                                                                              
  正式学员完成作业后提交给组长,由组长统一提交给教师。旁听学员若希望提交作    
  业,可自行选择当班教师进行提交。                                            
────────────────────────────────────|⒁|─


--
《国王与小鸟》,法国1979年动画片,根据安徒生《牧羊女和扫烟筒的少年》改编。      
国王语录:(你不是答应给他们自由吗?)干苦工我的美人,干苦工就是自由。          
小鸟语录:(为什么地球是圆的?)因为它在转,(为什么它在转?)因为它是圆的。    
你们别慌,要是遇到为难的事就喊我,我会来帮助你们的,(那我们怎么喊你呢)你们就喊“小鸟”,我就会来的。
出于礼貌,我对他们说“祝你们胃口好”。哎呦说漏嘴了,快来个欢乐的曲子,要不它们会把他吞了。
别怕,孩子们,爸爸是懂技术的。我早说过孩子们,只要爸爸一动手,都能解决。        


※ 修改:·trijif 于 Jan 27 22:00:12 修改本文·[FROM: 202.118.230.102]
※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 202.118.230.102]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:610.478毫秒