summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/lualatex/lua-typo
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-03-04 22:09:16 +0000
committerKarl Berry <karl@freefriends.org>2021-03-04 22:09:16 +0000
commit7df76069beaebbde72a91ad3fd9102eee6857877 (patch)
tree86d6965281030f20bbe7c22ae4967edb9a281d0a /Master/texmf-dist/doc/lualatex/lua-typo
parentb1279daa67e27985c60f1b13293e22c5c596386c (diff)
lua-typo (4mar21)
git-svn-id: svn://tug.org/texlive/trunk@58124 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/lualatex/lua-typo')
-rw-r--r--Master/texmf-dist/doc/lualatex/lua-typo/README.md55
-rw-r--r--Master/texmf-dist/doc/lualatex/lua-typo/demo.pdfbin0 -> 16794 bytes
-rw-r--r--Master/texmf-dist/doc/lualatex/lua-typo/demo.tex89
-rw-r--r--Master/texmf-dist/doc/lualatex/lua-typo/lua-typo-fr.ltx44
-rw-r--r--Master/texmf-dist/doc/lualatex/lua-typo/lua-typo-fr.pdfbin0 -> 59618 bytes
-rw-r--r--Master/texmf-dist/doc/lualatex/lua-typo/lua-typo.ltx42
-rw-r--r--Master/texmf-dist/doc/lualatex/lua-typo/lua-typo.pdfbin0 -> 114259 bytes
7 files changed, 230 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/lualatex/lua-typo/README.md b/Master/texmf-dist/doc/lualatex/lua-typo/README.md
new file mode 100644
index 00000000000..29db098d3b9
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/lua-typo/README.md
@@ -0,0 +1,55 @@
+Lua-typo
+========
+
+Description
+-----------
+This package tracks common typographic flaws in LuaLaTeX documents,
+specially widows, orphans, hyphenated words split over two pages,
+consecutive lines ending with hyphens, paragraphs ending on
+too short lines, etc.
+
+Documentation
+-------------
+
+For the impatient: have a look at files demo.tex and demo.pdf to see
+a short example of how some flaws are highlighted.
+
+Then read the documentation in English (file lua-typo.pdf) or in French
+(file lua-typo-fr.pdf).
+
+License
+-------
+
+Released under the LaTeX Project Public License v1.3 or later
+See http://www.latex-project.org/lppl.txt
+for the details of that license.
+
+Installation
+------------
+
+This bundle is meant to be included in most TeX distributions,
+but if you need to install it by yourself
+1. run "luatex lua-typo.dtx" to strip the comments and create
+ lua-typo.sty, lua-typo.cfg, lua-typo.ltx and lua-typo-fr.ltx;
+2. run "lualatex lua-typo.ltx" to get the full documentation
+ (lua-typo.pdf) in English;
+2. run "lualatex lua-typo-fr.ltx" to get the French documentation
+ (lua-typo-fr.pdf, code not included).
+
+Recommended loactions for installation:
+- TDS:tex/lualatex/lua-typo/lua-typo.sty
+- TDS:tex/lualatex/lua-typo/lua-typo.cfg
+- TDS:doc/lualatex/lua-typo/lua-typo.pdf
+- TDS:doc/lualatex/lua-typo/demo.pdf
+- TDS:doc/lualatex/lua-typo/demo.tex
+- TDS:doc/lualatex/lua-typo/README.md
+- TDS:source/lualatex/lua-typo/lua-typo.dtx
+
+Changes
+-------
+
+- First release version: 0.30, March 2021.
+
+--
+Copyright 2020--2021 Daniel Flipo
+E-mail: daniel (dot) flipo (at) free (dot) fr
diff --git a/Master/texmf-dist/doc/lualatex/lua-typo/demo.pdf b/Master/texmf-dist/doc/lualatex/lua-typo/demo.pdf
new file mode 100644
index 00000000000..d7e17c1ab1d
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/lua-typo/demo.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/lualatex/lua-typo/demo.tex b/Master/texmf-dist/doc/lualatex/lua-typo/demo.tex
new file mode 100644
index 00000000000..e09c822e1df
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/lua-typo/demo.tex
@@ -0,0 +1,89 @@
+\documentclass[a6paper,french,11pt,twoside]{scrartcl}
+\usepackage{scrlayer-scrpage}
+\lohead{Pierre Desproges}
+\lehead{Vivons heureux…}
+\rohead{}
+\rehead{en attendant la mort}
+\usepackage{fourier-otf}
+\usepackage{microtype}
+
+\usepackage{babel}
+\frenchsetup{og=«, fg=»}
+
+\usepackage[All]{lua-typo} % APRÈS babel / polyglossia
+
+% Mots courts (deux lettres max) à éviter en fin de ligne
+\luatypoOneChar{french}{'À à Ô'}
+\luatypoTwoChars{french}{"Je Tu Il On"}
+
+% Pour changer les couleurs :
+%\usepackage[svgnames]{xcolor}
+%\LuaTypoSetColor1{Fuchsia}
+%\LuaTypoSetColor2{ForestGreen}
+%\LuaTypoSetColor5{magenta}
+%\LuaTypoSetColor6{yellow}
+
+% Réglage ligne finale trop courte
+\setlength{\luatypoLLminWD}{3em}
+
+%\luatypoPageMin=5
+%\luatypoHyphMax=2
+
+\parindent=1em
+
+\begin{document}
+
+Le plus effroyablement démuni des pauvres peut toujours espérer
+\footnote{Overfull hbox à la ligne précédente.}
+décrocher un jour le gros lot de la tombola organisée par
+l’association des Pauvres Effroyablement Démunis.
+%
+Le laideron lui, n’a d’autre échappatoire que de
+ronger son frein d’un bec-de-lièvre machinal, de baisser ses yeux quelconques
+aux abords des mirroirs qui l’insultent ou de se foutre à l’eau au risque
+d’effaroucher les murènes.
+
+Quelquefois je trouve que Dieu pousse un peu.
+
+« Les hommes naissent libres et égaux en droit. »
+
+Qu’on me pardonne mais c’est un phrase que j’ai beaucoup de mal à dire sans
+rire. % : « Les hommes naissent libres et égaux en droit. »
+
+Prenons une star, une belle star. Elle est belle.
+
+La beauté. Existe-t-il au monde un privilège plus exorbitant que la beauté ?
+
+Par sa beauté, cette femme n’est-elle pas un peu plus libre
+et un peu plus égale , dans le grand combat pour survivre,
+que l’\textit{Homo sapiens} moyen qui passe sa vie à se courir
+après la queue en attendant la mort ?
+
+Quel profond imbécile aurait l’outrecuidance de soutenir, au nom des grands
+principes révolutionnaires, que l’immonde boudin trapu qui m’a
+%collé une contredanse
+lâchement verbalisé
+tout-à-l’heure
+possède les mêmes armes
+%pour assoir son bonheur terrestre
+que la grande fille féline aux charmes troubles où l’œil se
+pose et chancelle avec une lubricité contenue !
+%(Difficilement contenue.) % Variantes pour mettre 1 ou 2 car. en bout de ligne
+%(Difficilement contenue hein). Je dois le dire.
+%(Difficilement contenue hein). On peut le dire.
+%(Difficilement contenue hein). Il faut l’admettre.
+(Difficilement contenue hein). À voir.
+
+Quand on a vos yeux, madame, quand on a votre bouche, votre grain de peau, la
+légèreté diaphane de votre démarche et la longueur émouvante de vos cuisses,
+c’est une banalité de dire qu’on peut facilement traverser la vie %l’existence
+à l’abri des cabats trop lourds gorgés de poireaux, à l’écart de l’uniforme de
+contractuelle.
+
+\end{document}
+
+%%% Local Variables:
+%%% coding: utf-8-unix
+%%% TeX-master: t
+%%% TeX-engine: luatex
+%%% End:
diff --git a/Master/texmf-dist/doc/lualatex/lua-typo/lua-typo-fr.ltx b/Master/texmf-dist/doc/lualatex/lua-typo/lua-typo-fr.ltx
new file mode 100644
index 00000000000..449dfe7bfd0
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/lua-typo/lua-typo-fr.ltx
@@ -0,0 +1,44 @@
+\documentclass[a4paper]{ltxdoc}
+\usepackage[dvipsnames]{xcolor}
+\usepackage{fontspec}
+\setmainfont{erewhon}
+\setsansfont{Cabin}[Scale=MatchLowercase]
+\setmonofont{VeraMono.ttf}[
+ ItalicFont = VeraMoIt.ttf,
+ BoldFont = VeraMoBd.ttf,
+ BoldItalicFont = VeraMoBI.ttf,
+ Scale = MatchLowercase,
+ HyphenChar=None, Color=Sepia,
+ ]
+\usepackage[expansion=true, protrusion=true]{microtype}
+\usepackage[french]{babel}
+\frenchsetup{og=«, fg=»}
+\usepackage[ShortPages, OverfullLines, UnderfullLines,
+ Widows, Orphans, EOPHyphens, RepeatedHyphens
+ ]{lua-typo}
+\luatypoLLminWD=3em
+\renewcommand*\descriptionlabel[1]{%
+ \hspace{\labelsep}\texttt{#1}}
+\usepackage{array,url,verbatim}
+\usepackage[numbered]{hypdoc}
+\hypersetup{colorlinks,urlcolor=blue,unicode}
+\OnlyDescription
+\let\FrenchDoc\begingroup\let\endFrenchDoc\endgroup
+\newcommand*\file[1]{\texttt{#1}}
+\newcommand*\pkg[1]{\texttt{#1}}
+\newcommand*\opt[1]{\texttt{#1}}
+\renewcommand\meta[1]{\texttt{\textsl{\color{Sepia}<#1>}}}
+\setlength{\parindent}{0pt}
+\setlength{\parskip}{.3\baselineskip plus 0.3pt minus 0.3pt}
+\begin{document}
+\GetFileInfo{lua-typo.sty}
+\DocInput{lua-typo.dtx}
+\end{document}
+
+%%% Local Variables:
+%%% coding: utf-8
+%%% TeX-engine: luatex
+%%% End:
+%%
+%%
+%% End of file `lua-typo-fr.ltx'.
diff --git a/Master/texmf-dist/doc/lualatex/lua-typo/lua-typo-fr.pdf b/Master/texmf-dist/doc/lualatex/lua-typo/lua-typo-fr.pdf
new file mode 100644
index 00000000000..273649ff718
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/lua-typo/lua-typo-fr.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/lualatex/lua-typo/lua-typo.ltx b/Master/texmf-dist/doc/lualatex/lua-typo/lua-typo.ltx
new file mode 100644
index 00000000000..310c7dae04a
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/lua-typo/lua-typo.ltx
@@ -0,0 +1,42 @@
+\documentclass[a4paper]{ltxdoc}
+\usepackage[dvipsnames]{xcolor}
+\usepackage{fontspec}
+\setmainfont{erewhon}
+\setsansfont{Cabin}[Scale=MatchLowercase]
+\setmonofont{VeraMono.ttf}[
+ ItalicFont = VeraMoIt.ttf,
+ BoldFont = VeraMoBd.ttf,
+ BoldItalicFont = VeraMoBI.ttf,
+ Scale = MatchLowercase,
+ HyphenChar=None, Color=Sepia,
+ ]
+\usepackage[expansion=true, protrusion=true]{microtype}
+\usepackage[british]{babel}
+\usepackage[ShortPages, OverfullLines, UnderfullLines,
+ Widows, Orphans, EOPHyphens, RepeatedHyphens
+ ]{lua-typo}
+\luatypoLLminWD=3em
+\renewcommand*\descriptionlabel[1]{%
+ \hspace{\labelsep}\texttt{#1}}
+\usepackage{array,url,verbatim}
+\usepackage[numbered]{hypdoc}
+\hypersetup{colorlinks,urlcolor=blue,unicode}
+\let\FrenchDoc\comment\let\endFrenchDoc\endcomment
+\newcommand*\file[1]{\texttt{#1}}
+\newcommand*\pkg[1]{\texttt{#1}}
+\newcommand*\opt[1]{\texttt{#1}}
+\renewcommand\meta[1]{\texttt{\textsl{\color{Sepia}<#1>}}}
+\setlength{\parindent}{0pt}
+\setlength{\parskip}{.3\baselineskip plus 0.3pt minus 0.3pt}
+\begin{document}
+\GetFileInfo{lua-typo.sty}
+\DocInput{lua-typo.dtx}
+\end{document}
+
+%%% Local Variables:
+%%% coding: utf-8
+%%% TeX-engine: luatex
+%%% End:
+%%
+%%
+%% End of file `lua-typo.ltx'.
diff --git a/Master/texmf-dist/doc/lualatex/lua-typo/lua-typo.pdf b/Master/texmf-dist/doc/lualatex/lua-typo/lua-typo.pdf
new file mode 100644
index 00000000000..16a7f744c66
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/lua-typo/lua-typo.pdf
Binary files differ