diff options
Diffstat (limited to 'Master/texmf-dist/tex/luatex/optex/languages.opm')
-rw-r--r-- | Master/texmf-dist/tex/luatex/optex/languages.opm | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/luatex/optex/languages.opm b/Master/texmf-dist/tex/luatex/optex/languages.opm index 5bfa2febdc3..c56ec0cc122 100644 --- a/Master/texmf-dist/tex/luatex/optex/languages.opm +++ b/Master/texmf-dist/tex/luatex/optex/languages.opm @@ -3,12 +3,14 @@ \_codedecl \_mtext {Languages <2020-03-15>} % preloaded in format \_doc ----------------------------- - Only three words are generated by \OpTeX/ macros: \"Chapter", - \"Table", \"Figure" and \"Subject". These words can be generated depending - on the current value of `\language` register, if you use `\_mtext{chap}`, - `\_mtext{t}` or `\_mtext{f}`. If your macros generate more words then - you can define such words by `\sdef{_mt:<label>:<lang>}` where - <label> is a label for declared word and <lang> is language shortcut. + Only four words are generated by \OpTeX/ macros: \"Chapter", + \"Table", \"Figure" and \"Subject". These phrases can be generated depending + on the current value of `\language` register, if you use \`\_mtext``{<phrase-id>}`, + specially `\_mtext{chap}`, `\_mtext{t}`, `\_mtext{f}` or `\_mtext{subj}`. + If your macros generate more words then + you can define such words by `\sdef{_mt:<phrase-id>:<lang>}` where + `<phrase-id>` is a label for declared word and `<lang>` is language shortcut + (iso code). \_cod ----------------------------- \def\_mtext#1{\_trycs{_mt:#1:\_trycs{_lan:\_the\_language}{en}} @@ -20,8 +22,9 @@ \sdef{_mt:subj:en}{Subject} \sdef{_mt:subj:cs}{Věc} \sdef{_mt:subj:sk}{Vec} \_doc ----------------------------- - Using `\_langw <lang> <chapter> <table> <figure> <subject>` you can - declare these words more efectively. + Using \`\_langw` `<lang> <chapter> <table> <figure> <subject>` you can + declare these words more effectively: + \maxlines=13 \_cod ----------------------------- \_def \_langw #1 #2 #3 #4 #5 {% @@ -35,14 +38,14 @@ \_langw de Kapitel Tabelle Obrázek Subjekt \_langw es Capítulo Tabla Figura Sujeto \_langw fr Chaptire Tableau Figure Matière -\_langw gr Κεφάλαιο Πίνακας Σχήμα θέμα \_langw it Capitolo Tabella Fig. Soggetto \_langw pl Rozdział Tabela Ilustracja Temat +\_langw gr Κεφάλαιο Πίνακας Σχήμα θέμα \_langw ru Глава Таблица Рисунок Предмет \_langw sk Kapitola Tabuľka Obrázok Vec \_doc ----------------------------- - You can add more words as you wish. For eample `\today` macro: + You can add more words as you wish. For example \`\today` macro: \_cod ----------------------------- \_def \_monthw #1 #2 #3 #4 #5 #6 #7 {% @@ -71,14 +74,17 @@ \_doc ----------------------------- Quotes should be tagged by `\"<text>"` and `\'<text>'` if `\<iso-code>quotes` - is declared at beginning of the document. If not, then the control + is declared at beginning of the document (for example `\enquotes`). + If not, then the control sequences `\"` and `\'` are undefined. Remember, that they are used in another meaning when `\oldaccents` command is used. The macros `\"` and `\'` are not defined as `\protected` because we need their expansion when `\outlines` are created. - User can declare quotes by `\quoteschars<clqq><crqq><clq><crq>`, where - <clqq>...<crqq> are normal quotes and <clq>...<crq> are alternative quotes. - or use `\altquotes` to swap between meaning of these two types of quotes. + User can declare quotes by \`\quoteschars``<clqq><crqq><clq><crq>`, where + `<clqq>...<crqq>` are normal quotes and `<clq>...<crq>` are alternative quotes. + or use \`\altquotes` to swap between meaning of these two types of quotes. + \nl + \`\enquotes`, \`\csquotes`, \`\dequotes`, \`\frquotes` etc. are defined here. \_cod ----------------------------- \_def \_enquotes {\_quoteschars “”‘’} @@ -98,9 +104,9 @@ \_doc ----------------------------- Sometimes should be usable to leave the markup `"such"` or `'such'` i.e.~without the first backslash. Then you can make the characters `"` and `'` active - by `\activequotes` macro and leave quotes without first backsash. - First, delare `\<iso-code>quotes`, then `\altwquotes` (if needed) and finally - `\activequotes`. + by the \`\activequotes` macro and leave quotes without first backslash. + First, declare `\<iso-code>quotes`, then \^`\altquotes` (if needed) and finally + \^`\activequotes`. \_cod ----------------------------- \def\_activequotes{\_ea\_activequotesA\"""\_ea\_activequotesA\'''} |