summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/chessfss/lsbc2enc.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/chessfss/lsbc2enc.def')
-rw-r--r--Master/texmf-dist/tex/latex/chessfss/lsbc2enc.def228
1 files changed, 228 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/chessfss/lsbc2enc.def b/Master/texmf-dist/tex/latex/chessfss/lsbc2enc.def
new file mode 100644
index 00000000000..6d2eea7a1ba
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/chessfss/lsbc2enc.def
@@ -0,0 +1,228 @@
+%%
+%% This is file `lsbc2enc.def',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% chessfss-src.dtx (with options: `lsbc2enc')
+%%
+%% 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.
+%%
+%% LSBC2: An encoding for chessboard chars.
+%% that makes it possible to color field and the piece differently.
+%% In this encoding the pieces/fields are build with a solid fieldmask,
+%% a transparent fieldmask and pieceOnWhite chars.
+%% If a color package is loaded, the piecemask will be white.
+%% The piecemask layer is not used.
+%% The encoding works with fonts that have solid fieldmask on position 49-54,
+%% transparent fieldmask on position 149-154 and the pieceOnWhite chars.
+%% A possible free font is skaknew. (To my knowledge it is the only one with all chars)
+
+\ProvidesFile{lsbc2enc.def}
+ [2006/05/22 v1.0
+ Standard LaTeX file]
+\DeclareFontEncoding{LSBC2}{}{}
+\DeclareFontSubstitution{LSBC2}{skaknew}{m}{n}
+
+\AtBeginDocument{\@ifundefined{color}{%
+ \def\color#1{}%
+ \PackageWarning{chessfss}
+ {You haven't load a color package. I will define the color command to do nothing}{}}{}}
+
+\providecommand\cfss@whitefieldmaskcolor{\color{white}}
+\providecommand\cfss@blackfieldmaskcolor{\color{gray}}
+\providecommand\cfss@whitefieldcolor{}
+\providecommand\cfss@blackfieldcolor{}
+\providecommand\cfss@whitepiececolor{}
+\providecommand\cfss@blackpiececolor{}
+
+\providecommand\cfss@composefmfpcolorchar[6]{%range layer. fm, f, p
+ \makebox[0pt][l]{%
+ \csname cfss@#1fieldmaskcolor\endcsname#2}%
+ \makebox[0pt][l]{%
+ \csname cfss@#3fieldcolor\endcsname#4}%
+ {\csname cfss@#5piececolor\endcsname#6}}%
+
+\@namedef{cfss@showboardencodingLSBC2}{%
+\begin{tabular}{llllll}
+\multicolumn{6}{l}{\bfseries Encoding \ttfamily LSBC2}\\[0.5ex]
+ Layer: & fieldmask
+ & field
+ & piecemask
+ & piece
+ &result\\
+ WhiteSquare &\boardfont\cfss@whitefieldmaskcolor z
+ &
+ &
+ &
+ &\boardfont\cfss@WhiteEmptySquare\\
+ BlackSquare &\boardfont\cfss@blackfieldmaskcolor z
+ &\boardfont\cfss@blackfieldcolor Z
+ &
+ &
+ &\boardfont\cfss@BlackEmptySquare\\
+ WhiteOnWhite &\boardfont\cfss@whitefieldmaskcolor 1
+ &\boardfont
+ &
+ &\boardfont\cfss@whitepiececolor K
+ &\boardfont\cfss@WhiteKingOnWhite\\
+ WhiteOnBlack &\boardfont\cfss@blackfieldmaskcolor 1
+ &\boardfont\cfss@blackfieldcolor\symbol{149}
+ &
+ &\boardfont\cfss@whitepiececolor K
+ &\boardfont\cfss@WhiteKingOnBlack\\
+ BlackOnWhite &\boardfont\cfss@whitefieldmaskcolor 1
+ &\boardfont
+ &
+ &\boardfont\cfss@blackpiececolor k
+ &\boardfont\cfss@BlackKingOnWhite\\
+ BlackOnBlack &\boardfont\cfss@blackfieldmaskcolor 1
+ &\boardfont\cfss@blackfieldcolor\symbol{149}
+ &
+ &\boardfont\cfss@blackpiececolor k
+ &\boardfont\cfss@BlackKingOnBlack\\
+\end{tabular}}
+
+\DeclareTextCommand\cfss@WhiteEmptySquare {LSBC2}{{\cfss@whitefieldmaskcolor z}}
+
+\DeclareTextCommand\cfss@BlackEmptySquare {LSBC2}
+ {{\makebox[0pt][l]{\cfss@blackfieldmaskcolor z}}{\cfss@blackfieldcolor Z}}
+
+\DeclareTextCommand\cfss@WhiteKingOnWhite {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {white}{1}
+ {}{}
+ {white}{K}}
+\DeclareTextCommand\cfss@BlackKingOnWhite {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {white}{1}
+ {}{}
+ {black}{k}}
+\DeclareTextCommand\cfss@WhiteKingOnBlack {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {black}{1}
+ {black}{\symbol{149}}
+ {white}{K}}
+\DeclareTextCommand\cfss@BlackKingOnBlack {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {black}{1}
+ {black}{\symbol{149}}
+ {black}{k}}
+
+\DeclareTextCommand\cfss@WhiteQueenOnWhite {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {white}{5}
+ {}{}
+ {white}{Q}}
+\DeclareTextCommand\cfss@BlackQueenOnWhite {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {white}{5}
+ {}{}
+ {black}{q}}
+\DeclareTextCommand\cfss@WhiteQueenOnBlack {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {black}{5}
+ {black}{\symbol{153}}
+ {white}{Q}}
+\DeclareTextCommand\cfss@BlackQueenOnBlack {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {black}{5}
+ {black}{\symbol{153}}
+ {black}{q}}
+
+\DeclareTextCommand\cfss@WhiteRookOnWhite {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {white}{3}
+ {}{}
+ {white}{R}}
+\DeclareTextCommand\cfss@BlackRookOnWhite {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {white}{3}
+ {}{}
+ {black}{r}}
+\DeclareTextCommand\cfss@WhiteRookOnBlack {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {black}{3}
+ {black}{\symbol{151}}
+ {white}{R}}
+\DeclareTextCommand\cfss@BlackRookOnBlack {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {black}{3}
+ {black}{\symbol{151}}
+ {black}{r}}
+
+\DeclareTextCommand\cfss@WhiteBishopOnWhite {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {white}{4}
+ {}{}
+ {white}{B}}
+\DeclareTextCommand\cfss@BlackBishopOnWhite {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {white}{4}
+ {}{}
+ {black}{b}}
+\DeclareTextCommand\cfss@WhiteBishopOnBlack {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {black}{4}
+ {black}{\symbol{152}}
+ {white}{B}}
+\DeclareTextCommand\cfss@BlackBishopOnBlack {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {black}{4}
+ {black}{\symbol{152}}
+ {black}{b}}
+
+\DeclareTextCommand\cfss@WhiteKnightOnWhite {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {white}{2}
+ {}{}
+ {white}{N}}
+\DeclareTextCommand\cfss@BlackKnightOnWhite {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {white}{2}
+ {}{}
+ {black}{n}}
+\DeclareTextCommand\cfss@WhiteKnightOnBlack {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {black}{2}
+ {black}{\symbol{150}}
+ {white}{N}}
+\DeclareTextCommand\cfss@BlackKnightOnBlack {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {black}{2}
+ {black}{\symbol{150}}
+ {black}{n}}
+
+\DeclareTextCommand\cfss@WhitePawnOnWhite {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {white}{6}
+ {}{}
+ {white}{P}}
+\DeclareTextCommand\cfss@BlackPawnOnWhite {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {white}{6}
+ {}{}
+ {black}{p}}
+\DeclareTextCommand\cfss@WhitePawnOnBlack {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {black}{6}
+ {black}{\symbol{154}}
+ {white}{P}}
+\DeclareTextCommand\cfss@BlackPawnOnBlack {LSBC2}
+ {\cfss@composefmfpcolorchar
+ {black}{6}
+ {black}{\symbol{154}}
+ {black}{p}}
+
+\endinput
+%%
+%% End of file `lsbc2enc.def'.