summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/polyglossia/gloss-vietnamese.ldf
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/polyglossia/gloss-vietnamese.ldf')
-rw-r--r--Master/texmf-dist/tex/xelatex/polyglossia/gloss-vietnamese.ldf84
1 files changed, 32 insertions, 52 deletions
diff --git a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-vietnamese.ldf b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-vietnamese.ldf
index 26c7728a9d0..ac6bcc0f9a2 100644
--- a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-vietnamese.ldf
+++ b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-vietnamese.ldf
@@ -1,63 +1,43 @@
\ProvidesFile{gloss-vietnamese.ldf}[polyglossia: module for vietnamese]
%% Strings contributed by Daniel Owens < dhowens . pmbx . net >
-\makeatletter
-\def\vietnamese@font{%
-\font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt
-\@ifundefined{vietnamesefont}{%
- \zf@check@ot@lang{VIT}%
- \if@tempswa\addfontfeature{Language=Vietnamese}\fi}
- {\vietnamesefont}%
-}%
-
-\ifx\l@vietnamese\@undefined%
- \xpg@nopatterns{Vietnamese}%
- \adddialect\l@vietnamese\l@nohyphenation%
-\fi
+\PolyglossiaSetup{vietnamese}{
+ hyphennames={vietnamese},
+ hyphenmins={2,2},
+ langtag=VIT,
+ frenchspacing=true,
+ fontsetup=true,
+}
\def\captionsvietnamese{%
- \def\refname{Tài liệu}%
- \def\abstractname{Tóm tắt nội dung}%
- \def\bibname{Tài liệu tham khảo}%
- \def\prefacename{Lời nói đầu}%
- \def\chaptername{Chương}%
- \def\appendixname{Phụ lục}%
- \def\contentsname{Mục lục}%
- \def\listfigurename{Danh sách hình vẽ}%
- \def\listtablename{Danh sách bẳng}%
- \def\indexname{Chỉ mục}%
- \def\figurename{Hình}%
- \def\tablename{Bẳng}%
- \def\partname{Phần}%
- \def\pagename{Trang}%
- \def\seename{Xem}%
- \def\alsoname{Xem thêm}%
- \def\enclname{Kèm theo}%
- \def\ccname{Cùng gửi}%
- \def\headtoname{Gửi}%
- \def\proofname{Chứng minh}%
- \def\glossaryname{Từ điển chú giải}%
- }
+ \def\refname{Tài liệu}%
+ \def\abstractname{Tóm tắt nội dung}%
+ \def\bibname{Tài liệu tham khảo}%
+ \def\prefacename{Lời nói đầu}%
+ \def\chaptername{Chương}%
+ \def\appendixname{Phụ lục}%
+ \def\contentsname{Mục lục}%
+ \def\listfigurename{Danh sách hình vẽ}%
+ \def\listtablename{Danh sách bẳng}%
+ \def\indexname{Chỉ mục}%
+ \def\figurename{Hình}%
+ \def\tablename{Bẳng}%
+ \def\partname{Phần}%
+ \def\pagename{Trang}%
+ \def\seename{Xem}%
+ \def\alsoname{Xem thêm}%
+ \def\enclname{Kèm theo}%
+ \def\ccname{Cùng gửi}%
+ \def\headtoname{Gửi}%
+ \def\proofname{Chứng minh}%
+ \def\glossaryname{Từ điển chú giải}%
+ }
+
\def\datevietnamese{%
- \def\today{%
+ \def\today{%
Ngày \number\day\space
tháng \number\month\space
năm \number\year}%
- }
-
-\def\vietnamese@language{\language=\l@vietnamese}
-
-\setlocalhyphenmins{vietnamese}{2}{2}%
+ }
-\def\noextras@vietnamese{%
- \nonfrenchspacing%
-}
-
-\def\blockextras@vietnamese{%
- \frenchspacing%
-}
-
-\def\inlineextras@vietnamese{%
- \frenchspacing%
-}
\endinput