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

Broken tlig feature / addfeature() code requires update #309

Closed
rpfei74 opened this issue Dec 17, 2015 · 21 comments
Closed

Broken tlig feature / addfeature() code requires update #309

rpfei74 opened this issue Dec 17, 2015 · 21 comments
Labels

Comments

@rpfei74
Copy link

rpfei74 commented Dec 17, 2015

Recently, colons (:) started to appear as closing quotation marks (”) when setting Minion Pro as the main text font.

\documentclass{scrbook}
\usepackage[no-math]{fontspec}
%\setmainfont{Minion Pro}
\begin{document}
Bla: blu: bli:
\end{document}

The output with Minion Pro is correct with xelatex but not with lualatex.

@lehrerbastelt
Copy link

After the recent update I noticed that, too.

Additionally, there is some very strange behavior regarding the LetterSpace feature: Please try the following MWE with and without the last line. It will throw an error:

\documentclass{scrartcl}

\usepackage{fontspec}
\setmainfont{Minion Pro}

\begin{document}
% This works (with false quotation mark instead of colon):
\addfontfeature{LetterSpace=50}
Hello: World!

% This will work:
CASI

% This won’t:
% CASIO

\end{document}

It will throw the following error:

error: ...TeX/2.9/tex/luatex/luaotfload/luaotfload-letterspace.lua:445: You can
not set field prev.next in a node of type glyph

@priyadarshan
Copy link

I am having exact same problems. I came to this ticket thanks to this sx question: http://tex.stackexchange.com/questions/283595/lualatex-unable-to-switch-off-ligatures-in-smallcaps

Since updating, I have been experiencing lots of luaotfload-letterspace.lua: You cannot set field prev.next in a node of type glyph. Before that, I was able to compile same files, with same fonts, with no issues.

Note: I have opened new issuse #310, as it seems quite different.

@phi-gamma
Copy link
Member

···<date: 2015-12-17, Thursday>···<from: MacDevil>···

It will throw the following error:

error: ...TeX/2.9/tex/luatex/luaotfload/luaotfload-letterspace.lua:445: You can
not set field prev.next in a node of type glyph

This is tracked separately in issue #310.

Best,
Philipp

@phi-gamma
Copy link
Member

···<date: 2015-12-17, Thursday>···<from: rpfei74>···

Recently, colons (:) started to appear as closing quotation marks (”) when setting Minion Pro as the main text font

\documentclass{scrbook}
\usepackage[no-math]{fontspec}
%\setmainfont{Minion Pro}
\begin{document}
Bla: blu: bli:
\end{document}

The tlig feature is broken. Here’s a minimal test file:
https://bitbucket.org/phg/lua-la-tex-tests/src/tip/plain/pln-features-14-tlig.tex

@phi-gamma phi-gamma added the bug label Dec 17, 2015
@phi-gamma
Copy link
Member

I’ve sort of tracked the issue down; some secondary code needs
updating due to the revised ligature handling. Unfortunately,
I can’t fix it right aways due to some other issue with combined
substitution / ligature features (there’s only one: “tlig”, but
people seem to expect that to work above all else).

@phi-gamma phi-gamma changed the title Problem with Minion Pro Broken tlig feature / addfeature() code requires update Dec 18, 2015
@vsrepo
Copy link

vsrepo commented Dec 18, 2015

Thank you for your help. We have two major books almost ready to go to press. I could revert back to previous luaotfload version, but I would rather wait for update, as the new features are very much appreciated.

Please let me know if there is anything I could do to help, i.e. testing. Thank you again.

@phi-gamma
Copy link
Member

···<date: 2015-12-17, Thursday>···<from: repository-tasks>···

Thank you for your help. We have two major books almost ready
to go to press.

Hans responded optimistically:

http://mailman.ntg.nl/pipermail/ntg-context/2015/083836.html

But I can’t make any promises for another release this year.

            I could revert back to previous `luaotfload`

version, but I would rather wait for update, as the new features
are very much appreciated.

In theory you shouldn’t have to revert. Last year’s fontloader is
still available if you set the following configuration:

[run]
    fontloader = tl2014

Maybe this gets you far enough already.

Please let me know if there is anything I could do to help,
i.e. testing. Thank you again.

Thanks for the offer. I’ll get back at you once I have something
to test.

@simifilm
Copy link

I think I've also been bitten by this bug. Where exactly do I have to put

[run]
fontloader = tl2014

I put this in luaotfload.conf which is in my working directory, but it didn't seem to have any effect. That is on TL2015 on OSX,

@simifilm
Copy link

I'm seeing something similar with Stempel Garamond LT Pro – ' is replaced with ”. Could this be the same error? If so, where do I put luaotfload.conf on OSX? I tried different locations and nothing seems to have any impact.

@Lenchik
Copy link

Lenchik commented Dec 21, 2015

@simifilm take a look here: latex3/fontspec#222 (comment)

@simifilm
Copy link

@Lenchik I tried that – no difference.

@phi-gamma
Copy link
Member

@phi-gamma
Copy link
Member

Hans incorporated my patch so I think we’re good to go with
our hard-patched version. Please test with the new release
and reopen if needed.

@simifilm
Copy link

This has indeed fixed my issue. Thanks a lot.

@simifilm
Copy link

Do I see this correctly, that TeX ligatures don't work yet? For fontspec I have Ligatures=TeX enabled, but -- is still rendered as --.

@phi-gamma
Copy link
Member

···<date: 2015-12-23, Wednesday>···<from: Simon Spiegel>···

Do I see this correctly, that TeX ligatures don't work yet? For fontspec I have Ligatures=TeX enabled, but -- is still rendered as --.

Drat! Thanks for reporting.

Does the old loader work with the latest release? Here I get the
correct result with a luaotfload.conf like this:

[run]
    fontloader = tl2014

@phi-gamma phi-gamma reopened this Dec 23, 2015
phi-gamma added a commit to phi-gamma/luaotfload that referenced this issue Dec 23, 2015
Closing lualatex#309

Many thanks for @simifilm for the report!
@phi-gamma
Copy link
Member

@simifilm fixed; new package is on its way to CTAN.

That one was ugly …

@simifilm
Copy link

Hmm, I don't see any improvement with fix-4. -- still remains unchanged.

@phi-gamma
Copy link
Member

···<date: 2015-12-25, Friday>···<from: Simon Spiegel>···

Hmm, I don't see any improvement with fix-4. -- still remains unchanged.

Did you erase the font cache? (luaotfload-tool --cache=erase)

@simifilm
Copy link

Did you erase the font cache? (luaotfload-tool --cache=erase)

That did the trick.

@phi-gamma
Copy link
Member

···<date: 2015-12-25, Friday>···<from: Simon Spiegel>···

Did you erase the font cache? (luaotfload-tool --cache=erase)

That did the trick.

I’m quite relieved =)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants