summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/chessfss/lsb2enc.def
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2007-11-13 14:31:46 +0000
committerNorbert Preining <preining@logic.at>2007-11-13 14:31:46 +0000
commit246f1f85e559de020b43eac0342445504882aa18 (patch)
treea800641c45ffaef77dde55ba8dbc02b80843f977 /Master/texmf-dist/tex/latex/chessfss/lsb2enc.def
parent23a351eaa84b921de4260449cc323e42f9641cf8 (diff)
add chessfss package (without the doc that has no source)
git-svn-id: svn://tug.org/texlive/trunk@5419 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/chessfss/lsb2enc.def')
-rw-r--r--Master/texmf-dist/tex/latex/chessfss/lsb2enc.def112
1 files changed, 112 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/chessfss/lsb2enc.def b/Master/texmf-dist/tex/latex/chessfss/lsb2enc.def
new file mode 100644
index 00000000000..e15a72e1438
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/chessfss/lsb2enc.def
@@ -0,0 +1,112 @@
+%%
+%% This is file `lsb2enc.def',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% chessfss-src.dtx (with options: `lsb2enc')
+%%
+%% chessfss: chess font selection commands
+%% Copyright 2005 Ulrike Fischer (skak@nililand.de)
+%% -------------------------------------------
+%%
+%% This file can be redistributed and/or modified under the terms of
+%% the LaTeX Project Public License distributed from CTAN archives in
+%% the directory macros/latex/base/lppl.txt; either version 1 of the
+%% License, or (at your option) any later version.
+%%
+%% For error reports see documentation.
+%%
+%% LSB2: An encoding for chessboard chars
+%% that makes it possible to color field and the piece differently.
+%% In this encoding the pieces/fields are build only with the pieceOnWhite characters.
+%% Black fields must get their color through commands like \colorbox.
+%% The color of the background will shine through the inner of the pieces
+%% The solid fieldmask layer, the field layer and the piecemask layer are not used.
+%% The encoding works with fonts that have the pieceOnWhite chars. (This should be all fonts)
+%% It will not give a professional looking result because of the colored inside of the chars!
+
+\ProvidesFile{lsb2enc.def}
+ [2006/06/09 v1.1
+ Standard LaTeX file]
+
+\DeclareFontEncoding{LSB2}{}{}
+\DeclareFontSubstitution{LSB2}{skaknew}{m}{n}
+
+\providecommand\cfss@whitepiececolor{}
+\providecommand\cfss@blackpiececolor{}
+
+\providecommand\cfss@composepcolorchar[2]{%range layer: p
+ {\csname cfss@#1piececolor\endcsname#2}}%
+
+\@namedef{cfss@showboardencodingLSB2}{%
+\begin{tabular}{llllll}
+\multicolumn{6}{l}{\bfseries Encoding \ttfamily LSB2}\\
+\multicolumn{6}{l}{fields have no color!}\\[0.5ex]
+ Layer: & fieldmask
+ & field
+ & piecemask
+ & piece
+ & result\\
+ WhiteSquare &
+ &
+ &
+ &
+ &\boardfont\cfss@WhiteEmptySquare\\
+ BlackSquare &
+ &
+ &
+ &
+ &\boardfont\cfss@BlackEmptySquare\\
+ WhiteOnWhite &
+ &
+ &
+ &\boardfont\cfss@whitepiececolor K
+ &\boardfont\cfss@WhiteKingOnWhite\\
+ WhiteOnBlack &
+ &
+ &
+ &\boardfont\cfss@whitepiececolor K
+ &\boardfont\cfss@WhiteKingOnBlack\\
+ BlackOnWhite &
+ &
+ &
+ &\boardfont\cfss@blackpiececolor k
+ &\boardfont\cfss@BlackKingOnWhite\\
+ BlackOnBlack &
+ &
+ &
+ &\boardfont\cfss@blackpiececolor k
+ &\boardfont\cfss@BlackKingOnBlack\\
+\end{tabular}}
+
+\DeclareTextCommand\cfss@WhiteEmptySquare {LSB2}{\phantom{Z}}
+\DeclareTextCommand\cfss@BlackEmptySquare {LSB2}{\phantom{Z}}
+\DeclareTextCommand\cfss@WhiteKingOnWhite {LSB2}{\cfss@composepcolorchar{white}{K}}
+\DeclareTextCommand\cfss@BlackKingOnWhite {LSB2}{\cfss@composepcolorchar{black}{k}}
+\DeclareTextCommand\cfss@WhiteKingOnBlack {LSB2}{\cfss@composepcolorchar{white}{K}}
+\DeclareTextCommand\cfss@BlackKingOnBlack {LSB2}{\cfss@composepcolorchar{black}{k}}
+\DeclareTextCommand\cfss@WhiteQueenOnWhite {LSB2}{\cfss@composepcolorchar{white}{Q}}
+\DeclareTextCommand\cfss@BlackQueenOnWhite {LSB2}{\cfss@composepcolorchar{black}{q}}
+\DeclareTextCommand\cfss@WhiteQueenOnBlack {LSB2}{\cfss@composepcolorchar{white}{Q}}
+\DeclareTextCommand\cfss@BlackQueenOnBlack {LSB2}{\cfss@composepcolorchar{black}{q}}
+\DeclareTextCommand\cfss@WhiteRookOnWhite {LSB2}{\cfss@composepcolorchar{white}{R}}
+\DeclareTextCommand\cfss@BlackRookOnWhite {LSB2}{\cfss@composepcolorchar{black}{r}}
+\DeclareTextCommand\cfss@WhiteRookOnBlack {LSB2}{\cfss@composepcolorchar{white}{R}}
+\DeclareTextCommand\cfss@BlackRookOnBlack {LSB2}{\cfss@composepcolorchar{black}{r}}
+\DeclareTextCommand\cfss@WhiteBishopOnWhite{LSB2}{\cfss@composepcolorchar{white}{B}}
+\DeclareTextCommand\cfss@BlackBishopOnWhite{LSB2}{\cfss@composepcolorchar{black}{b}}
+\DeclareTextCommand\cfss@WhiteBishopOnBlack{LSB2}{\cfss@composepcolorchar{white}{B}}
+\DeclareTextCommand\cfss@BlackBishopOnBlack{LSB2}{\cfss@composepcolorchar{black}{b}}
+\DeclareTextCommand\cfss@WhiteKnightOnWhite{LSB2}{\cfss@composepcolorchar{white}{N}}
+\DeclareTextCommand\cfss@BlackKnightOnWhite{LSB2}{\cfss@composepcolorchar{black}{n}}
+\DeclareTextCommand\cfss@WhiteKnightOnBlack{LSB2}{\cfss@composepcolorchar{white}{N}}
+\DeclareTextCommand\cfss@BlackKnightOnBlack{LSB2}{\cfss@composepcolorchar{black}{n}}
+\DeclareTextCommand\cfss@WhitePawnOnWhite {LSB2}{\cfss@composepcolorchar{white}{P}}
+\DeclareTextCommand\cfss@BlackPawnOnWhite {LSB2}{\cfss@composepcolorchar{black}{p}}
+\DeclareTextCommand\cfss@WhitePawnOnBlack {LSB2}{\cfss@composepcolorchar{white}{P}}
+\DeclareTextCommand\cfss@BlackPawnOnBlack {LSB2}{\cfss@composepcolorchar{black}{p}}
+
+\endinput
+%%
+%% End of file `lsb2enc.def'.