diff options
Diffstat (limited to 'Master/texmf-dist/tex/luatex/optex/base/languages.opm')
-rw-r--r-- | Master/texmf-dist/tex/luatex/optex/base/languages.opm | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/luatex/optex/base/languages.opm b/Master/texmf-dist/tex/luatex/optex/base/languages.opm index 52b52f775e7..ff9373b7202 100644 --- a/Master/texmf-dist/tex/luatex/optex/base/languages.opm +++ b/Master/texmf-dist/tex/luatex/optex/base/languages.opm @@ -1,6 +1,6 @@ %% This is part of the OpTeX project, see http://petr.olsak.net/optex -\_codedecl \_mtext {Languages <2020-12-05>} % preloaded in format +\_codedecl \_mtext {Languages <2021-01-21>} % preloaded in format \_doc ----------------------------- Only four words are generated by \OpTeX/ macros: \"Chapter", @@ -110,17 +110,20 @@ itself by \code{\\"{`"`}"}. This is the reason why the sub-verbatim mode is used when the first character is \code{\{} in the parameter.\nl The `\"` is defined as `\_qqA\_qqB<lqq><rqq>` and `\'` as `\_qqA\_qqC<lq><rq>`. - The \`\_qqA``\_qqB<clqq><crqq>` runs \`\_qqB``<lqq><rqq><text>"`. + The \`\_qqA``\_qqB<clqq><crqq>` runs \`\_qqB``<lqq><rqq><text>"`.\nl + The \`\_regquotes``\""<L><R>` does `\def\"#1"{<L>#1<R>}` for outlines but the `"` + separator is active (because `"` and `'` are active in \^`\pdfunidef`). \_cod ----------------------------- \_def \_quoteschars #1#2#3#4{\_def\_altquotes{\_quoteschars#3#4#1#2}\_public\altquotes;% \_protected\_def \"{\_qqA\_qqB#1#2}\_protected\_def \'{\_qqA\_qqC#3#4}% - \_regmacro{}{}{\_def \"##1"{#1##1#2}\_def \'##1'{#3##1#4}}} + \_regmacro{}{}{\_regquotes\""#1#2\_regquotes\''#3#4}} \_def\_qqA#1#2#3{\_bgroup\_setverb \_catcode`\ =10 \_isnextchar\_bgroup{\_catcode`\{=1 \_catcode`\}=2 #1#2#3}{#1#2#3}} \_long\_def\_qqB#1#2#3"{\_egroup#1\_scantextokens{#3}#2} \_long\_def\_qqC#1#2#3'{\_egroup#1\_scantextokens{#3}#2} +\_def\_regquotes#1#2#3#4{\_bgroup \_lccode`~=`#2\_lowercase{\_egroup \_def#1##1~}{#3##1#4}} \_doc ----------------------------- Sometimes should be usable to leave the markup `"such"` or `'such'` i.e.~without @@ -128,20 +131,10 @@ by the \`\activequotes` macro and leave quotes without the first backslash. First, declare `\<iso-code>quotes`, then \^`\altquotes` (if needed) and finally \^`\activequotes`. - - \`\_resetaquotes` redefines expandable version of `\"<text>"` and `\'<text>'` - used in outlines in order to the delimiter is {\em active} character. We - are testing if \^`\quoteschars` were used now because the error in outlines - can be more confusing. \_cod ----------------------------- -\_def\_activequotes{\_adef"{\"}\_adef'{\'}\_resetaquotes} - -\_bgroup \_catcode`,=13 \_lccode`\~=`\" \_lccode`\,=`\' \_lowercase{\_egroup - \_def\_resetaquotes{% - \_bgroup \_the\_regoul \_edef\_tmp{\"?"}\_egroup % test if \quoteschar were used - \_regmacro{}{}{\_edef\"##1~{\"##1"}\_edef\'##1,{\'##1'}}} -} +\_def\_activequotes{\_let\_actqq=\"\_adef"{\_actqq}\_let\_actq=\'\_adef'{\_actq}% + \_regmacro{}{}{\_adef"{\"}\_adef'{\'}}} \_public \quoteschars \activequotes \enquotes \csquotes \skquotes \frquotes \plquotes \esquotes \grquotes \ruquotes \itquotes \dequotes ; @@ -189,6 +182,7 @@ \_endcode % ------------------------------------- +2021-01-21 more robust quotes in outlines 2020-12-05 bib phrases moved here 2020-04-29 Obrazek -> Abbildung: bug fixed 2020-03-15 introduced |