SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Sponsored Links

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

CHESSDGM: produces a string that can be pasted into a wordprocessor to produce a chess diagram. It uses a standard .fen chess position file as input
Copyright (C) 2000 Andrew Davies.


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


Build: (prebuilt binary included in archive)

gcc -o chessdgm chessdgm.c

Install

copy to a location in your path e.g. /usr/local/bin

Usage

save a postion file from xboard or such like WITH WHITE TO MOVE run
chessdgm filename.fen
paste output string (will look like garbage!) into a wordprocessor change the line to the skak chess font
hit return every 10 characters (should be obvious where) to make the diagram

note:it will only process the first postion in a file that has more than one postion stored

Font
I have included the skak font zip file as i found it. To install the font i copied the SKAK-K6.AFM SKAK-K6.PFB SKAK-K6.PFM to /usr/X11R6/lib/X11/fonts/Type1/ changing the file extensions to lower case then i ran type1inst to install the font, the font server will need restarting before it appears. Some word processors use perculiar places for their fonts, so these instructions might have to be adapted.
Contact
email me at kazami@lineone.net webpage at http://website.lineone.net/~kazami


Sponsored Links

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.