summaryrefslogtreecommitdiff
path: root/Master
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
parentc7c1e05806d5c63b93b5d82295e76b655f59c62f (diff)
cstex
git-svn-id: svn://tug.org/texlive/trunk@50527 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/cstex/opmac-u-en.pdfbin242981 -> 242907 bytes
-rw-r--r--Master/texmf-dist/doc/cstex/opmac-u-en.tex58
-rw-r--r--Master/texmf-dist/doc/cstex/opmac-u.pdfbin280633 -> 279804 bytes
-rw-r--r--Master/texmf-dist/doc/cstex/opmac-u.tex63
-rw-r--r--Master/tlpkg/tlpsrc/csplain.tlpsrc5
5 files changed, 47 insertions, 79 deletions
diff --git a/Master/texmf-dist/doc/cstex/opmac-u-en.pdf b/Master/texmf-dist/doc/cstex/opmac-u-en.pdf
index b37232b0db3..68c410b5518 100644
--- a/Master/texmf-dist/doc/cstex/opmac-u-en.pdf
+++ b/Master/texmf-dist/doc/cstex/opmac-u-en.pdf
Binary files differ
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
%%%%%%%%%%%%
diff --git a/Master/texmf-dist/doc/cstex/opmac-u.pdf b/Master/texmf-dist/doc/cstex/opmac-u.pdf
index c0b62016227..a0865091ce5 100644
--- a/Master/texmf-dist/doc/cstex/opmac-u.pdf
+++ b/Master/texmf-dist/doc/cstex/opmac-u.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/cstex/opmac-u.tex b/Master/texmf-dist/doc/cstex/opmac-u.tex
index 60bdf7f1b1f..dbede087ed8 100644
--- a/Master/texmf-dist/doc/cstex/opmac-u.tex
+++ b/Master/texmf-dist/doc/cstex/opmac-u.tex
@@ -1659,32 +1659,15 @@ Není-li soubor REF otevřen, je hodnota registru "\lastpage" rovna nule.
OPmac přímo podporuje češtinu, slovenštinu a angličtinu. Ostatní jazyky lze
použít také, ale je potřeba vynaložit nepatrné úsilí. Především je potřeba
-použít \TeX{}ový stroj a formát takový, aby byl jazyk podporován. Formát
-musí mít připravené vzory dělení vybraného jazyka. Abychom se nepropadli do
-kódovacího pekla, doporučuji použít Unikódový \TeX{}ový stroj ("xetex" nebo
-"luatex") a zavést rodinu fontů podporující Unicode, ve které jsou všechny
-potřebné znaky abecedy daného jazyka připraveny.
-
-Na příkladu si ukážeme, jak toto lze udělat v nativním formátu pro Xe\TeX{}
-nebo Lua\TeX. Tyto stroje používají formát generovaný ze souboru "etex.src"
-jako implicitní (tj. formát je přímo připraven po spuštění příkazu "xetex" nebo "luatex").
-Protože tento formát má vloženy vzory dělení všech dostupných jazyků, je pro
-práci s dalšími jazyky ideální. Není totiž nutné nic přegenerovávat. Například
-vzory dělení pro španělštinu aktivujete v dokumentu pomocí
-"\uselanguage{espanol}".
-
-OPmac potřebuje znát překlad tří automaticky generovaných slov
-\uv{Kapitola}, \uv{Tabulka} a \uv{Obrázek} pro zvolený jazyk. Tento jazyk je
-v OPmac označován pomocí zkratky podle ISO~639-1. Například španělština je
-tam označena ISO-kódem "es".
-
-Při použití formátu z "etex.src" je nutné přidělit dlouhému názvu jazyka
-jeho ISO kód pomocí "\isolangset{<název>}{<iso-kód>}". Naopak, při použití
-\csplain{}u jsou všechny ISO kódy již nastaveny, a proto příkaz
-"\isolangset" v takovém případě neudělá nic.
-
-Následuje příklad pro španělštinu. \TeX{}ujte pomocí "xetex soubor" nebo
-"luatex soubor".
+použít \TeX{}ový stroj a formát takový, aby v něm byly podporovány vzory
+dělení příslušného jazyka. \CS{}plain pro pdf\TeX{} podporuje v~implicitním
+nastavení vzory dělení 16 jazyků (od března 2019) a \CS{}plain pro Lua\TeX{}
+podporuje vzory dělení všech jazyků dostupných v \TeX{}ové distribuci (kolem
+57 jazyků). Doporučuji tedy pro více jazyků použít Lua\TeX{}.
+
+Následuje ukázka pro španělštinu. Ukázku můžete zpracovat \CS{}plainem v
+Lua\TeX{}u, tedy příkazem
+"luatex -fmt pdfcsplain dokument".
\mubyte \ntie ^^c3^^b1\endmubyte \def\ntie{\~n}
\mubyte \ccedilla ^^c3^^a7\endmubyte \def\ccedilla{\c c}
@@ -1692,27 +1675,13 @@ Následuje příklad pro španělštinu. \TeX{}ujte pomocí "xetex soubor" nebo
\begtt
\input opmac
+\input lmfonts % Unicode fonty
-\ifx\directlua\undefined \else \ifx\luafonts\undefined \input luafonts
-\fi\fi % to zavede lua kód na redefinování \font, v XeTeXu je irelevantní
-
-\font\tenrm="DejaVu Serif" % Unicodová rodina fontů,
-\font\tenbf="DejaVu Serif/B" % kde všechny potřebné znaky
-\font\tenit="DejaVu Serif/I" % jsou k dispozici
-\font\tenbi="DejaVu Serif/IB"
-\tenrm
-
-\input tx-math % Nastavení TX fontů v matematice
-
-\isolangset {espanol}{es} % Deklarace ISO kódu
\sdef{mt:chap:es}{Capítulo} % "Kapitola" v jazyku es
\sdef{mt:t:es}{Cuadro} % "Tabulka" v jazyku es
\sdef{mt:f:es}{Figura} % "Obrázek" v jazyku es
-\uselanguage{espanol} % Španělské vzory dělení + autogenerovaná slova
-\typosize[12/14.4]
-
-\tit Mañana
+\eslang % Španělské vzory dělení slov + deklarovaná slova v jazyku "es".
\sec Mañana
@@ -1723,6 +1692,16 @@ Mañana.
\bye
\endtt
+V ukázce je patrné, že nová tři slova ve španělštině je třeba přidat pod
+zkratku jazyka "es" (podle ISO~639-1). Tato slova začnou být používána automaticky
+po zapnutí vzorů dělení slov, tedy po použití přepínače "\eslang".
+
+Pokud používáte OPmac s formátem generovaným z "etex.src" (tj. příkaz
+"xetex dokument" nebo "luatex dokument"), pak nefunguje přepínač "\eslang" a
+místo něj zapnete vzory dělení pomocí "\uselanguage{espanol}".
+Navíc v takovém případě musíte přiřadit dlouhému názvu jazyka jeho zkratku podle
+ISO~639-1 příkazem "\isolangset{espanol}{es}".
+
Při abecedním řazení rejstříku pomocí "\makeindex" může OPmac ohlásit
(není-li použit \csplain) varování: ``falling back to ASCII sorting''.
Pokud chcete dodržet pravidla řazení daného jazyka, je proto nutné definovat makro
diff --git a/Master/tlpkg/tlpsrc/csplain.tlpsrc b/Master/tlpkg/tlpsrc/csplain.tlpsrc
index dbb078ef1cf..758afa5fe86 100644
--- a/Master/tlpkg/tlpsrc/csplain.tlpsrc
+++ b/Master/tlpkg/tlpsrc/csplain.tlpsrc
@@ -12,6 +12,11 @@ execute AddFormat name=pdfcsplain engine=pdftex \
options="-etex -enc csplain-utf8.ini" \
fmttriggers=${fmtcomm},enctex,tex-ini-files
#
+#
+execute AddFormat name=luacsplain engine=luatex \
+ options="-etex csplain.ini" \
+ fmttriggers=${fmtcomm},tex-ini-files
+#
# intentionally no user-level executables for these formats, also named
# pdfcsplain (a la ConTeXt), by author's request.
execute AddFormat name=pdfcsplain engine=xetex \