diff options
author | Karl Berry <karl@freefriends.org> | 2023-08-22 22:46:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-08-22 22:46:29 +0000 |
commit | a07d4da78eb3565edffdd8b676457684c47158dd (patch) | |
tree | e3ff81e52a8fbd118737ffb9cf361ac9f4d680d2 /Master/texmf-dist/source/latex | |
parent | 7132d484d10d6a06ab868466f92eaf661d3cf2f9 (diff) |
teubner (23aug23)
git-svn-id: svn://tug.org/texlive/trunk@68022 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r-- | Master/texmf-dist/source/latex/teubner/teubner.dtx | 63 |
1 files changed, 36 insertions, 27 deletions
diff --git a/Master/texmf-dist/source/latex/teubner/teubner.dtx b/Master/texmf-dist/source/latex/teubner/teubner.dtx index c95283e7f35..bcac1f2b34e 100644 --- a/Master/texmf-dist/source/latex/teubner/teubner.dtx +++ b/Master/texmf-dist/source/latex/teubner/teubner.dtx @@ -43,7 +43,7 @@ See the end of the file. %<package>\ProvidesPackage{teubner}[% %<tbtx>\ProvidesPackage{teubnertx}[% %<*driver,package,tbtx> -2023/06/10 v.5.8.0 +2023/08/22 v.5.8.2 %<package>Extensions for Greek philology] %<tbtx>Access to the LGR encoded Greek fonts that match the TX fonts] %</driver,package,tbtx> @@ -84,7 +84,7 @@ See the end of the file. %</driver> % \fi % -% \CheckSum{4206} +% \CheckSum{4190} % \begin{multicols}{2}\tableofcontents\end{multicols} % % @@ -646,7 +646,7 @@ Type X <return> to exit.}% % distinguishes the variant or the main language whose attribute % gets set and, evidently, becomes effective when the main language % |greek| is in force. Notice that if the |greek.ldf| has a date previous -% to 2014/09/18, the attribute |ancient| may not be defined; in this case +% to 2014-09-18, the attribute |ancient| may not be defined; in this case % the |polutoniko| attribute is set, else the |ancient| attribute is % selected. The difference is that the attribute |polutoniko| selects % the polytonic spelling and the modern Greek hyphenation, while @@ -657,36 +657,45 @@ Type X <return> to exit.}% % document is being typeset, the |ancient| attribute may work % satisfactorily, but with some possible “ancient” line breaks. % -% In this new version 5.8.0 of this package I had to redefine my macro -% \cs{strip@slash}, the purpose of which is to compact the ISO date -% formato in a string made up only of eight digits, without separators, -% because the maintainer of the \pack{babel-greek} package on 31st o fMay -% 2023 changed the formati; in facts the previous format was YYYY/MM/DD, -% the new format is YYYY-MM-DD; Evidently now the separators are hyphen -% signs, not slashes, I did not change the name of my command; I just -% modified its definition so as to delete the hyphen signs. The number -% test that follows checks the digit string against another digit string -% so as to control if the \pack{babel-greek} package is sufficiently -% recent. +% In this new version 5.81 of this package I redefined the test to check +%if the \texttt{greek.ldf} is sufficiently recent in order to correctly +% use the ancient Greek version. The 2023 dev release of the \LaTeX format +% already contains a new control sequence named \cs{IfFileAtLeastTF} +% LaTeX3 function that allows to test the date of any file the full name +% of which is passed as the first argument to the function; the syntax is +% as such +% +% \cs{IfFileAtLeastTF}\marg{full file name}\marg{ISO date}\marg{true}\marg{false} +% +%\noindent where the \meta{full file name} means with its extension; +% \meta{ISO date} means any form among yyyy/mm/dd or yyyy-mm-dd. +% If the LaTeX kernel already contains this LaTeX3 definition the teubner +% definition is skipped. % \begin{macrocode} +\unless\ifcsname IfFileAtLeastTF\endcsname + \def\IfFileAtLeastTF#1{\expandafter\@ifl@t@r\csname ver@#1\endcsname}% +\fi + +\def\GreekName{greek} \ifx\languageattribute\undefined - \def\GreekName{polutonikogreek}% + \def\GreekName{polutonikogreek}% \else - \def\GreekName{greek} - \def\strip@slash#1-#2-#3!{\edef\@tempA{#1#2#3}} - \def\getgreekdate#1 #2 #3 #4!{\def\@tempA{#1}\expandafter\strip@slash\@tempA!} - \expandafter\expandafter\expandafter\getgreekdate\csname ver@greek.ldf\endcsname ! - \ifnum\@tempA<20140918 - \languageattribute{greek}{polutoniko}% - \else - \languageattribute{greek}{ancient}% - \fi - \let\strip@slash\@undefined - \let\getgreekdate\@undefined +\IfFileAtLeastTF{greek.ldf}{2014-09-18}% + {\languageattribute{greek}{ancient}}% + {\languageattribute{greek}{polutoniko}}% \fi % \end{macrocode} %\end{macro} - +% Unfortunately the ISO date allows two formats: +% for example 2023/08/22 and 2023-08-22, somewhere +% else \LaTeX\,3 can accept both formats, but the +% particulare command todays accepts only the +% dashed variant, not the slashed one, therefore +% the \texttt{greek.ldf} sometimes changes date +% format and an error message pops up. Thanks to +% Ludz Kruschwitz, who set a bug report directly +% to me, so that <i could correct this teubner.sty +% version~5.8.2. % % \subsection{Compatibility with Latin fonts}\label{ssec:LatinFontComp} % |