texlive[62988] Master/texmf-dist: polyglossia (9apr22)
commits+karl at tug.org
commits+karl at tug.org
Sat Apr 9 22:30:34 CEST 2022
Revision: 62988
http://tug.org/svn/texlive?view=revision&revision=62988
Author: karl
Date: 2022-04-09 22:30:34 +0200 (Sat, 09 Apr 2022)
Log Message:
-----------
polyglossia (9apr22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/polyglossia/README.md
trunk/Master/texmf-dist/doc/latex/polyglossia/example-arabic.pdf
trunk/Master/texmf-dist/doc/latex/polyglossia/example-korean.pdf
trunk/Master/texmf-dist/doc/latex/polyglossia/example-thai.pdf
trunk/Master/texmf-dist/doc/latex/polyglossia/examples.pdf
trunk/Master/texmf-dist/doc/latex/polyglossia/polyglossia.pdf
trunk/Master/texmf-dist/doc/latex/polyglossia/polyglossia.tex
trunk/Master/texmf-dist/source/latex/polyglossia/polyglossia.dtx
trunk/Master/texmf-dist/tex/latex/polyglossia/gloss-polish.ldf
trunk/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty
Added Paths:
-----------
trunk/Master/texmf-dist/tex/latex/polyglossia/gloss-latex.lde
Modified: trunk/Master/texmf-dist/doc/latex/polyglossia/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/polyglossia/README.md 2022-04-09 20:29:34 UTC (rev 62987)
+++ trunk/Master/texmf-dist/doc/latex/polyglossia/README.md 2022-04-09 20:30:34 UTC (rev 62988)
@@ -1,4 +1,4 @@
-# THE POLYGLOSSIA PACKAGE v1.54
+# THE POLYGLOSSIA PACKAGE v1.55
## Multilingual typesetting with XeLaTeX and LuaLaTeX
This package provides an alternative to Babel for users of XeLaTeX and LuaLaTeX.
Modified: trunk/Master/texmf-dist/doc/latex/polyglossia/example-arabic.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/polyglossia/example-korean.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/polyglossia/example-thai.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/polyglossia/examples.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/polyglossia/polyglossia.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/polyglossia/polyglossia.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/polyglossia/polyglossia.tex 2022-04-09 20:29:34 UTC (rev 62987)
+++ trunk/Master/texmf-dist/doc/latex/polyglossia/polyglossia.tex 2022-04-09 20:30:34 UTC (rev 62988)
@@ -233,7 +233,7 @@
\TX{armenian} & \TX{esperanto} & japanese & occitan & \TX{syriac} \\
asturian & estonian & kannada & \TX{persian} & tamil \\
basque & \TX{finnish} & khmer & piedmontese & telugu \\
-\TX{belarusian} & \TX{french} & \TX{korean} & polish & \TX{thai} \\
+\TX{belarusian} & \TX{french} & \TX{korean} & \TX{polish} & \TX{thai} \\
\TX{bengali} & friulian & \TX{kurdish} & \TX{portuguese} & \TX{tibetan} \\
bosnian & \TX{gaelic} & \TX{lao} & romanian & turkish \\
breton & galician & \TX{latin} & romansh & turkmen \\
@@ -1068,10 +1068,11 @@
\end{shorthands}
\item \xpgboolkeyfalse[1.54]{schoolhyphens}
If this is set to true, alternative (experimental) hyphenation patterns are used rather than the
- default Finnish patterns. These patterns (called `School Hyphenation') are more basic in that
- they do not contain hyphenation exceptions for compound words since these result in simple words
- not being hyphenated at points where this would be valid. The backdrop of the `School' patterns
- is that compound words might be hyphenated incorrectly.
+ default Finnish patterns. These (so-called `School') patterns allow hyphenation at
+ all valid points, including hyphenation points that are considered sub-optimal from an
+ ortho-typographic point of view (e.\,g., hyphenation between two vowels).
+ The default patterns try to prevent such hyphenation, with the drawback that simple words
+ are sometimes not being hyphenated at points where this would be valid.
See \url{https://github.com/hyphenation/basic-finnish} for details.
\end{itemize}
@@ -1621,6 +1622,46 @@
\item \Cmd\aemph (see section \ref{arabic}).
\end{itemize}
+
+\subsection{polish}\label{polish}
+
+\paragraph*{Options:}
+\begin{itemize}
+ \item \xpgboolkeyfalse[1.55]{babelshorthands}
+ If this is turned on, the following shorthands for Polish are activated:
+ \begin{shorthands}
+ \item[¦"=¦] for an explicit hyphen sign which is repeated at the beginning
+ of the next line when hyphenated, as common in Polish typesetting
+ (also if ¦splithyphens=false¦). Unlike plain ¦-¦, this also allows
+ for hyphenation at the other points preset in the hyphenation patterns.
+ \item[¦"|¦] disables a ligature at this position.
+ \item[\texttt{"\textasciitilde}] for a hyphen sign without a breakpoint. Useful for
+ cases where the hyphen should stick at the following syllable.
+ \item[¦"-¦] adds a hyphenation point that does still allow for hyphenation at the points preset
+ in the hyphenation patterns (as opposed to \cmd\-).
+ \item[¦""¦] allows for a line break at this position (without hyphenation sign).
+ \item[¦"/¦] a slash that allows for a subsequent line break. As opposed to \cmd\slash, hyphenation at the breakpoints
+ preset in the hyphenation patterns is still allowed.
+ \item[¦"`¦] for Polish left double quotes (looks like ,,).
+ \item[¦"'¦] for Polish right double quotes (looks like '').
+ \item[¦"<¦] for French left double guillemets (looks like << -- used in Polish as second level quotes).
+ \item[¦">¦] for French right double guillemets (looks like >>).
+ \end{shorthands}
+ \item \xpgboolkeytrue[1.55]{splithyphens}
+ According to Polish typesetting conventions, if a word with a hard hyphen (such as \emph{czerwono-złote})
+ is hyphenated at this hyphen, a second hyphenation character is to be inserted at the beginning
+ of the line that follows the hyphenation (\emph{czerwono-/-złote}).
+ By default, this is done automatically (if you are using \LuaTeX, the \pkg{luavlna} package is
+ loaded to achieve this).
+ Set this option to ¦false¦ to disable the feature.
+ \item \xpgboolkeytrue[1.55]{vlna}
+ According to Polish typesetting conventions, single-letter words (non-syllable prepositions)
+ must not occur at line ends.
+ \pkg{Polyglossia} takes care of this automatically by default (if you are using \LuaTeX, the
+ \pkg{luavlna} package is loaded to achieve this).
+ Set this option to ¦false¦ to disable the feature.
+\end{itemize}
+
\subsection{portuguese}\label{portuguese}
\paragraph*{Options:}
\begin{itemize}
@@ -2383,6 +2424,19 @@
\section{Revision history}
\bgroup\footnotesize
+\subsection*{1.55 (09-04-2022)}
+
+\subsubsection*{New features}
+\begin{itemize}
+ \item New option \xpgoption{splithyphens} and \xpgoption{vlna} for Polish (\TXI{535}).
+ \item Add \xpgoption{babelshorthands} to Polish.
+\end{itemize}
+
+\subsubsection*{Bug fixes}
+\begin{itemize}
+ \item Add missing \texttt{gloss-latex.lde} file to release (\TXI{537}).
+\end{itemize}
+
\subsection*{1.54 (27-03-2022)}
\subsubsection*{New features}
Modified: trunk/Master/texmf-dist/source/latex/polyglossia/polyglossia.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/polyglossia/polyglossia.dtx 2022-04-09 20:29:34 UTC (rev 62987)
+++ trunk/Master/texmf-dist/source/latex/polyglossia/polyglossia.dtx 2022-04-09 20:30:34 UTC (rev 62988)
@@ -8,7 +8,7 @@
\iffalse
%</internal>
%<*README>
-# THE POLYGLOSSIA PACKAGE v1.54
+# THE POLYGLOSSIA PACKAGE v1.55
## Multilingual typesetting with XeLaTeX and LuaLaTeX
This package provides an alternative to Babel for users of XeLaTeX and LuaLaTeX.
@@ -109,6 +109,7 @@
\generate{\file{babelsh.def}{\from{polyglossia.dtx}{babelsh.def}}}
\generate{\file{cal-util.def}{\from{polyglossia.dtx}{cal-util.def}}}
\generate{\file{xgreek-fixes.def}{\from{polyglossia.dtx}{xgreek-fixes.def}}}
+\generate{\file{gloss-latex.lde}{\from{polyglossia.dtx}{gloss-latex.lde}}}
\generate{\file{gloss-acadien.ldf}{\from{polyglossia.dtx}{gloss-acadien.ldf}}}
\generate{\file{gloss-aeb.ldf}{\from{polyglossia.dtx}{gloss-aeb.ldf}}}
\generate{\file{gloss-af.ldf}{\from{polyglossia.dtx}{gloss-af.ldf}}}
@@ -615,7 +616,7 @@
% \TX{armenian} & \TX{esperanto} & japanese & occitan & \TX{syriac} \\
% asturian & estonian & kannada & \TX{persian} & tamil \\
% basque & \TX{finnish} & khmer & piedmontese & telugu \\
-% \TX{belarusian} & \TX{french} & \TX{korean} & polish & \TX{thai} \\
+% \TX{belarusian} & \TX{french} & \TX{korean} & \TX{polish} & \TX{thai} \\
% \TX{bengali} & friulian & \TX{kurdish} & \TX{portuguese} & \TX{tibetan} \\
% bosnian & \TX{gaelic} & \TX{lao} & romanian & turkish \\
% breton & galician & \TX{latin} & romansh & turkmen \\
@@ -1450,10 +1451,11 @@
% \end{shorthands}
% \item \xpgboolkeyfalse[1.54]{schoolhyphens}
% If this is set to true, alternative (experimental) hyphenation patterns are used rather than the
-% default Finnish patterns. These patterns (called `School Hyphenation') are more basic in that
-% they do not contain hyphenation exceptions for compound words since these result in simple words
-% not being hyphenated at points where this would be valid. The backdrop of the `School' patterns
-% is that compound words might be hyphenated incorrectly.
+% default Finnish patterns. These (so-called `School') patterns allow hyphenation at
+% all valid points, including hyphenation points that are considered sub-optimal from an
+% ortho-typographic point of view (e.\,g., hyphenation between two vowels).
+% The default patterns try to prevent such hyphenation, with the drawback that simple words
+% are sometimes not being hyphenated at points where this would be valid.
% See \url{https://github.com/hyphenation/basic-finnish} for details.
% \end{itemize}
%
@@ -2003,6 +2005,46 @@
% \item \Cmd\aemph (see section \ref{arabic}).
% \end{itemize}
%
+%
+% \subsection{polish}\label{polish}
+%
+% \paragraph*{Options:}
+% \begin{itemize}
+% \item \xpgboolkeyfalse[1.55]{babelshorthands}
+% If this is turned on, the following shorthands for Polish are activated:
+% \begin{shorthands}
+% \item[¦"=¦] for an explicit hyphen sign which is repeated at the beginning
+% of the next line when hyphenated, as common in Polish typesetting
+% (also if ¦splithyphens=false¦). Unlike plain ¦-¦, this also allows
+% for hyphenation at the other points preset in the hyphenation patterns.
+% \item[¦"|¦] disables a ligature at this position.
+% \item[\texttt{"\textasciitilde}] for a hyphen sign without a breakpoint. Useful for
+% cases where the hyphen should stick at the following syllable.
+% \item[¦"-¦] adds a hyphenation point that does still allow for hyphenation at the points preset
+% in the hyphenation patterns (as opposed to \cmd\-).
+% \item[¦""¦] allows for a line break at this position (without hyphenation sign).
+% \item[¦"/¦] a slash that allows for a subsequent line break. As opposed to \cmd\slash, hyphenation at the breakpoints
+% preset in the hyphenation patterns is still allowed.
+% \item[¦"`¦] for Polish left double quotes (looks like ,,).
+% \item[¦"'¦] for Polish right double quotes (looks like '').
+% \item[¦"<¦] for French left double guillemets (looks like << -- used in Polish as second level quotes).
+% \item[¦">¦] for French right double guillemets (looks like >>).
+% \end{shorthands}
+% \item \xpgboolkeytrue[1.55]{splithyphens}
+% According to Polish typesetting conventions, if a word with a hard hyphen (such as \emph{czerwono-złote})
+% is hyphenated at this hyphen, a second hyphenation character is to be inserted at the beginning
+% of the line that follows the hyphenation (\emph{czerwono-/-złote}).
+% By default, this is done automatically (if you are using \LuaTeX, the \pkg{luavlna} package is
+% loaded to achieve this).
+% Set this option to ¦false¦ to disable the feature.
+% \item \xpgboolkeytrue[1.55]{vlna}
+% According to Polish typesetting conventions, single-letter words (non-syllable prepositions)
+% must not occur at line ends.
+% \pkg{Polyglossia} takes care of this automatically by default (if you are using \LuaTeX, the
+% \pkg{luavlna} package is loaded to achieve this).
+% Set this option to ¦false¦ to disable the feature.
+% \end{itemize}
+%
% \subsection{portuguese}\label{portuguese}
% \paragraph*{Options:}
% \begin{itemize}
@@ -2765,6 +2807,19 @@
% \section{Revision history}
%
% \bgroup\footnotesize
+% \subsection*{1.55 (09-04-2022)}
+%
+% \subsubsection*{New features}
+% \begin{itemize}
+% \item New option \xpgoption{splithyphens} and \xpgoption{vlna} for Polish (\TXI{535}).
+% \item Add \xpgoption{babelshorthands} to Polish.
+% \end{itemize}
+%
+% \subsubsection*{Bug fixes}
+% \begin{itemize}
+% \item Add missing \texttt{gloss-latex.lde} file to release (\TXI{537}).
+% \end{itemize}
+%
% \subsection*{1.54 (27-03-2022)}
%
% \subsubsection*{New features}
@@ -3631,7 +3686,7 @@
% \subsection{polyglossia.sty}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{polyglossia}[2022/03/27 v1.54
+\ProvidesPackage{polyglossia}[2022/04/09 v1.55
Modern multilingual typesetting with XeLaTeX and LuaLaTeX]
\RequirePackage{etoolbox}
\RequirePackage{makecmds}
@@ -9434,6 +9489,50 @@
% \end{macrocode}
% \iffalse
%</xgreek-fixes.def>
+%<*gloss-latex.lde>
+% \fi
+% \clearpage
+%
+% \subsection{gloss-latex.lde}
+% \begin{macrocode}
+\ProvidesLanguageDefinitionExtension{gloss-latex}{2021/07/10}{v1.53}{polyglossia: module for default language}
+
+\PolyglossiaSetup{latex}{
+ hyphennames={english},
+ hyphenmins={2,3},
+ langtag=ENG,
+ fontsetup=true,
+ % ignore command
+ DefineCommandsCmd={use_none:n}
+}
+
+\def\captionslatex{%
+ \def\prefacename{Preface}%
+ \def\refname{References}%
+ \def\abstractname{Abstract}%
+ \def\bibname{Bibliography}%
+ \def\chaptername{Chapter}%
+ \def\appendixname{Appendix}%
+ \def\contentsname{Contents}%
+ \def\listfigurename{List of Figures}%
+ \def\listtablename{List of Tables}%
+ \def\indexname{Index}%
+ \def\figurename{Figure}%
+ \def\tablename{Table}%
+ \def\partname{Part}%
+ \def\enclname{encl}%
+ \def\ccname{cc}%
+ \def\headtoname{To}%
+ \def\pagename{Page}%
+ \def\seename{see}%
+ \def\alsoname{see also}%
+ \def\proofname{Proof}%
+}
+
+
+% \end{macrocode}
+% \iffalse
+%</gloss-latex.lde>
%<*gloss-acadien.ldf>
% \fi
% \clearpage
@@ -21421,6 +21520,7 @@
% \subsection{gloss-polish.ldf}
% \begin{macrocode}
\ProvidesFile{gloss-polish.ldf}[polyglossia: module for polish]
+
\PolyglossiaSetup{polish}{
bcp47=pl,
hyphennames={polish},
@@ -21433,6 +21533,186 @@
% BCP-47 compliant aliases
\setlanguagealias*{polish}{pl}
+\ifluatex
+ \RequirePackage{luavlna}
+\fi
+
+\define at boolkey{polish}[polish@]{babelshorthands}[true]{}
+
+\define at boolkey{polish}[polish@]{splithyphens}[true]{}
+
+\define at boolkey{polish}[polish@]{vlna}[true]{}
+
+% Register default options
+\xpg at initialize@gloss at options{polish}{babelshorthands=false,splithyphens=true,vlna=true}
+
+\ifsystem at babelshorthands
+ \setkeys{polish}{babelshorthands=true}
+\else
+ \setkeys{polish}{babelshorthands=false}
+\fi
+
+\ifcsundef{initiate at active@char}{%
+ \input{babelsh.def}%
+ \initiate at active@char{"}%
+ \shorthandoff{"}%
+}{}
+
+\def\polish@@splhyphen#1{%
+ \def\polish at sh@tmp{%
+ \if\polish at sh@next-#1%
+ \else\expandafter\polish@@@splhyphen{#1}\fi%
+ }%
+ \futurelet\polish at sh@next\polish at sh@tmp%
+}
+
+\def\polish@@@splhyphen#1{%
+ \ifnum\hyphenchar \font>0%
+ \kern\z@\discretionary{-}{\char\hyphenchar\the\font}{#1}%
+ \nobreak\hskip\z@%
+ \else%
+ #1%
+ \fi%
+}
+
+\def\polish at splhyphen{%
+ \polish@@splhyphen{-}%
+}
+
+\def\polish at shorthands{%
+ \bbl at activate{"}%
+ \def\language at group{polish}%
+ \declare at shorthand{polish}{"=}{\polish at splhyphen}%
+ \declare at shorthand{polish}{""}{\hskip\z at skip}%
+ \declare at shorthand{polish}{"~}{\textormath{\leavevmode\hbox{-}}{-}}%
+ \declare at shorthand{polish}{"-}{\nobreak\-\bbl at allowhyphens}%
+ \declare at shorthand{polish}{"|}{%
+ \textormath{\penalty\@M\discretionary{-}{}{\kern.03em}%
+ \bbl at allowhyphens}{}%
+ }%
+ \declare at shorthand{polish}{"/}{\textormath
+ {\bbl at allowhyphens\discretionary{/}{}{/}\bbl at allowhyphens}{}}%
+ \declare at shorthand{polish}{"`}{„}%
+ \declare at shorthand{polish}{"'}{”}%
+ \declare at shorthand{polish}{"<}{«}%
+ \declare at shorthand{polish}{">}{»}%
+}
+
+\def\nopolish at shorthands{%
+ \@ifundefined{initiate at active@char}{}{\bbl at deactivate{"}}%
+}
+
+\ifxetex
+ % splithyphens
+ \newXeTeXintercharclass\polish at hyphen % -
+ % vlna
+ \newXeTeXintercharclass\polish at openpunctuation
+ \newXeTeXintercharclass\polish at nonsyllabicpreposition
+ \ifdefined\e at alloc@intercharclass at top
+ \chardef\polish at boundary=\e at alloc@intercharclass at top
+ \else
+ \ifdefined\XeTeXinterwordspaceshaping
+ \chardef\polish at boundary=4095 %
+ \def\newXeTeXintercharclass{%
+ \e at alloc\XeTeXcharclass\chardef
+ \xe at alloc@intercharclass\m at ne\@ucharclass at boundary}%
+ \else
+ \chardef\polish at boundary=255
+ \fi
+ \fi
+\fi
+
+\def\polish at hyphens{%
+ \ifluatex
+ \AfterPreamble{\enablesplithyphens{polish}}%
+ \else
+ \XeTeXinterchartokenstate=1
+ \XeTeXcharclass `\- \polish at hyphen
+ \XeTeXinterchartoks \z@ \polish at hyphen = {\polish@@splhyphen}% "-" -> "\polish@@splhyphen-"
+ % necessary if used together with vlna:
+ \XeTeXinterchartoks \polish at nonsyllabicpreposition \polish at hyphen = {\polish@@splhyphen}% "-" -> "\polish@@splhyphen-"
+ \fi%
+}
+
+\def\nopolish at hyphens{%
+ \ifluatex
+ \AfterPreamble{\disablesplithyphens{polish}}%
+ \else
+ \XeTeXcharclass `\- \z@
+ \fi%
+}
+
+% Add nonbreakable space after single-letter word to
+% prevent them to land at the end of a line
+% vlna code taken and adapted from xevlna.sty
+\ifxetex
+ \def\polish at nointerchartoks{\let\polish at interchartoks\polish at PreCSpreposition}%
+ \def\polish at PreCSpreposition{%
+ \def\next{}%
+ \ifnum\catcode`\ =10 % nothing will be done in verbatim
+ \ifmmode % nothing in math
+ \else
+ \let\polish at interchartoks\polish at nointerchartoks
+ \let\next\polish at ExamineCSpreposition
+ \fi\fi
+ \next%
+ }%
+ \def\polish at ExamineCSpreposition #1{#1\futurelet\next\polish at ProcessCSpreposition}%
+ \def\polish at ProcessCSpreposition{\ifx\next\polish at XeTeXspace\nobreak\fi}%
+ \futurelet\polish at XeTeXspace{ }\polish at nointerchartoks
+\fi
+
+\def\polish at vlna{%
+ \ifluatex
+ \singlechars{polish}{AaIiOoUuWwZz}
+ \preventsingleon
+ \else
+ % Code taken and adapted from xevlna.sty
+ \XeTeXinterchartokenstate=1
+ \XeTeXcharclass `\( \polish at openpunctuation
+ \XeTeXcharclass `\[ \polish at openpunctuation
+ \XeTeXcharclass `\„ \polish at openpunctuation
+ \XeTeXcharclass `\« \polish at openpunctuation
+ \XeTeXcharclass `\W \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\w \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\Z \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\z \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\O \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\o \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\U \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\u \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\A \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\a \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\I \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\i \polish at nonsyllabicpreposition
+ \XeTeXinterchartoks \polish at boundary \polish at nonsyllabicpreposition {\polish at interchartoks}%
+ \XeTeXinterchartoks \polish at openpunctuation \polish at nonsyllabicpreposition {\polish at interchartoks}%
+ \fi
+}
+
+\def\nopolish at vlna{%
+ \ifluatex
+ \preventsingleoff
+ \else
+ \XeTeXcharclass`\(\z@
+ \XeTeXcharclass`\[\z@
+ \XeTeXcharclass`\„\z@
+ \XeTeXcharclass`\«\z@
+ \XeTeXcharclass`\W\z@
+ \XeTeXcharclass`\w\z@
+ \XeTeXcharclass`\Z\z@
+ \XeTeXcharclass`\z\z@
+ \XeTeXcharclass`\O\z@
+ \XeTeXcharclass`\o\z@
+ \XeTeXcharclass`\U\z@
+ \XeTeXcharclass`\u\z@
+ \XeTeXcharclass`\A\z@
+ \XeTeXcharclass`\a\z@
+ \XeTeXcharclass`\I\z@
+ \XeTeXcharclass`\i\z@
+ \fi
+}
+
\def\captionspolish{%
\def\prefacename{Przedmowa}%
\def\refname{Literatura}%
@@ -21454,8 +21734,8 @@
\def\seename{Zobacz}%
\def\alsoname{Zobacz też}%
\def\proofname{Dowód}%
- \def\glossaryname{Glossary}% <-- Needs translation
- }
+ \def\glossaryname{Słowniczek}%
+}
\def\datepolish{%
\def\today{\number\day\space\ifcase\month\or
@@ -21463,8 +21743,27 @@
lipca\or sierpnia\or września\or października\or
listopada\or grudnia\fi\space
\number\year}%
- }
+}
+\def\noextras at polish{%
+ \ifpolish at babelshorthands\nopolish at shorthands\fi%
+ \nopolish at hyphens%
+ \nopolish at vlna%
+ \ifxetex\XeTeXinterchartokenstate=0\fi%
+}
+
+\def\blockextras at polish{%
+ \ifpolish at babelshorthands\polish at shorthands\else\nopolish at shorthands\fi%
+ \ifpolish at vlna\polish at vlna\else\nopolish at vlna\fi%
+ \ifpolish at splithyphens\polish at hyphens\else\nopolish at hyphens\fi%
+}
+
+\def\inlineextras at polish{%
+ \ifpolish at babelshorthands\polish at shorthands\else\nopolish at shorthands\fi%
+ \ifpolish at vlna\polish at vlna\else\nopolish at vlna\fi%
+ \ifpolish at splithyphens\polish at hyphens\else\nopolish at hyphens\fi%
+}
+
% \end{macrocode}
% \iffalse
%</gloss-polish.ldf>
@@ -27526,7 +27825,7 @@
% \typeout{* To finish the installation you have to move the following}
% \typeout{* file into a directory searched by TeX:}
% \typeout{*}
-% \typeout{* \space\space\space all *.sty, *.lua, *.def and *.ldf files}
+% \typeout{* \space\space all *.sty, *.lua, *.def, *.lde and *.ldf files}
% \typeout{*}
% \typeout{* You also need to compile the *.map files with teckit_compile}
% \typeout{* and place the resulting *.tec files under}
Added: trunk/Master/texmf-dist/tex/latex/polyglossia/gloss-latex.lde
===================================================================
--- trunk/Master/texmf-dist/tex/latex/polyglossia/gloss-latex.lde (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/polyglossia/gloss-latex.lde 2022-04-09 20:30:34 UTC (rev 62988)
@@ -0,0 +1,36 @@
+\ProvidesLanguageDefinitionExtension{gloss-latex}{2021/07/10}{v1.53}{polyglossia: module for default language}
+
+\PolyglossiaSetup{latex}{
+ hyphennames={english},
+ hyphenmins={2,3},
+ langtag=ENG,
+ fontsetup=true,
+ % ignore command
+ DefineCommandsCmd={use_none:n}
+}
+
+\def\captionslatex{%
+ \def\prefacename{Preface}%
+ \def\refname{References}%
+ \def\abstractname{Abstract}%
+ \def\bibname{Bibliography}%
+ \def\chaptername{Chapter}%
+ \def\appendixname{Appendix}%
+ \def\contentsname{Contents}%
+ \def\listfigurename{List of Figures}%
+ \def\listtablename{List of Tables}%
+ \def\indexname{Index}%
+ \def\figurename{Figure}%
+ \def\tablename{Table}%
+ \def\partname{Part}%
+ \def\enclname{encl}%
+ \def\ccname{cc}%
+ \def\headtoname{To}%
+ \def\pagename{Page}%
+ \def\seename{see}%
+ \def\alsoname{see also}%
+ \def\proofname{Proof}%
+}
+
+
+\endinput
Modified: trunk/Master/texmf-dist/tex/latex/polyglossia/gloss-polish.ldf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/polyglossia/gloss-polish.ldf 2022-04-09 20:29:34 UTC (rev 62987)
+++ trunk/Master/texmf-dist/tex/latex/polyglossia/gloss-polish.ldf 2022-04-09 20:30:34 UTC (rev 62988)
@@ -1,4 +1,5 @@
\ProvidesFile{gloss-polish.ldf}[polyglossia: module for polish]
+
\PolyglossiaSetup{polish}{
bcp47=pl,
hyphennames={polish},
@@ -11,6 +12,186 @@
% BCP-47 compliant aliases
\setlanguagealias*{polish}{pl}
+\ifluatex
+ \RequirePackage{luavlna}
+\fi
+
+\define at boolkey{polish}[polish@]{babelshorthands}[true]{}
+
+\define at boolkey{polish}[polish@]{splithyphens}[true]{}
+
+\define at boolkey{polish}[polish@]{vlna}[true]{}
+
+% Register default options
+\xpg at initialize@gloss at options{polish}{babelshorthands=false,splithyphens=true,vlna=true}
+
+\ifsystem at babelshorthands
+ \setkeys{polish}{babelshorthands=true}
+\else
+ \setkeys{polish}{babelshorthands=false}
+\fi
+
+\ifcsundef{initiate at active@char}{%
+ \input{babelsh.def}%
+ \initiate at active@char{"}%
+ \shorthandoff{"}%
+}{}
+
+\def\polish@@splhyphen#1{%
+ \def\polish at sh@tmp{%
+ \if\polish at sh@next-#1%
+ \else\expandafter\polish@@@splhyphen{#1}\fi%
+ }%
+ \futurelet\polish at sh@next\polish at sh@tmp%
+}
+
+\def\polish@@@splhyphen#1{%
+ \ifnum\hyphenchar \font>0%
+ \kern\z@\discretionary{-}{\char\hyphenchar\the\font}{#1}%
+ \nobreak\hskip\z@%
+ \else%
+ #1%
+ \fi%
+}
+
+\def\polish at splhyphen{%
+ \polish@@splhyphen{-}%
+}
+
+\def\polish at shorthands{%
+ \bbl at activate{"}%
+ \def\language at group{polish}%
+ \declare at shorthand{polish}{"=}{\polish at splhyphen}%
+ \declare at shorthand{polish}{""}{\hskip\z at skip}%
+ \declare at shorthand{polish}{"~}{\textormath{\leavevmode\hbox{-}}{-}}%
+ \declare at shorthand{polish}{"-}{\nobreak\-\bbl at allowhyphens}%
+ \declare at shorthand{polish}{"|}{%
+ \textormath{\penalty\@M\discretionary{-}{}{\kern.03em}%
+ \bbl at allowhyphens}{}%
+ }%
+ \declare at shorthand{polish}{"/}{\textormath
+ {\bbl at allowhyphens\discretionary{/}{}{/}\bbl at allowhyphens}{}}%
+ \declare at shorthand{polish}{"`}{„}%
+ \declare at shorthand{polish}{"'}{”}%
+ \declare at shorthand{polish}{"<}{«}%
+ \declare at shorthand{polish}{">}{»}%
+}
+
+\def\nopolish at shorthands{%
+ \@ifundefined{initiate at active@char}{}{\bbl at deactivate{"}}%
+}
+
+\ifxetex
+ % splithyphens
+ \newXeTeXintercharclass\polish at hyphen % -
+ % vlna
+ \newXeTeXintercharclass\polish at openpunctuation
+ \newXeTeXintercharclass\polish at nonsyllabicpreposition
+ \ifdefined\e at alloc@intercharclass at top
+ \chardef\polish at boundary=\e at alloc@intercharclass at top
+ \else
+ \ifdefined\XeTeXinterwordspaceshaping
+ \chardef\polish at boundary=4095 %
+ \def\newXeTeXintercharclass{%
+ \e at alloc\XeTeXcharclass\chardef
+ \xe at alloc@intercharclass\m at ne\@ucharclass at boundary}%
+ \else
+ \chardef\polish at boundary=255
+ \fi
+ \fi
+\fi
+
+\def\polish at hyphens{%
+ \ifluatex
+ \AfterPreamble{\enablesplithyphens{polish}}%
+ \else
+ \XeTeXinterchartokenstate=1
+ \XeTeXcharclass `\- \polish at hyphen
+ \XeTeXinterchartoks \z@ \polish at hyphen = {\polish@@splhyphen}% "-" -> "\polish@@splhyphen-"
+ % necessary if used together with vlna:
+ \XeTeXinterchartoks \polish at nonsyllabicpreposition \polish at hyphen = {\polish@@splhyphen}% "-" -> "\polish@@splhyphen-"
+ \fi%
+}
+
+\def\nopolish at hyphens{%
+ \ifluatex
+ \AfterPreamble{\disablesplithyphens{polish}}%
+ \else
+ \XeTeXcharclass `\- \z@
+ \fi%
+}
+
+% Add nonbreakable space after single-letter word to
+% prevent them to land at the end of a line
+% vlna code taken and adapted from xevlna.sty
+\ifxetex
+ \def\polish at nointerchartoks{\let\polish at interchartoks\polish at PreCSpreposition}%
+ \def\polish at PreCSpreposition{%
+ \def\next{}%
+ \ifnum\catcode`\ =10 % nothing will be done in verbatim
+ \ifmmode % nothing in math
+ \else
+ \let\polish at interchartoks\polish at nointerchartoks
+ \let\next\polish at ExamineCSpreposition
+ \fi\fi
+ \next%
+ }%
+ \def\polish at ExamineCSpreposition #1{#1\futurelet\next\polish at ProcessCSpreposition}%
+ \def\polish at ProcessCSpreposition{\ifx\next\polish at XeTeXspace\nobreak\fi}%
+ \futurelet\polish at XeTeXspace{ }\polish at nointerchartoks
+\fi
+
+\def\polish at vlna{%
+ \ifluatex
+ \singlechars{polish}{AaIiOoUuWwZz}
+ \preventsingleon
+ \else
+ % Code taken and adapted from xevlna.sty
+ \XeTeXinterchartokenstate=1
+ \XeTeXcharclass `\( \polish at openpunctuation
+ \XeTeXcharclass `\[ \polish at openpunctuation
+ \XeTeXcharclass `\„ \polish at openpunctuation
+ \XeTeXcharclass `\« \polish at openpunctuation
+ \XeTeXcharclass `\W \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\w \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\Z \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\z \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\O \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\o \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\U \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\u \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\A \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\a \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\I \polish at nonsyllabicpreposition
+ \XeTeXcharclass `\i \polish at nonsyllabicpreposition
+ \XeTeXinterchartoks \polish at boundary \polish at nonsyllabicpreposition {\polish at interchartoks}%
+ \XeTeXinterchartoks \polish at openpunctuation \polish at nonsyllabicpreposition {\polish at interchartoks}%
+ \fi
+}
+
+\def\nopolish at vlna{%
+ \ifluatex
+ \preventsingleoff
+ \else
+ \XeTeXcharclass`\(\z@
+ \XeTeXcharclass`\[\z@
+ \XeTeXcharclass`\„\z@
+ \XeTeXcharclass`\«\z@
+ \XeTeXcharclass`\W\z@
+ \XeTeXcharclass`\w\z@
+ \XeTeXcharclass`\Z\z@
+ \XeTeXcharclass`\z\z@
+ \XeTeXcharclass`\O\z@
+ \XeTeXcharclass`\o\z@
+ \XeTeXcharclass`\U\z@
+ \XeTeXcharclass`\u\z@
+ \XeTeXcharclass`\A\z@
+ \XeTeXcharclass`\a\z@
+ \XeTeXcharclass`\I\z@
+ \XeTeXcharclass`\i\z@
+ \fi
+}
+
\def\captionspolish{%
\def\prefacename{Przedmowa}%
\def\refname{Literatura}%
@@ -32,8 +213,8 @@
\def\seename{Zobacz}%
\def\alsoname{Zobacz też}%
\def\proofname{Dowód}%
- \def\glossaryname{Glossary}% <-- Needs translation
- }
+ \def\glossaryname{Słowniczek}%
+}
\def\datepolish{%
\def\today{\number\day\space\ifcase\month\or
@@ -41,6 +222,25 @@
lipca\or sierpnia\or września\or października\or
listopada\or grudnia\fi\space
\number\year}%
- }
+}
+\def\noextras at polish{%
+ \ifpolish at babelshorthands\nopolish at shorthands\fi%
+ \nopolish at hyphens%
+ \nopolish at vlna%
+ \ifxetex\XeTeXinterchartokenstate=0\fi%
+}
+
+\def\blockextras at polish{%
+ \ifpolish at babelshorthands\polish at shorthands\else\nopolish at shorthands\fi%
+ \ifpolish at vlna\polish at vlna\else\nopolish at vlna\fi%
+ \ifpolish at splithyphens\polish at hyphens\else\nopolish at hyphens\fi%
+}
+
+\def\inlineextras at polish{%
+ \ifpolish at babelshorthands\polish at shorthands\else\nopolish at shorthands\fi%
+ \ifpolish at vlna\polish at vlna\else\nopolish at vlna\fi%
+ \ifpolish at splithyphens\polish at hyphens\else\nopolish at hyphens\fi%
+}
+
\endinput
Modified: trunk/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty 2022-04-09 20:29:34 UTC (rev 62987)
+++ trunk/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty 2022-04-09 20:30:34 UTC (rev 62988)
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{polyglossia}[2022/03/27 v1.54
+\ProvidesPackage{polyglossia}[2022/04/09 v1.55
Modern multilingual typesetting with XeLaTeX and LuaLaTeX]
\RequirePackage{etoolbox}
\RequirePackage{makecmds}
More information about the tex-live-commits
mailing list.