Skip to content

Commit

Permalink
fix for cyrillic font encodings (#1166)
Browse files Browse the repository at this point in the history
* fix for cyrillic font encodings

* news entry

* minor adjustments

* grammar
  • Loading branch information
FrankMittelbach authored Nov 8, 2023
1 parent 61cc684 commit 55273a5
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 5 deletions.
13 changes: 13 additions & 0 deletions base/doc/ltnews39.tex
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,19 @@ \subsection{\pkg{verbatim}: \cs{verb} showed visible spaces}
\githubissue{1160}


\section{Changes to files in the \pkg{cyrillic} category}

\subsection{Correct definition of \cs{k}}

Ages ago, the encoding specific definitions for various accent
commands were altered to guard altering some parameter values
non-locally by mistake. For some reason the definition for \cs{k} in
the Cyrillic encodings \texttt{T2A}, \texttt{T2B}, and \texttt{T2C}
didn't get this treatment. This oversight has now been corrected.
%
\githubissue{1148}



\begin{thebibliography}{9}

Expand Down
4 changes: 2 additions & 2 deletions required/cyrillic/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The LaTeX `cyrillic` bundle
===========================

Release 2022-06-01 patch level 1
Release 2024-06-01

Overview
--------
Expand Down Expand Up @@ -51,4 +51,4 @@ of the package.

-----

<p>Copyright (C) 2005-2019 The LaTeX Project <br />
<p>Copyright (C) 2005-2024 The LaTeX Project <br />
5 changes: 5 additions & 0 deletions required/cyrillic/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
=======================================================================

2023-11-07 Frank Mittelbach <Frank.Mittelbach@latex-project.org>

* cyoutenc.dtx (section{The Cyrillic font encodings: T2A, T2B, T2C, and X2}):
Add \hmode@bgroup to \k to match other encoding definitions (gh/1148)

2022-06-11 David Carlisle <David.Carlisle@latex-project.org>

* cyinpenc.dtx cyoutenc.dtx lyc.dtx ot2.dtx:
Expand Down
11 changes: 8 additions & 3 deletions required/cyrillic/cyoutenc.dtx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
% Copyright 1993-2022
% Copyright 1993-2023
% The LaTeX3 Project and any individual authors listed elsewhere
% in this file.
%
Expand Down Expand Up @@ -65,7 +65,7 @@
%<T2A>\ProvidesFile{t2aenc.def}
%<T2B>\ProvidesFile{t2benc.def}
%<T2C>\ProvidesFile{t2cenc.def}
[2022/06/11 v1.0j Cyrillic encoding definition file]
[2023/11/07 v1.0k Cyrillic encoding definition file]
% \end{macrocode}
%
% To assure that |\MakeUppercase| and |\MakeLowercase| will work
Expand Down Expand Up @@ -118,8 +118,13 @@
\DeclareTextCommand{\d}{\LastDeclaredEncoding}[1]
{\hmode@bgroup
\o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-1ex}.\hidewidth}\egroup}
% \end{macrocode}
%
% \changes{v1.0k}{2023/11/07}{Add \cs{hmode@bgroup} to \cs{k} to match
% other encoding definitions (gh/1148)}
% \begin{macrocode}
\DeclareTextCommand{\k}{\LastDeclaredEncoding}[1]
{\oalign{\null#1\crcr\hidewidth\char12}}
{\hmode@bgroup\oalign{\null#1\crcr\hidewidth\char12}\egroup}
\DeclareTextCommand{\textperthousand}{\LastDeclaredEncoding}
{\%\char 24 }
\DeclareTextCommand{\textpertenthousand}{\LastDeclaredEncoding}
Expand Down

0 comments on commit 55273a5

Please sign in to comment.