From 0a964418bc66e27bdc4733bd834819c2dd10d52d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 31 May 2018 21:52:21 +0000 Subject: luavlna (31may18) git-svn-id: svn://tug.org/texlive/trunk@47892 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/luatex/luavlna/README.md | 119 ++++++++ .../texmf-dist/doc/luatex/luavlna/luavlna-doc.pdf | Bin 0 -> 87276 bytes .../texmf-dist/doc/luatex/luavlna/luavlna-doc.tex | 269 ++++++++++++++++++ Master/texmf-dist/doc/luatex/luavlna/luavlna.tex | 104 +++++++ .../tex/luatex/luavlna/luavlna-csplain-langs.lua | 59 ++++ .../tex/luatex/luavlna/luavlna-langno.lua | 120 ++++++++ .../tex/luatex/luavlna/luavlna-predegrees.lua | 65 +++++ .../tex/luatex/luavlna/luavlna-presi.lua | 30 ++ .../texmf-dist/tex/luatex/luavlna/luavlna-si.lua | 38 +++ .../tex/luatex/luavlna/luavlna-sufdegrees.lua | 21 ++ Master/texmf-dist/tex/luatex/luavlna/luavlna.4ht | 5 + Master/texmf-dist/tex/luatex/luavlna/luavlna.lua | 316 +++++++++++++++++++++ Master/texmf-dist/tex/luatex/luavlna/luavlna.sty | 24 ++ 13 files changed, 1170 insertions(+) create mode 100644 Master/texmf-dist/doc/luatex/luavlna/README.md create mode 100644 Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.pdf create mode 100644 Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.tex create mode 100644 Master/texmf-dist/doc/luatex/luavlna/luavlna.tex create mode 100644 Master/texmf-dist/tex/luatex/luavlna/luavlna-csplain-langs.lua create mode 100644 Master/texmf-dist/tex/luatex/luavlna/luavlna-langno.lua create mode 100644 Master/texmf-dist/tex/luatex/luavlna/luavlna-predegrees.lua create mode 100644 Master/texmf-dist/tex/luatex/luavlna/luavlna-presi.lua create mode 100644 Master/texmf-dist/tex/luatex/luavlna/luavlna-si.lua create mode 100644 Master/texmf-dist/tex/luatex/luavlna/luavlna-sufdegrees.lua create mode 100644 Master/texmf-dist/tex/luatex/luavlna/luavlna.4ht create mode 100644 Master/texmf-dist/tex/luatex/luavlna/luavlna.lua create mode 100644 Master/texmf-dist/tex/luatex/luavlna/luavlna.sty (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/luatex/luavlna/README.md b/Master/texmf-dist/doc/luatex/luavlna/README.md new file mode 100644 index 00000000000..871d2900b49 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luavlna/README.md @@ -0,0 +1,119 @@ +# Luavlna, version v0.1b, 2018-05-31 + +# Introduction + +`Luavlna` is a small package for plain LuaTeX and LuaLaTeX. In some languages, +like Czech or Polish, there should be no single letter words at the +line end, according to the typographical norms. There exists some +external commands (like `vlna`) or packages (`encxvlna` for encTeX, +`xevlna` for XeTeX, `impnattypo` for LuaLaTeX). + +Other feature of this package is including of non-breakable space after initials, +like in personal names, after or before academic degrees +and between numbers and units (SI and others). + +The code is modified version of Patrick Gundlach’s answer on +TeX.sx[^1]. The difference is that it is possible to specify which +single letters should be taken into account for different +languages. +The support for degrees and units was added as well. + +# Usage + +The usage is simple: + + \input ucode + \uselanguage{czech} + %% in the case of luacsplain, use instead: + %% \chyph + %% but language code for Czech is different than in LaTeX or normal + %% LuaTeX, so you will need to set single letters with somethinh like: + %% \singlechars{5}{AIiVvOoUuSsZzKk} + \input luavlna + \preventsingledebugon + \input luaotfload.sty + \font\hello={name:Linux Libertine O:+rlig;+clig;+liga;+tlig} at 12pt + \hsize=3in + \hello + Příliš žluťoučký kůň úpěl ďábelské ódy. + Text s krátkými souhláskami a samohláskami i dalšími jevy + z nabídky možností (v textu možnými). + + I začátek odstavce je třeba řešit, i když výskyt zalomení není pravděpodobný. + + Co třeba í znaky š diakritikou? + + Různé možnosti [v závorkách diff --git a/Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.pdf b/Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.pdf new file mode 100644 index 00000000000..b96633d362b Binary files /dev/null and b/Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.pdf differ diff --git a/Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.tex b/Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.tex new file mode 100644 index 00000000000..7a4ac630657 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.tex @@ -0,0 +1,269 @@ +\documentclass[12pt]{ltxdoc} +%\documentclass{article} +%\usepackage[utf8]{luainputenc} +\usepackage{fontspec} +\setmainfont[Ligatures=TeX]{Linux Libertine O} +\usepackage[czech,english]{babel} +\usepackage{luacode} +\usepackage{amsfonts} +%\usepackage[]{polyglossia} +%\setmainlanguage{english} +%\setotherlanguage{czech} +%\usepackage{url} +\usepackage{hyperref} +%\input prevent-single +%\usepackage[]{prevent-single} +\usepackage[]{luavlna} +%\input prevent-single +%\def\preventsingledebugon{} +\newenvironment{mycode}{ + %\leavevmode% + \medskip% + \parindent=0pt% +}{\medskip} + +\ifdefined\version\else + \def\version{{{VERSION}}} + \let\gitdate\date +\fi + +\begin{document} +\title{The \verb|luavlna| package} +\author{Michal Hoftich (\url{michal.h21@gmail.com})\\Miro Hrončok (\url{miro@hroncok.cz})} +\date{Version \version\\\gitdate} +\maketitle +\tableofcontents +\section{Introduction} + + +This is a small package for plain Lua\TeX and Lua\LaTeX. In some languages, like +Czech or Polish, there should be no single letter words at the line +end, according to the typographical norms. There exists some +external commands (like \verb!vlna!) or packages (\verb!encxvlna! +for enc\TeX, \verb!xevlna! for Xe\TeX, +\verb!impnattypo! for Lua\LaTeX). %This package is for plain +%lua\TeX and for lua\LaTeX. + +Other feature of this package is including of non-breakable space after +initials, like in personal names, after or before academic degrees +and between numbers and units (SI and others). + +The code is modified version of Patrick Gundlach's answer on +TeX.sx\footnote{\url{http://tex.stackexchange.com/a/28128/2891}}. +The difference is that it is possible to specify which single letters +should be taken into account for different languages. +The support for degrees and units was added as well. +% The code works also for single letters at the beginning of the brackets. + + +\section{Usage} + +The usage is simple: + +\begin{verbatim} +\input ucode +\uselanguage{czech} +%% in the case of luacsplain, use instead: +%% \chyph +\input luavlna +\preventsingledebugon +\input luaotfload.sty +\font\hello={name:Linux Libertine O:+rlig;+clig;+liga;+tlig} at 12pt +\hsize=3in +\hello +Příliš žluťoučký kůň úpěl ďábelské ódy. +Text s krátkými souhláskami a samohláskami i dalšími jevy +z nabídky možností (v textu možnými). + +I začátek odstavce je třeba řešit, i když výskyt zalomení +není pravděpodobný. + +Co třeba í znaky š diakritikou? + +Různé možnosti [v závorkách