latex3 / latex2e

The LaTeX2e kernel
https://www.latex-project.org/
LaTeX Project Public License v1.3c
1.93k stars 267 forks source link

Missing composite command for “i with macron” #1453

Open eg9 opened 2 months ago

eg9 commented 2 months ago

Brief outline of the enhancement

It seems that some common accented letters aren't covered, in particular ī. Indeed

\=i

produces a macron over a dotted i. OT1 and T1 encoding should have a composed command for it.

The glyph is used in Latvian. While the UTF-8 direct input produces a correct output, it seems necessary to cover it for people who can't input the U+012B character directly.

Minimal example showing the current behaviour

\RequirePackage{latexbug}
\documentclass{article}

\begin{document}

\=i versus \={\i}

\end{document}
image
\RequirePackage{latexbug}
\documentclass{article}
\usepackage[T1]{fontenc}

\begin{document}

\=i versus \={\i}

\end{document}
image

Minimal example showing the desired new behaviour

\RequirePackage{latexbug}
\documentclass{article}

\DeclareTextCompositeCommand{\=}{OT1}{i}{\=\i}

\begin{document}

\=i versus \={\i}

\end{document}
image
\RequirePackage{latexbug}
\documentclass{article}
\usepackage[T1]{fontenc}

\DeclareTextCompositeCommand{\=}{T1}{i}{\=\i}

\begin{document}

\=i versus \={\i}

\end{document}
image
Rimole commented 2 months ago

See also https://github.com/latex3/latex2e/issues/1075.