-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Hyphen character missing when using luatex with DVI output #255
Comments
Looks like The LuaTeX dvi outputs with \documentclass{article}
\pagestyle{empty}
\def\testhyphens{%
A-B\par
-\par
A-\hspace{0pt}B\par
A-\par
-B\par\bigskip}
\begin{document}
\automatichyphenmode=0
\testhyphens
\automatichyphenmode=1
\testhyphens
\automatichyphenmode=2
\testhyphens
\end{document} Running
then in
You can see the first and last line of each test group with |
@muzimuzhi Awesome, thank you for the detailed analysis! dvisvgm indeed converts the DVI files correctly. The initial one created by LuaTeX doesn't contain the missing hyphens so that dvisvgm can't process them. |
With
( |
Turns out it's a git clone --branch=dev --depth=1 git@github.com:latex3/luaotfload.git
cd luaotfload
# needs l3build package
l3build install
cd /path/to/tex/files
# needs latex-base-dev and latex-bin-dev packages perhaps
# should be equivalent to "lualatex-dev --output-format=dvi"
dvilualatex-dev dvisvgm-gh255
dvisvgm --font-format=woff2 dvisvgm-gh255 |
Great, thanks for the detailed explanation and for hunting down that |
When using
lualatex --output-format=dvi
, if the hyphen character is followed by a non-space character, then the hyphen is missing from the output. Consider the following example:Compiling with
latex
and converting the DVI file withdvisvgm
results inWith
lualuatex --output-format=dvi
, the resulting SVG file after conversion isThis is with the following versions:
The text was updated successfully, but these errors were encountered: