| 1 |
%%% This is hylang.tex (version 1.0), where language definitions |
| 2 |
%%% actually occur. The first one should always be |
| 3 |
%%% American English, for compatibility with plain TeX. |
| 4 |
%%% |
| 5 |
%%% Users can modify this file in order to define the |
| 6 |
%%% languages they need. |
| 7 |
%%% |
| 8 |
%%% Every language definition should be followed by a |
| 9 |
%%% \refinelanguage command where conventions specific to |
| 10 |
%%% the language are set; users should at least provide |
| 11 |
%%% the left and right hyphenation minima using |
| 12 |
%%% \hyphenmins{<left>}{<right>} |
| 13 |
%%% |
| 14 |
%%% In the third argument one puts what has to be done |
| 15 |
%%% when activating the language; in the fourth argument |
| 16 |
%%% what needs to be undone. |
| 17 |
|
| 18 |
%%% US English must always come first |
| 19 |
\definebaselanguage{en}{US}{hyphen} %%% <--- don't modify |
| 20 |
\refinelanguage{en}{US}{\hyphenmins{2}{3}}{} |
| 21 |
|
| 22 |
%%% Italian |
| 23 |
\definelanguage{it}{IT}{ithyph} |
| 24 |
\refinelanguage{it}{IT}{\hyphenmins{2}{2}\lccode`\'=`\'}{\lccode`\'=0 } |
| 25 |
|
| 26 |
%%% Add other languages if needed |
| 27 |
%%% |
| 28 |
%%% The arguments to \definelanguage are: |
| 29 |
%%% #1: the language code; it is an arbitrary string, use the |
| 30 |
%%% ISO two-letter language code for uniformity, or `nde' for |
| 31 |
%%% new orthography German |
| 32 |
%%% #2: the nation code; use the uppercase ISO two-letter code |
| 33 |
%%% #3: the file with hyphenation patterns |
| 34 |
%%% |
| 35 |
%%% The arguments to \refinelanguage and \refinedialect are: |
| 36 |
%%% #1 and #2: a pair defined through \definelanguage or \definedialect |
| 37 |
%%% #3: commands to be executed when entering the language |
| 38 |
%%% #4: commands to be undone when entering a new language |
| 39 |
%%% |
| 40 |
% \definelanguage{xx}{YY}{xxhyph} |
| 41 |
% \refinelanguage{xx}{YY}{<something>}{<something>} |
| 42 |
% |
| 43 |
% \definedialect{aa}{BB}{xx}{XX} |
| 44 |
% \refinedialect{aa}{BB}{<something>}{<something>} |
| 45 |
|
| 46 |
% At last the fallback, a language with no patterns |
| 47 |
\definelanguage{zz}{ZZ}{zerohyph} |
| 48 |
% \refinelanguage{zz}{ZZ}{}{} % no need to set conventions |
| 49 |
|
| 50 |
%%% Aliases |
| 51 |
\addalias\US{en}{US} |
| 52 |
\addalias\IT{it}{IT} |
| 53 |
\addalias\ZZ{zz}{ZZ} |
| 54 |
\addalias\nohyphens{zz}{ZZ} |
| 55 |
|
| 56 |
\endinput |
| 57 |
|