summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/lualatex/cstypo/cstypo.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/lualatex/cstypo/cstypo.tex')
-rw-r--r--Master/texmf-dist/doc/lualatex/cstypo/cstypo.tex26
1 files changed, 25 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/lualatex/cstypo/cstypo.tex b/Master/texmf-dist/doc/lualatex/cstypo/cstypo.tex
index 9e87d617b90..1246e3d9566 100644
--- a/Master/texmf-dist/doc/lualatex/cstypo/cstypo.tex
+++ b/Master/texmf-dist/doc/lualatex/cstypo/cstypo.tex
@@ -13,6 +13,12 @@
\usepackage{polyglossia}
\setmainlanguage[]{english}
+\usepackage{newunicodechar}
+\newunicodechar{℃}{{°C}}
+\newunicodechar{℉}{{°F}}
+
+\usepackage[autostyle]{csquotes}
+
\author{Václav Haisman\texorpdfstring{%
\\{\small\href{mailto:vhaisman+cstypo@gmail.com?subject=[cstypo]}{vhaisman@gmail.com}}}{}}
\date{\today}
@@ -66,6 +72,9 @@ enforcable through this package.
\section{User interface}
+Czech typography rules, when enabled by the following macros, are only
+enforced on text marked as Czech by \texttt{polyglossia} or \texttt{babel}.
+
The following two macros allow to enable and disable hook that enforces
penalization of line breaks after single letter words:
%(\refitem{rulesList{itm:singleletter}):
@@ -88,13 +97,24 @@ to have this rule enforced for all of the single letter words except for the
\end{lstlisting}
The following two macros allow to enable and disable hook that enforces
-penalization of line breaks between number and \% symbol.
+penalization of line breaks between number and \enquote*{\%} symbol and also
+few more symbols: per thousand~\enquote*{‰}, degree~\enquote*{°}, degree
+Celsius~\enquote*{℃} and degree Fahrenheit~\enquote*{℉}.
\begin{lstlisting}[style=myLatexStyle]
\cstypoPercentsEnable
\cstypoPercentsDisable
\end{lstlisting}
+The following two macros allow to enable and disable hook that enforces
+penalization of line breaks between~\enquote*{§} symbol and following number.
+
+\begin{lstlisting}[style=myLatexStyle]
+\cstypoParagraphEnable
+\cstypoParagraphDisable
+\end{lstlisting}
+
+
\section{History}
This package was inspired by
@@ -106,6 +126,10 @@ people of
\href{http://tex.stackexchange.com/}{\TeX.SE} site itself.
\begin{description}[style=nextline, labelwidth=4.5em, leftmargin=!, labelindent=0em]
+\item[\texttt{v0.03}] Limit Czech typography rules enforcement only to text
+ marked as Czech language. Handle per thousand~\enquote*{‰},
+ degree~\enquote*{°}, degree Celsius~\enquote*{℃}, degree
+ Fahrenheit~\enquote*{℉} and paragraph~\enquote*{§} symbols.
\item[\texttt{v0.02}] Fixed some packaging and documentation issues found by
CTAN submission review.
\item[\texttt{v0.01}] First published version of this package.