為什麼使用小型大寫字母會破壞 lualatex 中的 endash 連字?

為什麼使用小型大寫字母會破壞 lualatex 中的 endash 連字?

我花了一天的大部分時間嘗試將專案從 遷移pdftexlualatex.這次經歷大部分都是正面的,但也有一些我無法理解的問題。

最近,我剛剛注意到,endash 和 emdash 的標準 texish 連字(即--排版為 - 並---成為 -)在位於小型大寫字母格式的參考文獻中時已經擅離職守。這是不幸的,因為我在聖經經文引用中使用了 endash,這些經文在頁邊空白處使用小型大寫字母排版。

我已經查看了信息如何在 LuaTeX 中啟用 emdash/endash 連字?但這似乎是一個不同的問題。

這是顯示問題的 MWE(使用 lualatex 編譯):

\documentclass{scrartcl}
\usepackage{luatextra}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Linux Libertine}

\begin{document}
Test -- endash and --- emdash

{\scshape Test -- endash and --- emdash}
\end{document}

對我來說這會產生:

小寫破折號連字缺失

這裡的罪魁禍首是什麼?

答案1

自 v2.5-1 版本起,該錯誤修復已發佈到 CTAN。

\documentclass{scrartcl}
\usepackage{luatextra}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Linux Libertine}

\begin{document}
Test -- endash and --- emdash

{\scshape Test -- endash and --- emdash}
\end{document}

luaotfload.sty 2014/07/16 v2.5-1 OpenType layout system

給出

在此輸入影像描述

相關內容