5,443 reputation
1630
bio website bitbucket.org/phg
location Golgafrincham
age
visits member for 2 years, 5 months
seen Sep 27 at 22:19

Sep
27
comment Debug log the text returned via tex.sprint() and friends?
Not in all cases. Because of its efficiency, it is idiomatic in Lua to use local references to functions instead of calling them explicitly. Consequently, after a chunk of code (e.g. a .lua file) is loaded those references are fixed and cannot be replaced. Not without resorting to the debug library anyways. You’d have to substitute your wrappers before loading third party code. This should be possible but make sure you get the semantics right. If you intend to use Context it might not work at all because most Lua libraries are loaded before the document gets to execute anything.
Sep
27
comment Debug log the text returned via tex.sprint() and friends?
Why not just use a wrapper that calls print() or io.write() on the strings if some trace flag is set?
Sep
14
comment Replacement(s) for TeX's paragraph builder using LuaTeX
@Aradnix The parbuilder code has been part of Context for quite some time. Just check your TeX distribution for the file node-ltp.lua. Of course, the code is available in the official Git repo as well.
Sep
12
comment Precompiled header with lualatex and unicode-math
@John try updating your Luatex binary. Élie’s fix was applied some time ago. If it still fails afterwards, there might be another bug that should be reported to the devs.
Sep
4
comment Get cell content from a Google doc spreadsheet using LuaTeX
@cjorssen Thanks, fixed. I wonder whether the code still works …
Sep
4
comment About the internals of ConTeXt
@Manuel I don’t know; best ask on meta.tex.stackexchange.com
Sep
3
comment About the internals of ConTeXt
@Manuel The most convenient way to search the list is by downloading the archives at ntg.nl/pipermail/ntg-context and concatenating them into one big mailbox. Then use grep or your MUA at your convenience.
Sep
3
comment Misplaced Accents in Cyrillic Text
Could be related: github.com/lualatex/luaotfload/issues/221
Sep
3
comment About the internals of ConTeXt
Lots of questions: tex.stackexchange.com/a/110131/14066 -- tex.stackexchange.com/a/58659/14066 -- an underscore in identifier ist just part of the identifier -- an @ is a literal @ -- Btw. just start with the manual and ask on the mailing list, that’s the easiest way to answer your questions or make people answer. If in doubt, search the archives: dir.gmane.org/gmane.comp.tex.context
Aug
28
comment ConTeXt: hyperlinks with special characters
Did you try defining your URLs inside a \startasciimode ... \stopasciimode environment?
Aug
27
comment LuaLaTeX, fontspec, .ttc fonts and kerning (Optima on Mac OS)
@Mico Good! However, I just figured out why it was that no kerns showed up, at least for Cambria anyways: I forgot to explicitly request the “latin” script. Sorry for the noise! Here’s an updated test file. Please run it with Optima and/or Hoefler substituted for Cambria in TL 2013 and 2014. If there’s a difference, then we have a reproducible case.
Aug
27
comment LuaLaTeX, fontspec, .ttc fonts and kerning (Optima on Mac OS)
@Mico Have you actually run the test file?
Aug
27
comment LuaLaTeX, fontspec, .ttc fonts and kerning (Optima on Mac OS)
@Mico I cannot figure out what programs you ran to create the screenshot you've posted, let alone reproduce it on my system. -- I used the Luatex binary from TL 2013 with the most recent fontloader from the Context distribution (the one that’s also in current Luaotfload). The output is the same as with the TL 2014 binary or more recent ones. That refutes your hypothesis that the problem in on the Luatex side. Your other question is an exact duplicate of this one, btw.
Aug
26
comment LuaLaTeX, fontspec, .ttc fonts and kerning (Optima on Mac OS)
@Mico I just reproduced the issue with the engine from TL 2013 (version 0.76.0). That rules out an issue with Luatex, including the removal of AAT support. Try it out. As you say, you still have the binaries.
Aug
26
comment LuaLaTeX, fontspec, .ttc fonts and kerning (Optima on Mac OS)
@Mico I’m not following you here. How could the removal of AAT support from the engine affect TTC subfont handling in the fontloader? Was the bug introduced with the branch on which Khaled prepared the removal?
Aug
26
comment LuaLaTeX, fontspec, .ttc fonts and kerning (Optima on Mac OS)
@Mico Dropping AAT support is a feature and most likely unrelated to the issue at hand. The test file I posted earlier reproduces the bug 1) without Luaotfload and 2) with a regular non-AAT font (Cambria).
Aug
25
comment LuaLaTeX, fontspec, .ttc fonts and kerning (Optima on Mac OS)
Ack, @egreg seems right; here’s a test file: bitbucket.org/phg/lua-la-tex-tests/src/…
Aug
22
comment Practical use of Lua
@cfr neither Biber nor Biblatex work with Context, and Bibtex outside of Latex was always a hack. So, yes, it is in fact the new bibliography system, as far as Context is concerned.
Aug
21
comment Is there any way to do a correct word count of a LaTeX document?
You’d have to store it somewhere between TeX runs. Write the result of packagedata.word_count.current_word_count() to some temporary file and re-read it at the start of the next run.
Aug
20
comment Write unit tests for Lua in ConTeXt
Btw. are you aware of the test suite? You might draw inspiration from their approach.