home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR2 / CBUFF09.ZIP / MISC.ZIP / ASCII.SYM next >
Text File  |  1993-11-16  |  6KB  |  254 lines

  1. /*  $Id$
  2.  *  
  3.  *  File    ascii.sym
  4.  *  Part of    ChessBase utilities file format (CBUFF)
  5.  *  Author    Anjo Anjewierden, anjo@swi.psy.uva.nl
  6.  *  Purpose    Mapping of symbol names onto plain ASCII
  7.  *  Works with    CBUFF 0.3
  8.  *  
  9.  *  Notice    Copyright (c) 1993  Anjo Anjewierden
  10.  *  
  11.  *  History    04/07/93  (Created)
  12.  *          04/07/93  (Last modified)
  13.  */
  14.  
  15.  
  16. /*------------------------------------------------------------
  17.  *  Motivation
  18.  *------------------------------------------------------------*/
  19.  
  20. /*  A ChessBase file contains special characters for which there
  21.  *  is no generally accepted ASCII representation.  This file
  22.  *  contains the default mappings of special chess symbols onto
  23.  *  ASCII.
  24.  *
  25.  *  You can modify the default mapping by copying this file,
  26.  *  making the necessary modifications, and then providing the
  27.  *  name of the copied file as the argument to the ``-symbols''
  28.  *  option of CBUFF.
  29.  */
  30.  
  31.  
  32. /*------------------------------------------------------------
  33.  *  Description
  34.  *------------------------------------------------------------*/
  35.  
  36. /*  The format of each entry is:
  37.  *
  38.  *  NameOfChessSymbol:     "value-of-chess-symbol"
  39.  *
  40.  *  The colon (:) is mandatory, it may be followed by white space
  41.  *  to align the columns.  The value is put between quote characters.
  42.  *  The quote character can be any character that does not appear in
  43.  *  the value.  The following are, for example, all legal and their
  44.  *  meaning is the same:
  45.  *
  46.  *    KingSymbol:    "K"
  47.  *    KingSymbol:    /K/
  48.  *    KingSymbol:    +K+
  49.  *
  50.  *  The backslash (\) is used as an escape character.  The following
  51.  *  escape sequences are recognised:
  52.  *
  53.  *    \n    Newline
  54.  *    \t    Tab
  55.  *    \\    Backslash
  56.  *    \x    x itself
  57.  */
  58.  
  59.  
  60. /*------------------------------------------------------------
  61.  *  Chess pieces
  62.  *------------------------------------------------------------*/
  63.  
  64. KingSymbol:        "K"
  65. QueenSymbol:        "Q"
  66. RookSymbol:        "R"
  67. BishopSymbol:        "B"
  68. KnightSymbol:        "N"
  69. PawnSymbol:        "P"        Only used for comments
  70.  
  71.  
  72. /*------------------------------------------------------------
  73.  *  Internal
  74.  *------------------------------------------------------------*/
  75.  
  76. NextLine:        " "        Next line in a comment
  77.  
  78.  
  79. /*------------------------------------------------------------
  80.  *  Result of a game
  81.  *------------------------------------------------------------*/
  82.  
  83. WhiteWins:        "1:0"
  84. BlackWins:        "0:1"
  85. Draw:            "1/2:1/2"
  86.  
  87.  
  88. /*------------------------------------------------------------
  89.  *  Evaluation of a move
  90.  *------------------------------------------------------------*/
  91.  
  92. GoodMove:        "!"
  93. BadMove:        "?"
  94. InterestingMove:    "!?"
  95. DubiousMove:        "?!"
  96. BrilliantMove:        "!!"
  97. Blunder:        "??"
  98. Mate:            "#"
  99.  
  100.  
  101. /*------------------------------------------------------------
  102.  *  Evaluation of a position
  103.  *------------------------------------------------------------*/
  104.  
  105. WhiteBetter:        "+="
  106. WhiteAdvantage:        "(+-)"
  107. WhiteWinning:        "+-"
  108. Equality:        "="
  109. Unclear:        "%"
  110. BlackBetter:        "=+"
  111. BlackAdvantage:        "(-+)"
  112. BlackWinning:        "-+"
  113. WhiteCompensation:    "&="
  114. BlackCompensation:    "=&"
  115. Compensation:        "&"
  116.  
  117.  
  118. /*------------------------------------------------------------
  119.  *  Fractions
  120.  *------------------------------------------------------------*/
  121.  
  122. Quarter:        "1/4"
  123. Half:            "1/2"
  124. ThreeQuarters:        "3/4"
  125.  
  126.  
  127. /*------------------------------------------------------------
  128.  *  Informator style special symbols
  129.  *------------------------------------------------------------*/
  130.  
  131. Etc:            "||"
  132. BishopPair:        "(bp)"
  133. OppositeBishops:    "(ob)"
  134. SameBishops:        "(sb)"
  135. DoublePawn:        "(dp)"
  136. PassedPawn:        "(pp)"
  137. IsolatedPawn:        "(ip)"
  138. ConnectedPawn:        "(cp)"
  139. WorseIs:        "<="
  140. BetterIs:        ">="
  141. SpaceAdvantage:        "(sp)"
  142. OnlyMove:        "$"
  143. WithIdea:        "(id)"
  144. QueensSide:        "<<"
  145. KingsSide:        ">>"
  146. With:            "|_"
  147. Without:        "_|"
  148. WithInitiative:        "^"
  149. WithAttack:        "->"
  150. WithCounterplay:    "<->"
  151. Diagonal:        "</>"
  152. Centre:            "(ce)"
  153. LineFile:        "<=>"
  154. Endgame:        "(en)"
  155. Zugzwang:        "(zz)"
  156. TimeTrouble:        "(tm)"
  157. DevelopmentAdvantage:    "^^"
  158. Novelty:        "N"
  159. WeakPoint:        "X"
  160. PawnEvaluation:        "o"
  161. PawnConnection:        ".."
  162. EditorialComment:    "(RR)"
  163.  
  164.  
  165. /*------------------------------------------------------------
  166.  *  Accents and such
  167.  *------------------------------------------------------------*/
  168.  
  169. Acute_E:        "E"
  170. Acute_a:        "a"
  171. Acute_e:        "e"
  172. Acute_i:        "i"
  173. Acute_o:        "o"
  174. Acute_u:        "u"
  175. Cedille_C:        "C"
  176. Cedille_c:        "c"
  177. Circumflex_a:        "a"
  178. Circumflex_e:        "e"
  179. Circumflex_i:        "i"
  180. Circumflex_o:        "o"
  181. Circumflex_u:        "u"
  182. Dot_A:            "A"
  183. Dot_a:            "a"
  184. German_S:        "ss"
  185. Grave_a:        "a"
  186. Grave_e:        "e"
  187. Grave_i:        "i"
  188. Grave_o:        "o"
  189. Grave_u:        "u"
  190. Scandi_AE:        "AE"
  191. Scandi_ae:        "ae"
  192. Tilde_N:        "N"
  193. Tilde_n:        "n"
  194. Umlaut_A:        "Ae"
  195. Umlaut_O:        "Oe"
  196. Umlaut_U:        "Ue"
  197. Umlaut_a:        "ae"
  198. Umlaut_e:        "e"
  199. Umlaut_i:        "i"
  200. Umlaut_u:        "ue"
  201. Umlaut_y:        "y"
  202.  
  203.  
  204. /*------------------------------------------------------------
  205.  *  Printing moves
  206.  *------------------------------------------------------------*/
  207.  
  208. CastlingShort:        "0-0"        0 is zero
  209. CastlingLong:        "0-0-0"        0 is zero 
  210. CaptureSymbol:        "x"        "" doesn't print captures
  211. IncheckSymbol:        "+"        "" doesn't print check
  212. MoveHyphen:        "-"        As in Kg1-h1
  213. PromotionSymbol:    "="        As in e7-e8=Q
  214. WhiteMoveSymbol:    "."        As in 21.e5
  215. BlackMoveSymbol:    "..."        As in 21...Bg7
  216.  
  217.  
  218. /*------------------------------------------------------------
  219.  *  Printing variations
  220.  *------------------------------------------------------------*/
  221.  
  222. StartMajorAlternative:    "["        Alternative at top-level
  223. EndMajorAlternative:    "]"
  224. StartAlternative:    "("        Alternative at lower level
  225. EndAlternative:        ")"
  226. StartComment:        "{"        Textual comment start
  227. EndComment:        "}"
  228. StartSubAlternative:    "; "        Second (etc.) alternative
  229.  
  230.  
  231. /*------------------------------------------------------------
  232.  *  Printing diagrams
  233.  *------------------------------------------------------------*/
  234.  
  235. StartDiagram:            "\n\n\t"
  236. EndDiagram:        "\n\n"
  237. StartDiagramRank:    "\t"
  238. EndDiagramRank:        "\n"
  239. DiagramWK:        "WK "
  240. DiagramWQ:        "WQ "
  241. DiagramWR:        "WR "
  242. DiagramWB:        "WB "
  243. DiagramWN:        "WN "
  244. DiagramWP:        "WP "
  245. DiagramBK:        "BK "
  246. DiagramBQ:        "BQ "
  247. DiagramBR:        "BR "
  248. DiagramBB:        "BB "
  249. DiagramBN:        "BN "
  250. DiagramBP:        "BP "
  251. DiagramWhiteSquare:    "   "
  252. DiagramBlackSquare:    "** "
  253.  
  254.