home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume28 / notation / part03 < prev    next >
Encoding:
Text File  |  1992-02-13  |  58.7 KB  |  1,773 lines

  1. Newsgroups: comp.sources.misc
  2. From: hthomas@ph.tn.tudelft.nl (Henry Thomas)
  3. Subject:  v28i038:  notation - chess preprocessor v3.9, Part03/04
  4. Message-ID: <1992Feb11.204750.9168@sparky.imd.sterling.com>
  5. X-Md4-Signature: bbe75fc8e7e3596716bdb03bf680ebec
  6. Date: Tue, 11 Feb 1992 20:47:50 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: hthomas@ph.tn.tudelft.nl (Henry Thomas)
  10. Posting-number: Volume 28, Issue 38
  11. Archive-name: notation/part03
  12. Environment: UNIX
  13. Supersedes: notation: Volume20, Issue 52-55
  14.  
  15. #! /bin/sh
  16. # into a shell via "sh file" or similar.  To overwrite existing files,
  17. # type "sh file -c".
  18. # The tool that generated this appeared in the comp.sources.unix newsgroup;
  19. # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
  20. # Contents:  COPYING notation.doc notation.h notation.n notation.tex
  21. #   shortened.ntn
  22. # Wrapped by kent@sparky on Tue Feb 11 14:22:45 1992
  23. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  24. echo If this archive is complete, you will see the following message:
  25. echo '          "shar: End of archive 3 (of 4)."'
  26. if test -f 'COPYING' -a "${1}" != "-c" ; then 
  27.   echo shar: Will not clobber existing file \"'COPYING'\"
  28. else
  29.   echo shar: Extracting \"'COPYING'\" \(12488 characters\)
  30.   sed "s/^X//" >'COPYING' <<'END_OF_FILE'
  31. X
  32. X            GNU GENERAL PUBLIC LICENSE
  33. X             Version 1, February 1989
  34. X
  35. X Copyright (C) 1989 Free Software Foundation, Inc.
  36. X                    675 Mass Ave, Cambridge, MA 02139, USA
  37. X Everyone is permitted to copy and distribute verbatim copies
  38. X of this license document, but changing it is not allowed.
  39. X
  40. X                Preamble
  41. X
  42. X  The license agreements of most software companies try to keep users
  43. Xat the mercy of those companies.  By contrast, our General Public
  44. XLicense is intended to guarantee your freedom to share and change free
  45. Xsoftware--to make sure the software is free for all its users.  The
  46. XGeneral Public License applies to the Free Software Foundation's
  47. Xsoftware and to any other program whose authors commit to using it.
  48. XYou can use it for your programs, too.
  49. X
  50. X  When we speak of free software, we are referring to freedom, not
  51. Xprice.  Specifically, the General Public License is designed to make
  52. Xsure that you have the freedom to give away or sell copies of free
  53. Xsoftware, that you receive source code or can get it if you want it,
  54. Xthat you can change the software or use pieces of it in new free
  55. Xprograms; and that you know you can do these things.
  56. X
  57. X  To protect your rights, we need to make restrictions that forbid
  58. Xanyone to deny you these rights or to ask you to surrender the rights.
  59. XThese restrictions translate to certain responsibilities for you if you
  60. Xdistribute copies of the software, or if you modify it.
  61. X
  62. X  For example, if you distribute copies of a such a program, whether
  63. Xgratis or for a fee, you must give the recipients all the rights that
  64. Xyou have.  You must make sure that they, too, receive or can get the
  65. Xsource code.  And you must tell them their rights.
  66. X
  67. X  We protect your rights with two steps: (1) copyright the software, and
  68. X(2) offer you this license which gives you legal permission to copy,
  69. Xdistribute and/or modify the software.
  70. X
  71. X  Also, for each author's protection and ours, we want to make certain
  72. Xthat everyone understands that there is no warranty for this free
  73. Xsoftware.  If the software is modified by someone else and passed on, we
  74. Xwant its recipients to know that what they have is not the original, so
  75. Xthat any problems introduced by others will not reflect on the original
  76. Xauthors' reputations.
  77. X
  78. X  The precise terms and conditions for copying, distribution and
  79. Xmodification follow.
  80. X
  81. X            GNU GENERAL PUBLIC LICENSE
  82. X   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  83. X
  84. X  0. This License Agreement applies to any program or other work which
  85. Xcontains a notice placed by the copyright holder saying it may be
  86. Xdistributed under the terms of this General Public License.  The
  87. X"Program", below, refers to any such program or work, and a "work based
  88. Xon the Program" means either the Program or any work containing the
  89. XProgram or a portion of it, either verbatim or with modifications.  Each
  90. Xlicensee is addressed as "you".
  91. X
  92. X  1. You may copy and distribute verbatim copies of the Program's source
  93. Xcode as you receive it, in any medium, provided that you conspicuously and
  94. Xappropriately publish on each copy an appropriate copyright notice and
  95. Xdisclaimer of warranty; keep intact all the notices that refer to this
  96. XGeneral Public License and to the absence of any warranty; and give any
  97. Xother recipients of the Program a copy of this General Public License
  98. Xalong with the Program.  You may charge a fee for the physical act of
  99. Xtransferring a copy.
  100. X
  101. X  2. You may modify your copy or copies of the Program or any portion of
  102. Xit, and copy and distribute such modifications under the terms of Paragraph
  103. X1 above, provided that you also do the following:
  104. X
  105. X    a) cause the modified files to carry prominent notices stating that
  106. X    you changed the files and the date of any change; and
  107. X
  108. X    b) cause the whole of any work that you distribute or publish, that
  109. X    in whole or in part contains the Program or any part thereof, either
  110. X    with or without modifications, to be licensed at no charge to all
  111. X    third parties under the terms of this General Public License (except
  112. X    that you may choose to grant warranty protection to some or all
  113. X    third parties, at your option).
  114. X
  115. X    c) If the modified program normally reads commands interactively when
  116. X    run, you must cause it, when started running for such interactive use
  117. X    in the simplest and most usual way, to print or display an
  118. X    announcement including an appropriate copyright notice and a notice
  119. X    that there is no warranty (or else, saying that you provide a
  120. X    warranty) and that users may redistribute the program under these
  121. X    conditions, and telling the user how to view a copy of this General
  122. X    Public License.
  123. X
  124. X    d) You may charge a fee for the physical act of transferring a
  125. X    copy, and you may at your option offer warranty protection in
  126. X    exchange for a fee.
  127. X
  128. XMere aggregation of another independent work with the Program (or its
  129. Xderivative) on a volume of a storage or distribution medium does not bring
  130. Xthe other work under the scope of these terms.
  131. X
  132. X  3. You may copy and distribute the Program (or a portion or derivative of
  133. Xit, under Paragraph 2) in object code or executable form under the terms of
  134. XParagraphs 1 and 2 above provided that you also do one of the following:
  135. X
  136. X    a) accompany it with the complete corresponding machine-readable
  137. X    source code, which must be distributed under the terms of
  138. X    Paragraphs 1 and 2 above; or,
  139. X
  140. X    b) accompany it with a written offer, valid for at least three
  141. X    years, to give any third party free (except for a nominal charge
  142. X    for the cost of distribution) a complete machine-readable copy of the
  143. X    corresponding source code, to be distributed under the terms of
  144. X    Paragraphs 1 and 2 above; or,
  145. X
  146. X    c) accompany it with the information you received as to where the
  147. X    corresponding source code may be obtained.  (This alternative is
  148. X    allowed only for noncommercial distribution and only if you
  149. X    received the program in object code or executable form alone.)
  150. X
  151. XSource code for a work means the preferred form of the work for making
  152. Xmodifications to it.  For an executable file, complete source code means
  153. Xall the source code for all modules it contains; but, as a special
  154. Xexception, it need not include source code for modules which are standard
  155. Xlibraries that accompany the operating system on which the executable
  156. Xfile runs, or for standard header files or definitions files that
  157. Xaccompany that operating system.
  158. X
  159. X  4. You may not copy, modify, sublicense, distribute or transfer the
  160. XProgram except as expressly provided under this General Public License.
  161. XAny attempt otherwise to copy, modify, sublicense, distribute or transfer
  162. Xthe Program is void, and will automatically terminate your rights to use
  163. Xthe Program under this License.  However, parties who have received
  164. Xcopies, or rights to use copies, from you under this General Public
  165. XLicense will not have their licenses terminated so long as such parties
  166. Xremain in full compliance.
  167. X
  168. X  5. By copying, distributing or modifying the Program (or any work based
  169. Xon the Program) you indicate your acceptance of this license to do so,
  170. Xand all its terms and conditions.
  171. X
  172. X  6. Each time you redistribute the Program (or any work based on the
  173. XProgram), the recipient automatically receives a license from the original
  174. Xlicensor to copy, distribute or modify the Program subject to these
  175. Xterms and conditions.  You may not impose any further restrictions on the
  176. Xrecipients' exercise of the rights granted herein.
  177. X
  178. X  7. The Free Software Foundation may publish revised and/or new versions
  179. Xof the General Public License from time to time.  Such new versions will
  180. Xbe similar in spirit to the present version, but may differ in detail to
  181. Xaddress new problems or concerns.
  182. X
  183. XEach version is given a distinguishing version number.  If the Program
  184. Xspecifies a version number of the license which applies to it and "any
  185. Xlater version", you have the option of following the terms and conditions
  186. Xeither of that version or of any later version published by the Free
  187. XSoftware Foundation.  If the Program does not specify a version number of
  188. Xthe license, you may choose any version ever published by the Free Software
  189. XFoundation.
  190. X
  191. X  8. If you wish to incorporate parts of the Program into other free
  192. Xprograms whose distribution conditions are different, write to the author
  193. Xto ask for permission.  For software which is copyrighted by the Free
  194. XSoftware Foundation, write to the Free Software Foundation; we sometimes
  195. Xmake exceptions for this.  Our decision will be guided by the two goals
  196. Xof preserving the free status of all derivatives of our free software and
  197. Xof promoting the sharing and reuse of software generally.
  198. X
  199. X                NO WARRANTY
  200. X
  201. X  9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  202. XFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
  203. XOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
  204. XPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
  205. XOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  206. XMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
  207. XTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  208. XPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
  209. XREPAIR OR CORRECTION.
  210. X
  211. X  10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  212. XWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  213. XREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
  214. XINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
  215. XOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
  216. XTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
  217. XYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  218. XPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
  219. XPOSSIBILITY OF SUCH DAMAGES.
  220. X
  221. X             END OF TERMS AND CONDITIONS
  222. X
  223. X    Appendix: How to Apply These Terms to Your New Programs
  224. X
  225. X  If you develop a new program, and you want it to be of the greatest
  226. Xpossible use to humanity, the best way to achieve this is to make it
  227. Xfree software which everyone can redistribute and change under these
  228. Xterms.
  229. X
  230. X  To do so, attach the following notices to the program.  It is safest to
  231. Xattach them to the start of each source file to most effectively convey
  232. Xthe exclusion of warranty; and each file should have at least the
  233. X"copyright" line and a pointer to where the full notice is found.
  234. X
  235. X    <one line to give the program's name and a brief idea of what it does.>
  236. X    Copyright (C) 19yy  <name of author>
  237. X
  238. X    This program is free software; you can redistribute it and/or modify
  239. X    it under the terms of the GNU General Public License as published by
  240. X    the Free Software Foundation; either version 1, or (at your option)
  241. X    any later version.
  242. X
  243. X    This program is distributed in the hope that it will be useful,
  244. X    but WITHOUT ANY WARRANTY; without even the implied warranty of
  245. X    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  246. X    GNU General Public License for more details.
  247. X
  248. X    You should have received a copy of the GNU General Public License
  249. X    along with this program; if not, write to the Free Software
  250. X    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  251. X
  252. XAlso add information on how to contact you by electronic and paper mail.
  253. X
  254. XIf the program is interactive, make it output a short notice like this
  255. Xwhen it starts in an interactive mode:
  256. X
  257. X    Gnomovision version 69, Copyright (C) 19xx name of author
  258. X    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  259. X    This is free software, and you are welcome to redistribute it
  260. X    under certain conditions; type `show c' for details.
  261. X
  262. XThe hypothetical commands `show w' and `show c' should show the
  263. Xappropriate parts of the General Public License.  Of course, the
  264. Xcommands you use may be called something other than `show w' and `show
  265. Xc'; they could even be mouse-clicks or menu items--whatever suits your
  266. Xprogram.
  267. X
  268. XYou should also get your employer (if you work as a programmer) or your
  269. Xschool, if any, to sign a "copyright disclaimer" for the program, if
  270. Xnecessary.  Here a sample; alter the names:
  271. X
  272. X  Yoyodyne, Inc., hereby disclaims all copyright interest in the
  273. X  program `Gnomovision' (a program to direct compilers to make passes
  274. X  at assemblers) written by James Hacker.
  275. X
  276. X  <signature of Ty Coon>, 1 April 1989
  277. X  Ty Coon, President of Vice
  278. X
  279. XThat's all there is to it!
  280. END_OF_FILE
  281.   if test 12488 -ne `wc -c <'COPYING'`; then
  282.     echo shar: \"'COPYING'\" unpacked with wrong size!
  283.   fi
  284.   # end of 'COPYING'
  285. fi
  286. if test -f 'notation.doc' -a "${1}" != "-c" ; then 
  287.   echo shar: Will not clobber existing file \"'notation.doc'\"
  288. else
  289.   echo shar: Extracting \"'notation.doc'\" \(15342 characters\)
  290.   sed "s/^X//" >'notation.doc' <<'END_OF_FILE'
  291. X
  292. X
  293. X
  294. Xnotation(n)       MISC. REFERENCE MANUAL PAGES        notation(n)
  295. X
  296. X
  297. X
  298. XNAME
  299. X     notation - transform chess notation
  300. X
  301. X
  302. XSYNOPSYS
  303. X     notation [input file] [-o output file] [-options...]
  304. X
  305. X
  306. XDESCRIPTION
  307. X     This program reads chess games,  either  full  algebraic  or
  308. X     shortened (ie Nf1-g3 or Ng3) and is able to ouptut the board
  309. X     after any move, in either ascii , postscript, nroff,  latex,
  310. X     xboard  or  gnuan  save  format. This program is also multi-
  311. X     lingual:  it  handles  english,  french,  spanish,   german,
  312. X     italian, dutch, romanian etc... symbols. So nearly all euro-
  313. X     peans languages are understood (except  greek  and  russian,
  314. X     but  I  can't  handle  greek or cyrillic on ascii computers,
  315. X     eh).
  316. X
  317. X
  318. XOPTIONS
  319. X     Command line options:
  320. X
  321. X
  322. X     -a
  323. X             algebraic move notation output
  324. X
  325. X
  326. X     -s
  327. X             shortened move notation output
  328. X
  329. X
  330. X     -f <language>
  331. X             specifies  the  chess  symbol  input  language.  The
  332. X             language  can  be  any  of french, english, italian,
  333. X             spanish, german, dutch,  czech,  hungarian,  polish,
  334. X             romanian, FIDE.
  335. X
  336. X
  337. X     -t <language>
  338. X             specifies the chess  symbol  output  language.  Same
  339. X             options as input language.
  340. X
  341. X
  342. X     <inputfile>
  343. X             specifies the  input  file.  If  none,  keyboard  is
  344. X             assumed.
  345. X
  346. X
  347. X     -o <outputfile>
  348. X             specifies  the  output  file.  If  none,  screen  is
  349. X             assumed.
  350. X
  351. X
  352. X
  353. XSun Release 4.1   Last change: 10 December 1990                 1
  354. X
  355. X
  356. X
  357. X
  358. X
  359. X
  360. Xnotation(n)       MISC. REFERENCE MANUAL PAGES        notation(n)
  361. X
  362. X
  363. X
  364. X     -c <number>[,<number]
  365. X             specifies the number  of  the  moves  at  which   to
  366. X             display  the  board.  If none, board is displayed at
  367. X             end of file. Several numbers may be specified, as  a
  368. X             comma-separated list.
  369. X
  370. X
  371. X     -e <number>
  372. X             display the board at the move number and then stops
  373. X
  374. X
  375. X     -b
  376. X             display only the board, not the moves
  377. X
  378. X
  379. X     -d <drivername>
  380. X             specifies the output driver. It can be  any  of  the
  381. X             following:  ascii,  postscript,  tex,  roff,  xchess
  382. X             (xchess or xboard save  format),  gnu  (gnuan  input
  383. X             format).
  384. X
  385. X
  386. X     -i
  387. X             suppress headers/footers printing.  This  is  useful
  388. X             with  tex  or ps drivers, if you want to include the
  389. X             output in a larger file.
  390. X
  391. X
  392. X     -v
  393. X             displays version number and exits
  394. X
  395. X
  396. X     -h
  397. X             displays help screen
  398. X
  399. X
  400. XINPUT LANGUAGE
  401. X           The input language has four  types  of  input:  moves,
  402. X     move numbers, comments and keywords. All these are separated
  403. X     by blanks, TAB, CR, commas and semi-columns.
  404. X
  405. X
  406. X     move format:
  407. X              The moves are accepted in  algebraic  or  shortened
  408. X             algebraic  notation.   That means that the following
  409. X             are equivalent and accepted  Nf1-g3  N-f1xg3,  Nxg3,
  410. X             Ng3,  Nfg3.  The  ugly  english notation P-K4 is not
  411. X             understood, neither by the program nor me.  The pro-
  412. X             gram allows and parse variations.
  413. X
  414. X             Nota: provided you  remove  the  three  first  line,
  415. X             xchess save format is accepted.
  416. X
  417. X
  418. X
  419. XSun Release 4.1   Last change: 10 December 1990                 2
  420. X
  421. X
  422. X
  423. X
  424. X
  425. X
  426. Xnotation(n)       MISC. REFERENCE MANUAL PAGES        notation(n)
  427. X
  428. X
  429. X
  430. X              Also you can have move comments.  So  Kg4!!,  Ra5++
  431. X             are  correct, as Kg4 !!, Ra5 ++.  Castling is recog-
  432. X             nized with the following 0-0 O-O o-o 0-0-0 O-O-O  o-
  433. X             o-o.   "En  passant" and promotion are now correctly
  434. X             handled. For "en passant", you  just  indicate  them
  435. X             move  and  it is correctly parsed ex: "d5-d7 e5xd6".
  436. X             Promotion is indicated with the "=" sign followed by
  437. X             the  new  piece name. So you just write "a7-a8=Q" or
  438. X             "d8=K". If you omit the  piece  name,  promotion  is
  439. X             made  to Queen by default; so "a8=" is equivalent to
  440. X             "a8=Q".
  441. X
  442. X             For   example,   see   the   files    algebraic.txt,
  443. X             shortened.txt and boudy.txt
  444. X
  445. X
  446. X     move numbers:
  447. X              move numbers are in the form 23. or  36.  The  full
  448. X             point  is optional. Move numbers are checked against
  449. X             internal move counter.
  450. X
  451. X
  452. X     comments:
  453. X               chess codified comments can be put in  the  input.
  454. X             There  are two ways or doing so. The first one is to
  455. X             use the usual chess notation !?, !, ,+, ++,  #,  ep,
  456. X             etc  ...  However,  international magazine use other
  457. X             no-ascii symbols : triangles, squares, infinity  and
  458. X             so  on. You can have these symbols  on LaTeX output.
  459. X             This is the second  way.  I  defined  three  letters
  460. X             abbreviations  for  such  symbols  (look at the file
  461. X             chesssymb.txt for an extensive  description).  These
  462. X             abbreviations  are  following a $ sign. For instance
  463. X             $wsb means "white slightly better".  This is,  IMHO,
  464. X             a very interesting feature of the program.
  465. X
  466. X
  467. X     text:    plain text, such as  explanations  etc...  must  be
  468. X             enclosed  in  brackets  or  parenthesis [Here Karpov
  469. X             made a very bright move ...] (this is  also  a  com-
  470. X             ment).   Comments   are  not  parsed,  but  directly
  471. X             inserted in the output, for  the  ascii  ,nroff  and
  472. X             latex drivers. The closing characters (ie "]" or ")"
  473. X             depending of the opening characters may be placed in
  474. X             the  text,  provided it is escaped by a "\" ( so you
  475. X             input "\]" or "\)" ).
  476. X
  477. X
  478. X     variations:
  479. X              You can have variations in  the  source.  Variation
  480. X             are  in  enclosing  {  }  . You can have up to three
  481. X             level of variation. It would  be  enough  for  human
  482. X
  483. X
  484. X
  485. XSun Release 4.1   Last change: 10 December 1990                 3
  486. X
  487. X
  488. X
  489. X
  490. X
  491. X
  492. Xnotation(n)       MISC. REFERENCE MANUAL PAGES        notation(n)
  493. X
  494. X
  495. X
  496. X             players.  A  variation always follows the move. Here
  497. X             is an exemple of variation : 25. Rb2 {  Ce4  de4  26
  498. X             Fc3 Fa3! 27. Ff6 Tb3 } Fa3!
  499. X
  500. X
  501. X     keywords:
  502. X              You can insert keywords in the input text  to  pre-
  503. X             cisely  define  what you want: displaying the board,
  504. X             configuring it... Keywords are detailled in the next
  505. X             section.
  506. X
  507. X
  508. XKEYWORDS
  509. X     all keywords are prefixed with @
  510. X
  511. X     @startplay
  512. X              begins the play. Obligatory after a @configxxx key-
  513. X             word.
  514. X
  515. X     @clearboard
  516. X             clears the board. Used prior to any @configxxx.
  517. X
  518. X     @showboard
  519. X             displays the board. Can be used anywhere
  520. X
  521. X     @whitesmove
  522. X             tells the program that is the white's turn of  play.
  523. X             Useful after a @configxxx and @startplay
  524. X
  525. X     @blacksmove
  526. X             tells the program that it is black's turn
  527. X
  528. X     @configwhite
  529. X             initializes configuration of white side. Pieces  are
  530. X             then  expected, in form of (optional for Pawn) name,
  531. X             the position. Example @configwhite Ke3 Rg8 e4.
  532. X
  533. X     @configblack
  534. X             initializes configuration of black side. Pieces  are
  535. X             then  expected, in form of (optional for Pawn) name,
  536. X             the position. Example: @configblack Ka8 Nf6 e6.
  537. X
  538. X             Note that black pieces are given in uppercase!
  539. X
  540. X
  541. X     @default
  542. X             resets the board to the default start configuration.
  543. X
  544. X             @special all following text up to the  next  cariage
  545. X             return is not processed, but instead directly print.
  546. X             This allows to insert comments in  ascii  files,  or
  547. X             tex commands when tex output is selected.
  548. X
  549. X
  550. X
  551. XSun Release 4.1   Last change: 10 December 1990                 4
  552. X
  553. X
  554. X
  555. X
  556. X
  557. X
  558. Xnotation(n)       MISC. REFERENCE MANUAL PAGES        notation(n)
  559. X
  560. X
  561. X
  562. X     @null   null keyword. Does nothing. Used for convenience  in
  563. X             programming.
  564. X
  565. X
  566. X             See the file keywords.txt for an example of keywords
  567. X             use.
  568. X
  569. X
  570. XNATIONAL LANGUAGES
  571. X     Here are the symbols used in the  differents  languages.  ()
  572. X     mean optional in the input.
  573. X
  574. X
  575. X     english-name   King Queen     Rook Bishop    Knight    Pawn
  576. X     english        K    Q    R    B    N    (P)
  577. X     french         R    D    T    F    C    (P)
  578. X     italian        R    D    T    A    C    (P)
  579. X     spanish        R    D    T    A    C    (P)
  580. X     german         K    D    T    L    S    (B)
  581. X     dutch          K    D    T    L    P    (O)
  582. X     czech          K    D    V    S    J    (P)
  583. X     hungarian K    V    B    F    H    (G)
  584. X     polish         K    H    W    G    S    (P)
  585. X     romanian  R    D    T    N    C    (P)
  586. X     FIDE      K    D    T    S    N    (P)
  587. X
  588. X
  589. XDRIVERS
  590. X     ascii    this is the default driver,  it  outputs  move  and
  591. X             boards.
  592. X
  593. X
  594. X     postscript
  595. X               It generates a  file  using  the  font  file  Cheq
  596. X             licensed  for  free  by  Adobe.  It  is only able to
  597. X             display one board per run. Move are  not  displayed.
  598. X             You  need  the  font  "Cheq",  freely distributed by
  599. X             Adobe.  Send a  mail  to  "ps-file-server@adobe.com"
  600. X             with the body "send Programs chessfont.ps".
  601. X
  602. X
  603. X     tex       This is a latex  driver.  It  uses  the  TeX/LaTeX
  604. X             chess    macros    designed    by   Piet   Tutalaers
  605. X             "rcpt@urc.tue.nl".  The  complete  distribution   is
  606. X             available  on sol.cs.ruu.nl (131.211.80.5) with path
  607. X             TEX/chess.tar.Z. Refer to your local latex  guru  to
  608. X             install it.
  609. X
  610. X
  611. X     roff      This is a driver for nroff output.  It  is  crude,
  612. X             but it works. Moves and boards are displayed.
  613. X
  614. X
  615. X
  616. X
  617. XSun Release 4.1   Last change: 10 December 1990                 5
  618. X
  619. X
  620. X
  621. X
  622. X
  623. X
  624. Xnotation(n)       MISC. REFERENCE MANUAL PAGES        notation(n)
  625. X
  626. X
  627. X
  628. X     xchess    This  driver  generates  compatible  xchess/xboard
  629. X             save  files, thus allowing you to replay a game with
  630. X             xchess.
  631. X
  632. X
  633. X     gnu       This driver generates "bare" output, with only the
  634. X             algebraic  move.   It  is suitable for any low-level
  635. X             analyser, such as gnuan.
  636. X
  637. X
  638. XEXAMPLES
  639. X          Try the following commands:
  640. X
  641. X     notation algebraic.txt
  642. X             this will read the  Karpov-Kasparov  game  13  (Lyon
  643. X             1990)  in  algebraic form, display move in shortened
  644. X             algebraic and display board at end of game.
  645. X
  646. X     notation algebraic.txt -s
  647. X             this will do the same thing, as -a stands for  alge-
  648. X             braic output.
  649. X
  650. X     notation algebraic.txt -a
  651. X             the game will now be output in full-length algebraic
  652. X
  653. X     notation shortened.txt
  654. X             there is no problem to read shortened algebraic.
  655. X
  656. X     notation shortened -s -o result
  657. X             the moves and board will be directed to file result
  658. X
  659. X     notation shortened.txt -s -t french
  660. X             output will use french notation
  661. X
  662. X     notation a_dutch_file -f dutch -t spanish
  663. X             game will be translated form dutch to spanish
  664. X
  665. X     notation shortened -c 2
  666. X             board after move 2 will  be  displayed,  along  with
  667. X             moves and end-of-game board
  668. X
  669. X     notation shortened.txt -e 2
  670. X             board after move 2 will  be  displayed,  along  with
  671. X             moves. The program will then stops
  672. X
  673. X     notation shortened.txt -c 2,5,20
  674. X             board after moves 2, 5 and  20  will  be  displayed,
  675. X             along with moves and end-of-game board
  676. X
  677. X     notation shortened.txt -c 2,5,20 -b
  678. X             board after moves 2, 5 and  20  will  be  displayed,
  679. X             with end-of-game board, but no moves.
  680. X
  681. X
  682. X
  683. XSun Release 4.1   Last change: 10 December 1990                 6
  684. X
  685. X
  686. X
  687. X
  688. X
  689. X
  690. Xnotation(n)       MISC. REFERENCE MANUAL PAGES        notation(n)
  691. X
  692. X
  693. X
  694. X     notation shortened.txt -c 2,5,20 -d tex
  695. X             the output will be formatted to use with latex.  You
  696. X             can directly latex the output file.
  697. X
  698. X     notation shortened.txt -c 2,5,20 -d gnu
  699. X             you can now replay  the  game  by  using  xchess  -r
  700. X             out.gnu.
  701. X
  702. X     notation shortened.txt -e 5 -d postscript
  703. X             Now issue cat lib/Cheq out.ps | lpr to display on  a
  704. X             Laser  Printer  the  board  at  move 5. You can also
  705. X             issue sh print-ps out-ps.  The postcript driver does
  706. X             not support the -c option.
  707. X
  708. X     notation boudy.txt -d tex -o boudy.tex
  709. X             This is the all-star, all-singing  demonstration  of
  710. X             the  notation  program.  Runs latex on boudy.tex and
  711. X             print result.
  712. X
  713. X
  714. XFILES
  715. X     algebraic.txt shortened.txt keywords.txt boudy.txt
  716. X             these are examples of input files
  717. X
  718. X
  719. X     chesssymb.tex
  720. X              this is the LaTeX file containing  the  definitions
  721. X             of  the codified comment. You can include it in your
  722. X             own LaTeX files: you will be able to use  the  chess
  723. X             comments. The file is stand-alone. To iclude comment
  724. X             in LaTeX, just type  \COM<three  letter  name>.  For
  725. X             instance  \COMwsb  inserts  the  symbol  for "whites
  726. X             stands lightly better".
  727. X
  728. X
  729. X     chesssymb.txt
  730. X             explanation of codified comments
  731. X
  732. X
  733. X     convsymb.txt
  734. X             used to prduce chesssymb.txt
  735. X
  736. X
  737. X     ($LIBDIR/)HELPFILE
  738. X             this is the on-line helpfile
  739. X
  740. X
  741. X     ($LIBDIR/) Cheq Header.ps Footer.ps
  742. X             these files are needed by the postscript driver
  743. X
  744. X
  745. X     ($LIBDIR/)Header.tex
  746. X
  747. X
  748. X
  749. XSun Release 4.1   Last change: 10 December 1990                 7
  750. X
  751. X
  752. X
  753. X
  754. X
  755. X
  756. Xnotation(n)       MISC. REFERENCE MANUAL PAGES        notation(n)
  757. X
  758. X
  759. X
  760. X             these file is needed by the (la)tex driver
  761. X
  762. X
  763. XSEE ALSO
  764. X     xchess(1), chess(6), gnuchess(1), latex(1), nroff(1), lpr(1)
  765. X
  766. X
  767. XDIAGNOSTICS
  768. X     Errors messages are hoped to be self-explanative.
  769. X
  770. X
  771. XCOMMENTS
  772. X     The program is quite large, due  to  the  extensive  use  of
  773. X     tables  and variables to control its features. The advantage
  774. X     is you only need the modify these tables  to  customize  it:
  775. X     for instance adding a new language or tuning the output for-
  776. X     mat to your own needs.
  777. X
  778. X
  779. XBUGS
  780. X     Too many. Report them to Henry.Thomas@irisa.fr.
  781. X
  782. X     The postscript driver *might* fail if you try to display the
  783. X     board  two times. Anyway, it is not designed to do this. Use
  784. X     -e option to specify the move at which you want  to  display
  785. X     board.
  786. X
  787. X     Do not enter  two  levels  of  variation  without  any  move
  788. X     between  them.  It  will cause the crash of the program. For
  789. X     instance, { { is wrong, but  { Qd1 { is correct.
  790. X
  791. X
  792. X
  793. XAUTHOR
  794. X     Henry    Thomas    IRISA-Rennes,    FRANCE.    E-mail     to
  795. X     Henry.Thomas@irisa.fr or hthomas@irisa.fr.
  796. X
  797. XTHANKS
  798. X     Thanks to Jacques Schuurman for the piece  names  in  Dutch,
  799. X     Philippe  Louarn for explaining me some TeX tricks, Lael for
  800. X     czech, hungarian, polish, romanian and FIDE piece names,  to
  801. X     Steven Young. Thank also to Brian Molinari, Markus Geltz and
  802. X     Jose Esquer Ruiz for pointing me to bugs Most of all,  thank
  803. X     to Jean-Luc Scharbarg for introducing me to chess.
  804. X
  805. X
  806. X
  807. X
  808. X
  809. X
  810. X
  811. X
  812. X
  813. X
  814. X
  815. XSun Release 4.1   Last change: 10 December 1990                 8
  816. X
  817. X
  818. X
  819. END_OF_FILE
  820.   if test 15342 -ne `wc -c <'notation.doc'`; then
  821.     echo shar: \"'notation.doc'\" unpacked with wrong size!
  822.   fi
  823.   # end of 'notation.doc'
  824. fi
  825. if test -f 'notation.h' -a "${1}" != "-c" ; then 
  826.   echo shar: Will not clobber existing file \"'notation.h'\"
  827. else
  828.   echo shar: Extracting \"'notation.h'\" \(5757 characters\)
  829.   sed "s/^X//" >'notation.h' <<'END_OF_FILE'
  830. X/*
  831. X  Notation program
  832. X  @(#)notation.h    3.9 (C) Henry Thomas   Release 3     Dated 12/10/91
  833. X */
  834. X#ifndef _NOTATION_HEADERS
  835. X#define _NOTATION_HEADERS
  836. X
  837. X
  838. X/* ---- KEYWORDS ----  */
  839. X
  840. X/* prefix for keywords */
  841. X#define PREFIX '@'
  842. X
  843. X
  844. X#define START     0
  845. X#define CLEAR     1
  846. X#define SHOWBOARD 2
  847. X#define TOWHITE   3
  848. X#define TOBLACK   4
  849. X#define CONFIGWH  5
  850. X#define CONFIGBL  6
  851. X#define DEFAULTP  7
  852. X#define TITLE      8
  853. X#define SUBTITLE  9
  854. X#define SCORE      10
  855. X#define LANGUE    11
  856. X#define SPECIAL   12
  857. X#define KNULL     13
  858. X
  859. X#define NBKEYWORD (KNULL+1)
  860. X
  861. X
  862. X/* ---- LANGUAGES ---- */
  863. X
  864. X#define FRENCH         0
  865. X#define ENGLISH     1
  866. X#define ITALIAN     2
  867. X#define SPANISH     3
  868. X#define GERMAN      4
  869. X#define DUTCH       5
  870. X#define CZECH        6
  871. X#define HUNGARIAN          7
  872. X#define POLISH        8
  873. X#define ROMANIAN           9
  874. X#define FIDE        10
  875. X
  876. X#define USERDEF        11
  877. X
  878. X#define NBLANGUAGES     (USERDEF+0)
  879. X
  880. X#ifndef DEFAULT_INPUT_LANGUAGE
  881. X#define DEFAULT_INPUT_LANGUAGE  FRENCH
  882. X#endif
  883. X
  884. X#ifndef DEFAULT_OUTPUT_LANGUAGE
  885. X#define DEFAULT_OUTPUT_LANGUAGE FRENCH
  886. X#endif
  887. X
  888. X
  889. X/* a convenient way  to get a value for NUM_COMMENT 
  890. X   look at GNU-CC source, it's full of *neat* tricks 
  891. X   */
  892. X
  893. X#define CHESSSYMB(LET,LASC,SASC,TEX,PS,ENG,FRA) LET,
  894. X
  895. Xenum com_code {
  896. X#include "chesssymb.def"
  897. X  LAST_UNUSED_NUM_COM_CODE
  898. X  };
  899. X#undef CHESSSYMB
  900. X
  901. X#define NUM_COM_CODE ((int) LAST_UNUSED_NUM_COM_CODE) 
  902. X
  903. X/* ---- MISC TABLES ---- */
  904. X
  905. X/* roque ascii table */
  906. X#define NBROQUE     6
  907. X#define SPETITROQUE 0
  908. X#define SGRANDROQUE 1
  909. X
  910. X
  911. X/* ---- DRIVERS ---- */
  912. X
  913. X/* output drivers name table */
  914. X#define DEFAULT_DRIVER D_ASCII
  915. X
  916. X/* ---- IO ---- */
  917. X
  918. X#ifndef LIB_DIR
  919. X#define LIB_DIR    "./lib/"
  920. X#endif
  921. X
  922. X#define HELP_FILE  "notation.hlp"
  923. X
  924. Xextern FILE * infile;
  925. X
  926. X/* ------------- service routines -------------------*/
  927. X
  928. X/* Output an error message and exit */
  929. X#define fatal(A) (void) fprintf A , close_files() , exit(1)
  930. X
  931. X/* Output an error message and set the error flag */
  932. X#define error(A) (void) fprintf A , error_flag = TRUE , (void)fflush(stderr)
  933. X
  934. X/* Output an error message and set the error flag */
  935. X#define message(A) (void) fprintf A 
  936. X
  937. X#define MALLOC(T)  (T *)malloc((unsigned)sizeof(T))
  938. X#define ALLOCP(P)  if ( (P) == NULL ) { fatal((stderr,"malloc failed")) ; };
  939. X
  940. X/* ------- conversion of input character --------------------- */
  941. X
  942. X#define lettertocol(c)  ((c)-'a'+1)
  943. X#define lettertolig(c)  ((c)-'1'+1)
  944. X#define coltoletter(n)  ((n)-1+'a')
  945. X#define ligtoletter(n)  ((n)-1+'1')
  946. X
  947. X
  948. X/* ------- variables and functions --------------------------- */
  949. Xextern char *version_string;
  950. Xextern int configuring;
  951. Xextern int configside;
  952. Xextern char *in_table;
  953. Xextern char *out_table;
  954. Xextern char *c_roque[];
  955. Xextern char *c_en_passant[];
  956. Xextern char c_prise;
  957. Xextern char *c_comments[];
  958. Xextern int error_flag;
  959. X
  960. Xextern char *com_short[];
  961. Xextern char *com_long[];
  962. X
  963. X/* ---------- service routines ---------- */
  964. X
  965. X#ifdef __STDC__
  966. Xextern void clear_board(game *g);
  967. Xextern game *new_board(void);
  968. Xextern game *copy_board(game *from, game *to);
  969. Xextern void init_board(game *tgm);
  970. Xextern depl *new_move(void);
  971. Xextern void init_move(depl *m);
  972. Xextern depl *copy_move(depl *from, depl *to);
  973. Xextern void do_move(game *g,depl *m);
  974. Xextern void undo_move(game *g,depl *m);
  975. Xextern void enter_variation(void);
  976. Xextern void exit_variation(void);
  977. X#else
  978. Xextern void clear_board(/*game *g*/);
  979. Xextern game *new_board(/*void*/);
  980. Xextern game *copy_board(/*game *from, game *to*/);
  981. Xextern void init_board(/*game *tgm*/);
  982. Xextern depl *new_move(/*void*/);
  983. Xextern void init_move(/*depl *m*/);
  984. Xextern depl *copy_move(/*depl *from, depl *to*/);
  985. Xextern void do_move(/*game *g,depl *m*/);
  986. Xextern void undo_move(/*game *g,depl *m*/);
  987. Xextern void enter_variation(/*void*/);
  988. Xextern void exit_variation(/*void*/);
  989. X#endif
  990. X
  991. X/* ------ parse and analysis routines ------ */
  992. X
  993. X#ifdef __STDC__
  994. Xextern int in_board(int l, int c);
  995. Xextern int path_free(int l1, int c1, int l2, int c2);
  996. Xextern int check_roque(void);
  997. Xextern int guess_piece(void);
  998. Xextern int guess_depl(int nb, int tab[][2], int *pl1, int *pc1, int l2, int c2, int path);
  999. Xextern int ambiguity(depl *d, int * amline, int *amcols);
  1000. Xextern int check_move(depl *m);
  1001. Xextern int guess_move(void);
  1002. Xextern int clear_pos(int lig, int col);
  1003. Xextern int configure(void);
  1004. Xextern int execute_move(void);
  1005. Xextern int typechar(char c);
  1006. Xextern int execute(int num, char c);
  1007. Xextern int parse_number(char *token);
  1008. Xextern int parse_text(char *text);
  1009. Xextern int parse_comment(char *com);
  1010. Xextern int parse_keyword(char *token, char *text);
  1011. Xextern int parse_roque(char *token);
  1012. Xextern int parse_move(char *token);
  1013. Xextern void init_parse(depl *m);
  1014. X#else
  1015. Xextern int in_board(/*int l, int c*/);
  1016. Xextern int path_free(/*int l1, int c1, int l2, int c2*/);
  1017. Xextern int check_roque(/*void*/);
  1018. Xextern int guess_piece(/*void*/);
  1019. Xextern int guess_depl(/*int nb, int tab[][2], int *pl1, int *pc1, int l2, int c2, int path*/);
  1020. Xextern int ambiguity(/*depl *d ...*/);
  1021. Xextern int check_move(/*depl *m*/);
  1022. Xextern int guess_move(/*void*/);
  1023. Xextern int clear_pos(/*int lig, int col*/);
  1024. Xextern int configure(/*void*/);
  1025. Xextern int execute_move(/*void*/);
  1026. Xextern int typechar(/*char c*/);
  1027. Xextern int execute(/*int num, char c*/);
  1028. Xextern int parse_number(/*char *token*/);
  1029. Xextern int parse_text(/*char *text*/);
  1030. Xextern int parse_comment(/*char *com*/);
  1031. Xextern int parse_keyword(/*char *token, char *text*/);
  1032. Xextern int parse_roque(/*char *token*/);
  1033. Xextern int parse_move(/*char *token*/);
  1034. Xextern void init_parse(/*depl *m*/);
  1035. X#endif
  1036. X
  1037. X/* ------ top-level interface functions -------- */
  1038. X
  1039. X#ifdef __STDC__
  1040. Xextern int parse_options(int argc, char *argv[]);
  1041. Xextern void close_files(void);
  1042. Xextern int associe_traduction(char **table, int langage);
  1043. X
  1044. X#else
  1045. Xextern int parse_options(/*int argc, char *argv[]*/);
  1046. Xextern void close_files(/*void*/);
  1047. Xextern int associe_traduction(/*char **table, int langage*/);
  1048. X
  1049. X#endif
  1050. X
  1051. X
  1052. X#endif
  1053. END_OF_FILE
  1054.   if test 5757 -ne `wc -c <'notation.h'`; then
  1055.     echo shar: \"'notation.h'\" unpacked with wrong size!
  1056.   fi
  1057.   # end of 'notation.h'
  1058. fi
  1059. if test -f 'notation.n' -a "${1}" != "-c" ; then 
  1060.   echo shar: Will not clobber existing file \"'notation.n'\"
  1061. else
  1062.   echo shar: Extracting \"'notation.n'\" \(12397 characters\)
  1063.   sed "s/^X//" >'notation.n' <<'END_OF_FILE'
  1064. X.\" @(#)notation.n    3.9 (C) Henry Thomas   Release 3     Dated 12/10/91
  1065. X.TH notation n "10 December 1990"
  1066. X
  1067. X.SH NAME
  1068. X
  1069. Xnotation \- transform chess notation
  1070. X
  1071. X.SH SYNOPSYS
  1072. X
  1073. Xnotation [input file] [-o output file] [-options...]
  1074. X
  1075. X.SH DESCRIPTION 
  1076. X
  1077. XThis program reads chess games, either full algebraic or shortened (ie
  1078. XNf1-g3 or Ng3) and is able to ouptut the board after any move, in
  1079. Xeither ascii , postscript, nroff, latex, xboard or gnuan save
  1080. Xformat. This program is also multi-lingual: it handles english,
  1081. Xfrench, spanish, german, italian, dutch, romanian etc... symbols. So
  1082. Xnearly all europeans languages are understood (except greek and
  1083. Xrussian, but I can't handle greek or cyrillic on ascii computers, eh).
  1084. X
  1085. X.SH OPTIONS
  1086. XCommand line options:
  1087. X
  1088. X.TP 8
  1089. X.B -a        
  1090. Xalgebraic move notation output
  1091. X
  1092. X.TP 8
  1093. X.B -s        
  1094. Xshortened move notation output
  1095. X
  1096. X.TP 8
  1097. X.B -f <language>    
  1098. Xspecifies the chess symbol input language. The language can be any of
  1099. X\fBfrench\fR, \fBenglish\fR, \fBitalian\fR, \fBspanish\fR,
  1100. X\fBgerman\fR, \fBdutch\fR, \fBczech\fR, \fBhungarian\fR, \fBpolish\fR,
  1101. X\fBromanian\fR, \fBFIDE\fR.
  1102. X
  1103. X.TP 8
  1104. X.B -t <language>    
  1105. Xspecifies the chess symbol output language. Same options as input language.
  1106. X
  1107. X.TP 8
  1108. X.B <inputfile>
  1109. Xspecifies the input file. If none, keyboard is assumed.
  1110. X
  1111. X.TP 8
  1112. X.B -o <outputfile>
  1113. Xspecifies the output file. If none, screen is assumed.
  1114. X
  1115. X.TP 8
  1116. X.B -c <number>[,<number]    
  1117. Xspecifies the \fBnumber\fR of the moves at which  to display the board. If
  1118. Xnone, board 
  1119. Xis displayed at end of file. Several numbers may be specified, as a
  1120. Xcomma-separated list.
  1121. X
  1122. X.TP 8
  1123. X.B -e <number>     
  1124. Xdisplay the board at the move \fBnumber\fR and then stops
  1125. X
  1126. X.TP 8
  1127. X.B -b        
  1128. Xdisplay only the board, not the moves
  1129. X
  1130. X.TP 8
  1131. X.B -d <drivername>    
  1132. Xspecifies the output driver. It can be any of the following:
  1133. X\fBascii\fR, \fBpostscript\fR, \fBtex\fR, \fBroff\fR, \fBxchess\fR
  1134. X(xchess or xboard save format), \fBgnu\fR (gnuan input format).
  1135. X
  1136. X.TP 8
  1137. X.B -i        
  1138. Xsuppress headers/footers printing. This is useful with tex or ps
  1139. Xdrivers, if you want to include the output in a larger file.
  1140. X
  1141. X.TP 8
  1142. X.B -v        
  1143. Xdisplays version number and exits
  1144. X
  1145. X.TP 8
  1146. X.B -h        
  1147. Xdisplays help screen
  1148. X
  1149. X.SH "INPUT LANGUAGE"
  1150. X    
  1151. XThe input language has four types of input: moves, move numbers,
  1152. Xcomments and keywords. All these are separated by blanks, TAB, CR, 
  1153. Xcommas and semi-columns.
  1154. X
  1155. X.TP 8 
  1156. X.B move format:
  1157. X The moves are accepted in algebraic or shortened algebraic notation.
  1158. XThat means that the following are equivalent and accepted \fB Nf1-g3
  1159. XN-f1xg3, Nxg3, Ng3, Nfg3\fR. The ugly english notation \fBP-K4\fR is
  1160. Xnot understood, neither by the program nor me.  The program allows and
  1161. Xparse variations.
  1162. X
  1163. XNota: provided you remove the three first line, xchess save format is
  1164. Xaccepted. 
  1165. X
  1166. X Also you can have move comments. So \fBKg4!!, Ra5++\fR are correct,
  1167. Xas \fBKg4 !!, Ra5 ++\fR.  Castling is recognized with the following
  1168. X\fB0-0 O-O o-o 0-0-0 O-O-O o-o-o\fR.  "En passant" and promotion are
  1169. Xnow correctly handled. For "en passant", you just indicate them move
  1170. Xand it is correctly parsed ex: "d5-d7 e5xd6". Promotion is indicated
  1171. Xwith the "=" sign followed by the new piece name. So you just write
  1172. X"a7-a8=Q" or "d8=K". If you omit the piece name, promotion is made to
  1173. XQueen by default; so "a8=" is equivalent to "a8=Q".
  1174. X
  1175. XFor example, see the files \fBalgebraic.txt\fR,
  1176. X\fBshortened.txt\fR and \fBboudy.txt\fR
  1177. X
  1178. X.TP 8
  1179. X.B move numbers:
  1180. X move numbers are in the form \fB23.\fR or \fB36\fR. The full point is
  1181. Xoptional. Move numbers are checked against internal move counter.
  1182. X
  1183. X.TP 8 
  1184. X.B comments: 
  1185. X  chess codified comments can be put in the input.  There are two ways
  1186. Xor doing so. The first one is to use the usual chess notation \fB!?,
  1187. X!, ,+, ++, #, ep, etc \fR... However, international magazine use other
  1188. Xno-ascii symbols : triangles, squares, infinity and so on. You can
  1189. Xhave these symbols \fB on LaTeX output\fR. This is the second way. I
  1190. Xdefined three letters abbreviations for such symbols (look at the file
  1191. X\fBchesssymb.txt\fR for an extensive description). These abbreviations
  1192. Xare following a \fB$\fr sign. For instance \fB$wsb\fR means "white
  1193. Xslightly better".  This is, IMHO, a very interesting feature of the
  1194. Xprogram.
  1195. X
  1196. X.TP 8
  1197. X.B text: 
  1198. X plain text, such as explanations etc... must be enclosed in brackets
  1199. Xor parenthesis \fB[Here Karpov made a very bright move ...]\fR
  1200. X\fB(this is also a comment)\fR. Comments are not parsed, but directly
  1201. Xinserted in the output, for the \fBascii\fR ,\fBnroff\fR and
  1202. X\fBlatex\fR drivers. The closing characters (ie "]" or ")" depending
  1203. Xof the opening characters may be placed in the text, provided it is
  1204. Xescaped by a "\\" ( so you input "\\]" or "\\)" ).
  1205. X
  1206. X.TP 8
  1207. X.B variations:
  1208. X You can have variations in the source. Variation are in enclosing \fB
  1209. X{ } \fR. You can have up to three level of variation. It would be
  1210. Xenough for human players. A variation always follows the move. Here is
  1211. Xan exemple of variation : \fB25. Rb2 { Ce4 de4 26 Fc3 Fa3! 27. Ff6 Tb3
  1212. X} Fa3!\fR
  1213. X
  1214. X.TP 8
  1215. X.B keywords:
  1216. X You can insert keywords in the input text to precisely define what
  1217. Xyou want: displaying the board, configuring it... Keywords are
  1218. Xdetailled in the next section.
  1219. X
  1220. X.SH KEYWORDS
  1221. Xall keywords are prefixed with \fB@\fR
  1222. X.TP8
  1223. X.B @startplay
  1224. X begins the play. Obligatory after a \fB@configxxx\fR keyword.
  1225. X.TP8
  1226. X.B @clearboard
  1227. Xclears the board. Used prior to any \fB@configxxx\fR.
  1228. X.TP8
  1229. X.B @showboard
  1230. Xdisplays the board. Can be used anywhere
  1231. X.TP8
  1232. X.B @whitesmove
  1233. Xtells the program that is the white's turn of play. Useful after a
  1234. X\fB@configxxx\fR and \fB@startplay\fR
  1235. X.TP8
  1236. X.B @blacksmove
  1237. Xtells the program that it is black's turn
  1238. X.TP8
  1239. X.B @configwhite
  1240. Xinitializes configuration of white side. Pieces are then expected, in
  1241. Xform of (optional for Pawn) name, the position. Example
  1242. X\fB@configwhite Ke3 Rg8 e4\fR.
  1243. X.TP8
  1244. X.B @configblack
  1245. Xinitializes configuration of black side. Pieces are then expected, in
  1246. Xform of (optional for Pawn) name, the position. Example:
  1247. X\fB@configblack Ka8 Nf6 e6\fR. 
  1248. X
  1249. XNote that black pieces are given in uppercase!
  1250. X
  1251. X.TP8
  1252. X.B @default
  1253. Xresets the board to the default start configuration.
  1254. X.TP8
  1255. X
  1256. X.TP8
  1257. X.B @title{ <title>}
  1258. Xthis keyword accept one argument enclosed in {}. Example:
  1259. X\fB@title{Karpov-Kasporov}\fR. Note that you can put \fB}\fR in the
  1260. Xtext itself, if it is escaped (\fB\\}\fR).
  1261. X
  1262. X.TP8
  1263. X.B @subtitle{ <subtitle>}
  1264. Xprints a subtitle
  1265. X
  1266. X.TP8
  1267. X.B @score{ <text> }
  1268. Xprints the score.
  1269. X
  1270. X.TP8
  1271. X.B @language{french|english|...|FIDE}
  1272. Xthis keyword specifies in which language the pieces names are
  1273. Xexpressed. This option overides command-line option.
  1274. X
  1275. X.B @special
  1276. Xall following text up to the next cariage return is not processed, but
  1277. Xinstead directly print. This allows to insert comments in ascii files,
  1278. Xor tex commands when tex output is selected. 
  1279. X.TP8
  1280. X.B @null
  1281. Xnull keyword. Does nothing. Used for convenience in programming.
  1282. X
  1283. X
  1284. XSee the file \fBkeywords.txt\fR for an example of keywords use.
  1285. X
  1286. X.SH "NATIONAL LANGUAGES"
  1287. X
  1288. XHere are the symbols used in the differents languages. () mean
  1289. Xoptional in the input.
  1290. X
  1291. X
  1292. Xenglish-name    King    Queen    Rook    Bishop    Knight    Pawn
  1293. Xenglish        K    Q    R    B    N    (P)
  1294. Xfrench        R    D    T    F    C    (P)
  1295. Xitalian        R    D    T    A    C    (P)
  1296. Xspanish        R    D    T    A    C    (P)
  1297. Xgerman        K    D    T    L    S    (B)
  1298. Xdutch        K    D    T    L    P    (O)
  1299. Xczech        K    D    V    S    J    (P)
  1300. Xhungarian    K    V    B    F    H    (G)
  1301. Xpolish        K    H    W    G    S    (P)
  1302. Xromanian    R    D    T    N    C    (P)
  1303. XFIDE        K    D    T    S    N    (P)
  1304. X
  1305. X.SH DRIVERS
  1306. X
  1307. X.TP 8
  1308. X.B ascii
  1309. X this is the default driver, it outputs move and boards.
  1310. X
  1311. X.TP 8
  1312. X.B postscript
  1313. X  It generates a file using the font file \fBCheq\fR licensed for free
  1314. Xby Adobe. It is only able to display one board per run. Move are not
  1315. Xdisplayed. You need the font "Cheq", freely distributed by Adobe.
  1316. XSend a mail to "ps-file-server@adobe.com" with the body "send Programs
  1317. Xchessfont.ps".
  1318. X
  1319. X.TP 8
  1320. X.B tex 
  1321. X  This is a \fBlatex\fR driver. It uses the TeX/LaTeX chess macros
  1322. Xdesigned by Piet Tutalaers "rcpt@urc.tue.nl". The complete
  1323. Xdistribution is available on sol.cs.ruu.nl (131.211.80.5) with path
  1324. XTEX/chess.tar.Z. Refer to your local latex guru to install it.
  1325. X
  1326. X.TP 8
  1327. X.B roff
  1328. X  This is a driver for nroff output. It is crude, but it works. Moves and
  1329. Xboards are displayed.
  1330. X
  1331. X.TP 8
  1332. X.B xchess
  1333. X  This driver generates compatible xchess/xboard save files, thus allowing you
  1334. Xto replay a game with xchess.
  1335. X
  1336. X.TP 8
  1337. X.B gnu
  1338. X  This driver generates "bare" output, with only the algebraic move.
  1339. XIt is suitable for any low-level analyser, such as gnuan.
  1340. X
  1341. X.SH EXAMPLES
  1342. X    Try the following commands:
  1343. X.TP 8
  1344. X.B notation algebraic.txt
  1345. Xthis will read the Karpov-Kasparov game 13 (Lyon 1990) in algebraic form,
  1346. Xdisplay move in shortened algebraic and display board at end of game.
  1347. X.TP 8
  1348. X.B notation algebraic.txt -s
  1349. Xthis will do the same thing, as \fB-a\fR stands for algebraic
  1350. Xoutput. 
  1351. X.TP 8
  1352. X.B notation algebraic.txt -a
  1353. Xthe game will now be output in full-length algebraic
  1354. X.TP 8
  1355. X.B notation shortened.txt
  1356. Xthere is no problem to read shortened algebraic.
  1357. X.TP 8
  1358. X.B notation shortened -s -o result
  1359. Xthe moves and board will be directed to file \fBresult\fR
  1360. X.TP 8
  1361. X.B notation shortened.txt -s -t french 
  1362. Xoutput will use french notation
  1363. X.TP 8
  1364. X.B notation a_dutch_file -f dutch -t spanish
  1365. Xgame will be translated form dutch to spanish
  1366. X.TP 8
  1367. X.B notation shortened -c 2
  1368. Xboard after move 2 will be displayed, along with moves and end-of-game
  1369. Xboard
  1370. X.TP 8
  1371. X.B notation shortened.txt -e 2
  1372. Xboard after move 2 will be displayed, along with moves. The program
  1373. Xwill then stops
  1374. X.TP 8
  1375. X.B notation shortened.txt -c 2,5,20
  1376. Xboard after moves 2, 5 and 20 will be displayed, along with moves and
  1377. Xend-of-game board
  1378. X.TP 8
  1379. X.B notation shortened.txt -c 2,5,20 -b
  1380. Xboard after moves 2, 5 and 20 will be displayed, with end-of-game
  1381. Xboard, but no moves.
  1382. X.TP 8
  1383. X.B notation shortened.txt -c 2,5,20 -d tex -o out.tex
  1384. Xthe output will be formatted to use with latex. You can directly latex
  1385. Xthe output file.
  1386. X.TP 8
  1387. X.B notation shortened.txt -c 2,5,20 -d gnu -o out.gnu
  1388. Xyou can now replay the game by using \fBxchess -r out.gnu\fB.
  1389. X.TP 8
  1390. X.B notation shortened.txt -e 5 -d postscript -o out.ps
  1391. XNow issue \fBcat lib/Cheq out.ps | lpr\fR to display on a Laser
  1392. XPrinter the board at move 5. You can also issue \fBsh print-ps
  1393. Xout-ps\fR.
  1394. XThe postcript driver does not support the \fB-c\fR option.
  1395. X.TP 8
  1396. X.B notation boudy.txt -d tex -o boudy.tex
  1397. XThis is the all-star, all-singing demonstration of the notation
  1398. Xprogram. Runs latex on boudy.tex and print result.
  1399. X
  1400. X.SH FILES
  1401. X
  1402. X.TP 8
  1403. X.B algebraic.txt shortened.txt keywords.txt boudy.txt
  1404. Xthese are examples of input files
  1405. X
  1406. X.TP8
  1407. X.B chesssymb.tex
  1408. X this is the LaTeX file containing the definitions of the codified
  1409. Xcomment. You can include it in your own LaTeX files: you will be able
  1410. Xto use the chess comments. The file is stand-alone. To iclude
  1411. Xcomment in LaTeX, just type \fB\\COM<three letter name>\fR. For
  1412. Xinstance \fB\\COMwsb\fR inserts the symbol for "whites stands lightly
  1413. Xbetter".
  1414. X
  1415. X.TP8
  1416. X.B chesssymb.txt
  1417. Xexplanation of codified comments
  1418. X
  1419. X.TP8
  1420. X.B convsymb.txt
  1421. Xused to prduce chesssymb.txt
  1422. X
  1423. X.TP 8
  1424. X.B ($LIBDIR/)HELPFILE
  1425. Xthis is the on-line helpfile
  1426. X
  1427. X.TP 8
  1428. X.B ($LIBDIR/) Cheq Header.ps Footer.ps
  1429. Xthese files are needed by the postscript driver
  1430. X
  1431. X.TP 8
  1432. X.B ($LIBDIR/)Header.tex
  1433. Xthese file is needed by the (la)tex driver
  1434. X
  1435. X.SH "SEE ALSO"
  1436. Xxchess(1), chess(6), gnuchess(1), latex(1), nroff(1), lpr(1)
  1437. X
  1438. X.SH DIAGNOSTICS
  1439. XErrors messages are hoped to be self-explanative.
  1440. X
  1441. X.SH COMMENTS 
  1442. XThe program is quite large, due to the extensive use of tables and
  1443. Xvariables to control its features. The advantage is you only need the
  1444. Xmodify these tables to customize it: for instance adding a new
  1445. Xlanguage or tuning the output format to your own needs. 
  1446. X
  1447. X.SH BUGS
  1448. XToo many. Report them to \fBHenry.Thomas@irisa.fr\fR.
  1449. X
  1450. XThe postscript driver *might* fail if you try to display the board
  1451. Xtwo times. Anyway, it is not designed to do this. Use \fB-e\fR option
  1452. Xto specify the move at which you want to display board.
  1453. X
  1454. XDo not enter two levels of variation without any move between them. It
  1455. Xwill cause the crash of the program. For instance, \fB{ {\fR is wrong,
  1456. Xbut \fB { Qd1 {\fR is correct.
  1457. X
  1458. X
  1459. X.SH AUTHOR
  1460. XHenry Thomas IRISA-Rennes, FRANCE. E-mail to
  1461. X\fBHenry.Thomas@irisa.fr\fR or \fBhthomas@irisa.fr\fR.
  1462. X.SH "THANKS"
  1463. X
  1464. XThanks to Jacques Schuurman for the piece names in Dutch, Philippe
  1465. XLouarn for explaining me some TeX tricks, Lael for czech, hungarian,
  1466. Xpolish, romanian and FIDE piece names, to Steven Young. Thank also to
  1467. XBrian Molinari, Markus Geltz and Jose Esquer Ruiz for pointing me to
  1468. Xbugs Most of all, thank to Jean-Luc Scharbarg for introducing me to
  1469. Xchess.
  1470. END_OF_FILE
  1471.   if test 12397 -ne `wc -c <'notation.n'`; then
  1472.     echo shar: \"'notation.n'\" unpacked with wrong size!
  1473.   fi
  1474.   # end of 'notation.n'
  1475. fi
  1476. if test -f 'notation.tex' -a "${1}" != "-c" ; then 
  1477.   echo shar: Will not clobber existing file \"'notation.tex'\"
  1478. else
  1479.   echo shar: Extracting \"'notation.tex'\" \(1708 characters\)
  1480.   sed "s/^X//" >'notation.tex' <<'END_OF_FILE'
  1481. X% Name: notation.tex
  1482. X% Copyright: %W% (C) Henry Thomas.    Release %R%    Dated %G%
  1483. X% Version: %R%
  1484. X% Purpose: Definition file for notation
  1485. X% Comment: Relies on Piet Tutelaers macros for chess typesetting
  1486. X% Author: Henry Thomas
  1487. X% Date: %G%
  1488. X%
  1489. X%% Some symbols
  1490. X\newcommand{\FigDash}{{--}}
  1491. X\newcommand{\FigCapt}{$\times$}
  1492. X\newcommand{\FigDots}{$\ldots$}
  1493. X\newcommand{\FigDot}{\char46}
  1494. X%
  1495. X% Redefine chess.sty to get similar layout as in Informator
  1496. X\makeatletter
  1497. X\gdef\@dots{\ldots}
  1498. X\resetat
  1499. X%
  1500. X% These macros allows a move number to be bolfaced in the main line,
  1501. X% and typset in roman in the variations (like in Informant)
  1502. X\newcommand{\mn}[1]{{\OutLine #1\char46}}
  1503. X%
  1504. X% Some macros to improve readability...
  1505. X\newcommand{\OutLine}{\bf}
  1506. X\newenvironment{Mainline}[2]{\newcommand{\result}{#1}%
  1507. X   \newcommand{\commentator}{#2}\begin{chess}}%
  1508. X   {\end{chess}\finito{\result}{\commentator}}
  1509. X\newenvironment{Variation}{{\OutLine
  1510. X[}\begingroup\renewcommand{\OutLine}{\rm}\ignorespaces}%
  1511. X   {\endgroup{\OutLine ]}\renewcommand{\OutLine}{\bf}\ignorespaces}
  1512. X\newenvironment{diagram}{\begin{nochess}}{$$\showboard$$\end{nochess}}
  1513. X\newcommand{\finito}[2]{{\bf\hfill#1\hfill[#2]\par}}
  1514. X
  1515. X\setlength{\parindent}{0pt}
  1516. X
  1517. X% If you compiled notation with the flag -DOLDTEX, you will need to
  1518. X% define these macros.
  1519. X% They allow to typeset in horizontal or vertical mode. You ``simply''
  1520. X% have to define them.
  1521. X%
  1522. X\newcommand{\MoveNumber}[1]{{#1}~}
  1523. X\newcommand{\WhiteMove}[1]{{#1}\ }
  1524. X\newcommand{\BlackMove}[1]{{#1}\ }
  1525. X%
  1526. X% These macros are for tiles and score formatting.
  1527. X\newcommand{\ChessTitle}[1]{\begin{center}{\large\bf #1}\end{center}}
  1528. X\newcommand{\ChessSubTitle}[1]{\begin{center}{\sc #1}\end{center}}
  1529. X\newcommand{\ChessScore}[1]{{\bf #1}}
  1530. X%
  1531. END_OF_FILE
  1532.   if test 1708 -ne `wc -c <'notation.tex'`; then
  1533.     echo shar: \"'notation.tex'\" unpacked with wrong size!
  1534.   fi
  1535.   # end of 'notation.tex'
  1536. fi
  1537. if test -f 'shortened.ntn' -a "${1}" != "-c" ; then 
  1538.   echo shar: Will not clobber existing file \"'shortened.ntn'\"
  1539. else
  1540.   echo shar: Extracting \"'shortened.ntn'\" \(7032 characters\)
  1541.   sed "s/^X//" >'shortened.ntn' <<'END_OF_FILE'
  1542. X[This is the commentary from the USA Today Sports Center, written by
  1543. XIM Bjarke Kristiansen (and polished a bit by me).][ They are probably
  1544. Xthe quickest way to get the moves (perhaps AP access is quicker, I
  1545. Xdon't know how fast the AP gets updated on Compuserve); their number
  1546. Xfor subscribing (no online newuser service) is 800-826-9688.]
  1547. X
  1548. X[I was told it was okay to post this from there, as long as I gave
  1549. Xappropriate reference.]
  1550. X
  1551. X[WORLD CHESS CHAMPIONSHIP
  1552. XGAME 13 - Drawn after Adjournment
  1553. XNovember 24, 1990]
  1554. X
  1555. X[KARPOV  KASPAROV]
  1556. X
  1557. X@language{english}
  1558. X
  1559. X1. d4    Nf6
  1560. X2. c4    g6
  1561. X3. Nc3   d5
  1562. X
  1563. X[Welcome to game 13th ..and the GI that's Grunfeld-Indian. Fight
  1564. Xfrom the start.]
  1565. X
  1566. X4. cxd5  Nd5
  1567. X5. e4    Nxc3
  1568. X6. bxc3  Bg7
  1569. X7. Be3   c5
  1570. X8. Qd2   O-O
  1571. X
  1572. X[So far on two minutes each. GK.. Garry Kasparov looks tensed, says
  1573. XMike Valvo. Now Karpov took full 9 minutes to play ...]
  1574. X
  1575. X9. Rc1   Qa5
  1576. X
  1577. X[Kasparov thought six minutes here. Time now: White 0:19 Black: 0:08.
  1578. XNow 9 minutes has gone and AK is still thinks. Kasparov has left
  1579. Xthe stage. Who is fooling who? 9..Qa5 might be a new move. Its
  1580. Xnot in the pressroom database. Karpov is still thinking, so time for a
  1581. Xlittle presentation. At your service in Lyon IM Bjarke Kristensen (Now Valvo:
  1582. XAK is nodding his head up and down alone on stage.) As kommentators:
  1583. XBoris Spassky and a number of strong french IM's. IM Mike Valvo from New Jersey
  1584. Xis here for a week.]
  1585. X
  1586. X10. Nf3   e6
  1587. X
  1588. X[And the 'soon-to-be' GM Will Watson from England is here too.
  1589. X'I don't understand the GI' he just said. Kasparov stays on stage.
  1590. XTime: White: 0:37 Black: 0:10. Says Will Watson (now WW): 'I
  1591. Xpredicted the opening this morning. And so did many others.'
  1592. XValvo: 'I think this shows that the Kings Indian hasn't worked
  1593. Xout for Kasparov'. IM Levy suggests b7-b6 for Black. IM Jonathan Tisdall says:
  1594. XI've seen this before. But nobody can find a game with it'.]
  1595. X
  1596. X11. d5    exd5
  1597. X12. exd5  Re8
  1598. X13. Be2
  1599. X
  1600. X[Time: White: 0:53 Black: 0:24. Valvo observed GK tapping his
  1601. Xfingers impatiently on the table after move Re8. It just might all
  1602. Xbe preparations! Both are sitting deeply concentrated at the table.]
  1603. X
  1604. X13. ...   Bf5
  1605. X14. O-O
  1606. X
  1607. X[The atmosphere in the pressroom is a bit 'fuzzy'. The game hasn't
  1608. Xfound it's own personality yet, and the fact that the US plays
  1609. Xthe Soviets at the Chess Olympiad in Novi Sad at this very moment is
  1610. Xalso widely discussed.]
  1611. X
  1612. X14. ...   Nd7
  1613. X
  1614. X[Interesting is now: 15.Nh4 Be4 16.f3 Bxd5! 17.Qxd5 Rxe3 18.Qxd7
  1615. X18...Rxe2 with a big Black plus. say Watson. Rumours say that
  1616. XGK might be better here, but nobody really dares to risk his
  1617. Xneck. The game is still in its childhood. But AK surely is in for
  1618. Xa deep think. Now he's on 1:16 and still thinking. Garry has left the
  1619. Xstage. Valvo say: The Mephisto computer thinks Black is better!
  1620. XIt's no 'Deep Thought', but the Mephisto Chess Computer IS
  1621. Xalready world champion in its class. No one else dared to test
  1622. Xtheir program against it!]
  1623. X
  1624. X15. h3
  1625. X
  1626. X[Time: White: 1:18 Black: 0:31. Now Karpov has left stage. And GK
  1627. Xhangs over the board as if to power up his chessmuscles. Kasparov seems
  1628. Xrelaxed and satisfied. White's problem is his weakened pawns on the Q-side.
  1629. XAnd as for his pride-pawn on d5? In an endgame it could be pure
  1630. Xgold, but until then it gives a good square to a Black piece
  1631. Xon d6. Kasparov now 'hangs' his head between his hands. A very typical
  1632. Xposture for the WC.]
  1633. X
  1634. X15. ...   Nb6
  1635. X
  1636. X[GM Lein thinks White is in deep trouble. GK might play Nb6-a4.
  1637. XAnother of GK's ideas might be Qa5-a4.]
  1638. X
  1639. X16. g4
  1640. X
  1641. X[Now ...that's a man! Karpov's idea obviously is 16... Be4 17.c4 Qxd2
  1642. X18.Nxd2 with 19.Nxe4 and 20.Bd3 to come. After a very slow start suddenly
  1643. Xthe game is very exciting. Now the Russians GMs in the pressroom find:
  1644. X16...Be4 17.c4.. Qa3! with a Black edge. But...]
  1645. X
  1646. X16. ...   Bd7
  1647. X
  1648. X[Time: AK: 1:31  GK: 0:49. GM-elects Watson and Gallagher say Karpov is still
  1649. Xunder pressure, but improving. Mephisto 'thinks' it's slightly better for
  1650. XBlack. And the Russians say that Kasparov should have played h7-h5, not
  1651. XNd7-b6.]
  1652. X
  1653. X17. c4    Qxd2
  1654. X18. Nxd2  Na4
  1655. X19. Bf3   Nc3
  1656. X20. Rxc3  Bxc3
  1657. X21. Ne4
  1658. X
  1659. X[The heat is on, in the Palais des Congress. Watson thinks GK is still
  1660. Xdoing well. Might be a British understatement. Kasparov is in for at deep
  1661. Xthink. Time: White: 1:42 Black: 1:12 IM Tisdall: He'll take on e4 now,
  1662. Xand it is a draw.]
  1663. X
  1664. X21. ...   Rxe4
  1665. X22. Bxe4  Re8
  1666. X23. Bd3   b6
  1667. X24. Kg2
  1668. X
  1669. X[Tisdall says: The first one who can bring himself to offer a draw
  1670. Xwill get it. He might be right. A drastic change of the game has
  1671. Xtaken place. And where did Kasparov drop his advantage? Maybe ...Nc3
  1672. Xshould have been prepared. Time: White: 1:46 Black: 1:17.
  1673. XIf Karpov plays Be3-c1 to press f2-f4 (hoping for an endgame
  1674. Xadvantage with f4-f5) GK might play Re8-e1 to enter a tame
  1675. Xdobble-bishop ending. Draw.]
  1676. X
  1677. X24. ...   f5
  1678. X25. gxf5  Bxf5
  1679. X26. Bxf5  gxf5
  1680. X
  1681. X[Karpov sits thinking alone at the board. Black's Bc3 is potentially weaker
  1682. Xthan Be3, but White's c4 pawn is GK's major target. I think that Black's
  1683. Xstill better. White's d-pawn looks strong (and it is) but right now it's
  1684. Xquite impotent. If advanced it'll just be lost, since Kg8 is to close.]
  1685. X
  1686. X27. Rd1   Kf7
  1687. X
  1688. X[Time: White: 2:07 Black: 1:28. Now Kasparov's lead on the clock
  1689. Xbegins to count. Karpov must be considering lines like: 28.d6 Ke6 29.Bf4
  1690. XBe5 30.Bxe5 Kxe5 31.Rd5+ Ke6 32.d7 Rd8 and Black is much better.]
  1691. X
  1692. X28. Rd3   Bf6
  1693. X29. Ra3   a5
  1694. X30. Rb3
  1695. X
  1696. X[Time: White: 2:12 Black: 1:31. It might look simple, but in fact
  1697. Xthe game is balanced on an edge. Which is most important: Black's
  1698. Xweakness on b6 or White's on c4?]
  1699. X
  1700. X30. ...   Bd8
  1701. X
  1702. X[People in the pressroom seems to be losing interest a bit. I think
  1703. Xthat a long endgame battle may be ahead. The fight for the
  1704. Xinitiative is still very much on. Now Watson arrived with news,..
  1705. Xhe said: The Russians think GK is slightly better, the Americans
  1706. Xthinks AK is slightly better and it might be a draw' says Watson.]
  1707. X
  1708. X31. Rc3
  1709. X
  1710. X[Both are leaning across the board. If Karpov can get his king to d3,
  1711. Xhe might play on forever. Kasparov seems 'speculative' now.
  1712. XOne point in Karpov's favour is: 31...Bc7 32.Kf3 Re4 33.Ke2 f4
  1713. X34.Kd3 and Re4 has to move.]
  1714. X
  1715. X31. ...   Bc7
  1716. X
  1717. X[Karpov is hiding his head behind his hands, looking through his
  1718. Xfingers. Nine minutes left.]
  1719. X
  1720. X32. a4    Kf6
  1721. X33. Kf1   f4
  1722. X
  1723. X[33...f4! GK played this with determination. I don't understand
  1724. XKarpov's Kg2-f1.]
  1725. X
  1726. X34. Bc1   Kf5
  1727. X35. Rc2   Rg8
  1728. X36. Re2   Be5
  1729. X37. Bb2   Bd4
  1730. X38. Bxd4  cxd4
  1731. X39. Re7   d3
  1732. X40. Ke1   Rc8
  1733. X41. Kd2   Rxc4
  1734. X
  1735. X[Kasparov has moved from c8 to c4. Move 41 made. The last seven
  1736. Xmoves took only 11 minutes Now all analysis goes: 42.Kxd3
  1737. XRxa4 43.d6 Ra3+ 44.Kc4 Ra1 45. Kd5 Rd1+ 46.Kc6 a4 and White
  1738. Xmight be the one who in trouble. Both still sits at the board. GK
  1739. Xis looking everywhere else, waiting for Karpov to decide on
  1740. Xif he want to sealed his move  now. Some say that Kasparov might
  1741. Xhave proposed a draw earlier on. Not verified. Time: 2:42 - 2:08.
  1742. XKarpov sealed his 42nd move. The game will be continued (maybe)
  1743. Xtomorrow at 11:00 AM ET.
  1744. X
  1745. X
  1746. XGame 13 Adjournment Update
  1747. XA draw was agreed upon before adjournement has resumed.]
  1748. X
  1749. X
  1750. END_OF_FILE
  1751.   if test 7032 -ne `wc -c <'shortened.ntn'`; then
  1752.     echo shar: \"'shortened.ntn'\" unpacked with wrong size!
  1753.   fi
  1754.   # end of 'shortened.ntn'
  1755. fi
  1756. echo shar: End of archive 3 \(of 4\).
  1757. cp /dev/null ark3isdone
  1758. MISSING=""
  1759. for I in 1 2 3 4 ; do
  1760.     if test ! -f ark${I}isdone ; then
  1761.     MISSING="${MISSING} ${I}"
  1762.     fi
  1763. done
  1764. if test "${MISSING}" = "" ; then
  1765.     echo You have unpacked all 4 archives.
  1766.     rm -f ark[1-9]isdone
  1767. else
  1768.     echo You still must unpack the following archives:
  1769.     echo "        " ${MISSING}
  1770. fi
  1771. exit 0
  1772. exit 0 # Just in case...
  1773.