Debian Codegraph @

texmf-dist/source/generic/langcode/langcode.tex

raw
1 \ProvidesFile{langcode.tex}[2012/09/20 documenting langcode.sty]
2 \title{\pkgtitle{langcode.sty}{%
3 Simple Language-Dependent Settings\\
4 Based on Language Codes}}
5 { \RequirePackage{makedoc} \ProcessLineMessage{}
6 \MakeJobDoc{17}%% 2011/11/23
7 {\SectionLevelThreeParseInput} } %% 2012/09/17
8 \documentclass[fleqn]{article}
9 % \usepackage{inputtrc} \dotracinginputs
10 \input{makedoc.cfg} %% shared formatting settings
11 % \ReadPackageInfos{langcode}
12 % \usepackage{langcode,catchdq,ngerman} \originalTeX
13 \usepackage{catchdq,langcode,ngerman} \originalTeX
14 % \show\endqtd
15 \MDkeywords{languages other than English; German, macro programming
16 (programming structures), hypertext}
17 \sloppy
18 % \listfiles
19 \begin{document}
20 \maketitle
21 \begin{MDabstract}
22 'langcode.sty' in the first instance provides a command
23 $$|\uselangcode{<chars>}|$$ to adjust language-dependent settings,
24 such as key words, typographical conventions, and language codes
25 (\acro{\Wikiref{ISO-639-1}}).
26 % it is intended to be a kind of ``leight-weight" \ctanpkgref{babel}.
27 % It uses \ctanpkgref{dowith} for adjustments and
28 % \ctanpkgref{plainpkg} for use with both \LaTeX\ and Plain \TeX.
29 An author frequently writing documents in two or more languages
30 can use the same commands independently of the language,
31 provided they are gathered in a list macro to be
32 used by the \ctanpkgref{dowith} package.
33 If `\<cmd>' is in the list, it is set to work like
34 `\<chars><cmd>', and a macro `\langcode' will expand to
35 <chars> (the respective tokens), usable in \acro{URL}s.---The
36 package is ``generic," based on \ctanpkgref{plainpkg}.
37 The code has been used with \ctanpkgref{morehype} and
38 'catchdq' (\ctanpkgref{catcodes}), but may be useful more generally.
39 \MDaddtoabstract{Related packages} \ctanpkgref{babel}, \ctanpkgref{polyglossia}
40 % \ctanpkgref{morehype}, 'catchdq' (\ctanpkgref{catcodes}),
41 % \ctanpkgref{dowith}
42 \end{MDabstract}
43 \newpage
44 \tableofcontents
45 % \newpage
46 % \section{Features and Usage}
47 \section{Installing and Calling}
48 The file 'langcode.sty' is provided ready, installation only requires
49 putting it somewhere where \TeX\ finds it
50 (which may need updating the filename data
51 base).\urlfoot{ukfaqref}{inst-wlcf} %% corr. 2011/02/08
52 The packages \ctanpkgref{dowith}, \ctanpkgref{plainpkg},
53 and 'stacklet' (\ctanpkgref{catcodes}) must be installed as well.
54
55 As to calling (loading): 'langcode' is a ``\pkg{plainpkg} package"
56 in the sense of the
57 \ctanpkgref{plainpkg}\,\foothttpurlref{ctan.org/pkg/plainpkg}
58 documentation that you may consult for details.
59 So roughly,
60 \begin{itemize}
61 \item load it by \ |\usepackage{langcode}| \ if you can,
62 \item otherwise by \ |\RequirePackage{langcode}| \\
63 (perhaps from within another ``\pkg{plainpkg} package"),
64 \item or by \ |\input langcode.sty|
65 \item or even by \ |\input{langcode.sty}|~\dots
66 \end{itemize}
67
68 % \pagebreak
69 % \section{The Package File}
70 \section{Header---\pkg{plainpkg} and Legalese}
71 On the right hand side, that `plainpkg.tex' is loaded,
72 before the package version is declared, for ``generic" function:
73 \input{langcode.doc}
74
75 \end{document}
76
77 VERSION HISTORY
78
79 2012/09/17 for v0.1 very first
80 2012/09/20 extended ...