summaryrefslogtreecommitdiff
path: root/obsolete/language/thai/thailatex/babel
diff options
context:
space:
mode:
Diffstat (limited to 'obsolete/language/thai/thailatex/babel')
-rw-r--r--obsolete/language/thai/thailatex/babel/Makefile.am31
-rw-r--r--obsolete/language/thai/thailatex/babel/Makefile.in440
-rw-r--r--obsolete/language/thai/thailatex/babel/lthenc.def157
-rw-r--r--obsolete/language/thai/thailatex/babel/thai.dtx845
-rw-r--r--obsolete/language/thai/thailatex/babel/thai.ins148
-rw-r--r--obsolete/language/thai/thailatex/babel/thswitch.sty27
-rw-r--r--obsolete/language/thai/thailatex/babel/tis620.def108
7 files changed, 1756 insertions, 0 deletions
diff --git a/obsolete/language/thai/thailatex/babel/Makefile.am b/obsolete/language/thai/thailatex/babel/Makefile.am
new file mode 100644
index 0000000000..b7140bcaea
--- /dev/null
+++ b/obsolete/language/thai/thailatex/babel/Makefile.am
@@ -0,0 +1,31 @@
+BABEL_COMMON = thswitch.sty lthenc.def tis620.def
+
+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/$(PACKAGE)
+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
+ rm -f thai.ldf
+ $(LATEX) thai.ins
+
+thai.pdf: thai.dtx
+ if [ ! -f thai.dtx ]; then \
+ $(LN_S) $(srcdir)/thai.dtx thai.dtx; \
+ fi
+ $(PDFLATEX) thai.dtx
+ $(PDFLATEX) thai.dtx
+
diff --git a/obsolete/language/thai/thailatex/babel/Makefile.in b/obsolete/language/thai/thailatex/babel/Makefile.in
new file mode 100644
index 0000000000..d3ad65a1d6
--- /dev/null
+++ b/obsolete/language/thai/thailatex/babel/Makefile.in
@@ -0,0 +1,440 @@
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 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@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
+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.ac
+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__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
+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__uninstall_files_from_dir = { \
+ test -z "$$files" \
+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+ $(am__cd) "$$dir" && rm -f $$files; }; \
+ }
+am__installdirs = "$(DESTDIR)$(babeldir)" "$(DESTDIR)$(docdir)"
+DATA = $(babel_DATA) $(doc_DATA)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CTTEX = @CTTEX@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+FMTUTIL = @FMTUTIL@
+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@
+PATGEN = @PATGEN@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PDFLATEX = @PDFLATEX@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+SWATH = @SWATH@
+TEXHASH = @TEXHASH@
+VERSION = @VERSION@
+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 = thswitch.sty lthenc.def tis620.def
+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/$(PACKAGE)
+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)
+ @list='$(babel_DATA)'; test -n "$(babeldir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(babeldir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(babeldir)" || exit 1; \
+ fi; \
+ 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|^.*/||'`; \
+ dir='$(DESTDIR)$(babeldir)'; $(am__uninstall_files_from_dir)
+install-docDATA: $(doc_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(docdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(docdir)" || exit 1; \
+ fi; \
+ 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|^.*/||'`; \
+ dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir)
+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:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+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
+ rm -f thai.ldf
+ $(LATEX) thai.ins
+
+thai.pdf: thai.dtx
+ if [ ! -f thai.dtx ]; then \
+ $(LN_S) $(srcdir)/thai.dtx thai.dtx; \
+ fi
+ $(PDFLATEX) thai.dtx
+ $(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/obsolete/language/thai/thailatex/babel/lthenc.def b/obsolete/language/thai/thailatex/babel/lthenc.def
new file mode 100644
index 0000000000..1632b6ea78
--- /dev/null
+++ b/obsolete/language/thai/thailatex/babel/lthenc.def
@@ -0,0 +1,157 @@
+%% This file is part of the thailatex package
+%% Created by Surapant Meknavin: surapan@nectec.or.th
+%% 2011/12/26 Theppitak Karoonboonyanan <thep@linux.thai.net>
+%% - add ASCII symbols \textdollar \textasciicircum \textasciitilde
+%% \textbackslash \textbar \textbraceleft \textbraceright
+%% \textgreater \textless \textquotedbl
+%% - add Latin symbols \textdagger \textdaggerdbl \textsection
+%% \textparagraph \copyright \textregistered \texttrademark
+%% \ss \ae \AE \oe \OE \i \j
+%% - drop text commands for copyright, registered, trademark, SS,
+%% in favor of native font glyphs
+%% - drop Latin wrapper to \TeX and \LaTeX commands
+%% 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}
+ [2011/12/26 v1.2
+ Thai Encoding]
+\DeclareFontEncoding{LTH}{}{}
+\DeclareFontSubstitution{LTH}{norasi}{m}{n}
+\DeclareErrorFont{LTH}{norasi}{m}{n}{10}
+% ASCII/Latin
+\DeclareTextSymbol{\textdollar}{LTH}{`\$}
+\DeclareTextSymbol{\textasciicircum}{LTH}{`\^}
+\DeclareTextSymbol{\textasciitilde}{LTH}{`\~}
+\DeclareTextSymbol{\textbackslash}{LTH}{`\\}
+\DeclareTextSymbol{\textbar}{LTH}{`\|}
+\DeclareTextSymbol{\textbraceleft}{LTH}{`\{}
+\DeclareTextSymbol{\textbraceright}{LTH}{`\}}
+\DeclareTextSymbol{\textgreater}{LTH}{`\>}
+\DeclareTextSymbol{\textless}{LTH}{`\<}
+\DeclareTextSymbol{\textquotedbl}{LTH}{`\"}
+\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{\textdagger}{LTH}{4}
+\DeclareTextSymbol{\textdaggerdbl}{LTH}{5}
+\DeclareTextSymbol{\textsection}{LTH}{6}
+\DeclareTextSymbol{\textparagraph}{LTH}{7}
+\DeclareTextSymbol{\copyright}{LTH}{8}
+\DeclareTextSymbol{\textregistered}{LTH}{9}
+\DeclareTextSymbol{\texttrademark}{LTH}{10}
+\DeclareTextSymbol{\ss}{LTH}{11}
+\DeclareTextSymbol{\ae}{LTH}{12}
+\DeclareTextSymbol{\AE}{LTH}{13}
+\DeclareTextSymbol{\oe}{LTH}{14}
+\DeclareTextSymbol{\OE}{LTH}{15}
+\DeclareTextSymbol{\i}{LTH}{25}
+\DeclareTextSymbol{\j}{LTH}{26}
+% Thai special characters
+\DeclareTextSymbol{\textyamakkan}{LTH}{238}
+\DeclareTextSymbol{\textfongmun}{LTH}{239}
+\DeclareTextSymbol{\textangkhankhu}{LTH}{250}
+\DeclareTextSymbol{\textkhomut}{LTH}{251}
+% Pali-Sanskrit
+\DeclareTextSymbol{\textYoYingPali}{LTH}{144}
+\DeclareTextSymbol{\textThoThanPali}{LTH}{128}
+% 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/obsolete/language/thai/thailatex/babel/thai.dtx b/obsolete/language/thai/thailatex/babel/thai.dtx
new file mode 100644
index 0000000000..5f8bedfa05
--- /dev/null
+++ b/obsolete/language/thai/thailatex/babel/thai.dtx
@@ -0,0 +1,845 @@
+% \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}
+ [2013/01/29 v1.5 Thai support from the babel system]
+%\iffalse
+%% File `thai.dtx'
+%% Thai Language Definition File
+%% Copyright (C) 1999 - 2013
+%% 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.}
+% \changes{thai-1.3}{2011/03/17}{Theppitak Karoonboonyanan:
+% Add \cs{\backslash{}textpali} macro for typesetting Pali text with
+% descender-less Yo Ying and Tho Than. Update translation for
+% \cs{\backslash{}refname}}
+% \changes{thai-1.4}{2011/10/18}{Theppitak Karoonboonyanan:
+% Remove font-specific macros}
+% \changes{thai-1.4a}{2011/11/23}{Theppitak Karoonboonyanan:
+% Revise documentation}
+% \changes{thai-1.4b}{2011/12/16}{Theppitak Karoonboonyanan:
+% Remove extra space in \cs{\backslash{}wbr}. Word spacing is considered
+% suboptimal.}
+% \changes{thai-1.4c}{2011/12/19}{Theppitak Karoonboonyanan:
+% Revise documentation}
+% \changes{thai-1.4d}{2012/02/10}{Theppitak Karoonboonyanan:
+% Revise documentation. Add documentation for Thai line stretching.}
+% \changes{thai-1.5}{2013/01/29}{Theppitak Karoonboonyanan:
+% Add space stretching support.}
+%
+% \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. The
+% original author was Surapant Meknavin, and it was composed into
+% \file{\filename} and maintained by Theppitak Karoonboonyanan
+% (\texttt{thep@linux.thai.net}).}
+% defines language-specific macros for Thai language.
+%
+% \subsection{Input encoding}
+%
+% Thai documents supported by this language definition can be encoded in
+% either TIS-620 (ISO/IEC 8859-11) or UTF-8 with the aids of the
+% \texttt{inputenc} package.
+%
+% \DescribeMacro{\thaitext}
+% \DescribeMacro{\latintext}
+% The commands |\thaitext| and |\latintext| can be used to switch to Thai
+% or Latin fonts. These are declarations.
+%
+% \DescribeMacro{\textthai}
+% \DescribeMacro{\textlatin}
+% The commands |\textthai| and |\textlatin| both take one text argument
+% which is then typeset using the requested language settings.
+%
+% \DescribeMacro{\textpali}
+% The command |\textpali| takes one text argument which is then typeset
+% using Thai font, with special shapes for certain characters, such as
+% descender-less Yo Ying and Tho Than, as required by usual Pali-Sanskrit
+% transliteration.
+%
+% \subsection{Word breaks}
+%
+% Thai is written continuously without word delimitors. The word boundary
+% analysis is considered too complicated for rule-based approaches.
+% Most available good-quality word analysis tools employ special matching
+% algorithms against pre-defined dictionaries. Some even use
+% statistics-based contextual analysis to resolve ambiguities. Therefore,
+% no good hyphenation pattern is found to be comparable with those tools
+% yet.
+%
+% \DescribeMacro{\wbr}
+% What provided here for the word boundary problem is the |\wbr| command
+% for separating words. It delimits words without taking physical space,
+% so that the \TeX\ typesetter still wraps lines at word boundary like
+% when it typesets English text.
+%
+% Therefore, one can preprocess their Thai document using Thai word analysis
+% tools which automatically insert the |\wbr| commands between words, such
+% as:
+% \begin{itemize}
+% \item \emph{cttex} by Vuthichai Ampornaramveth
+% \item \emph{swath} by Phaisarn Charoenpornsawat, now maintained by Thai
+% Linux Working Group, which can be downloaded from:\\
+% \texttt{ftp://linux.thai.net/pub/thailinux/software/swath}
+%
+% To compile \emph{swath}, you need \emph{libdatrie} as the
+% dependency, which is provided under the \emph{libthai} project:\\
+% \texttt{ftp://linux.thai.net/pub/thailinux/software/libthai}
+% \end{itemize}
+%
+% \subsection{Thai numbering}
+% \label{thai-numbering}
+%
+% 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 be applied
+% 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 using the
+% \Lopt{thainumber} option. When this option is supplied 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 file from being
+% 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}
+%
+% The next step consists of defining commands to switch to the Thai
+% language, for users 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}\selectfont%
+ \def\encodingdefault{LTH}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\textthai}
+% This command takes one text argument which is then typeset using Thai font
+% encoding.
+% \begin{macrocode}
+\DeclareRobustCommand{\textthai}[1]{{\thaitext #1}}
+% \end{macrocode}
+% \end{macro}
+%
+% \subsubsection{Pali-Sanskrit Transliteration}
+%
+% Thai script can also be used for writing Pali and Sanskrit. Additional
+% conventions are applied when doing so: (a) Yo Ying and Tho Than must be
+% written without descender; (b) Phinthu is used for marking cluster;
+% (c) Nikhahit is used as a Pali-Sanskrit consonant.
+%
+% (b) is inherently applicable as combining character. So is (c), with
+% an exception for the case in which it is combined over upper vowel
+% (namely, Sara I), where it must be shifted to higher position. Nikhahit
+% shifting is implemented in the ligkern rules with the extra glyph
+% provision in the fonts.
+%
+% What is left here is (a). Yo Ying and Tho Than must be converted to
+% their descender-less variants. The |\textpali| macro is defined
+% for this purpose. Note that |\wbr| commands which are normally inserted
+% by automatic tools are ignored here, as most of such tools are not
+% designed for Pali/Sanskrit. Besides, Pali/Sanskrit is already space
+% delimited.
+%
+% \begin{macro}{\textpali}
+% This command converts all Yo Ying and Tho Than in its argument to
+% their descender-less variations.
+% \begin{macrocode}
+\DeclareRobustCommand{\textpali}[1]{%
+ \begingroup
+ \def\thaiYoYing{\textYoYingPali{}}%
+ \def\thaiThoThan{\textThoThanPali{}}%
+ \def\wbr{}%
+ \scantokens\expandafter{#1}\relax
+ \endgroup
+}
+% \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{\thaiSaraE\thaiOAng\thaiKoKai\thaiSoSua\thaiSaraAa\thaiRoRua%
+ \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\relax}
+% \end{macrocode}
+%
+% \subsection{Space stretching}
+%
+% Since ordinary Thai text contains fewer spaces than English,
+% the \TeX{} justification is stressed with fewer places to stretch
+% to make the line reach the right margin. This usually ends up with
+% overfull lines when \TeX{} decides to include the next word to fill
+% the space, instead of trying to manipulate spacing with appropriate
+% amount of text. Possible solutions to this problem include:
+% \begin{itemize}
+% \item \emph{Use letter spacing.} This is a common practice in Thai
+% publishing. However, \TeX{} does not allow this, probably not to
+% shag sheep.\footnote{\emph{``Men who would letterspace blackletter
+% would shag sheep'' --- Frederick Goudy.}}
+% \item \emph{Allow stretching between words.} This used to be a simple
+% hack in an old version of this module, until it was finally
+% dropped in version 1.4b, as it was considered suboptimal.
+% \item \emph{Allow more space stretching.} This can be more acceptable,
+% compared to the ragged right margin. And it is what we do here.
+% \end{itemize}
+%
+% \begin{macrocode}
+\setlength{\emergencystretch}{0.6em}
+% \end{macrocode}
+%
+% \subsection{Line spacing}
+%
+% Due to multi-level combining character stacking, Thai text lines
+% can occupy more vertical space than English. To prevent overlapping,
+% \TeX{} allocates more height for lines with combining characters
+% but not for those without. This can cause irregular line spacing.
+% To avoid this problem, we need to stretch the line spacing.
+%
+% \begin{macrocode}
+\renewcommand{\baselinestretch}{1.2}
+% \end{macrocode}
+%
+% \subsection{Thai numbering support}
+%
+% This section provides Thai numbering styles as described in
+% \S\ref{thai-numbering}: |\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, Thai digits will be used in all numberings.
+%
+% \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{Miscellaneous}
+%
+% 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/obsolete/language/thai/thailatex/babel/thai.ins b/obsolete/language/thai/thailatex/babel/thai.ins
new file mode 100644
index 0000000000..a7dc43dde5
--- /dev/null
+++ b/obsolete/language/thai/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/obsolete/language/thai/thailatex/babel/thswitch.sty b/obsolete/language/thai/thailatex/babel/thswitch.sty
new file mode 100644
index 0000000000..7a18e66e1d
--- /dev/null
+++ b/obsolete/language/thai/thailatex/babel/thswitch.sty
@@ -0,0 +1,27 @@
+%% 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
+\def\thairmdefault{norasi}
+\def\thaisfdefault{garuda}
+\def\thaittdefault{ttypist}
+\def\englishrmdefault{cmr}
+\def\englishsfdefault{cmss}
+\def\englishttdefault{cmtt}
+\DeclareRobustCommand{\thaitext}{%
+ \fontencoding{LTH}\fontfamily{\thairmdefault}\selectfont
+ \def\rmdefault{\thairmdefault}%
+ \def\sfdefault{\thaisfdefault}%
+ \def\ttdefault{\thaittdefault}%
+ \def\encodingdefault{LTH}}
+
+\DeclareRobustCommand{\latintext}{%
+ \fontencoding{\latinencoding}\fontfamily{\englishrmdefault}\selectfont
+ \def\rmdefault{\englishrmdefault}%
+ \def\sfdefault{\englishsfdefault}%
+ \def\ttdefault{\englishttdefault}%
+ \def\encodingdefault{\latinencoding}}
+
diff --git a/obsolete/language/thai/thailatex/babel/tis620.def b/obsolete/language/thai/thailatex/babel/tis620.def
new file mode 100644
index 0000000000..589dea77e8
--- /dev/null
+++ b/obsolete/language/thai/thailatex/babel/tis620.def
@@ -0,0 +1,108 @@
+\ProvidesFile{tis620.def}
+ [2011/03/16 v1.0 Thai TIS-620 input encoding file]
+% tis620 input encoding file by Theppitak Karoonboonyanan
+%
+% Copyright 2011 Theppitak Karoonboonyanan. 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.
+%
+
+\DeclareInputText{161}{\thaiKoKai}
+\DeclareInputText{162}{\thaiKhoKhai}
+\DeclareInputText{163}{\thaiKhoKhuat}
+\DeclareInputText{164}{\thaiKhoKhwai}
+\DeclareInputText{165}{\thaiKhoKhon}
+\DeclareInputText{166}{\thaiKhoRakhang}
+\DeclareInputText{167}{\thaiNgoNgu}
+\DeclareInputText{168}{\thaiChoChan}
+\DeclareInputText{169}{\thaiChoChing}
+\DeclareInputText{170}{\thaiChoChang}
+\DeclareInputText{171}{\thaiSoSo}
+\DeclareInputText{172}{\thaiChoChoe}
+\DeclareInputText{173}{\thaiYoYing}
+\DeclareInputText{174}{\thaiDoChada}
+\DeclareInputText{175}{\thaiToPatak}
+\DeclareInputText{176}{\thaiThoThan}
+\DeclareInputText{177}{\thaiThoNangmontho}
+\DeclareInputText{178}{\thaiThoPhuthao}
+\DeclareInputText{179}{\thaiNoNen}
+\DeclareInputText{180}{\thaiDoDek}
+\DeclareInputText{181}{\thaiToTao}
+\DeclareInputText{182}{\thaiThoThung}
+\DeclareInputText{183}{\thaiThoThahan}
+\DeclareInputText{184}{\thaiThoThong}
+\DeclareInputText{185}{\thaiNoNu}
+\DeclareInputText{186}{\thaiBoBaimai}
+\DeclareInputText{187}{\thaiPoPla}
+\DeclareInputText{188}{\thaiPhoPhung}
+\DeclareInputText{189}{\thaiFoFa}
+\DeclareInputText{190}{\thaiPhoPhan}
+\DeclareInputText{191}{\thaiFoFan}
+\DeclareInputText{192}{\thaiPhoSamphao}
+\DeclareInputText{193}{\thaiMoMa}
+\DeclareInputText{194}{\thaiYoYak}
+\DeclareInputText{195}{\thaiRoRua}
+\DeclareInputText{196}{\thaiRu}
+\DeclareInputText{197}{\thaiLoLing}
+\DeclareInputText{198}{\thaiLu}
+\DeclareInputText{199}{\thaiWoWaen}
+\DeclareInputText{200}{\thaiSoSala}
+\DeclareInputText{201}{\thaiSoRusi}
+\DeclareInputText{202}{\thaiSoSua}
+\DeclareInputText{203}{\thaiHoHip}
+\DeclareInputText{204}{\thaiLoChula}
+\DeclareInputText{205}{\thaiOAng}
+\DeclareInputText{206}{\thaiHoNokhuk}
+\DeclareInputText{207}{\thaiPaiyannoi}
+\DeclareInputText{208}{\thaiSaraA}
+\DeclareInputText{209}{\thaiMaiHanakat}
+\DeclareInputText{210}{\thaiSaraAa}
+\DeclareInputText{211}{\thaiSaraAm}
+\DeclareInputText{212}{\thaiSaraI}
+\DeclareInputText{213}{\thaiSaraIi}
+\DeclareInputText{214}{\thaiSaraUe}
+\DeclareInputText{215}{\thaiSaraUee}
+\DeclareInputText{216}{\thaiSaraU}
+\DeclareInputText{217}{\thaiSaraUu}
+\DeclareInputText{218}{\thaiPhinthu}
+\DeclareInputText{223}{\textbaht}
+\DeclareInputText{224}{\thaiSaraE}
+\DeclareInputText{225}{\thaiSaraAe}
+\DeclareInputText{226}{\thaiSaraO}
+\DeclareInputText{227}{\thaiSaraAiMaimuan}
+\DeclareInputText{228}{\thaiSaraAiMaimalai}
+\DeclareInputText{229}{\thaiLakkhangyao}
+\DeclareInputText{230}{\thaiMaiyamok}
+\DeclareInputText{231}{\thaiMaitaikhu}
+\DeclareInputText{232}{\thaiMaiEk}
+\DeclareInputText{233}{\thaiMaiTho}
+\DeclareInputText{234}{\thaiMaiTri}
+\DeclareInputText{235}{\thaiMaiChattawa}
+\DeclareInputText{236}{\thaiThanthakhat}
+\DeclareInputText{237}{\thaiNikhahit}
+\DeclareInputText{238}{\thaiYamakkan}
+\DeclareInputText{239}{\thaiFongman}
+\DeclareInputText{240}{\thaizero}
+\DeclareInputText{241}{\thaione}
+\DeclareInputText{242}{\thaitwo}
+\DeclareInputText{243}{\thaithree}
+\DeclareInputText{244}{\thaifour}
+\DeclareInputText{245}{\thaifive}
+\DeclareInputText{246}{\thaisix}
+\DeclareInputText{247}{\thaiseven}
+\DeclareInputText{248}{\thaieight}
+\DeclareInputText{249}{\thainine}
+\DeclareInputText{250}{\thaiAngkhankhu}
+\DeclareInputText{251}{\thaiKhomut}
+