summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/babel-vietnamese/vietnamese.ldf
blob: 77b76eae5afef10ddf713abfd354d197733ba962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
%%
%% This is file `vietnamese.ldf',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% vietnamese.dtx  (with options: `code')
%% This is a generated file.
%% 
%% Copyright 2015 Werner Lemberg and any individual authors
%% listed elsewhere in this file.  All rights reserved.
%% 
%% This file is intended to be used with the Babel system.
%% ------------------------------------------------------
%% 
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%   http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2003/12/01 or later.
%% 
%% This work has the LPPL maintenance status "maintained".
%% 
%% The Current Maintainer of this work is Werner Lemberg.
%% 
%% The list of derived (unpacked) files belonging to the distribution
%% and covered by LPPL is defined by the unpacking scripts (with
%% extension .ins) which are part of the distribution.
\ProvidesLanguage{vietnamese}
%% File `vietnamese.dtx'
\LdfInit{\CurrentOption}{captions\CurrentOption}
\ifx\l@vietnamese\@undefined
  \ifx\l@vietnam\@undefined
    \@nopatterns{Vietnamese}
    \adddialect\l@vietnamese 0
    \adddialect\l@vietnam 0
  \else
    \chardef\l@vietnamese\l@vietnam
  \fi
\else
  \ifx\l@vietnam\@undefined
    \chardef\l@vietnam\l@vietnamese
  \fi
\fi
\@ifpackageloaded{ucs}{%
  \PreloadUnicodePage{0}%
  \PreloadUnicodePage{1}%
  \PreloadUnicodePage{30}%
  \ifx\UnicodeCharFilter\@undefined
    \UCSProtectionIeC
  \else
    \UnicodeCharFilter\IeC
  \fi}{}
\def\vn@@tempa{%
  \@expandtwoargs\in@{,noencoding,}{,\BabelModifiers,}%
  \ifin@\else
    \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 install the VnTeX package^^J
         to get a suitable `t5enc.def' file}
       \@@end}%
    \@ifpackageloaded{inputenc}{}%
      {\PackageWarning{babel}{No input encoding specified for
      Vietnamese}}%
  \fi
  \DeclareRobustCommand{\viettext}{%
    \fontencoding{T5}\selectfont
    \def\encodingdefault{T5}}%
  \let\viet\viettext
  \DeclareTextFontCommand{\textviet}{\viet}}
\StartBabelCommands*{vietnamese,vietnam}{captions}
  [unicode, charset=utf8, fontenc=EU1 EU2]
  \SetString{\prefacename}{Lời nói đầu}
  \SetString{\refname}{Tài liệu}
  \SetString{\abstractname}{Tóm tắt nội dung}
  \SetString{\bibname}{Tài liệu tham khảo}
  \SetString{\chaptername}{Chương}
  \SetString{\appendixname}{Phụ lục}
  \SetString{\contentsname}{Mục lục}
  \SetString{\listfigurename}{Danh sách hình vẽ}
  \SetString{\listtablename}{Danh sách bảng}
  \SetString{\indexname}{Chỉ mục}
  \SetString{\figurename}{Hình}
  \SetString{\tablename}{Bảng}
  \SetString{\partname}{Phần}
  \SetString{\enclname}{Kèm theo}
  \SetString{\ccname}{Cùng gửi}
  \SetString{\headtoname}{Gửi}
  \SetString{\pagename}{Trang}
  \SetString{\seename}{Xem}
  \SetString{\alsoname}{Xem thổm}
  \SetString{\proofname}{Chứng minh}
  \SetString{\glossaryname}{Từ điển chú giải}

\StartBabelCommands*{vietnamese,vietnam}{date}
  [unicode, charset=utf8, fontenc=EU1 EU2]
  \SetString\today{Ngày \number\day\space
    tháng \number\month\space
    năm \number\year}

\AfterBabelCommands{%
  \def\vn@@tempa{%
    \DeclareRobustCommand{\viettext}{}%
    \let\viet\viettext
    \DeclareTextFontCommand{\textviet}{\viet}%
    \@expandtwoargs\in@{,licr,}{,\BabelModifiers,}%
    \ifin@
      \input{uvnenc}%
    \fi}}
\StartBabelCommands*{vietnamese,vietnam}{captions}
  \SetString{\prefacename}{L\`\ohorn i n\'oi \dj\`\acircumflex u}%
  \SetString{\refname}{T\`ai li\d\ecircumflex u}%
  \SetString{\abstractname}{T\'om t\'\abreve t n\d\ocircumflex i dung}%
  \SetString{\bibname}{T\`ai li\d\ecircumflex u tham kh\h{a}o}%
  \SetString{\chaptername}{Ch\uhorn \ohorn ng}%
  \SetString{\appendixname}{Ph\d{u} l\d{u}c}%
  \SetString{\contentsname}{M\d{u}c l\d{u}c}%
  \SetString{\listfigurename}{Danh s\'ach h\`inh v\~e}%
  \SetString{\listtablename}{Danh s\'ach b\h{a}ng}%
  \SetString{\indexname}{Ch\h{i} m\d{u}c}%
  \SetString{\figurename}{H\`inh}%
  \SetString{\tablename}{B\h{a}ng}%
  \SetString{\partname}{Ph\`\acircumflex n}%
  \SetString{\pagename}{Trang}%
  \SetString{\headpagename}{Trang}%
  \SetString{\seename}{Xem}%
  \SetString{\alsoname}{Xem th\ecircumflex m}%
  \SetString{\enclname}{K\`em theo}%
  \SetString{\ccname}{C\`ung g\h\uhorn i}%
  \SetString{\headtoname}{G\h\uhorn i}%
  \SetString{\proofname}{Ch\'\uhorn ng minh}%
  \SetString{\glossaryname}{T\`\uhorn{} \dj i\h\ecircumflex n ch\'u gi\h ai}

\StartBabelCommands*{vietnamese,vietnam}{date}
  \SetString\today{Ng\`ay \number\day\space
    th\'ang \number\month\space
    n\abreve m \number\year}

\EndBabelCommands
\vn@@tempa
\initiate@active@char{"}
\declare@shorthand{\CurrentOption}{"-}{\bbl@hy@soft}
\declare@shorthand{\CurrentOption}{"=}{\bbl@hy@hard}
\declare@shorthand{\CurrentOption}{"|}{\discretionary{-}{}{kern.03em}}
\expandafter\addto\csname extras\CurrentOption\endcsname{%
  \viettext
  \bbl@frenchspacing
  \languageshorthands{vietnamese}%
  \bbl@activate{"}}
\expandafter\addto\csname noextras\CurrentOption\endcsname{%
  \latintext
  \bbl@nonfrenchspacing
  \bbl@deactivate{"}}
\ldf@finish{\CurrentOption}
\endinput
%%
%% End of file `vietnamese.ldf'.