I'm failing to hyphenate Russian text with LuaTeX in DVI mode (dvilualatex). Please, don't tell me to use fontspec I need a DVI file.





dvilualatex output:

enter image description here

latex output:

enter image description here

There is something wrong with input re-encoding (luainputenc). I understand that luatex reads utf8 input and luainputenc tries to split input characters to single bytes. This some how breaks hyphenation. Maybe someone could explain what is happening and how it could be solved?

  • As far as I know you can use fontspec in DVI mode. What's the reason for using LuaTeX here is not for access to system fonts, etc.? – Joseph Wright Jun 27 '14 at 8:19
  • luatex needed for other tricks and I need DVI file with Postcript fonts. – Linuxss Jun 27 '14 at 8:22
  • 1
    @JosephWright: I don't think that lualatex can use type1 fonts through fontspec. And a driver (dvips) would not be able to use open type fonts (and a probably neither a type1 font loaded by fontspec). Besides this I think this simply can't work. The hyphenation patterns used by lualatex are utf8 orientated, I don't think that they will work with an T2A encoded font. Imho dvilualatex makes sense only with more or less ascii output. – Ulrike Fischer Jun 27 '14 at 8:29
  • @UlrikeFischer I realise the font business gets tricky: just trying to get a feel for what the underlying requirements are here. (There is a reason DVI mode is not really made obvious with LuaTeX.) – Joseph Wright Jun 27 '14 at 8:33
  • That means, patterns need to be read in cp1251 encoding as all document? I did it and indeed two hyphens appeared in that word. But still not the same as in latex. Any more hints? – Linuxss Jun 27 '14 at 9:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.