diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-13 00:11:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-13 00:11:07 +0000 |
commit | 0f14293bc34ef7c1c902b00f6a2f6c1cb5e7a966 (patch) | |
tree | 85074a0e03e3b42c8806a463b4d8c42237087763 /Master/texmf-dist/tex/latex/vntex/vietnam.ldf | |
parent | 799f98e6621cc3c0b6b90bfafa709a11da49b1be (diff) |
vntex
git-svn-id: svn://tug.org/texlive/trunk@1443 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/vntex/vietnam.ldf')
-rw-r--r-- | Master/texmf-dist/tex/latex/vntex/vietnam.ldf | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/vntex/vietnam.ldf b/Master/texmf-dist/tex/latex/vntex/vietnam.ldf new file mode 100644 index 00000000000..dceabf0d929 --- /dev/null +++ b/Master/texmf-dist/tex/latex/vntex/vietnam.ldf @@ -0,0 +1,88 @@ +% Copyright 2000-2005 Werner Lemberg <wl@gnu.org>. +% This file is part of vntex. License: LPPL, version 1.3 or newer, +% according to http://www.latex-project.org/lppl.txt +% +% +% vietnam.ldf +% +% written by Werner LEMBERG <wl@gnu.org> +% +% History +% +% 1.0 2000/09/01 +% +% First version. +% +% 1.1 2001/05/26 +% +% Moved \endlinechar downwards. +% +% post 1.1 ? +% +% Don't check for dblaccnt.sty. +% Add support for ucs.sty. +% Don't define \captionsvietnam but load vncaps.tex. +% +% 1.2 2005/04/21 +% +% Add copyright message. +% Minor clean-ups. + +\ProvidesLanguage{vietnam} + [2005/04/21 v1.2 Vietnamese support from the babel system] + +\LdfInit{vietnam}{captionsvietnam} + +\ifx\l@vietnam \@undefined + \adddialect\l@vietnam 0 +\fi + +\let\latinencoding\cf@encoding + +\InputIfFileExists{t5enc.def} + {\message{Loading definitions for the Vietnamese font encoding}} + {\errhelp{I can't find the file `t5enc.def' for Vietnamese fonts} + \errmessage{Since I do not know what the T5 encoding means^^J + I can't typeset Vietnamese.^^J + I stop here, while you get a suitable `t5enc.def' file} + \@@end} + + +\@ifpackageloaded{inputenc}{} + {\PackageWarning{babel}{No input encoding specified for Vietnamese}} + +\endlinechar \m@ne + +\@ifpackageloaded{ucs}{ + \PreloadUnicodePage{0} + \PreloadUnicodePage{1} + \PreloadUnicodePage{30} + \ifx \UnicodeCharFilter \@undefined +% \UCSProtectionUnichar + \UCSProtectionIeC + \else + \UnicodeCharFilter\IeC + \fi}{} + +\DeclareRobustCommand{\viettext}{ + \fontencoding{T5}\selectfont + \def\encodingdefault{T5} + \language\l@vietnam} +\let\viet \viettext +\DeclareTextFontCommand{\textviet}{\viet} + +\addto\extrasvietnam{\viettext} +\addto\noextrasvietnam{\latintext} + +\addto\extrasvietnam{\bbl@frenchspacing} +\addto\noextrasvietnam{\bbl@nonfrenchspacing} + +\input{vncaps.tex} + +\ldf@finish{vietnam} + +\endlinechar `\^^M + +\endinput + +% end of vietnam.ldf |