Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

typographic quotes ligaturing with ? #397

Closed
davidcarlisle opened this issue Jan 31, 2017 · 3 comments
Closed

typographic quotes ligaturing with ? #397

davidcarlisle opened this issue Jan 31, 2017 · 3 comments

Comments

@davidcarlisle
Copy link
Member

Originally a user question on stackexchange

http://tex.stackexchange.com/a/351436/1090
enabling tex ligatures appears to set up ligatures with typographic quotes as well as the ascii ones
which seems unexpected.

\input{luaotfload.sty}

\font\fa=[lmroman12-regular.otf]
\font\fb=[lmroman12-regular.otf]:+tlig

\fa 

U+2018 no tlig !‘

U+0060 no tlig !`

\fb

U+2018 tlig !‘

U+0060  tlig !`

\bye

produces ¡ for both of lines 3 and 4, which is unexpected and differs from the equivalent tex mapping of xetex which only produces ¡ on line 4.

I'm using

luaotfload | diagnose : Luaotfload revision 616b9077567fd670341696cb6ff2bfc71cf691a9.
luaotfload | diagnose : Committed by Philipp Gesang <[email protected]>.
luaotfload | diagnose : Timestamp 2017-01-29 20:52:03 +0100.

David

@eg9
Copy link

eg9 commented Jan 31, 2017

If I comment out lines 1293 and 1294 in luaotfload-features.lua

1293 --            [0x00A1] = {0x0021, 0x2018},         -- exclamdown
1294 --            [0x00BF] = {0x003F, 0x2018},         -- questiondown

the result of the test file

\documentclass{article}
\begin{document}

endash: -- ; emdash: --- ; quotes: `` quotes ''

U+2018 no tlig !‘

U+0060  tlig !`
\end{document}

seems correct.

screen shot 2017-01-31 at 23 40 09

Using LaTeX2e <2017/01/01> patch level 1 so luaotfload is automatically loaded.

@eg9
Copy link

eg9 commented Jan 31, 2017

By the way, also the ligatures

        [0x201C] = {0x2018, 0x2018},         -- quotedblleft
        [0x201D] = {0x2019, 0x2019},         -- quotedblright

seem wrong; XeLaTeX doesn't do them.

@phi-gamma
Copy link
Member

phi-gamma commented Feb 2, 2017 via email

phi-gamma added a commit to phi-gamma/luaotfload that referenced this issue Feb 7, 2017
V2 of 7250ac9

    commit 7250ac9
    Author: Philipp Gesang <[email protected]>
    Date:   Thu Feb 2 07:38:03 2017 +0100

        [features] remove unneeded tlig features

        Fix lualatex#397

        These four features should not be inserted automatically.

which was reverted in

    commit 9b70f2e
    Author: Philipp Gesang <[email protected]>
    Date:   Mon Feb 6 21:21:48 2017 +0100

        Revert "[features] remove unneeded tlig features"

addressing issues lualatex#397, lualatex#405.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants