summaryrefslogtreecommitdiff
path: root/language/tibetan/ctib/texinput
diff options
context:
space:
mode:
Diffstat (limited to 'language/tibetan/ctib/texinput')
-rw-r--r--language/tibetan/ctib/texinput/ctib.sty71
-rw-r--r--language/tibetan/ctib/texinput/ctib.tex116
-rw-r--r--language/tibetan/ctib/texinput/lctctib.fd34
-rw-r--r--language/tibetan/ctib/texinput/lctenc.def95
4 files changed, 316 insertions, 0 deletions
diff --git a/language/tibetan/ctib/texinput/ctib.sty b/language/tibetan/ctib/texinput/ctib.sty
new file mode 100644
index 0000000000..d3fa9b78c8
--- /dev/null
+++ b/language/tibetan/ctib/texinput/ctib.sty
@@ -0,0 +1,71 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% File: ctib.sty
+% Author: Oliver Corff
+% Date: July 1st, 2002
+% Version: \CtibVersionRelease
+% Copyright: Ulaanbaatar, Beijing, Berlin
+%
+% Description: The ctib style file provides access to all
+% commands necessary for writing Tibetan
+% in LaTeX documents, making use of a modified
+% version of Sirlin's Tibetan fonts.
+%
+% Many definitions were actually taken from
+% Sirlin's tibdef.tex (and occasionally modified).
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% ------------------- identification -------------------
+%
+\newcommand{\CtibVersionDate}{2002/07/01}
+\newcommand{\CtibVersionRelease}{0.6}
+%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{ctib}%
+ [\CtibVersionDate\ \CtibVersionRelease\ Tibetan for TeX and LaTeX2e]
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% ------------------- initial code -------------------
+%
+% We need our local Mongolian encodings (C: Cyrillic, S: Script,
+% (T: Traditional or Tibetan style) as standard encodings ...
+%
+%
+\newcommand{\SetDocumentEncodingTibetan}{%
+ \renewcommand{\encodingdefault}{LCT}
+ \fontencoding{LCT}\selectfont
+ }
+\newcommand{\tib}{%
+ % \store_old_encoding
+ \fontencoding{LCT}\selectfont
+ }
+\newcommand{\bit}{%
+ % Restore old encoding but check which one it was
+ \fontencoding{T1}\selectfont
+ }
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% ------------------- declaration of options -------------------
+%
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% -------- Loading of various codepage definitions -------------
+%
+% Nothing really happens here, this time.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% ------------------- execution of options -------------------
+%
+% Another void.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% ------------------- package loading -------------------
+%
+\RequirePackage[,LCT,T1]{fontenc}
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% ------------------- main code -------------------
+%
+\input ctib.tex
+%
+% Remove ctib definitions not needed in \LaTeX!
+%\undef\tsize
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% The \packagename\ package ends here.
diff --git a/language/tibetan/ctib/texinput/ctib.tex b/language/tibetan/ctib/texinput/ctib.tex
new file mode 100644
index 0000000000..06b8bcd118
--- /dev/null
+++ b/language/tibetan/ctib/texinput/ctib.tex
@@ -0,0 +1,116 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% File: ctib.tex
+% Author: Sam Sirlin
+% Modified by: Oliver Corff
+% Date: October 10th, 1999
+% Version: \CtibVersionRelease
+%
+% Description: The ctib.tex file provides access to all
+% commands necessary for writing Tibetan
+% in TeX documents, making use of a modified
+% version of Sirlin's Tibetan fonts.
+%
+% Many definitions were actually taken from
+% Sirlin's tibdef.tex (and occasionally modified).
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% ------------------- main code -------------------
+%
+% \TibTeX creates the TibTeX logo
+%
+\def\TibTeX{{cTib\TeX}}
+%
+%
+% s.w. sirlin 11/24/94, modified by o. corff, 1999-10-10
+% definitions for tibetan fonts
+
+\font\tibetanzero=ctib scaled\magstep0
+\font\tenrmzero=cmr10 scaled\magstep0
+
+\font\tibetanone=ctib scaled\magstep1
+\font\tenrmone=cmr10 scaled\magstep1
+
+\def\tsize{%
+\def\tibetan{\tibetanzero}%
+\def\tenrm{\tenrmzero}}
+
+\def\tsizei{%
+\def\tibetan{\tibetanone}%
+\def\tenrm{\tenrmone}}
+
+%
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Now Tibetan paragraph properties
+%
+%\hyphenpenalty=10000\parindent=0pt
+
+\def\tspace{{\hskip\fontdimen7\font}} % inter-sentence space
+\def\notsheg{\noboundary} % elimininates tsheg
+\def\K{\noboundary\tspace} % Space after k, g
+
+%
+% Helps build additional stacks
+%
+\def\V#1#2{\noboundary%
+ \ooalign{\noboundary#1\noboundary\cr
+ \lower1.15\fontdimen5\font\hbox{#2\noboundary}}%
+ x} % `x' which has no value in ctib generates automatic tsheg
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Now typical Tibetan identities
+%
+% Bad: would not cooperate with MonTeX!
+\ifx\om\undefined
+ \def\om{{\tib\char254}} % `<'
+\fi
+\def\visarga{{\tib\char58}} % `:'
+\def\swasti{{\tib\char64}} % `@'
+%
+% special characters
+%
+\def\dme{\V{de}{ma}x}
+%%
+\def\ai{\V{a}{\raise0.85\fontdimen5\font\hbox{\hskip0.25em`}}x}
+%%
+\def\hung{\ooalign{{\raise0.7\fontdimen5\font\hbox{\hskip0.15em0}}
+ \cr\V{h}{'u}}x}
+%%
+\def\hrih{\V{hri}{\raise0.50\fontdimen5\font\hbox{`}}x}
+%%
+\def\achung#1{\vtop{%
+ \baselineskip0pt\hbox{#1\noboundary}%
+ \hbox{\lower0.15\fontdimen5\font\hbox{`}}}
+}
+%%
+%%
+%% % operators - new vowels
+%%
+%% % m as o above next letter
+%% %\def \altm{{\tibsp\accent0}}
+%% %\def \altm{ \tibsp\accent0\tibetan}
+%% % expect that tfilt will add junk which we need to junk
+%% \def \altm#1{ \tibsp\accent0\tibetan #1}
+%%
+%% % m as o above, u below
+%% \def\altmu#1{\vtop{\baselineskip0pt\hbox
+%% {\tibsp\accent0\tibetan #1}\hbox{\tibsp\char123}}}
+%%
+%% % m as o below - emphasis
+%% % \def\subm#1{\vtop{\baselineskip0pt\hbox{#1}\hbox{\tibsp\char0}}}
+%% \def\subm#1{
+%% \vtop{\ialign{\hfil##\hfil\cr
+%% \hbox{#1}\cr
+%% \noalign{\kern1pt\nointerlineskip}
+%% \hbox{\tibsp\char0}\cr}}
+%% }
+%%
+%% % below
+%%
+%ready to start, default size is 0
+
+\tsize
+
+% end of ctib.tex
diff --git a/language/tibetan/ctib/texinput/lctctib.fd b/language/tibetan/ctib/texinput/lctctib.fd
new file mode 100644
index 0000000000..9aba994721
--- /dev/null
+++ b/language/tibetan/ctib/texinput/lctctib.fd
@@ -0,0 +1,34 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% File: lctctib.fd
+% Author: Oliver Corff
+% Date: July 1st, 2002
+% Version: 0.6
+% Copyright: Ulaanbaatar, Beijing, Berlin
+%
+% Description: Local Tibetan (LCT)
+% Sirlin's Modified Tibetan Font Definition
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% ------------------- identification -------------------
+\ProvidesFile{lctctib.fd}%
+ [2002/07/01 v0.6 Tibetan Font Definitions based on Sirlin's Glyphs]
+
+\DeclareFontFamily{LCT}{ctib}{}
+
+\DeclareFontShape{LCT}{ctib}{m}{n}% Medium Weight
+ { <-> ctib }{}
+%
+% There is no BW version at present!
+%
+\DeclareFontShape{LCT}{ctib}{b}{n}% Bold Weight
+ { <-> sub*ctib/m/n }{}
+
+%
+% There is no BE version at present!
+%
+\DeclareFontShape{LCT}{ctib}{bx}{n}% Bold Extended
+ { <-> sub*ctib/m/n }{}
+
+\endinput
+%%
+%% End of file `lctctib.fd'.
diff --git a/language/tibetan/ctib/texinput/lctenc.def b/language/tibetan/ctib/texinput/lctenc.def
new file mode 100644
index 0000000000..54c52c986b
--- /dev/null
+++ b/language/tibetan/ctib/texinput/lctenc.def
@@ -0,0 +1,95 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% File: lctenc.def
+% Author: Oliver Corff
+% Date: July 1st, 2002
+% Version: 0.6
+% Copyright: Ulaanbaatar, Beijing, Berlin
+%
+% Description: Local Tibetan Encoding Definition
+%
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% ------------------- identification -------------------
+%
+\ProvidesFile{lctenc.def}
+ [2002/07/01 v0.6 Mongolian Language Support Tibetan Encoding]
+%
+%
+\DeclareFontEncoding{LCT}{}{}{}
+\DeclareFontSubstitution{LCT}{ctib}{m}{n}
+%
+\DeclareTextSymbol{\tibom }{LCT}{0 }
+\DeclareTextSymbol{\om }{LCT}{0 }
+\DeclareTextSymbol{\tibswasti }{LCT}{"40 }
+\DeclareTextSymbol{\tibvarfive }{LCT}{5 }
+\DeclareTextSymbol{\tibvarsix }{LCT}{6 }
+\DeclareTextSymbol{\tibvarseven }{LCT}{7 }
+\DeclareTextSymbol{\tibvareight }{LCT}{8 }
+\DeclareTextSymbol{\tibvarnine }{LCT}{9 }
+\DeclareTextSymbol{\tibempty }{LCT}{32 }
+\DeclareTextSymbol{\tibShad }{LCT}{46 }
+\DeclareTextSymbol{\tibTsheg }{LCT}{44 }
+\DeclareTextSymbol{\tibSwasti }{LCT}{64 }
+\DeclareTextSymbol{\tibVisarga }{LCT}{58 }
+\DeclareTextSymbol{\tibTshegshad }{LCT}{33 }
+\DeclareTextSymbol{\tibAlttshegshad }{LCT}{31 }
+\DeclareTextSymbol{\tibNyistshegshad }{LCT}{34 }
+\DeclareTextSymbol{\tibChemgoshad }{LCT}{35 }
+\DeclareTextSymbol{\tibSbrulshad }{LCT}{36 }
+\DeclareTextSymbol{\tibRgyagramshad }{LCT}{37 }
+\DeclareTextSymbol{\tibVarchemgoshad }{LCT}{38 }
+\DeclareTextSymbol{\tibRjessungaro }{LCT}{24 }
+\DeclareTextSymbol{\tibSnaldan }{LCT}{25 }
+\DeclareTextSymbol{\tibRnambcad }{LCT}{26 }
+\DeclareTextSymbol{\tibGtertsheg }{LCT}{27 }
+\DeclareTextSymbol{\tibRinchenspungsshad }{LCT}{47 }
+\DeclareTextSymbol{\tibTopiniyigmgomdunma }{LCT}{40 }
+\DeclareTextSymbol{\tibFinalyigmgomdunma }{LCT}{41 }
+\DeclareTextSymbol{\tibIniyigmgomdunma }{LCT}{42 }
+\DeclareTextSymbol{\tibAngkhyanggyon }{LCT}{60 }
+\DeclareTextSymbol{\tibAngkhyanggyas }{LCT}{62 }
+\DeclareTextSymbol{\tibHalanta }{LCT}{10 }
+\DeclareTextSymbol{\tibLcirtags }{LCT}{11 }
+\DeclareTextSymbol{\tibNyizlanaada }{LCT}{12 }
+\DeclareTextSymbol{\tibHalf }{LCT}{13 }
+\DeclareTextSymbol{\tibGteryigmgotr }{LCT}{14 }
+\DeclareTextSymbol{\tibPaluta }{LCT}{15 }
+%
+\DeclareTextSymbolDefault{\tibom }{LCT}
+\DeclareTextSymbolDefault{\om }{LCT}
+\DeclareTextSymbolDefault{\tibswasti }{LCT}
+%% \DeclareTextSymbolDefault{\tibvarfive }{LCT}
+%% \DeclareTextSymbolDefault{\tibvarsix }{LCT}
+%% \DeclareTextSymbolDefault{\tibvarseven }{LCT}
+%% \DeclareTextSymbolDefault{\tibvareight }{LCT}
+%% \DeclareTextSymbolDefault{\tibvarnine }{LCT}
+\DeclareTextSymbolDefault{\tibempty }{LCT}
+\DeclareTextSymbolDefault{\tibShad }{LCT}
+\DeclareTextSymbolDefault{\tibTsheg }{LCT}
+\DeclareTextSymbolDefault{\tibSwasti }{LCT}
+\DeclareTextSymbolDefault{\tibVisarga }{LCT}
+\DeclareTextSymbolDefault{\tibTshegshad }{LCT}
+\DeclareTextSymbolDefault{\tibAlttshegshad }{LCT}
+\DeclareTextSymbolDefault{\tibNyistshegshad }{LCT}
+\DeclareTextSymbolDefault{\tibChemgoshad }{LCT}
+\DeclareTextSymbolDefault{\tibSbrulshad }{LCT}
+\DeclareTextSymbolDefault{\tibRgyagramshad }{LCT}
+\DeclareTextSymbolDefault{\tibVarchemgoshad }{LCT}
+\DeclareTextSymbolDefault{\tibRjessungaro }{LCT}
+\DeclareTextSymbolDefault{\tibSnaldan }{LCT}
+\DeclareTextSymbolDefault{\tibRnambcad }{LCT}
+\DeclareTextSymbolDefault{\tibGtertsheg }{LCT}
+\DeclareTextSymbolDefault{\tibRinchenspungsshad }{LCT}
+\DeclareTextSymbolDefault{\tibTopiniyigmgomdunma}{LCT}
+\DeclareTextSymbolDefault{\tibFinalyigmgomdunma }{LCT}
+\DeclareTextSymbolDefault{\tibIniyigmgomdunma }{LCT}
+\DeclareTextSymbolDefault{\tibAngkhyanggyon }{LCT}
+\DeclareTextSymbolDefault{\tibAngkhyanggyas }{LCT}
+\DeclareTextSymbolDefault{\tibHalanta }{LCT}
+\DeclareTextSymbolDefault{\tibLcirtags }{LCT}
+\DeclareTextSymbolDefault{\tibNyizlanaada }{LCT}
+\DeclareTextSymbolDefault{\tibHalf }{LCT}
+\DeclareTextSymbolDefault{\tibGteryigmgotr }{LCT}
+\DeclareTextSymbolDefault{\tibPaluta }{LCT}
+%
+\endinput