diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/thailatex/babel')
17 files changed, 1791 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/thailatex/babel/Makefile.am b/Master/texmf-dist/source/latex/thailatex/babel/Makefile.am new file mode 100644 index 00000000000..8aa92d3523a --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/Makefile.am @@ -0,0 +1,34 @@ +BABEL_COMMON = thai.sty thswitch.sty lthenc.def \ + lthkinnari.fd lthgaruda.fd lthnorasi.fd \ + lthttype.fd lthttypist.fd \ + lthpurisa.fd lthloma.fd \ + lthwaree.fd lthumpush.fd \ + lthsawasdee.fd + +BABEL_SRC = thai.dtx thai.ins $(BABEL_COMMON) +BABEL_INS = thai.ldf $(BABEL_COMMON) +BABEL_DOCS = thai.pdf + +EXTRA_DIST = $(BABEL_SRC) +CLEANFILES = thai.log thai.aux thai.ldf thai.pdf + +babeldir = $(texmfdir)/tex/generic/babel +babel_DATA = $(BABEL_INS) + +doc_DATA = $(BABEL_DOCS) + +thai.ldf: thai.ins thai.dtx + if [ ! -f thai.ins ]; then \ + $(LN_S) $(srcdir)/thai.ins thai.ins; \ + fi + if [ ! -f thai.dtx ]; then \ + $(LN_S) $(srcdir)/thai.dtx thai.dtx; \ + fi + latex thai.ins + +thai.pdf: thai.dtx + if [ ! -f thai.dtx ]; then \ + $(LN_S) $(srcdir)/thai.dtx thai.dtx; \ + fi + pdflatex thai.dtx + diff --git a/Master/texmf-dist/source/latex/thailatex/babel/Makefile.in b/Master/texmf-dist/source/latex/thailatex/babel/Makefile.in new file mode 100644 index 00000000000..94ebdb2a49d --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/Makefile.in @@ -0,0 +1,413 @@ +# Makefile.in generated by automake 1.11 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +subdir = babel +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__installdirs = "$(DESTDIR)$(babeldir)" "$(DESTDIR)$(docdir)" +DATA = $(babel_DATA) $(doc_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AFM2TFM = @AFM2TFM@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CTTEX = @CTTEX@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DVIPS = @DVIPS@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LATEX = @LATEX@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PF2AFM = @PF2AFM@ +PS2PDF = @PS2PDF@ +RMDIR = @RMDIR@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +SWATH = @SWATH@ +TEXHASH = @TEXHASH@ +UPDMAP = @UPDMAP@ +VERSION = @VERSION@ +VPTOVF = @VPTOVF@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +am__leading_dot = @am__leading_dot@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build_alias = @build_alias@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +emacsdir = @emacsdir@ +exec_prefix = @exec_prefix@ +host_alias = @host_alias@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +texmfdir = @texmfdir@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +BABEL_COMMON = thai.sty thswitch.sty lthenc.def \ + lthkinnari.fd lthgaruda.fd lthnorasi.fd \ + lthttype.fd lthttypist.fd \ + lthpurisa.fd lthloma.fd \ + lthwaree.fd lthumpush.fd \ + lthsawasdee.fd + +BABEL_SRC = thai.dtx thai.ins $(BABEL_COMMON) +BABEL_INS = thai.ldf $(BABEL_COMMON) +BABEL_DOCS = thai.pdf +EXTRA_DIST = $(BABEL_SRC) +CLEANFILES = thai.log thai.aux thai.ldf thai.pdf +babeldir = $(texmfdir)/tex/generic/babel +babel_DATA = $(BABEL_INS) +doc_DATA = $(BABEL_DOCS) +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu babel/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu babel/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +install-babelDATA: $(babel_DATA) + @$(NORMAL_INSTALL) + test -z "$(babeldir)" || $(MKDIR_P) "$(DESTDIR)$(babeldir)" + @list='$(babel_DATA)'; test -n "$(babeldir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(babeldir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(babeldir)" || exit $$?; \ + done + +uninstall-babelDATA: + @$(NORMAL_UNINSTALL) + @list='$(babel_DATA)'; test -n "$(babeldir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(babeldir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(babeldir)" && rm -f $$files +install-docDATA: $(doc_DATA) + @$(NORMAL_INSTALL) + test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)" + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \ + done + +uninstall-docDATA: + @$(NORMAL_UNINSTALL) + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(docdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(docdir)" && rm -f $$files +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + for dir in "$(DESTDIR)$(babeldir)" "$(DESTDIR)$(docdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-babelDATA install-docDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-babelDATA uninstall-docDATA + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic distclean \ + distclean-generic distdir dvi dvi-am html html-am info info-am \ + install install-am install-babelDATA install-data \ + install-data-am install-docDATA install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am uninstall uninstall-am uninstall-babelDATA \ + uninstall-docDATA + + +thai.ldf: thai.ins thai.dtx + if [ ! -f thai.ins ]; then \ + $(LN_S) $(srcdir)/thai.ins thai.ins; \ + fi + if [ ! -f thai.dtx ]; then \ + $(LN_S) $(srcdir)/thai.dtx thai.dtx; \ + fi + latex thai.ins + +thai.pdf: thai.dtx + if [ ! -f thai.dtx ]; then \ + $(LN_S) $(srcdir)/thai.dtx thai.dtx; \ + fi + pdflatex thai.dtx + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/Master/texmf-dist/source/latex/thailatex/babel/lthenc.def b/Master/texmf-dist/source/latex/thailatex/babel/lthenc.def new file mode 100644 index 00000000000..c29d3a25228 --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/lthenc.def @@ -0,0 +1,130 @@ +%% This file is part of the thailatex package +%% Created by Surapant Meknavin: surapan@nectec.or.th +%% 2004/06/14 Theppitak Karoonboonyanan <thep@linux.thai.net> +%% - guard against recursive assignments of \ltxTeX and \ltxLaTeX +%% (Reported by donzakh) +%% 2002/04/21 Theppitak Karoonboonyanan <thep@linux.thai.net> +%% - add special shape declarations e.g. \textquoteleft +%% 2000/05/10 Theppitak Karoonboonyanan <thep@links.nectec.or.th> +%% - encoding changed from TIS to LTH, according to TeX convention + +\ProvidesFile{LTHenc.def} + [2000/05/10 v1.1 + Thai Encoding] +\DeclareFontEncoding{LTH}{}{} +\DeclareFontSubstitution{LTH}{norasi}{m}{n} +\DeclareErrorFont{LTH}{norasi}{m}{n}{10} +\ifx\ltxTeX\undefined\let\ltxTeX\TeX\fi +\DeclareTextCommandDefault{\TeX}{\textlatin{\ltxTeX}} +\ifx\ltxLaTeX\undefined\let\ltxLaTeX\LaTeX\fi +\DeclareTextCommandDefault{\LaTeX}{\textlatin{\ltxLaTeX}} +\ProvideTextCommand{\copyright}{LTH}{% + \textcircled{\textlatin{c}}} +\ProvideTextCommand{\textregistered}{LTH}{% + \textcircled{\textlatin{\textsc r}}} +\ProvideTextCommand{\textrademark}{LTH}{% + \textsuperscript{\textlatin{TM}}} +\ProvideTextCommand{\SS}{LTH}{% + \textlatin{SS}} +\DeclareTextSymbol{\textquoteleft}{LTH}{145} +\DeclareTextSymbol{\textquoteright}{LTH}{146} +\DeclareTextSymbol{\textquotedblleft}{LTH}{147} +\DeclareTextSymbol{\textquotedblright}{LTH}{148} +\DeclareTextSymbol{\textbullet}{LTH}{149} +\DeclareTextSymbol{\textendash}{LTH}{150} +\DeclareTextSymbol{\textemdash}{LTH}{151} +\DeclareTextSymbol{\textyamakkan}{LTH}{238} +\DeclareTextSymbol{\textfongmun}{LTH}{239} +\DeclareTextSymbol{\textangkhankhu}{LTH}{250} +\DeclareTextSymbol{\textkhomut}{LTH}{251} +% UCS support +\DeclareTextSymbol{\thaiKoKai}{LTH}{161} +\DeclareTextSymbol{\thaiKhoKhai}{LTH}{162} +\DeclareTextSymbol{\thaiKhoKhuat}{LTH}{163} +\DeclareTextSymbol{\thaiKhoKhwai}{LTH}{164} +\DeclareTextSymbol{\thaiKhoKhon}{LTH}{165} +\DeclareTextSymbol{\thaiKhoRakhang}{LTH}{166} +\DeclareTextSymbol{\thaiNgoNgu}{LTH}{167} +\DeclareTextSymbol{\thaiChoChan}{LTH}{168} +\DeclareTextSymbol{\thaiChoChing}{LTH}{169} +\DeclareTextSymbol{\thaiChoChang}{LTH}{170} +\DeclareTextSymbol{\thaiSoSo}{LTH}{171} +\DeclareTextSymbol{\thaiChoChoe}{LTH}{172} +\DeclareTextSymbol{\thaiYoYing}{LTH}{173} +\DeclareTextSymbol{\thaiDoChada}{LTH}{174} +\DeclareTextSymbol{\thaiToPatak}{LTH}{175} +\DeclareTextSymbol{\thaiThoThan}{LTH}{176} +\DeclareTextSymbol{\thaiThoNangmontho}{LTH}{177} +\DeclareTextSymbol{\thaiThoPhuthao}{LTH}{178} +\DeclareTextSymbol{\thaiNoNen}{LTH}{179} +\DeclareTextSymbol{\thaiDoDek}{LTH}{180} +\DeclareTextSymbol{\thaiToTao}{LTH}{181} +\DeclareTextSymbol{\thaiThoThung}{LTH}{182} +\DeclareTextSymbol{\thaiThoThahan}{LTH}{183} +\DeclareTextSymbol{\thaiThoThong}{LTH}{184} +\DeclareTextSymbol{\thaiNoNu}{LTH}{185} +\DeclareTextSymbol{\thaiBoBaimai}{LTH}{186} +\DeclareTextSymbol{\thaiPoPla}{LTH}{187} +\DeclareTextSymbol{\thaiPhoPhung}{LTH}{188} +\DeclareTextSymbol{\thaiFoFa}{LTH}{189} +\DeclareTextSymbol{\thaiPhoPhan}{LTH}{190} +\DeclareTextSymbol{\thaiFoFan}{LTH}{191} +\DeclareTextSymbol{\thaiPhoSamphao}{LTH}{192} +\DeclareTextSymbol{\thaiMoMa}{LTH}{193} +\DeclareTextSymbol{\thaiYoYak}{LTH}{194} +\DeclareTextSymbol{\thaiRoRua}{LTH}{195} +\DeclareTextSymbol{\thaiRu}{LTH}{196} +\DeclareTextSymbol{\thaiLoLing}{LTH}{197} +\DeclareTextSymbol{\thaiLu}{LTH}{198} +\DeclareTextSymbol{\thaiWoWaen}{LTH}{199} +\DeclareTextSymbol{\thaiSoSala}{LTH}{200} +\DeclareTextSymbol{\thaiSoRusi}{LTH}{201} +\DeclareTextSymbol{\thaiSoSua}{LTH}{202} +\DeclareTextSymbol{\thaiHoHip}{LTH}{203} +\DeclareTextSymbol{\thaiLoChula}{LTH}{204} +\DeclareTextSymbol{\thaiOAng}{LTH}{205} +\DeclareTextSymbol{\thaiHoNokhuk}{LTH}{206} +\DeclareTextSymbol{\thaiPaiyannoi}{LTH}{207} +\DeclareTextSymbol{\thaiSaraA}{LTH}{208} +\DeclareTextSymbol{\thaiMaiHanakat}{LTH}{209} +\DeclareTextSymbol{\thaiSaraAa}{LTH}{210} +\DeclareTextSymbol{\thaiSaraAm}{LTH}{211} +\DeclareTextSymbol{\thaiSaraI}{LTH}{212} +\DeclareTextSymbol{\thaiSaraIi}{LTH}{213} +\DeclareTextSymbol{\thaiSaraUe}{LTH}{214} +\DeclareTextSymbol{\thaiSaraUee}{LTH}{215} +\DeclareTextSymbol{\thaiSaraU}{LTH}{216} +\DeclareTextSymbol{\thaiSaraUu}{LTH}{217} +\DeclareTextSymbol{\thaiPhinthu}{LTH}{218} +\DeclareTextSymbol{\textbaht}{LTH}{223} +\DeclareTextSymbol{\thaiSaraE}{LTH}{224} +\DeclareTextSymbol{\thaiSaraAe}{LTH}{225} +\DeclareTextSymbol{\thaiSaraO}{LTH}{226} +\DeclareTextSymbol{\thaiSaraAiMaimuan}{LTH}{227} +\DeclareTextSymbol{\thaiSaraAiMaimalai}{LTH}{228} +\DeclareTextSymbol{\thaiLakkhangyao}{LTH}{229} +\DeclareTextSymbol{\thaiMaiyamok}{LTH}{230} +\DeclareTextSymbol{\thaiMaitaikhu}{LTH}{231} +\DeclareTextSymbol{\thaiMaiEk}{LTH}{232} +\DeclareTextSymbol{\thaiMaiTho}{LTH}{233} +\DeclareTextSymbol{\thaiMaiTri}{LTH}{234} +\DeclareTextSymbol{\thaiMaiChattawa}{LTH}{235} +\DeclareTextSymbol{\thaiThanthakhat}{LTH}{236} +\DeclareTextSymbol{\thaiNikhahit}{LTH}{237} +\DeclareTextSymbol{\thaiYamakkan}{LTH}{238} +\DeclareTextSymbol{\thaiFongman}{LTH}{239} +\DeclareTextSymbol{\thaizero}{LTH}{240} +\DeclareTextSymbol{\thaione}{LTH}{241} +\DeclareTextSymbol{\thaitwo}{LTH}{242} +\DeclareTextSymbol{\thaithree}{LTH}{243} +\DeclareTextSymbol{\thaifour}{LTH}{244} +\DeclareTextSymbol{\thaifive}{LTH}{245} +\DeclareTextSymbol{\thaisix}{LTH}{246} +\DeclareTextSymbol{\thaiseven}{LTH}{247} +\DeclareTextSymbol{\thaieight}{LTH}{248} +\DeclareTextSymbol{\thainine}{LTH}{249} +\DeclareTextSymbol{\thaiAngkhankhu}{LTH}{250} +\DeclareTextSymbol{\thaiKhomut}{LTH}{251} +\endinput +%% +%% End of file `LTHenc.def'. diff --git a/Master/texmf-dist/source/latex/thailatex/babel/lthgaruda.fd b/Master/texmf-dist/source/latex/thailatex/babel/lthgaruda.fd new file mode 100644 index 00000000000..454b92abbde --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/lthgaruda.fd @@ -0,0 +1,34 @@ +% lthgaruda.fd +% +% This file is part of the thailatex package +% Created by Surapant Meknavin: surapan@nectec.or.th +% 2003/06/02 Chanop Silpa-Anan <chanop@debian.org> +% - update using basic slant font +% 2002/12/30 Poonlap Veerathanabutr <poonlap@linux.thai.net> +% - adapted from lthnorasi.fd for Garuda font. +% 2000/05/09 Theppitak Karoonboonyanan <thep@links.nectec.or.th> +% - font name changed from "nf3x" to "norasi", with bold series added +% - encoding changed from TIS to LTH, according TeX convention + +\ProvidesFile{lthgaruda.fd}[2002/12/30 v1.0 Thai font definitions] + +% Primary declarations +\DeclareFontFamily{LTH}{garuda}{} +\DeclareFontShape{LTH}{garuda}{m}{n}{<->s * garuda}{} +\DeclareFontShape{LTH}{garuda}{m}{sl}{<->s * garuda_o}{} +%%%%%%% bold series +\DeclareFontShape{LTH}{garuda}{b}{n}{<->s * garuda_b}{} +\DeclareFontShape{LTH}{garuda}{b}{sl}{<->s * garuda_bo}{} + +% Substitutions +\DeclareFontShape{LTH}{garuda}{m}{it}{<->ssub * garuda/m/sl}{} +\DeclareFontShape{LTH}{garuda}{b}{it}{<->ssub * garuda/b/sl}{} + +\DeclareFontShape{LTH}{garuda}{bx}{n}{<->ssub * garuda/b/n}{} +\DeclareFontShape{LTH}{garuda}{bx}{sl}{<->ssub * garuda/b/sl}{} +\DeclareFontShape{LTH}{garuda}{bx}{it}{<->ssub * garuda/b/sl}{} +\endinput + +% +% EOF +% diff --git a/Master/texmf-dist/source/latex/thailatex/babel/lthkinnari.fd b/Master/texmf-dist/source/latex/thailatex/babel/lthkinnari.fd new file mode 100644 index 00000000000..3a226ebc8dd --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/lthkinnari.fd @@ -0,0 +1,29 @@ +% lthkinnari.fd +% +% This file is part of the thailatex package +% 2005/01/24 Theppitak Karoonboonyanan <thep@linux.thai.net> +% - italic shape added for medium and bold face series +% 2004/02/05 Poonlap Veerathanabutr <poonlap@linux.thai.net> +% - first release (based on lthgaruda.fd) + +\ProvidesFile{lthkinnari.fd}[2004/02/05 v1.0 Thai font definitions] + +% Primary declarations +\DeclareFontFamily{LTH}{kinnari}{} +\DeclareFontShape{LTH}{kinnari}{m}{n}{<->s * kinnari}{} +\DeclareFontShape{LTH}{kinnari}{m}{it}{<->s * kinnari_i}{} +\DeclareFontShape{LTH}{kinnari}{m}{sl}{<->s * kinnari_o}{} +%%%%%%% bold series +\DeclareFontShape{LTH}{kinnari}{b}{n}{<->s * kinnari_b}{} +\DeclareFontShape{LTH}{kinnari}{b}{it}{<->s * kinnari_bi}{} +\DeclareFontShape{LTH}{kinnari}{b}{sl}{<->s * kinnari_bo}{} + +% Substitutions +\DeclareFontShape{LTH}{kinnari}{bx}{n}{<->ssub * kinnari/b/n}{} +\DeclareFontShape{LTH}{kinnari}{bx}{sl}{<->ssub * kinnari/b/sl}{} +\DeclareFontShape{LTH}{kinnari}{bx}{it}{<->ssub * kinnari/b/it}{} +\endinput + +% +% EOF +% diff --git a/Master/texmf-dist/source/latex/thailatex/babel/lthloma.fd b/Master/texmf-dist/source/latex/thailatex/babel/lthloma.fd new file mode 100644 index 00000000000..b4e096e30ac --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/lthloma.fd @@ -0,0 +1,28 @@ +% lthloma.fd +% +% This file is part of the thailatex package +% 2006/03/26 Theppitak Karoonboonyanan <thep@linux.thai.net> +% - first version based on lthloma.fd + +\ProvidesFile{lthloma.fd}[2006/03/26 v1.0 Thai font definitions] + +% Primary declarations +\DeclareFontFamily{LTH}{loma}{} +\DeclareFontShape{LTH}{loma}{m}{n}{<->s * loma}{} +\DeclareFontShape{LTH}{loma}{m}{sl}{<->s * loma_o}{} +%%%%%%% bold series +\DeclareFontShape{LTH}{loma}{b}{n}{<->s * loma_b}{} +\DeclareFontShape{LTH}{loma}{b}{sl}{<->s * loma_bo}{} + +% Substitutions +\DeclareFontShape{LTH}{loma}{m}{it}{<->ssub * loma/m/sl}{} +\DeclareFontShape{LTH}{loma}{b}{it}{<->ssub * loma/b/sl}{} + +\DeclareFontShape{LTH}{loma}{bx}{n}{<->ssub * loma/b/n}{} +\DeclareFontShape{LTH}{loma}{bx}{sl}{<->ssub * loma/b/sl}{} +\DeclareFontShape{LTH}{loma}{bx}{it}{<->ssub * loma/b/sl}{} +\endinput + +% +% EOF +% diff --git a/Master/texmf-dist/source/latex/thailatex/babel/lthnorasi.fd b/Master/texmf-dist/source/latex/thailatex/babel/lthnorasi.fd new file mode 100644 index 00000000000..cd0e3d1f458 --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/lthnorasi.fd @@ -0,0 +1,31 @@ +% lthnorasi.fd +% +% This file is part of the thailatex package +% Created by Surapant Meknavin: surapan@nectec.or.th +% 2003/06/02 Chanop Silpa-Anan <chanop@debian.org> +% - update using basic slant font +% 2000/05/09 Theppitak Karoonboonyanan <thep@links.nectec.or.th> +% - font name changed from "nf3x" to "norasi", with bold series added +% - encoding changed from TIS to LTH, according TeX convention + +\ProvidesFile{lthnorasi.fd}[2000/05/09 v1.0 Thai font definitions] + +% Primary declarations +\DeclareFontFamily{LTH}{norasi}{} +\DeclareFontShape{LTH}{norasi}{m}{n}{<->s * norasi}{} +\DeclareFontShape{LTH}{norasi}{m}{it}{<->s * norasi_i}{} +\DeclareFontShape{LTH}{norasi}{m}{sl}{<->s * norasi_o}{} +%%%%%%% bold series +\DeclareFontShape{LTH}{norasi}{b}{n}{<->s * norasi_b}{} +\DeclareFontShape{LTH}{norasi}{b}{it}{<->s * norasi_bi}{} +\DeclareFontShape{LTH}{norasi}{b}{sl}{<->s * norasi_bo}{} + +% Substitutions +\DeclareFontShape{LTH}{norasi}{bx}{n}{<->ssub * norasi/b/n}{} +\DeclareFontShape{LTH}{norasi}{bx}{sl}{<->ssub * norasi/b/sl}{} +\DeclareFontShape{LTH}{norasi}{bx}{it}{<->ssub * norasi/b/it}{} +\endinput + +% +% EOF +% diff --git a/Master/texmf-dist/source/latex/thailatex/babel/lthpurisa.fd b/Master/texmf-dist/source/latex/thailatex/babel/lthpurisa.fd new file mode 100644 index 00000000000..67a44419dde --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/lthpurisa.fd @@ -0,0 +1,28 @@ +% lthpurisa.fd +% +% This file is part of the thailatex package +% 2004/02/05 Poonlap Veerathanabutr <poonlap@linux.thai.net> +% - first release (based on lthgaruda.fd) + +\ProvidesFile{lthpurisa.fd}[2004/02/05 v1.0 Thai font definitions] + +% Primary declarations +\DeclareFontFamily{LTH}{purisa}{} +\DeclareFontShape{LTH}{purisa}{m}{n}{<->s * purisa}{} +\DeclareFontShape{LTH}{purisa}{m}{sl}{<->s * purisa_o}{} +%%%%%%% bold series +\DeclareFontShape{LTH}{purisa}{b}{n}{<->s * purisa_b}{} +\DeclareFontShape{LTH}{purisa}{b}{sl}{<->s * purisa_bo}{} + +% Substitutions +\DeclareFontShape{LTH}{purisa}{m}{it}{<->ssub * purisa/m/sl}{} +\DeclareFontShape{LTH}{purisa}{b}{it}{<->ssub * purisa/b/sl}{} + +\DeclareFontShape{LTH}{purisa}{bx}{n}{<->ssub * purisa/b/n}{} +\DeclareFontShape{LTH}{purisa}{bx}{sl}{<->ssub * purisa/b/sl}{} +\DeclareFontShape{LTH}{purisa}{bx}{it}{<->ssub * purisa/b/sl}{} +\endinput + +% +% EOF +% diff --git a/Master/texmf-dist/source/latex/thailatex/babel/lthsawasdee.fd b/Master/texmf-dist/source/latex/thailatex/babel/lthsawasdee.fd new file mode 100644 index 00000000000..07a9b6cea78 --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/lthsawasdee.fd @@ -0,0 +1,28 @@ +% lthsawasdee.fd +% +% This file is part of the thailatex package +% 2008/01/21 Theppitak Karoonboonyanan <thep@linux.thai.net> +% - first version + +\ProvidesFile{lthsawasdee.fd}[2008/01/21 v1.0 Thai font definitions] + +% Primary declarations +\DeclareFontFamily{LTH}{sawasdee}{} +\DeclareFontShape{LTH}{sawasdee}{m}{n}{<->s * sawasdee}{} +\DeclareFontShape{LTH}{sawasdee}{m}{sl}{<->s * sawasdee_o}{} +%%%%%%% bold series +\DeclareFontShape{LTH}{sawasdee}{b}{n}{<->s * sawasdee_b}{} +\DeclareFontShape{LTH}{sawasdee}{b}{sl}{<->s * sawasdee_bo}{} + +% Substitutions +\DeclareFontShape{LTH}{sawasdee}{m}{it}{<->ssub * sawasdee/m/sl}{} +\DeclareFontShape{LTH}{sawasdee}{b}{it}{<->ssub * sawasdee/b/sl}{} + +\DeclareFontShape{LTH}{sawasdee}{bx}{n}{<->ssub * sawasdee/b/n}{} +\DeclareFontShape{LTH}{sawasdee}{bx}{sl}{<->ssub * sawasdee/b/sl}{} +\DeclareFontShape{LTH}{sawasdee}{bx}{it}{<->ssub * sawasdee/b/sl}{} +\endinput + +% +% EOF +% diff --git a/Master/texmf-dist/source/latex/thailatex/babel/lthttype.fd b/Master/texmf-dist/source/latex/thailatex/babel/lthttype.fd new file mode 100644 index 00000000000..fde53fcb434 --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/lthttype.fd @@ -0,0 +1,31 @@ +% lthttype.fd +% +% This file is part of the thailatex package +% 2004/11/15 Theppitak Karoonboonyanan <thep@linux.thai.net> +% - pmono is now ttype (TlwgTypewriter) +% 2004/02/05 Poonlap Veerathanabutr <poonlap@linux.thai.net> +% - first release (based on lthgaruda.fd) +% - pmono is PseudoMono (TlwgMono) font + +\ProvidesFile{lthttype.fd}[2004/02/05 v1.0 Thai font definitions] + +% Primary declarations +\DeclareFontFamily{LTH}{ttype}{} +\DeclareFontShape{LTH}{ttype}{m}{n}{<->s * ttype}{} +\DeclareFontShape{LTH}{ttype}{m}{sl}{<->s * ttype_o}{} +%%%%%%% bold series +\DeclareFontShape{LTH}{ttype}{b}{n}{<->s * ttype_b}{} +\DeclareFontShape{LTH}{ttype}{b}{sl}{<->s * ttype_bo}{} + +% Substitutions +\DeclareFontShape{LTH}{ttype}{m}{it}{<->ssub * ttype/m/sl}{} +\DeclareFontShape{LTH}{ttype}{b}{it}{<->ssub * ttype/b/sl}{} + +\DeclareFontShape{LTH}{ttype}{bx}{n}{<->ssub * ttype/b/n}{} +\DeclareFontShape{LTH}{ttype}{bx}{sl}{<->ssub * ttype/b/sl}{} +\DeclareFontShape{LTH}{ttype}{bx}{it}{<->ssub * ttype/b/sl}{} +\endinput + +% +% EOF +% diff --git a/Master/texmf-dist/source/latex/thailatex/babel/lthttypist.fd b/Master/texmf-dist/source/latex/thailatex/babel/lthttypist.fd new file mode 100644 index 00000000000..4d0012d8ebc --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/lthttypist.fd @@ -0,0 +1,28 @@ +% lthttypist.fd +% +% This file is part of the thailatex package +% 2006/10/23 Theppitak Karoonboonyanan <thep@linux.thai.net> +% - first release (based on lthttypist.fd) + +\ProvidesFile{lthttypist.fd}[2004/02/05 v1.0 Thai font definitions] + +% Primary declarations +\DeclareFontFamily{LTH}{ttypist}{} +\DeclareFontShape{LTH}{ttypist}{m}{n}{<->s * ttypist}{} +\DeclareFontShape{LTH}{ttypist}{m}{sl}{<->s * ttypist_o}{} +%%%%%%% bold series +\DeclareFontShape{LTH}{ttypist}{b}{n}{<->s * ttypist_b}{} +\DeclareFontShape{LTH}{ttypist}{b}{sl}{<->s * ttypist_bo}{} + +% Substitutions +\DeclareFontShape{LTH}{ttypist}{m}{it}{<->ssub * ttypist/m/sl}{} +\DeclareFontShape{LTH}{ttypist}{b}{it}{<->ssub * ttypist/b/sl}{} + +\DeclareFontShape{LTH}{ttypist}{bx}{n}{<->ssub * ttypist/b/n}{} +\DeclareFontShape{LTH}{ttypist}{bx}{sl}{<->ssub * ttypist/b/sl}{} +\DeclareFontShape{LTH}{ttypist}{bx}{it}{<->ssub * ttypist/b/sl}{} +\endinput + +% +% EOF +% diff --git a/Master/texmf-dist/source/latex/thailatex/babel/lthumpush.fd b/Master/texmf-dist/source/latex/thailatex/babel/lthumpush.fd new file mode 100644 index 00000000000..80e2626b37c --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/lthumpush.fd @@ -0,0 +1,28 @@ +% lthumpush.fd +% +% This file is part of the thailatex package +% 2008/01/21 Theppitak Karoonboonyanan <thep@linux.thai.net> +% - first version + +\ProvidesFile{lthumpush.fd}[2008/01/21 v1.0 Thai font definitions] + +% Primary declarations +\DeclareFontFamily{LTH}{umpush}{} +\DeclareFontShape{LTH}{umpush}{m}{n}{<->s * umpush}{} +\DeclareFontShape{LTH}{umpush}{m}{sl}{<->s * umpush_o}{} +%%%%%%% bold series +\DeclareFontShape{LTH}{umpush}{b}{n}{<->s * umpush_b}{} +\DeclareFontShape{LTH}{umpush}{b}{sl}{<->s * umpush_bo}{} + +% Substitutions +\DeclareFontShape{LTH}{umpush}{m}{it}{<->ssub * umpush/m/sl}{} +\DeclareFontShape{LTH}{umpush}{b}{it}{<->ssub * umpush/b/sl}{} + +\DeclareFontShape{LTH}{umpush}{bx}{n}{<->ssub * umpush/b/n}{} +\DeclareFontShape{LTH}{umpush}{bx}{sl}{<->ssub * umpush/b/sl}{} +\DeclareFontShape{LTH}{umpush}{bx}{it}{<->ssub * umpush/b/sl}{} +\endinput + +% +% EOF +% diff --git a/Master/texmf-dist/source/latex/thailatex/babel/lthwaree.fd b/Master/texmf-dist/source/latex/thailatex/babel/lthwaree.fd new file mode 100644 index 00000000000..9cadaaa8468 --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/lthwaree.fd @@ -0,0 +1,28 @@ +% lthwaree.fd +% +% This file is part of the thailatex package +% 2008/01/21 Theppitak Karoonboonyanan <thep@linux.thai.net> +% - first version + +\ProvidesFile{lthwaree.fd}[2008/01/21 v1.0 Thai font definitions] + +% Primary declarations +\DeclareFontFamily{LTH}{waree}{} +\DeclareFontShape{LTH}{waree}{m}{n}{<->s * waree}{} +\DeclareFontShape{LTH}{waree}{m}{sl}{<->s * waree_o}{} +%%%%%%% bold series +\DeclareFontShape{LTH}{waree}{b}{n}{<->s * waree_b}{} +\DeclareFontShape{LTH}{waree}{b}{sl}{<->s * waree_bo}{} + +% Substitutions +\DeclareFontShape{LTH}{waree}{m}{it}{<->ssub * waree/m/sl}{} +\DeclareFontShape{LTH}{waree}{b}{it}{<->ssub * waree/b/sl}{} + +\DeclareFontShape{LTH}{waree}{bx}{n}{<->ssub * waree/b/n}{} +\DeclareFontShape{LTH}{waree}{bx}{sl}{<->ssub * waree/b/sl}{} +\DeclareFontShape{LTH}{waree}{bx}{it}{<->ssub * waree/b/sl}{} +\endinput + +% +% EOF +% diff --git a/Master/texmf-dist/source/latex/thailatex/babel/thai.dtx b/Master/texmf-dist/source/latex/thailatex/babel/thai.dtx new file mode 100644 index 00000000000..00defe494c8 --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/thai.dtx @@ -0,0 +1,742 @@ +% \iffalse meta-comment +% +% Copyright (C) 1999 National Electronics and Computer Technology Center +% (NECTEC), Thailand. All rights reserved. +% +% 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 2005/12/01 or later. +% +% This work has the LPPL maintenance status "maintained". +% +% The Current Maintainer of this work is Theppitak Karoonboonyanan. +% +% This work consists of the files thai.dtx and thai.ins +% and the derived file thai.ldf. +% +% \fi +% \CheckSum{272} +% \iffalse +% Tell the \LaTeX\ system who we are and write an entry on the +% transcript. +%<*dtx> +\ProvidesFile{thai.dtx} +%</dtx> +%<code>\ProvidesLanguage{thai} +%\fi +%\ProvidesFile{thai.dtx} + [2009/07/27 v1.2 Thai support from the babel system] +%\iffalse +%% File `thai.dtx' +%% Thai Language Definition File +%% Copyright (C) 1999 - 2009 +%% by Surapant Meknavin, +%% Theppitak Karoonboonyanan (thep at linux.thai.net), +%% Chanop Silpa-Anan (chanop at debian.org), +%% Poonlap Veerathanabutr (poonlap at linux.thai.net) +%% Thai Linux Working Group +%% http://linux.thai.net/ +%% +%% Please report errors to: Theppitak Karoonboonyanan +%% (thep at linux.thai.net) +%% +%% This file is part of the babel system, it provides the source +%% code for the Thai language definition file. The original version +%% was written by Surapant Meknavin. +%% +%% It is currently maintained by Theppitak Karoonboonyanan +%% (thep at linux.thai.net), Chanop Silpa-Anan (chanop at debian.org) +%% and Poonlap Veerathanabutr (poonlap at linux.thai.net). +% +%<*filedriver> +\documentclass{ltxdoc} +\newcommand*\TeXhax{\TeX hax} +\newcommand*\babel{\textsf{babel}} +\newcommand*\langvar{$\langle \it lang \rangle$} +\newcommand*\note[1]{} +\newcommand*\Lopt[1]{\textsf{#1}} +\newcommand*\file[1]{\texttt{#1}} +\begin{document} + \DocInput{thai.dtx} +\end{document} +%</filedriver> +%\fi +% \GetFileInfo{thai.dtx} +% +% \changes{thai-1.0d}{2000/05/09}{Theppitak Karoonboonyanan: +% Encoding changed from TIS to LTH, according to TeX convention. +% Let `norasi' be Thai roman font, `dbttx' Thai sans serif. +% Correct some Thai translations.} +% \changes{thai-1.0d}{2001/12/04}{Theppitak Karoonboonyanan: +% Add checks for \cs{thechapter} existence before redefining +% digits as Thai. +% Move thaitoday definitions into thainumber and remove +% thainumber option. +% Use \cs{ifcase} instead of nested \cs{if} in \cs{thaitranslate}. +% Fix wrong encoding in heading for book style (as suggested by Chanop).} +% \changes{thai-1.0d}{2001/12/04}{Chanop Silpa-Anan: +% Add thainumber and thaitoday option} +% \changes{thai-1.0d}{2002/01/16}{Theppitak Karoonboonyanan: +% Fix extra spaces appearing in \cs{selectlanguage\{thai\}} +% (as suggested by C. Visavakul)} +% \changes{thai-1.0d}{2003/01/07}{Poonlap Veerathanabutr: +% Change `dbttx' to `dbtt'} +% \changes{thai-1.0d}{2003/02/26}{Theppitak Karoonboonyanan: +% Run Thai number in part, subsubsection, paragraph, +% subparagraph also} +% \changes{thai-1.0d}{2003/06/02}{Chanop Silpa-Anan: +% Use `garuda' for default Thai sans serif since +% `dbtt' is still slightly buggy} +% \changes{thai-1.0d}{2003/08/10}{Theppitak Karoonboonyanan: +% Fix translation of \cs{prefacename}. +% Redefine \cs{frontmatter} and \cs{mainmatter} for book class +% so thainumber option applies to the page numbering styles. +% (Experimental:) Add initialization of Thai character codes +% to fix the \cs{MakeUppercase} and \cs{MakeLowercase} problem +% also comment out the old workarounds.} +% \changes{thai-1.0d}{2004/02/02}{Poonlap Veerathanabutr: +% Fix \cs{lccode} and \cs{uccode}} +% \changes{thai-1.0d}{2004/02/28}{Theppitak Karoonboonyanan: +% Always use Thai alphabets for appendix (as suggested by K. chakkree01)} +% \changes{thai-1.0d}{2004/03/04}{Theppitak Karoonboonyanan: +% Use `pmono' as default Thai ttfamily} +% \changes{thai-1.0d}{2004/03/06}{Theppitak Karoonboonyanan: +% Use `garuda' instead of `dbtt' as default Thai sffamily} +% \changes{thai-1.0d}{2004/03/18}{Theppitak Karoonboonyanan: +% Move \cs{frontmatter} and \cs{mainmatter} redefinition back under +% `thainumber' option (wrongly moved along with previous +% appendix fix)} +% \changes{thai-1.0d}{2004/04/08}{Theppitak Karoonboonyanan: +% Borrow code from previous encoding fix to inhibit capitalizing +% chapters \& sections in book headers. (proposed by P'Joy)} +% \changes{thai-1.0d}{2004/11/15}{Theppitak Karoonboonyanan: +% `pmono' is now `ttype'} +% \changes{thai-1.1}{2006/07/05}{Theppitak Karoonboonyanan: +% Create `thai.dtx' for documenting and generating `thai.ldf'. +% Remove unnecessary workarounds for inhibition of capitalization +% of headers, as the catcodes already do the job. +% Also remove the mysterious redefinitions of figure and table counters.} +% \changes{thai-1.2}{2009/07/27}{Theppitak Karoonboonyanan: +% Re-encode Thai messages with unicode symbolic names, instead of explicit +% TIS-620 bytes. Adjust documentation to cover UTF-8 support. Make +% \cs{ttypist} the default typewriter font instead of \cs{ttype}. +% Drop the obsolete \cs{\backslash{}thai} command.} +% +% \section{The Thai language} +% +% The file \file{\filename}\footnote{The file described in this section has +% version number \fileversion\ and was last revised on \filedate. Contributions +% were made by Theppitak Karoonboonyanan (\texttt{thep@linux.thai.net}).} +% defines language-specific macros for Thai language. +% +% Thai documents to be supported by this language definition can be encoded +% in TIS-620 (or ISO/IEC 8859-11) or UTF-8 (with the aids of \texttt{inputenc} +% package). +% +% Thai is written continuously without word delimitors. The word boundary +% analysis is considered too complicated for rule-based approaches. +% Most good quality word analysis tools available employ special matching +% algorithms against pre-defined dictionaries. Some even use contextual +% analysis for ambiguous cases based on statistics. Therefore, no good +% hyphenation pattern is found to be comparable with those tools yet. +% +% \DescribeMacro{\wbr} +% What the Thai language definition provides here for the word boundary +% problem is the |\wbr| command for separating words. It occupies no +% space but aids the \TeX\ typesetter in wrapping lines at proper positions, +% meanwhile leaves some room for distributing little spaces between words +% in case of narrow columns. +% +% Some preprocessing tools that analyze word boundaries and insert the |\wbr| +% commands are available, for example +% \begin{itemize} +% \item \emph{cttex} by Vuthichai Ampornaramveth +% \item \emph{swath} by Phaisarn Charoenpornsawat, now maintained by Thai +% Linux Working Group, downloadable from:\\ +% \texttt{ftp://linux.thai.net/pub/thailinux/software/swath} +% \end{itemize} +% +% Some certain Thai documents use Thai digits instead of Arabic. +% And Thai alphabetic numbering is also commonly used for appendices. +% This file provides a number of numbering styles that can apply +% to \LaTeX\ |\pagenumbering| command: +% +% \begin{itemize} +% \item |\thainum| for plain Thai digits +% \item |\thaibracenum| for Thai digits in parentheses +% \item |\thaialph| for Thai alphabetic numbering, using a reduced set +% (with three alphabets skipped: Kho Khuat, Kho Khon and Kho Rakhang) +% \item |\thaiAlph| for Thai alphabetic numbering, using the full set +% (with full alphabet set, plus two semi-vowels, Ru and Lu, in the +% order defined in Thai official dictionary) +% \end{itemize} +% +% \DescribeEnv{thainumber} +% The above numbering styles can be automatically chosen with the +% \Lopt{thainumber} option. When supplying this option to the \babel{} +% package, Thai numberings will be applied to pages, sections, enumerations, +% dates, etc. +% +% \StopEventually{} +% +% \subsection{Thai language definition} +% +% The macro |\LdfInit| takes care of preventing that this file is +% loaded more than once, checking the category code of the +% \texttt{@} sign, etc. +% \begin{macrocode} +%<*code> +\LdfInit\CurrentOption{captions\CurrentOption} +% \end{macrocode} +% +% When this file is read as an option, i.e. by the |\usepackage{babel}| +% command, \texttt{thai} will be an `unknown' language in which +% case we have to make it known. So we check for the existence of +% |\l@thai| to see whether we have to do something here. +% +% \begin{macrocode} +\ifx\l@thai\@undefined + \@nopatterns{thai} + \adddialect\l@thai0\fi +% \end{macrocode} +% +% \subsubsection{Thai character encoding} +% +% In this language definition, we support TIS-620, the national standard +% 8-bit character encoding, and Unicode by means of \texttt{inputenc} +% package. +% +% The encoding has been described in terms of TIS-620 as \texttt{LTH} in +% the \file{lthenc.def} file. So, we require it. +% +% \begin{macrocode} +\InputIfFileExists{lthenc.def}{% + \message{Loading the definitions for the Thai font encoding}}{% + \errhelp{I can't find the lthenc.def file for the Thai fonts}% + \errmessage{Since I do not know what the LTH encoding means^^J + I can't typeset Thai.^^J + I stop here, while you get a suitable lthenc.def file}\@@end + } +% \end{macrocode} +% +% Then, we define default fonts for the document. \texttt{norasi} and +% \texttt{garuda} are Serif and San Serif fonts from the National Fonts +% Project, initiated by NECTEC. \texttt{ttypist} is a typewriter font +% created by Theppitak Karoonboonyanan from Thai Linux Working Group. +% All fonts are available in free license. +% +% \begin{macrocode} +\def\thairmdefault{norasi} +\def\thaisfdefault{garuda} +\def\thaittdefault{ttypist} +\def\englishrmdefault{cmr} +\def\englishsfdefault{cmss} +\def\englishttdefault{cmtt} +% \end{macrocode} +% +% The next step consists of defining commands to switch to the +% Thai language. The reason for this is that a user might want +% to switch back and forth between languages. +% +% \begin{macro}{\thaitext} +% We define |\thaitext| as a declarative switch to Thai font encoding. +% \begin{macrocode} +\DeclareRobustCommand{\thaitext}{% + \fontencoding{LTH}\fontfamily{\thairmdefault}\selectfont% + \def\rmdefault{\thairmdefault}% + \def\sfdefault{\thaisfdefault}% + \def\ttdefault{\thaittdefault}% + \def\encodingdefault{LTH}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\textthai} +% This command takes an argument which is then typeset using Thai font +% encoding. +% \begin{macrocode} +\DeclareRobustCommand{\textthai}[1]{{\thaitext #1}} +% \end{macrocode} +% \end{macro} +% +% \subsubsection{Hyphenation} +% +% We define |\thaihyphenmins| macro for hyphenation parameters. This is +% one of the five macros required by \babel{}. +% +% \begin{macro}{\thaihyphenmins} +% This macro is used to store the correct values of the hyphenation +% parameters |\lefthyphenmin| and |\righthyphenmin|. They are set to 11. +% \changes{thai-1.1}{2006/07/02}{Theppitak Karoonboonyanan: +% Now use \cs{providehyphenmins} to provide a default value} +% \begin{macrocode} +\providehyphenmins{thai}{11} +% \end{macrocode} +% \end{macro} +% +% \subsubsection{Captions translation} +% +% We define |\captionsthai| macro for translations of strings. This is +% one of the five macros required by \babel{}. +% +% \begin{macro}{\captionsthai} +% The macro |\captionsthai| defines all strings used in the four +% standard documentclasses provided with \LaTeX. +% \begin{macrocode} +\addto\captionsthai{% + \def\prefacename{\thaiKhoKhwai\thaiSaraAm\thaiNoNu\thaiSaraAm}% + \def\refname{\thaiHoHip\thaiNoNu\thaiMaiHanakat\thaiNgoNgu% + \thaiSoSua\thaiSaraUee\thaiOAng% + \thaiOAng\thaiMaiTho\thaiSaraAa\thaiNgoNgu% + \thaiOAng\thaiSaraI\thaiNgoNgu}% + \def\abstractname{\thaiBoBaimai\thaiThoThahan% + \thaiKhoKhwai\thaiMaiHanakat\thaiDoDek% + \thaiYoYak\thaiMaiEk\thaiOAng}% + \def\bibname{\thaiBoBaimai\thaiRoRua\thaiRoRua\thaiNoNen\thaiSaraAa% + \thaiNoNu\thaiSaraU\thaiKoKai\thaiRoRua\thaiMoMa}% + \def\chaptername{\thaiBoBaimai\thaiThoThahan% + \thaiThoThahan\thaiSaraIi\thaiMaiEk}% + \def\appendixname{\thaiPhoSamphao\thaiSaraAa\thaiKhoKhwai% + \thaiPhoPhung\thaiNoNu\thaiWoWaen\thaiKoKai}% + \def\contentsname{\thaiSoSua\thaiSaraAa\thaiRoRua% + \thaiBoBaimai\thaiMaiHanakat\thaiYoYing}% + \def\listfigurename{\thaiSoSua\thaiSaraAa\thaiRoRua% + \thaiBoBaimai\thaiMaiHanakat\thaiYoYing% + \thaiRoRua\thaiSaraUu\thaiPoPla}% + \def\listtablename{\thaiSoSua\thaiSaraAa\thaiRoRua% + \thaiBoBaimai\thaiMaiHanakat\thaiYoYing% + \thaiToTao\thaiSaraAa\thaiRoRua\thaiSaraAa\thaiNgoNgu}% + \def\indexname{\thaiDoDek\thaiRoRua\thaiRoRua\thaiChoChang% + \thaiNoNu\thaiSaraIi}% + \def\figurename{\thaiRoRua\thaiSaraUu\thaiPoPla% + \thaiThoThahan\thaiSaraIi\thaiMaiEk}% + \def\tablename{\thaiToTao\thaiSaraAa\thaiRoRua\thaiSaraAa\thaiNgoNgu% + \thaiThoThahan\thaiSaraIi\thaiMaiEk}% + \def\partname{\thaiPhoSamphao\thaiSaraAa\thaiKhoKhwai}% + \def\enclname{\thaiSoSua\thaiSaraI\thaiMaiEk\thaiNgoNgu% + \thaiThoThahan\thaiSaraIi\thaiMaiEk% + \thaiSaraAe\thaiNoNu\thaiBoBaimai% + \thaiMoMa\thaiSaraAa% + \thaiDoDek\thaiMaiTho\thaiWoWaen\thaiYoYak}% + \def\ccname{\thaiSoSua\thaiSaraAm\thaiSaraE\thaiNoNu\thaiSaraAa% + \thaiThoThung\thaiSaraUe\thaiNgoNgu}% + \def\headtoname{\thaiSaraE\thaiRoRua\thaiSaraIi\thaiYoYak\thaiNoNu}% + \def\pagename{\thaiHoHip\thaiNoNu\thaiMaiTho\thaiSaraAa}% + \def\seename{\thaiDoDek\thaiSaraUu}% + \def\alsoname{\thaiDoDek\thaiSaraUu% + \thaiSaraE\thaiPhoPhan\thaiSaraI\thaiMaiEk\thaiMoMa% + \thaiSaraE\thaiToTao\thaiSaraI\thaiMoMa}% + \def\proofname{\thaiPhoPhan\thaiSaraI% + \thaiSoSua\thaiSaraUu\thaiChoChan\thaiNoNu\thaiThanthakhat}% + } +% \end{macrocode} +% \end{macro} +% +% \subsubsection{Date} +% +% Here we define |\datethai| macro for Thai date format. This is +% one of the five macros required by \babel{}. +% +% First, let's define the months in Thai. +% +% \begin{macrocode} +\def\th@month{% + \ifcase\month\or + \thaiMoMa\thaiKoKai\thaiRoRua\thaiSaraAa\thaiKhoKhwai\thaiMoMa \or + \thaiKoKai\thaiSaraU\thaiMoMa\thaiPhoSamphao\thaiSaraAa% + \thaiPhoPhan\thaiMaiHanakat\thaiNoNu\thaiThoThong\thaiThanthakhat \or + \thaiMoMa\thaiSaraIi\thaiNoNu\thaiSaraAa\thaiKhoKhwai\thaiMoMa \or + \thaiSaraE\thaiMoMa\thaiSoRusi\thaiSaraAa\thaiYoYak\thaiNoNu \or + \thaiPhoPhan\thaiRu\thaiSoRusi\thaiPhoSamphao\thaiSaraAa% + \thaiKhoKhwai\thaiMoMa \or + \thaiMoMa\thaiSaraI\thaiThoThung\thaiSaraU\thaiNoNu\thaiSaraAa% + \thaiYoYak\thaiNoNu \or + \thaiKoKai\thaiRoRua\thaiKoKai\thaiDoChada\thaiSaraAa% + \thaiKhoKhwai\thaiMoMa \or + \thaiSoSua\thaiSaraI\thaiNgoNgu\thaiHoHip\thaiSaraAa% + \thaiKhoKhwai\thaiMoMa \or + \thaiKoKai\thaiMaiHanakat\thaiNoNu\thaiYoYak\thaiSaraAa% + \thaiYoYak\thaiNoNu \or + \thaiToTao\thaiSaraU\thaiLoLing\thaiSaraAa\thaiKhoKhwai\thaiMoMa \or + \thaiPhoPhan\thaiRu\thaiSoSala\thaiChoChan\thaiSaraI\thaiKoKai\thaiSaraAa% + \thaiYoYak\thaiNoNu \or + \thaiThoThong\thaiMaiHanakat\thaiNoNu\thaiWoWaen\thaiSaraAa% + \thaiKhoKhwai\thaiMoMa + \fi} +% \end{macrocode} +% +% Thai official calendar uses Buddhist Era, the era whose start is marked +% by Buddha's entry into Parinirvana. In original form, it is a lunar +% calendar. But in Thai contemporary calendar, it is synchronized to +% Gregorian calendar, with offset of 543 years back. +% +% \begin{macrocode} +\newcount\th@year +\th@year=\year +\advance\th@year by 543 +% \end{macrocode} +% +% Then, we come to the |\datethai| macro. +% +% \begin{macro}{\datethai} +% Thai date format is in the day-month-year order, using Buddhist Era. +% \begin{macrocode} +\def\datethai{% + \def\today{\number\day \space \th@month\space % + \thaiPhoPhan.\thaiSoSala.~\number\th@year}} +% \end{macrocode} +% \end{macro} +% +% \subsubsection{Extra definitions for language switching} +% +% Then, the last two macros required by \babel{} are |\extrasthai| and +% |\noextrasthai| containing extra definitions needed for Thai language +% upon switching to and out of it, respectively. +% +% \begin{macrocode} +\addto\extrasthai{\thaitext} +\addto\noextrasthai{\latintext} +% \end{macrocode} +% +% \subsection{Word break support} +% +% As Thai script is written continuously without word delimitors, we define +% |\wbr| command to mark word boundaries without taking space, so that +% \TeX typesetter can wrap Thai lines at proper positions. +% +% \begin{macrocode} +\def\wbr{\hskip0pt plus0.6pt\relax} +\renewcommand{\baselinestretch}{1.2} +% \end{macrocode} +% +% \subsection{Thai numbering support} +% +% This section provides Thai numbering styles as described at the beginning +% of this document: |\thainum|, |\thaibracenum|, |\thaialph| and |\thaiAlph|. +% +% First, we define a macro for translating decimal digits into Thai digits. +% +% \begin{macro}{\thaitranslate} +% The |\thaitranslate| macro determines decimal digits in the argument and +% convert them to Thai digit one by one, until the `|@|' terminator is found. +% \begin{macrocode} +\def\thaitranslate#1{\ifx @#1% + \else\ifcase#1 + \thaizero \or \thaione \or \thaitwo \or \thaithree \or \thaifour \or + \thaifive \or \thaisix \or \thaiseven \or \thaieight \or \thainine + \else\fi + \expandafter\thaitranslate + \fi +} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\thainum} +% The |\thainum| macro is to be used as a numbering style in \LaTeX\ +% |\pagenumbering| command. +% +% It takes a counter name and converts its value into Thai digits. +% In details, it prepends the counter name with `|c@|' to access the counter +% value, then calls |\@thainum| to convert it into Thai digits. +% +% The |\@thainum| macro converts a number into Thai digits. It expands the +% argument into a number, terminates it with `|@|', and calls +% |\thaitranslate| to convert it into Thai digits. +% +% \begin{macrocode} +\def\@thainum#1{\expandafter\thaitranslate\number#1@} +\def\thainum#1{\expandafter\@thainum\csname c@#1\endcsname} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\thaibracenum} +% Similar to |\thainum|, the |\thaibracenum| macro is to be used as a +% numbering style in \LaTeX\ |\pagenumbering| command. +% +% It provides Thai digits numbering, surrounded by parentheses. +% +% \begin{macrocode} +\def\@thaibracenum#1{(\expandafter\thaitranslate\number#1@)} +\def\thaibracenum#1{\expandafter\@thaibracenum\csname c@#1\endcsname} +% \end{macrocode} +% \end{macro} +% +% Now come to Thai alphabetic numbering, beginning with the reduced set. +% +% \begin{macro}{\thaialph} +% The |\thaialph| macro is to be used as a numbering style in \LaTeX\ +% |\pagenumbering| command. +% +% It converts a number not greater than 41 into Thai alphabet in the +% corresponding order in the reduced set. In this set, 3 characters +% are skipped: Kho Khuat, Kho Khon and Kho Rakhang. +% +% \begin{macrocode} +\def\thaialph#1{\expandafter\@thaialph\csname c@#1\endcsname} +\def\@thaialph#1{% + \ifcase#1\or \thaiKoKai\or \thaiKhoKhai\or \thaiKhoKhwai\or \thaiNgoNgu\or + \thaiChoChan\or \thaiChoChing\or \thaiChoChang\or \thaiSoSo\or + \thaiChoChoe\or \thaiYoYing\or \thaiDoChada\or \thaiToPatak\or + \thaiThoThan\or \thaiThoNangmontho\or \thaiThoPhuthao\or \thaiNoNen\or + \thaiDoDek\or \thaiToTao\or \thaiThoThung\or \thaiThoThahan\or + \thaiThoThong\or \thaiNoNu\or \thaiBoBaimai\or \thaiPoPla\or + \thaiPhoPhung\or \thaiFoFa\or \thaiPhoPhan\or \thaiFoFan\or + \thaiPhoSamphao\or \thaiMoMa\or \thaiYoYak\or \thaiRoRua\or + \thaiLoLing\or \thaiWoWaen\or \thaiSoSala\or \thaiSoRusi\or + \thaiSoSua\or \thaiHoHip\or \thaiLoChula\or \thaiOAng\or + \thaiHoNokhuk\else\@ctrerr\fi} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\thaiAlph} +% Similar to |\thaialph|, the |\thaiAlph| macro provides Thai alphabetic +% numbering with full alphabet set in the order defined in Thai official +% dictionary. So, it supports up to 44 entries. +% +% \begin{macrocode} +\def\thaiAlph#1{\expandafter\@thaiAlph\csname c@#1\endcsname} +\def\@thaiAlph#1{% + \ifcase#1\or \thaiKoKai\or \thaiKhoKhai\or \thaiKhoKhuat\or \thaiKhoKhwai\or + \thaiKhoKhon\or \thaiKhoRakhang\or \thaiNgoNgu\or \thaiChoChan\or + \thaiChoChing\or \thaiChoChang\or \thaiSoSo\or \thaiChoChoe\or + \thaiYoYing\or \thaiDoChada\or \thaiToPatak\or \thaiThoThan\or + \thaiThoNangmontho\or \thaiThoPhuthao\or \thaiNoNen\or \thaiDoDek\or + \thaiToTao\or \thaiThoThung\or \thaiThoThahan\or \thaiThoThong\or + \thaiNoNu\or \thaiBoBaimai\or \thaiPoPla\or \thaiPhoPhung\or + \thaiFoFa\or \thaiPhoPhan\or \thaiFoFan\or \thaiPhoSamphao\or + \thaiMoMa\or \thaiYoYak\or \thaiRoRua\or \thaiLoLing\or + \thaiWoWaen\or \thaiSoSala\or \thaiSoRusi\or \thaiSoSua\or + \thaiHoHip\or \thaiLoChula\or \thaiOAng\or \thaiHoNokhuk\else\@ctrerr\fi} +% \end{macrocode} +% \end{macro} +% +% \subsubsection{\Lopt{thainumber} option} +% +% Not all Thai documents use Thai digits. So, we support this as an +% option. If \Lopt{thainumber} option is supplied in the |\usepackage| +% command, all numbering will use Thai digits. +% +% \begin{macrocode} +\DeclareOption{thainumber}{ +% \end{macrocode} +% +% We need to use the `|@|' character in macro implementations. So, make it +% a normal charactor. +% +% \begin{macrocode} +\catcode`\@=11 +% \end{macrocode} +% +% Then, set default page numbering to |thainum|, and redefine counters +% to |thainum|. +% +% \begin{macrocode} +\pagenumbering{thainum} +\renewcommand\theenumi{\@thainum\c@enumi} +\renewcommand\theenumii{\@thaialph\c@enumii} +%\renewcommand\theenumiii{\@roman\c@enumiii} +%\renewcommand\theenumiv{\@Alph\c@enumiv} +\@ifundefined{thechapter}% + {\renewcommand\thesection{\@thainum\c@section}% + \renewcommand\thesubsection{\thesection.\@thainum\c@subsection}% + \renewcommand\thesubsubsection{\thesubsection.\@thainum\c@subsubsection}% + \renewcommand\theparagraph {\thesubsubsection.\@thainum\c@paragraph}% + \renewcommand\thesubparagraph {\theparagraph.\@thainum\c@subparagraph}% + \renewcommand\theequation{\@thainum\c@equation}% + \renewcommand\thetable{\@thainum\c@table}% + \renewcommand\thefigure{\@thainum\c@figure}}% + {\renewcommand\thepart{\@thainum\c@part}% + \renewcommand\thechapter{\@thainum\c@chapter}% + \renewcommand\thesection{\thechapter.\@thainum\c@section}% + \renewcommand\thesubsection{\thesection.\@thainum\c@subsection}% + \renewcommand\thesubsubsection{\thesubsection.\@thainum\c@subsubsection}% + \renewcommand\theparagraph {\thesubsubsection.\@thainum\c@paragraph}% + \renewcommand\thesubparagraph {\theparagraph.\@thainum\c@subparagraph}% + \renewcommand\theequation% + {\ifnum \c@chapter>\z@ \thechapter.\fi \@thainum\c@equation}% + \renewcommand \thetable% + {\ifnum \c@chapter>\z@ \thechapter.\fi \@thainum\c@table}% + \renewcommand \thefigure% + {\ifnum \c@chapter>\z@ \thechapter.\fi \@thainum\c@figure}} +\renewcommand\thefootnote{\@thainum\c@footnote} +% \end{macrocode} +% +% For theorems, we support all custom theorem counters at once by +% redefining |\@thmcounter| macro. +% +% \begin{macrocode} +\def\@thmcounter#1{\noexpand\thainum{#1}} +% \end{macrocode} +% +% In book class, page numberings for frontmatter and mainmatter are +% different. So, redefine them. +% +% \begin{macrocode} +\@ifclassloaded{book}{% + % redefine page numbering for frontmatter and mainmatter + \def\ps@headnum{\let\@mkboth\@gobbletwo + \def\@oddhead{\reset@font\hfil\thepage\hfil}\let\@oddfoot\@empty + \let\@evenhead\@oddhead\let\@evenfoot\@empty} + \let\@ltxfrontmatter\frontmatter + \renewcommand\frontmatter{\@ltxfrontmatter\pagestyle{headnum}\pagenumbering{thaibracenum}} + \let\@ltxmainmatter\mainmatter + \renewcommand\mainmatter{\@ltxmainmatter\pagestyle{headings}\pagenumbering{thainum}} +}{} +% \end{macrocode} +% +% Redefine Thai date using Thai digits. +% +% \begin{macrocode} +\def\datethai{% + \def\today{\@thainum\day \space \th@month\space \thaiPhoPhan.\thaiSoSala.~\@thainum\th@year}} +% \end{macrocode} +% +% And finish declaration of \Lopt{thainumber} option +% +% \begin{macrocode} +\relax +} +% \end{macrocode} +% +% Always use thaialph as counter for appendix +% +% \begin{macrocode} +\@ifclassloaded{book}{% +\renewcommand\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@thaialph\c@chapter}} +}{} +\@ifclassloaded{report}{% +\renewcommand\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@thaialph\c@chapter}} +}{} +\@ifclassloaded{article}{% +\renewcommand\appendix{\par + \setcounter{section}{0}% + \setcounter{subsection}{0}% + \gdef\thesection{\@thaialph\c@section}} +}{} +% \end{macrocode} +% +% \subsection{Miscelleneous} +% +% Initialize character codes for Thai +% +% \begin{macrocode} +\catcode`\^^a1=11 \lccode`\^^a1=`\^^a1 \uccode`\^^a1=`\^^a1 +\catcode`\^^a2=11 \lccode`\^^a2=`\^^a2 \uccode`\^^a2=`\^^a2 +\catcode`\^^a3=11 \lccode`\^^a3=`\^^a3 \uccode`\^^a3=`\^^a3 +\catcode`\^^a4=11 \lccode`\^^a4=`\^^a4 \uccode`\^^a4=`\^^a4 +\catcode`\^^a5=11 \lccode`\^^a5=`\^^a5 \uccode`\^^a5=`\^^a5 +\catcode`\^^a6=11 \lccode`\^^a6=`\^^a6 \uccode`\^^a6=`\^^a6 +\catcode`\^^a7=11 \lccode`\^^a7=`\^^a7 \uccode`\^^a7=`\^^a7 +\catcode`\^^a8=11 \lccode`\^^a8=`\^^a8 \uccode`\^^a8=`\^^a8 +\catcode`\^^a9=11 \lccode`\^^a9=`\^^a9 \uccode`\^^a9=`\^^a9 +\catcode`\^^aa=11 \lccode`\^^aa=`\^^aa \uccode`\^^aa=`\^^aa +\catcode`\^^ab=11 \lccode`\^^ab=`\^^ab \uccode`\^^ab=`\^^ab +\catcode`\^^ac=11 \lccode`\^^ac=`\^^ac \uccode`\^^ac=`\^^ac +\catcode`\^^ad=11 \lccode`\^^ad=`\^^ad \uccode`\^^ad=`\^^ad +\catcode`\^^ae=11 \lccode`\^^ae=`\^^ae \uccode`\^^ae=`\^^ae +\catcode`\^^af=11 \lccode`\^^af=`\^^af \uccode`\^^af=`\^^af +\catcode`\^^b0=11 \lccode`\^^b0=`\^^b0 \uccode`\^^b0=`\^^b0 +\catcode`\^^b1=11 \lccode`\^^b1=`\^^b1 \uccode`\^^b1=`\^^b1 +\catcode`\^^b2=11 \lccode`\^^b2=`\^^b2 \uccode`\^^b2=`\^^b2 +\catcode`\^^b3=11 \lccode`\^^b3=`\^^b3 \uccode`\^^b3=`\^^b3 +\catcode`\^^b4=11 \lccode`\^^b4=`\^^b4 \uccode`\^^b4=`\^^b4 +\catcode`\^^b5=11 \lccode`\^^b5=`\^^b5 \uccode`\^^b5=`\^^b5 +\catcode`\^^b6=11 \lccode`\^^b6=`\^^b6 \uccode`\^^b6=`\^^b6 +\catcode`\^^b7=11 \lccode`\^^b7=`\^^b7 \uccode`\^^b7=`\^^b7 +\catcode`\^^b8=11 \lccode`\^^b8=`\^^b8 \uccode`\^^b8=`\^^b8 +\catcode`\^^b9=11 \lccode`\^^b9=`\^^b9 \uccode`\^^b9=`\^^b9 +\catcode`\^^ba=11 \lccode`\^^ba=`\^^ba \uccode`\^^ba=`\^^ba +\catcode`\^^bb=11 \lccode`\^^bb=`\^^bb \uccode`\^^bb=`\^^bb +\catcode`\^^bc=11 \lccode`\^^bc=`\^^bc \uccode`\^^bc=`\^^bc +\catcode`\^^bd=11 \lccode`\^^bd=`\^^bd \uccode`\^^bd=`\^^bd +\catcode`\^^be=11 \lccode`\^^be=`\^^be \uccode`\^^be=`\^^be +\catcode`\^^bf=11 \lccode`\^^bf=`\^^bf \uccode`\^^bf=`\^^bf +\catcode`\^^c0=11 \lccode`\^^c0=`\^^c0 \uccode`\^^c0=`\^^c0 +\catcode`\^^c1=11 \lccode`\^^c1=`\^^c1 \uccode`\^^c1=`\^^c1 +\catcode`\^^c2=11 \lccode`\^^c2=`\^^c2 \uccode`\^^c2=`\^^c2 +\catcode`\^^c3=11 \lccode`\^^c3=`\^^c3 \uccode`\^^c3=`\^^c3 +\catcode`\^^c4=11 \lccode`\^^c4=`\^^c4 \uccode`\^^c4=`\^^c4 +\catcode`\^^c5=11 \lccode`\^^c5=`\^^c5 \uccode`\^^c5=`\^^c5 +\catcode`\^^c6=11 \lccode`\^^c6=`\^^c6 \uccode`\^^c6=`\^^c6 +\catcode`\^^c7=11 \lccode`\^^c7=`\^^c7 \uccode`\^^c7=`\^^c7 +\catcode`\^^c8=11 \lccode`\^^c8=`\^^c8 \uccode`\^^c8=`\^^c8 +\catcode`\^^c9=11 \lccode`\^^c9=`\^^c9 \uccode`\^^c9=`\^^c9 +\catcode`\^^ca=11 \lccode`\^^ca=`\^^ca \uccode`\^^ca=`\^^ca +\catcode`\^^cb=11 \lccode`\^^cb=`\^^cb \uccode`\^^cb=`\^^cb +\catcode`\^^cc=11 \lccode`\^^cc=`\^^cc \uccode`\^^cc=`\^^cc +\catcode`\^^cd=11 \lccode`\^^cd=`\^^cd \uccode`\^^cd=`\^^cd +\catcode`\^^ce=11 \lccode`\^^ce=`\^^ce \uccode`\^^ce=`\^^ce +\catcode`\^^cf=11 \lccode`\^^cf=`\^^cf \uccode`\^^cf=`\^^cf +\catcode`\^^d0=11 \lccode`\^^d0=`\^^d0 \uccode`\^^d0=`\^^d0 +\catcode`\^^d1=11 \lccode`\^^d1=`\^^d1 \uccode`\^^d1=`\^^d1 +\catcode`\^^d2=11 \lccode`\^^d2=`\^^d2 \uccode`\^^d2=`\^^d2 +\catcode`\^^d3=11 \lccode`\^^d3=`\^^d3 \uccode`\^^d3=`\^^d3 +\catcode`\^^d4=11 \lccode`\^^d4=`\^^d4 \uccode`\^^d4=`\^^d4 +\catcode`\^^d5=11 \lccode`\^^d5=`\^^d5 \uccode`\^^d5=`\^^d5 +\catcode`\^^d6=11 \lccode`\^^d6=`\^^d6 \uccode`\^^d6=`\^^d6 +\catcode`\^^d7=11 \lccode`\^^d7=`\^^d7 \uccode`\^^d7=`\^^d7 +\catcode`\^^d8=11 \lccode`\^^d8=`\^^d8 \uccode`\^^d8=`\^^d8 +\catcode`\^^d9=11 \lccode`\^^d9=`\^^d9 \uccode`\^^d9=`\^^d9 +\catcode`\^^da=11 \lccode`\^^da=`\^^da \uccode`\^^da=`\^^da +\catcode`\^^df=12 \lccode`\^^df=`\^^df \uccode`\^^df=`\^^df +\catcode`\^^e0=11 \lccode`\^^e0=`\^^e0 \uccode`\^^e0=`\^^e0 +\catcode`\^^e1=11 \lccode`\^^e1=`\^^e1 \uccode`\^^e1=`\^^e1 +\catcode`\^^e2=11 \lccode`\^^e2=`\^^e2 \uccode`\^^e2=`\^^e2 +\catcode`\^^e3=11 \lccode`\^^e3=`\^^e3 \uccode`\^^e3=`\^^e3 +\catcode`\^^e4=11 \lccode`\^^e4=`\^^e4 \uccode`\^^e4=`\^^e4 +\catcode`\^^e5=11 \lccode`\^^e5=`\^^e5 \uccode`\^^e5=`\^^e5 +\catcode`\^^e6=11 \lccode`\^^e6=`\^^e6 \uccode`\^^e6=`\^^e6 +\catcode`\^^e7=11 \lccode`\^^e7=`\^^e7 \uccode`\^^e7=`\^^e7 +\catcode`\^^e8=11 \lccode`\^^e8=`\^^e8 \uccode`\^^e8=`\^^e8 +\catcode`\^^e9=11 \lccode`\^^e9=`\^^e9 \uccode`\^^e9=`\^^e9 +\catcode`\^^ea=11 \lccode`\^^ea=`\^^ea \uccode`\^^ea=`\^^ea +\catcode`\^^eb=11 \lccode`\^^eb=`\^^eb \uccode`\^^eb=`\^^eb +\catcode`\^^ec=11 \lccode`\^^ec=`\^^ec \uccode`\^^ec=`\^^ec +\catcode`\^^ed=11 \lccode`\^^ed=`\^^ed \uccode`\^^ed=`\^^ed +\catcode`\^^ee=11 \lccode`\^^ee=`\^^ee \uccode`\^^ee=`\^^ee +\catcode`\^^ef=12 \lccode`\^^ef=`\^^ef \uccode`\^^ef=`\^^ef +\catcode`\^^f0=12 \lccode`\^^f0=`\^^f0 \uccode`\^^f0=`\^^f0 +\catcode`\^^f1=12 \lccode`\^^f1=`\^^f1 \uccode`\^^f1=`\^^f1 +\catcode`\^^f2=12 \lccode`\^^f2=`\^^f2 \uccode`\^^f2=`\^^f2 +\catcode`\^^f3=12 \lccode`\^^f3=`\^^f3 \uccode`\^^f3=`\^^f3 +\catcode`\^^f4=12 \lccode`\^^f4=`\^^f4 \uccode`\^^f4=`\^^f4 +\catcode`\^^f5=12 \lccode`\^^f5=`\^^f5 \uccode`\^^f5=`\^^f5 +\catcode`\^^f6=12 \lccode`\^^f6=`\^^f6 \uccode`\^^f6=`\^^f6 +\catcode`\^^f7=12 \lccode`\^^f7=`\^^f7 \uccode`\^^f7=`\^^f7 +\catcode`\^^f8=12 \lccode`\^^f8=`\^^f8 \uccode`\^^f8=`\^^f8 +\catcode`\^^f9=12 \lccode`\^^f9=`\^^f9 \uccode`\^^f9=`\^^f9 +\catcode`\^^fa=12 \lccode`\^^fa=`\^^fa \uccode`\^^fa=`\^^fa +\catcode`\^^fb=12 \lccode`\^^fb=`\^^fb \uccode`\^^fb=`\^^fb +\ldf@finish{\CurrentOption} +%</code> +% \end{macrocode} +% +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\endinput diff --git a/Master/texmf-dist/source/latex/thailatex/babel/thai.ins b/Master/texmf-dist/source/latex/thailatex/babel/thai.ins new file mode 100644 index 00000000000..a7dc43dde57 --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/thai.ins @@ -0,0 +1,148 @@ +%% +%% This file will generate fast loadable files and documentation +%% driver files from the doc files in this package when run through +%% LaTeX or TeX. +%% +%% Copyright 1989-2005 Johannes L. Braams and any individual authors +%% listed elsewhere in this file. All rights reserved. +%% +%% This file is part of 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 Johannes Braams. +%% +%% The list of all files belonging to the LaTeX base distribution is +%% given in the file `manifest.bbl. See also `legal.bbl' for additional +%% information. +%% +%% 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. +%% +%% --------------- start of docstrip commands ------------------ +%% +\def\filedate{1999/04/11} +\def\batchfile{thai.ins} +\input docstrip.tex + +{\ifx\generate\undefined +\Msg{**********************************************} +\Msg{*} +\Msg{* This installation requires docstrip} +\Msg{* version 2.3c or later.} +\Msg{*} +\Msg{* An older version of docstrip has been input} +\Msg{*} +\Msg{**********************************************} +\errhelp{Move or rename old docstrip.tex.} +\errmessage{Old docstrip in input path} +\batchmode +\csname @@end\endcsname +\fi} + +\declarepreamble\mainpreamble +This is a generated file. + +Copyright 1989-2005 Johannes L. Braams and any individual authors +listed elsewhere in this file. All rights reserved. + +This file was generated from file(s) of 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 Johannes Braams. + +This file may only be distributed together with a copy of the Babel +system. You may however distribute the Babel system without +such generated files. + +The list of all files belonging to the Babel distribution is +given in the file `manifest.bbl'. See also `legal.bbl for additional +information. + +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. +\endpreamble + +\declarepreamble\fdpreamble +This is a generated file. + +Copyright 1989-2005 Johannes L. Braams and any individual authors +listed elsewhere in this file. All rights reserved. + +This file was generated from file(s) of 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 Johannes Braams. + +This file may only be distributed together with a copy of the Babel +system. You may however distribute the Babel system without +such generated files. + +The list of all files belonging to the Babel distribution is +given in the file `manifest.bbl'. See also `legal.bbl for additional +information. + +In particular, permission is granted to customize the declarations in +this file to serve the needs of your installation. + +However, NO PERMISSION is granted to distribute a modified version +of this file under its original name. + +\endpreamble + +\keepsilent + +\usedir{tex/generic/babel} + +\usepreamble\mainpreamble +\generate{\file{thai.ldf}{\from{thai.dtx}{code}} + } +\usepreamble\fdpreamble + +\ifToplevel{ +\Msg{***********************************************************} +\Msg{*} +\Msg{* To finish the installation you have to move the following} +\Msg{* files into a directory searched by TeX:} +\Msg{*} +\Msg{* \space\space All *.def, *.fd, *.ldf, *.sty} +\Msg{*} +\Msg{* To produce the documentation run the files ending with} +\Msg{* '.dtx' and `.fdd' through LaTeX.} +\Msg{*} +\Msg{* Happy TeXing} +\Msg{***********************************************************} +} + +\endinput diff --git a/Master/texmf-dist/source/latex/thailatex/babel/thai.sty b/Master/texmf-dist/source/latex/thailatex/babel/thai.sty new file mode 100644 index 00000000000..f90f5395939 --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/thai.sty @@ -0,0 +1,17 @@ +%% +%% This is file `thai.sty', +%% by Surapant Meknavin: surapan@nectec.or.th +%% +\ifx\LdfInit\@undefined + \def\LdfInit{% + \chardef\atcatcode=\catcode`\@ + \catcode`\@=11\relax + \input babel.def\relax + \catcode`\@=\atcatcode \let\atcatcode\relax + \LdfInit} +\fi +\input thai.ldf\relax +%% +\endinput +%% +%% End of file `thai.sty'. diff --git a/Master/texmf-dist/source/latex/thailatex/babel/thswitch.sty b/Master/texmf-dist/source/latex/thailatex/babel/thswitch.sty new file mode 100644 index 00000000000..0c69d604167 --- /dev/null +++ b/Master/texmf-dist/source/latex/thailatex/babel/thswitch.sty @@ -0,0 +1,14 @@ +%% This file is part of the thailatex package +%% Created by Surapant Meknavin: surapan@nectec.or.th +%% 21 June 1999 +%% 2004/03/04 Theppitak Karoonboonyanan <thep@linux.thai.net> +%% - add \ttdefault +%% 2000/05/10 Theppitak Karoonboonyanan <thep@links.nectec.or.th> +%% - add \sfdefault +\DeclareRobustCommand{\latintext}{% + \fontencoding{\latinencoding}\fontfamily{\englishrmdefault}\selectfont + \def\rmdefault{\englishrmdefault}% + \def\sfdefault{\englishsfdefault}% + \def\ttdefault{\englishttdefault}% + \def\encodingdefault{\latinencoding}} + |