summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/langcode
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-09-21 22:41:34 +0000
committerKarl Berry <karl@freefriends.org>2012-09-21 22:41:34 +0000
commit01b93a5e06fc5b6aecdf087e7b0a9ca8eb14a010 (patch)
tree0429d6c2863f9bfa761cf4362bf7eedcb85611e1 /Master/texmf-dist/source/generic/langcode
parent58643c9c7849421f436ead6fb2d83111fe4606b2 (diff)
new generic package langcode (21sep12)
git-svn-id: svn://tug.org/texlive/trunk@27764 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/generic/langcode')
-rw-r--r--Master/texmf-dist/source/generic/langcode/langcode.tex80
-rw-r--r--Master/texmf-dist/source/generic/langcode/srcfiles.tex14
2 files changed, 94 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/generic/langcode/langcode.tex b/Master/texmf-dist/source/generic/langcode/langcode.tex
new file mode 100644
index 00000000000..fe7f417a3c8
--- /dev/null
+++ b/Master/texmf-dist/source/generic/langcode/langcode.tex
@@ -0,0 +1,80 @@
+\ProvidesFile{langcode.tex}[2012/09/20 documenting langcode.sty]
+\title{\pkgtitle{langcode.sty}{%
+ Simple Language-Dependent Settings\\
+ Based on Language Codes}}
+{ \RequirePackage{makedoc} \ProcessLineMessage{}
+ \MakeJobDoc{17}%% 2011/11/23
+ {\SectionLevelThreeParseInput} } %% 2012/09/17
+\documentclass[fleqn]{article}
+% \usepackage{inputtrc} \dotracinginputs
+\input{makedoc.cfg} %% shared formatting settings
+% \ReadPackageInfos{langcode}
+% \usepackage{langcode,catchdq,ngerman} \originalTeX
+\usepackage{catchdq,langcode,ngerman} \originalTeX
+% \show\endqtd
+\MDkeywords{languages other than English; German, macro programming
+ (programming structures), hypertext}
+\sloppy
+% \listfiles
+\begin{document}
+\maketitle
+\begin{MDabstract}
+'langcode.sty' in the first instance provides a command
+$$|\uselangcode{<chars>}|$$ to adjust language-dependent settings,
+such as key words, typographical conventions, and language codes
+(\acro{\Wikiref{ISO-639-1}}).
+% it is intended to be a kind of ``leight-weight" \ctanpkgref{babel}.
+% It uses \ctanpkgref{dowith} for adjustments and
+% \ctanpkgref{plainpkg} for use with both \LaTeX\ and Plain \TeX.
+An author frequently writing documents in two or more languages
+can use the same commands independently of the language,
+provided they are gathered in a list macro to be
+used by the \ctanpkgref{dowith} package.
+If `\<cmd>' is in the list, it is set to work like
+`\<chars><cmd>', and a macro `\langcode' will expand to
+<chars> (the respective tokens), usable in \acro{URL}s.---The
+package is ``generic," based on \ctanpkgref{plainpkg}.
+The code has been used with \ctanpkgref{morehype} and
+'catchdq' (\ctanpkgref{catcodes}), but may be useful more generally.
+\MDaddtoabstract{Related packages} \ctanpkgref{babel}, \ctanpkgref{polyglossia}
+% \ctanpkgref{morehype}, 'catchdq' (\ctanpkgref{catcodes}),
+% \ctanpkgref{dowith}
+\end{MDabstract}
+\newpage
+\tableofcontents
+% \newpage
+% \section{Features and Usage}
+\section{Installing and Calling}
+The file 'langcode.sty' is provided ready, installation only requires
+putting it somewhere where \TeX\ finds it
+(which may need updating the filename data
+ base).\urlfoot{ukfaqref}{inst-wlcf} %% corr. 2011/02/08
+The packages \ctanpkgref{dowith}, \ctanpkgref{plainpkg},
+and 'stacklet' (\ctanpkgref{catcodes}) must be installed as well.
+
+As to calling (loading): 'langcode' is a ``\pkg{plainpkg} package"
+in the sense of the
+\ctanpkgref{plainpkg}\,\foothttpurlref{ctan.org/pkg/plainpkg}
+documentation that you may consult for details.
+So roughly,
+\begin{itemize}
+ \item load it by \ |\usepackage{langcode}| \ if you can,
+ \item otherwise by \ |\RequirePackage{langcode}| \\
+ (perhaps from within another ``\pkg{plainpkg} package"),
+ \item or by \ |\input langcode.sty|
+ \item or even by \ |\input{langcode.sty}|~\dots
+\end{itemize}
+
+% \pagebreak
+% \section{The Package File}
+\section{Header---\pkg{plainpkg} and Legalese}
+On the right hand side, that `plainpkg.tex' is loaded,
+before the package version is declared, for ``generic" function:
+\input{langcode.doc}
+
+\end{document}
+
+VERSION HISTORY
+
+2012/09/17 for v0.1 very first
+2012/09/20 extended ...
diff --git a/Master/texmf-dist/source/generic/langcode/srcfiles.tex b/Master/texmf-dist/source/generic/langcode/srcfiles.tex
new file mode 100644
index 00000000000..e90ac1459bb
--- /dev/null
+++ b/Master/texmf-dist/source/generic/langcode/srcfiles.tex
@@ -0,0 +1,14 @@
+\ProvidesFile{srcfiles.tex}[2012/09/20 file infos -> SrcFILEs.txt]
+\RequirePackage{nicefilelist}
+\MFfieldtemplate{f-base}{langcode}
+\RequirePackage{myfilist}
+\EmptyFileList %%% [readprov.sty,myfilist.sty]
+%% packages:
+\ReadPackageInfos{langcode}
+%% documentation:
+\ReadFileInfos{langcode}
+%% documentation settings and auxiliaries: % % rm. 2012/09/20
+\ReadPackageInfos{fifinddo,makedoc,niceverb}
+\ReadFileInfos{makedoc.cfg,mdoccorr.cfg,srcfiles}
+\ListInfos[SrcFILEs.txt]
+