当前位置:首页 > 翻译学习

Lynx预设值翻译-中英

发布时间:2014-1-4      阅读次数:665

Lynx预设值翻译-中英

: 9600,8,N,1
Lynx记分板脚本
 著作权 (c) 1995-1997Lynx系统开发商有限公司。
编者:Kirk Sigel
注释:
;  + 空行和以一个分号开头的行忽略不计。
;  + 以两个分号开头的行表示一个栏目标题。
;    它们必须是以下其中一个:
;      ;;赋初值
;      ;;时间运转
;      ;;时间停止
;      ;;报时炮
;      ;;时间中断
;      ;;更新时间
;      ;;快进
;      ;;当日时间
;      ;;结果标题
;      ;;结果预告
;      ;;结果
;    章节可以省略,也可以出现多于一次。
;  + 格式行必须以一个值开头,该值表示他们想使用哪一个变量。\00这一特定的编码表示
;    不要求变量。如果要求变量,则将其插入“%s”写格式化输出格式说明符出现的地方。
;    在要求变量的行中只能出现一个“%s”说明符,并且不准出现其他的写格式化输出说
;    明符。记住,要求变量的行被用作写格式化输出格式行,因此必须这样运行。不要求
;    变量(编码\00)的行可以随意运行,因为这些行不用于写格式化输出陈述。
;   + 输入任意8比特的值作为\hh,这里h是一个小写的十六进制的数位。注意h必须是
;     小写。
;   + 格式行能够将以下指令嵌入。
;    注意通常只有10个暂存器(索引0-9)可以执行。
;    将“U”值设定至hh。在下一个指令后要重新设定。
;    将“U”值设定至暂存器[hh]。
;    将“X”值设定至hh。在下一个指令后要重新设定。
;    将“X”值设定至暂存器[hh]。

;     \=\hh   register[hh] = {register[U]|X|1}                 (赋值)
;     \*\hh   register[hh] = register[hh] * {register[U]|X|1}  (乘法)
;     \/\hh   register[hh] = register[hh] / {register[U]|X|1}  (除法)
;     \#\hh   register[hh] = register[hh] # {register[U]|X|1}  (绝对值)
;     \+\hh   register[hh] = register[hh] + {register[U]|X|1}  (加法)
;     \-\hh   register[hh] = register[hh] - {register[U]|X|1}  (减法)
;     \<\hh   register[hh] = register[hh] << {register[U]|X|1} (左进位)
;     \>\hh   register[hh] = register[hh] >> {register[U]|X|1} (右进位)
;     \&\hh   register[hh] = register[hh] & {register[U]|X|1}  (比特以及)
;     \|\hh   register[hh] = register[hh] | {register[U]|X|1}  (比特或者)
;     \^\hh   register[hh] = register[hh] ^ {register[U]|X|1}  (比特x以及)
;     \~\hh   register[hh] = ~register[hh]                     (比特取反)
;     \F\hh   暂存器[hh] = 下一{X|<终止>}字符上的运转函数{U|0}的结果。
;              \U\00  标识部分校验和。
;              \U\01  或非逻辑校验和。暂存器[hh]被用作晶种数量。
;              \U\02  加法校验和。暂存器[hh]被用作晶种数量。
;     \O\hh   使用{U|0}法输出暂存器[hh]作为一个{X|1}字节值。
;              \U\00  二进制小字节序格式(因特尔位元组顺序)。
;              \U\01  二进制大字节序格式(摩托罗拉位元组顺序)。
;              \U\02  ASCII右对齐文本空格填补。
;              \U\03  ASCII右对齐文本零填补。
;              \U\04  ASCII左对齐文本空格填补。
;              \U\05  ASCII text left justified zero padded.ASCII右对齐文本零填补。
;     \S\hh   使用{U|0}方法将下一个{X|1}字节扫描至暂存器[hh]中。
;              \U\00  ASCII文本基数10。
;              \U\01  二进制小字节序格式(因特尔位元组顺序)。
;              \U\02  二进制大字节序格式(摩托罗拉位元组顺序)。
;     \P\hh   在下一个{X|<终止>}字符上运行程序hh。
;              \P\00  反转字符。
;              \P\01  转换字符至科罗拉多州时间格式。
;                    暂存器[1]是当前字符入门位置和下一个字符
;              \P\02  转换字符至达科AllSport 格式。
;     \B\hh   在光标前或者直到行中出现X字符删除{暂存器[U]|hh}(若为零,则至行开
;             头)字符。
;     \D\hh   在光标处或者直到行中出现X字符,删除{暂存器[U]|hh}(若为零,则至行
;             结束)字符。
;     \I\hh    在光标处或者直到行中出现X字符,插入{暂存器[U]|hh}空格。
;     \Ic\hh   在光标处插入{暂存器[U]|hh}{X's|空格}。
;     \L\hh    将光标{暂存器[U]|hh}位置移至左边(若为零,则至行开头)。
;     \R\hh    将光标{暂存器[U]|hh}位置移至右边(若为零,则至行结束)。
   注意,对于单字符嵌入指令,数字0到9能够直接输入。例如,“\U\04”与“\U4”
    相同,“\=\01”与“\=1”相同。 
+  一定要注意每一格式行中的空白。除了“%s”说明符和嵌入指令,当字符和值出现
    在行中时可以被精确发送。这就意味着,比如,按照你最喜欢的编辑方式使用制表符
     编写“向右看”一行将使得制表符被发送至记分板而不是空格的等价数字(可能是你
     不喜欢的)。
 格式行紧随其后。

;;赋初值
; 这个将被发送一次以对记分板进行初始化。
; 行编码:
;  \00 无变量
;\00\0d\0a***初始化记分板 ***\0d\0a

; Defaults: 9600,8,N,1
;
; Lynx Scoreboard Script
;
; Copyright (c) 1995-1997 Lynx System Developers, Inc.
;
; Written by Kirk Sigel
;
; Notes:
;  + Empty lines and lines that start with a semicolon are ignored.
;  + Lines that start with two semicolons indicate a section header.
;    They must be one of the following:
;      ;;Initialization
;      ;;TimeRunning
;      ;;TimeStopped
;      ;;TimeGun
;      ;;TimeBreak
;      ;;TimeUpdate
;      ;;Wind
;      ;;TimeOfDay
;      ;;ResultsHeader
;      ;;ResultsTrailer
;      ;;Result
;    Sections may be omitted, appear in any order, and occur more than once.
;  + Format lines must begin with a value indicating which variable
;    they want to access. The special code \00 indicates that no variable
;    is being requested. If a variable is requested it will be inserted where
;    a '%s' printf style format specifier appears. There can only be one '%s'
;    specifier in lines requesting a variable and no other printf format
;    specifiers may appear. Remember, lines requesting a variable are used as
;    a printf format string and therefore must behave as such. Lines not
;    requesting variables (code \00) can do whatever they want as these
;    lines are not fed to a printf statement.
;  + Arbitrary 8 bit values are entered as \hh where h is a lowercase hex
;    digit. Note that h must be lowercase.
;  + Format lines can have the following commands embedded in them.
;    Note that only 10 registers (indexed 0-9) are currently implemented.
;     \U\hh   Set the 'U' value to hh. It is reset after the next command.
;     \Ui\hh  Set the 'U' value to register[hh].
;     \X\hh   Set the 'X' value to hh. It is reset after the next command.
;     \Xi\hh  Set the 'X' value to register[hh].
;     \=\hh   register[hh] = {register[U]|X|1}                 (assign)
;     \*\hh   register[hh] = register[hh] * {register[U]|X|1}  (multiply)
;     \/\hh   register[hh] = register[hh] / {register[U]|X|1}  (divide)
;     \#\hh   register[hh] = register[hh] # {register[U]|X|1}  (modulus)
;     \+\hh   register[hh] = register[hh] + {register[U]|X|1}  (add)
;     \-\hh   register[hh] = register[hh] - {register[U]|X|1}  (subtract)
;     \<\hh   register[hh] = register[hh] << {register[U]|X|1} (shift left)
;     \>\hh   register[hh] = register[hh] >> {register[U]|X|1} (shift right)
;     \&\hh   register[hh] = register[hh] & {register[U]|X|1}  (bit and)
;     \|\hh   register[hh] = register[hh] | {register[U]|X|1}  (bit or)
;     \^\hh   register[hh] = register[hh] ^ {register[U]|X|1}  (bit xor)
;     \~\hh   register[hh] = ~register[hh]                     (bit invert)
;     \F\hh   register[hh] = The result of running Function {U|0} on the
;             next {X|} characters.
;              \U\00  IDS checksum.
;              \U\01  XOR checksum. register[hh] is used as the seed value.
;              \U\02  ADD checksum. register[hh] is used as the seed value.
;     \O\hh   Output register[hh] as an {X|1} byte value using method {U|0}.
;              \U\00  Binary little-endian (Intel byte order).
;              \U\01  Binary big-endian (Motorola byte order).
;              \U\02  ASCII text right justified space padded.
;              \U\03  ASCII text right justified zero padded.
;              \U\04  ASCII text left justified space padded.
;              \U\05  ASCII text left justified zero padded.
;     \S\hh   Scan the next {X|1} bytes into register[hh] using method {U|0}.
;              \U\00  ASCII text base 10.
;              \U\01  Binary little-endian (Intel byte order).
;              \U\02  Binary big-endian (Motorola byte order).
;     \P\hh   Run Procedure hh on the next {X|} characters.
;              \P\00  Reverse characters.
;              \P\01  Convert characters to Colorado Time format. Register[1]
;                       is the current character position on entry and the
;                       next character position on exit.
;              \P\02  Convert characters to Daktronics AllSport format.
;     \B\hh   Delete {register[U]|hh} (to beginning of line if zero) characters
;             before the cursor or until the string contains X characters.
;     \D\hh   Delete {register[U]|hh} (to end of line if zero) characters
;             at the cursor or until the string contains X characters.
;     \I\hh   Insert {register[U]|hh} spaces at the cursor or until the string
;             contains X characters.
;     \Ic\hh  Insert {register[U]|hh} {X's|spaces} at the cursor.
;     \L\hh   Move the cursor {register[U]|hh} positions to the left (to the
;             beginning of the line if zero).
;     \R\hh   Move the cursor {register[U]|hh} positions to the right (to the
;             end of the line if zero).
;    Note that numbers 0 thru 9 can be entered directly for single character
;    embedded commands. For example, '\U\04' is the same as '\U4' and
;    '\=\01' is the same as '\=1'.
;  + Be very careful about whitespace in each format line. Characters other
;    than '%s' specifiers and embedded commands and values will be sent
;    exactly as they appear on the line. This means, for instance, that using
;    tabs to make a line 'look right' in you favorite editor will cause
;    tabs to be sent to the scoreboard instead of the equivalent number of
;    spaces (probably not what you wanted).

武汉江岸区翻译公司

2014.1.4

 

  返回>>Top
-x