diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /language/tibetan/steiner/tplatex.tex |
Initial commit
Diffstat (limited to 'language/tibetan/steiner/tplatex.tex')
-rw-r--r-- | language/tibetan/steiner/tplatex.tex | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/language/tibetan/steiner/tplatex.tex b/language/tibetan/steiner/tplatex.tex new file mode 100644 index 0000000000..f9ba6f179c --- /dev/null +++ b/language/tibetan/steiner/tplatex.tex @@ -0,0 +1,114 @@ +% +% LaTeX Preamble for the Tibetan Transcript Translator +% Written and collected by Beat.Steiner@gseved.admin.ch +% + +% Thanks to J. Sparkes and Sam Sirlin to give me the necessary ideas +% to solve LaTeX boxing problems + + +% Vovel Macros + +% Sorry for using such brute force to (almost) center the +% vovels on their main letter. The \kern commands work around the +% fact that a \hfil is never negative. +% A further benefit is that the ligature boxes are only as +% wide as the main letter even if the vovel is wider. +% Unfortunately, an \accent can not be put on boxes (generic ligatures). + + +\def\gigu#1{\strut + \vbox{\baselineskip0pt\ialign{## + \cr{\hfil\rm\kern-8.7em + \tibsp\accent126 + \rm\kern-9em\hfil} + \cr{#1}\cr + }}} + +\def\shabkyu#1{\strut + \vtop{\baselineskip0pt\ialign{## + \cr{#1} + \cr{\hfil\rm\kern-9em + \tibsp\char123 + \rm\kern-8.9em\hfil} + \cr + }}} + + +\def\drengbu#1{\strut + \vbox{\baselineskip0pt\ialign{## + \cr{\hfil\rm\kern-9em + \tibsp\accent127 + \rm\kern-9em\hfil} + \cr{#1}\cr + }}} + +\def\naro#1{\baselineskip0pt\strut + \vbox{\baselineskip0pt\ialign{## + \cr{\hfil\rm\kern-8.7em + \tibsp\accent125 + \rm\kern-9em\hfil} + \cr{#1}\cr + }}} + +\def\anusvaara#1{\strut\baselineskip0pt + \vbox{\baselineskip0pt\ialign{## + \cr{\hfil\rm\kern-8.9em + \tibsp\char0 + \rm\kern-9em\hfil} + \cr{#1}\cr + }}} + + + +% Fonts + +\font\tibetan=gtib +\font\tibsp=gtibsp + + + +% Manual ligature definitions + + +\def\aa{\strut + \vtop{\baselineskip0pt\ialign{## + \cr{\tibetan\char29} + \cr{\hfil\rm\kern-8.7em + \tibetan\char22 + \rm\kern-9em\hfil} + \cr + }}} + +\def \rya{\vtop{\baselineskip0pt\hbox{\tibetan\char24}\hbox{\tibsp\char4}}} +\def \hya{\vtop{\baselineskip0pt\hbox{\tibetan\char28}\hbox{\tibsp\char4}}} +\def \dzra{\vtop{\baselineskip0pt\hbox{\tibetan\char18}\hbox{\tibsp\char127}}} + + + +% Sam Sirlin's \endsym +\def \visarga{ +\vtop{\ialign{##\cr +{\tibsp\char0}\cr +\noalign{\kern -2pt\nointerlineskip} +{\hskip1pt\bf-}\cr +\noalign{\nointerlineskip} +{\tibsp\char0}\cr }} +} + +% From Sam Sirlin +\input{tibdef.tex} + +% LaTeX Preamble + +\documentclass[a4paper]{article} +\begin{document} + +\parindent=0pt +\parskip=0pt +\sloppy + + + + + |