Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small capitals with macron #303

Closed
CampanIgnis opened this issue Mar 11, 2020 · 3 comments
Closed

Small capitals with macron #303

CampanIgnis opened this issue Mar 11, 2020 · 3 comments

Comments

@CampanIgnis
Copy link

CampanIgnis commented Mar 11, 2020

Lower case small capitals with macron of vowels are replaced by lower case regular letters with macron. I have tested some but not all fonts of the typeface but I assume that this applies to all fonts of Libertinus. I have not checked all diacritics but I have only found this issue with macrons.

Therefore, I kindly would like to get my mistake pointed out or an addition of lower case small capitals to all fonts of the Libertinus typeface.

Compile

\documentclass{memoir}
\usepackage{fontspec}\setmainfont{LibertinusSerif-Regular.otf}
\usepackage{unicode-math}\setmathfont{LibertinusMath-Regular.otf}
\begin{document}
\textsc{AĀ aā EĒ eē IĪ iī OŌ oō UŪ uū} (does not work)

AĀ aā EĒ eē IĪ iī OŌ oō UŪ uū (for comparison)

\={\textsc{a}}\={\textsc{e}}\={\textsc{i}}\={\textsc{o}}\={\textsc{u}} \textsc{\=a\=e\=i\=o\=u} (does not work)

\textsc L$\bar{\textsc{u}}$\textsc t$\bar{\textsc{e}}$\textsc x (dirty math trick)

\textsc{Lutex} 
\end{document}

with LuaLaTeX or XeLaTeX to get
Bildschirmfoto 2020-03-11 um 15 07 01

I use TeX Live 2019 (frozen) and I have manually installed Libertinus 6.11.

Thank you very much for this beautiful and versatile typeface.

@Nescio0
Copy link

Nescio0 commented Mar 14, 2020

Try the following for comparison:

\documentclass{article}
\begin{document}
\begin{tabular}{ll}
\verb+\textsc{A Ā a ā}+ & \textsc{A Ā a ā} \\
\verb+\textsc{E Ē e ē}+ & \textsc{E Ē e ē} \\
\verb+\textsc{I Ī i ī}+ & \textsc{I Ī i ī} \\
\verb+\textsc{O Ō o ō}+ & \textsc{O Ō o ō} \\
\verb+\textsc{U Ū u ū}+ & \textsc{U Ū u ū} \\
\verb+\textsc{Y Ȳ y ȳ}+ & \textsc{Y Ȳ y ȳ}\\
 & \\
\verb+\={\textsc{a}}+ & \={\textsc{a}} \\
\verb+\={\textsc{e}}+ & \={\textsc{e}} \\
\verb+\={\textsc{i}}+ & \={\textsc{i}} \\
\verb+\={\textsc{o}}+ & \={\textsc{o}} \\
\verb+\={\textsc{u}}+ & \={\textsc{u}} \\
\verb+\={\textsc{y}}+ & \={\textsc{y}} \\
 & \\
\verb+\textsc{\=a}+ & \textsc{\=a} \\
\verb+\textsc{\=e}+ & \textsc{\=e} \\
\verb+\textsc{\=i}+ & \textsc{\=i} \\
\verb+\textsc{\=o}+ & \textsc{\=o} \\
\verb+\textsc{\=u}+ & \textsc{\=u} \\
\verb+\textsc{\=y}+ & \textsc{\=y} \\
\end{tabular}
\end{document}

output with lualatex: lualatex.pdf
output with pdflatex: pdflatex.pdf
output with xelatex: xelatex.pdf

@khaledhosny khaledhosny added the pr-welcome A PR contributing towards this issue would be welcome. label Mar 29, 2020
@khaledhosny
Copy link
Contributor

Currently smallcaps cover only a small subset of Latin glyphs, and it is quite some work to extend them. Contributions are welcome, but I won’t be able to work on it, sorry.

A workaround would be forcing the decomposed form of the characters using CGJ:

\documentclass{memoir}
\usepackage{fontspec}\setmainfont{LibertinusSerif-Regular.otf}
\usepackage{unicode-math}\setmathfont{LibertinusMath-Regular.otf}
\usepackage{newunicodechar}
\def\=#1{#1^^^34f^^^304}
\newunicodechar{ā}{\=a}
\newunicodechar{ē}{\=e}
\newunicodechar{ī}{\=i}
\newunicodechar{ō}{\=o}
\newunicodechar{ū}{\=u}
\begin{document}
\textsc{AĀ aā EĒ eē IĪ iī OŌ oō UŪ uū} (does not work)

AĀ aā EĒ eē IĪ iī OŌ oō UŪ uū (for comparison)

\={\textsc{a}}\={\textsc{e}}\={\textsc{i}}\={\textsc{o}}\={\textsc{u}} \textsc{\=a\=e\=i\=o\=u} (does not work)

\textsc L$\bar{\textsc{u}}$\textsc t$\bar{\textsc{e}}$\textsc x (dirty math trick)

\textsc{Lutex} 
\end{document}

Screen Shot 2020-03-29 at 9 49 35 PM

@khaledhosny
Copy link
Contributor

After posting the above comment, I realized I can do the decomposition in the font, so this is done now and the above workaround is no longer needed.

alerque pushed a commit that referenced this issue Aug 18, 2020
@alerque alerque removed the pr-welcome A PR contributing towards this issue would be welcome. label Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants