diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/polyglossia/gloss-bahasam.ldf')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/polyglossia/gloss-bahasam.ldf | 64 |
1 files changed, 22 insertions, 42 deletions
diff --git a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-bahasam.ldf b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-bahasam.ldf index 678907a74ca..cd816eb24cd 100644 --- a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-bahasam.ldf +++ b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-bahasam.ldf @@ -1,49 +1,24 @@ \ProvidesFile{gloss-bahasam.ldf}[polyglossia: module for bahasa melayu] \RequirePackage{hijrical} \makeatletter -\def\bahasam@font{\selectfontfamilylatin} - -\ifx\l@malay\@undefined - \ifx\l@meyalu\@undefined - \ifx\l@bahasam\@undefined - \ifx\l@bahasa\@undefined - \ifx\l@bahasai\@undefined - \ifx\l@indon\@undefined - \ifx\l@indonesian\@undefined - \xpg@nopatterns{Bahasa Melayu}% - \adddialect\l@malay\l@nohyphenation\relax - \else - \let\l@malay\l@indonesian - \fi - \else - \let\l@malay\l@indon - \fi - \else - \let\l@malay\l@bahasai - \fi - \else - \let\l@malay\l@bahasa - \fi - \else - \let\l@malay\l@bahasam - \fi - \else - \let\l@malay\l@meyalu - \fi -\fi +\PolyglossiaSetup{bahasam}{% + language=Bahasa Melayu, + hyphennames={malay,melayu,bahasam,bahasa,bahasai,indonesian,indon}, + hyphenmins={2,2}, + fontsetup=true} \def\captionsbahasam{% - \def\refname{Pustaka}% - \def\abstractname{Ringkasan}% + \def\refname{Rujukan}% + \def\abstractname{Abstrak}% \def\bibname{Bibliografi}% \def\prefacename{Pendahuluan}% \def\chaptername{Bab}% \def\appendixname{Lampiran}% \def\contentsname{Kandungan}% - \def\listfigurename{Senarai Gambar}% + \def\listfigurename{Senarai Rajah}% \def\listtablename{Senarai Jadual}% \def\indexname{Indeks}% - \def\figurename{Gambar}% + \def\figurename{Rajah}% \def\tablename{Jadual}% \def\thepart{}% \def\partname{Bahagian}% @@ -51,14 +26,23 @@ \def\seename{lihat}% \def\alsoname{lihat juga}% \def\enclname{Lampiran}% - \def\ccname{cc}% + \def\ccname{salinan kpd}% \def\headtoname{Kepada}% \def\proofname{Bukti}% - \def\glossaryname{Istilah}% + \def\glossaryname{Senarai Istilah}% } \def\datebahasam{% - \def\today{\number\day~\ifcase\month\or - Januari\or Pebruari\or Mac\or April\or Mei\or Jun\or + \def\bahasam@day{% + \ifcase\day\or% + 1hb\or 2hb\or 3hb\or 4hb\or 5hb\or% + 6hb\or 7hb\or 8hb\or 9hb\or 10hb\or% + 11hb\or 12hb\or 13hb\or 14hb\or 15hb\or% + 16hb\or 17hb\or 18hb\or 19hb\or 20hb\or% + 21hb\or 22hb\or 23hb\or 24hb\or 25hb\or% + 26hb\or 27hb\or 28hb\or 29hb\or 30hb\or% + 31hb\fi}% + \def\today{\bahasam@day~\ifcase\month\or + Januari\or Februari\or Mac\or April\or Mei\or Jun\or Julai\or Ogos\or September\or Oktober\or November\or Disember\fi \space \number\year}} @@ -68,8 +52,4 @@ \DefineFormatHijriDate{bahasam}{% \number\value{Hijriday}\space\hijrimonthbahasam{\value{Hijrimonth}}\space\number\value{Hijriyear}} -\def\bahasam@language{\language=\l@malay} - -\setlocalhyphenmins{bahasam}{2}{2} - \endinput |