diff options
author | Norbert Preining <preining@logic.at> | 2007-11-13 14:31:46 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2007-11-13 14:31:46 +0000 |
commit | 246f1f85e559de020b43eac0342445504882aa18 (patch) | |
tree | a800641c45ffaef77dde55ba8dbc02b80843f977 /Master/texmf-dist/tex/latex/chessfss/lsbc1enc.def | |
parent | 23a351eaa84b921de4260449cc323e42f9641cf8 (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/lsbc1enc.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/chessfss/lsbc1enc.def | 232 |
1 files changed, 232 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/chessfss/lsbc1enc.def b/Master/texmf-dist/tex/latex/chessfss/lsbc1enc.def new file mode 100644 index 00000000000..1ebe8bf54c7 --- /dev/null +++ b/Master/texmf-dist/tex/latex/chessfss/lsbc1enc.def @@ -0,0 +1,232 @@ +%% +%% This is file `lsbc1enc.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% chessfss-src.dtx (with options: `lsbc1enc') +%% +%% 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. +%% +%% LSBC1: 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 transparent fieldmask, +%% the piecemask and the pieceOnWhite. +%% If a color package is loaded, the piecemask will be white. +%% The solid fieldmask layer is not used. +%% The encoding works with fonts that have transparent fieldmask on position 149-154 +%% piecemask (T-Y) and the pieceOnWhite chars. +%% A possible free font is skaknew. +%% DiaTTFri.ttf (from fritz) also has the necessary characters but must be converted +%% reencoded first. + +\ProvidesFile{lsbc1enc.def} + [2006/05/22 v1.0 + Standard LaTeX file] +\DeclareFontEncoding{LSBC1}{}{} +\DeclareFontSubstitution{LSBC1}{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@whitefieldcolor{} +\providecommand\cfss@blackfieldcolor{} +\providecommand\cfss@whiteonwhitepiecemaskcolor{\color{white}} +\providecommand\cfss@whiteonblackpiecemaskcolor{\color{white}} +\providecommand\cfss@blackonwhitepiecemaskcolor{\color{white}} +\providecommand\cfss@blackonblackpiecemaskcolor{\color{white}} +\providecommand\cfss@whitepiececolor{} +\providecommand\cfss@blackpiececolor{} + +\providecommand\cfss@composefpmpcolorchar[6]{%range layer. f, pm, p + \makebox[0pt][l]{% fieldlayer + \csname cfss@#1fieldcolor\endcsname#2}% + \makebox[0pt][l]{% piecemasklayer + \csname cfss@#3piecemaskcolor\endcsname#4}% + {\csname cfss@#5piececolor\endcsname#6}}% piecelayer + +\@namedef{cfss@showboardencodingLSBC1}{% +\begin{tabular}{llllll} +\multicolumn{6}{l}{\bfseries Encoding \ttfamily LSBC1}\\[0.5ex] + Layer: &fieldmask + &field + &piecemask + &piece + &result\\ + WhiteSquare & + &\boardfont\cfss@whitefieldcolor 0 + & + & + &\boardfont\cfss@WhiteEmptySquare\\ + BlackSquare & + &\boardfont\cfss@blackfieldcolor Z + & + & + &\boardfont\cfss@BlackEmptySquare\\ + WhiteOnWhite & + & + &\boardfont\cfss@whiteonwhitepiecemaskcolor T + &\boardfont\cfss@whitepiececolor K + &\boardfont\cfss@WhiteKingOnWhite\\ + WhiteOnBlack & + &\boardfont\cfss@blackfieldcolor\symbol{149} + &\boardfont\cfss@whiteonblackpiecemaskcolor T + &\boardfont\cfss@whitepiececolor K + &\boardfont\cfss@WhiteKingOnBlack\\ + BlackOnWhite & + & + &\boardfont\cfss@blackonwhitepiecemaskcolor T + &\boardfont\cfss@blackpiececolor k + &\boardfont\cfss@BlackKingOnWhite\\ + BlackOnBlack & + &\boardfont\cfss@blackfieldcolor\symbol{149} + &\boardfont\cfss@blackonblackpiecemaskcolor T + &\boardfont\cfss@blackpiececolor k + &\boardfont\cfss@BlackKingOnBlack\\ +\end{tabular}} + +\DeclareTextCommand\cfss@WhiteEmptySquare {LSBC1}{{\cfss@whitefieldcolor 0}} +\DeclareTextCommand\cfss@BlackEmptySquare {LSBC1}{{\cfss@blackfieldcolor Z}} +\DeclareTextCommand\cfss@WhiteKingOnWhite {LSBC1} + {\cfss@composefpmpcolorchar + {}{} + {whiteonwhite}{T} + {white}{K}} +\DeclareTextCommand\cfss@BlackKingOnWhite {LSBC1} + {\cfss@composefpmpcolorchar + {}{} + {blackonwhite}{T} + {black}{k}} +\DeclareTextCommand\cfss@WhiteKingOnBlack {LSBC1} + {\cfss@composefpmpcolorchar + {black}{\symbol{149}} + {whiteonblack}{T} + {white}{K}} +\DeclareTextCommand\cfss@BlackKingOnBlack {LSBC1} + {\cfss@composefpmpcolorchar + {black}{\symbol{149}} + {blackonblack}{T} + {black}{k}} + +\DeclareTextCommand\cfss@WhiteQueenOnWhite {LSBC1} + {\cfss@composefpmpcolorchar + {}{} + {whiteonwhite}{X} + {white}{Q}} +\DeclareTextCommand\cfss@BlackQueenOnWhite {LSBC1} + {\cfss@composefpmpcolorchar + {}{} + {blackonwhite}{X} + {black}{q}} +\DeclareTextCommand\cfss@WhiteQueenOnBlack {LSBC1} + {\cfss@composefpmpcolorchar + {black}{\symbol{153}} + {whiteonblack}{X} + {white}{Q}} +\DeclareTextCommand\cfss@BlackQueenOnBlack {LSBC1} + {\cfss@composefpmpcolorchar + {black}{\symbol{153}} + {blackonblack}{X} + {black}{q}} + +\DeclareTextCommand\cfss@WhiteRookOnWhite {LSBC1} + {\cfss@composefpmpcolorchar + {}{} + {whiteonwhite}{V} + {white}{R}} +\DeclareTextCommand\cfss@BlackRookOnWhite {LSBC1} + {\cfss@composefpmpcolorchar + {}{} + {blackonwhite}{V} + {black}{r}} +\DeclareTextCommand\cfss@WhiteRookOnBlack {LSBC1} + {\cfss@composefpmpcolorchar + {black}{\symbol{151}} + {whiteonblack}{V} + {white}{R}} +\DeclareTextCommand\cfss@BlackRookOnBlack {LSBC1} + {\cfss@composefpmpcolorchar + {black}{\symbol{151}} + {blackonblack}{V} + {black}{r}} + +\DeclareTextCommand\cfss@WhiteBishopOnWhite {LSBC1} + {\cfss@composefpmpcolorchar + {}{} + {whiteonwhite}{W} + {white}{B}} +\DeclareTextCommand\cfss@BlackBishopOnWhite {LSBC1} + {\cfss@composefpmpcolorchar + {}{} + {blackonwhite}{W} + {black}{b}} +\DeclareTextCommand\cfss@WhiteBishopOnBlack {LSBC1} + {\cfss@composefpmpcolorchar + {black}{\symbol{152}} + {whiteonblack}{W} + {white}{B}} +\DeclareTextCommand\cfss@BlackBishopOnBlack {LSBC1} + {\cfss@composefpmpcolorchar + {black}{\symbol{152}} + {blackonblack}{W} + {black}{b}} + +\DeclareTextCommand\cfss@WhiteKnightOnWhite {LSBC1} + {\cfss@composefpmpcolorchar + {}{} + {whiteonwhite}{U} + {white}{N}} +\DeclareTextCommand\cfss@BlackKnightOnWhite {LSBC1} + {\cfss@composefpmpcolorchar + {}{} + {blackonwhite}{U} + {black}{n}} +\DeclareTextCommand\cfss@WhiteKnightOnBlack {LSBC1} + {\cfss@composefpmpcolorchar + {black}{\symbol{150}} + {whiteonblack}{U} + {white}{N}} +\DeclareTextCommand\cfss@BlackKnightOnBlack {LSBC1} + {\cfss@composefpmpcolorchar + {black}{\symbol{150}} + {blackonblack}{U} + {black}{n}} + +\DeclareTextCommand\cfss@WhitePawnOnWhite {LSBC1} + {\cfss@composefpmpcolorchar + {}{} + {whiteonwhite}{Y} + {white}{P}} +\DeclareTextCommand\cfss@BlackPawnOnWhite {LSBC1} + {\cfss@composefpmpcolorchar + {}{} + {blackonwhite}{Y} + {black}{p}} +\DeclareTextCommand\cfss@WhitePawnOnBlack {LSBC1} + {\cfss@composefpmpcolorchar + {black}{\symbol{154}} + {whiteonblack}{Y} + {white}{P}} +\DeclareTextCommand\cfss@BlackPawnOnBlack {LSBC1} + {\cfss@composefpmpcolorchar + {black}{\symbol{154}} + {blackonblack}{Y} + {black}{p}} + +\endinput +%% +%% End of file `lsbc1enc.def'. |