summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/cstex/opmac-u-en.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-03-22 15:55:47 +0000
committerKarl Berry <karl@freefriends.org>2019-03-22 15:55:47 +0000
commit42572433f3db1affaf1b928cce4a7854df9c1cc6 (patch)
tree4e844a3ddfe707006ef22ff5a48b9a75c3ed8844 /Master/texmf-dist/doc/cstex/opmac-u-en.tex
parentc7c1e05806d5c63b93b5d82295e76b655f59c62f (diff)
cstex
git-svn-id: svn://tug.org/texlive/trunk@50527 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/cstex/opmac-u-en.tex')
-rw-r--r--Master/texmf-dist/doc/cstex/opmac-u-en.tex58
1 files changed, 21 insertions, 37 deletions
diff --git a/Master/texmf-dist/doc/cstex/opmac-u-en.tex b/Master/texmf-dist/doc/cstex/opmac-u-en.tex
index d448150ab35..5e5249d2102 100644
--- a/Master/texmf-dist/doc/cstex/opmac-u-en.tex
+++ b/Master/texmf-dist/doc/cstex/opmac-u-en.tex
@@ -1308,27 +1308,14 @@ page'':
OPmac supports all languages but only English, Czech and Slovak languages
are immediately ready for use. When using another language, you have to do
little more work. First of all, use \TeX{} engine and \TeX{} format ready
-for such language (with hyphenation patterns preloaded). In order to not
-fall to the ``encoding hell'', I recommend to use Unicode engine ("xetex" or
-"luatex") and to use Unicode font family where all characters and letters
-needed for your language are prepared.
+for such language (with hyphenation patterns preloaded or prepared).
+\CS{}plain for pdf\TeX{} supports 16 languages (since March 2019) but better
+choice is \CS{}plain for Lua\TeX{} which works in Unicode and supports all
+languages from \TeX{} distribution (about 57 languages).
-The "xetex" and "luatex" run with e\TeX{} plain format (generated from
-"etex.src" sources) by default. This format includes hyphenation tables for
-all languages. For example, you can select Spanish language by
-"\uselanguage{espanol}".
-
-OPmac needs to know the translation of three auto-generated words
-``Chapter'', ``Table'' and ``Figure'' for selected language. And this
-language is marked by its ISO 639-1 code, "es" for Spanish, for example.
-
-If you are using e\TeX{} plain format you
-must set the connection between long language name and short ISO code
-by the macro "\isolangset{<long-name>}{<iso-code>}". This command does nothing if
-\csplain{} is used, because \csplain{} sets ISO codes during format generation.
-
-The full example with Spanish language follows. Use "xetex example"
-or "luatex example" for compiling this.
+The next example shows usage of Spanish language. \CS{}plain for Lua\TeX{}
+is assumed, so use the command
+"luatex -fmt pdfcsplain example".
\mubyte \ntie ^^c3^^b1\endmubyte \def\ntie{\~n}
\mubyte \ccedilla ^^c3^^a7\endmubyte \def\ccedilla{\c c}
@@ -1336,27 +1323,13 @@ or "luatex example" for compiling this.
\begtt
\input opmac
+\input lmfonts % Unicode fonts
-\ifx\directlua\undefined \else \ifx\luafonts\undefined \input luafonts
-\fi\fi % lua code to re-define \font primitive, irrelevant in XeTeX
-
-\font\tenrm="DejaVu Serif" % Unicode font family,
-\font\tenbf="DejaVu Serif/B" % where all needed characters are ready
-\font\tenit="DejaVu Serif/I"
-\font\tenbi="DejaVu Serif/IB"
-\tenrm
-
-\input tx-math % Math setting using TX fonts
-
-\isolangset {espanol}{es}
\sdef{mt:chap:es}{Capítulo} % Chapter in es
\sdef{mt:t:es}{Cuadro} % Table in es
\sdef{mt:f:es}{Figura} % Figure in es
-\uselanguage{espanol} % Spanish hyphenation + autogenerated words
-\typosize[12/14.4]
-
-\tit Mañana
+\eslang % Spanish hyphenation + activation of declated "es" words
\sec Mañana
@@ -1367,6 +1340,17 @@ Mañana.
\bye
\endtt
+The declaration of the Spanish words ``Capítulo'', ``Cuadro'' and ``Figura''
+is shown in this example. You can see that such declaration is based on the
+short language name "es" (by ISO 639-1). The declared words are activated
+after the hyphenation selector "\eslang" is used.
+
+When you are using basic fromat from "etex.src", i.e.\ the commands
+"luatex example" or "xetex example", then you have to use language selector
+"\uselanguage{espanol}" instead "\eslang" and you have to declare the
+connection from long language name to short name by
+"\isolangset{espanol}{es}".
+
When sorting the index by "\makeindex" in the non-\csplain{} format, OPmac
writes a warning: ``falling back to ASCII sorting''.
If you want to use sorting rules given for your language,
@@ -1460,7 +1444,7 @@ macros for design. And you can find an inspiration of slides in OPmac tricks
\ulink[http://petr.olsak.net/opmac-tricks-e.html\#slidy]{0017 and 0022}.
-\vfil\break
+%\vfil\break
\sec Summary
%%%%%%%%%%%%