Skip to main content
16 events
when toggle format what by license comment
Apr 5, 2014 at 0:10 comment added dsedivec Thank you both again! The real point to take away from this answer is that you have to tell LaTeX what language your text is in with appropriate commands from Babel or Polyglossia. I think that was obvious to everyone but me. I'll also add that, at least for Russian, Babel seems to work fine in LuaLaTeX these days (see section 2).
Apr 5, 2014 at 0:06 vote accept dsedivec
Apr 2, 2014 at 19:57 comment added David Carlisle @dsedivec sorry I think I confused myself. I put back the selectlanguage version that was there originally but setting righthyphenmin this time so it breaks as shown. I'm confused though as I used lualatex before to post the image (but it didn't work today:-)
Apr 2, 2014 at 19:56 comment added dsedivec @DavidCarlisle OK, I just tried it with \mbox{}\selectlanguage{russian} instead of \hyphenrules{russian} and that did hyphenate, though it chose полу́чи-те instead of полу́-чите for some reason. (Compare with my answer using Babel, below.) Now we're just left wondering if the \selectlanguage version didn't work for egreg, and if not, why! Thanks for the follow-up.
Apr 2, 2014 at 19:56 history edited David Carlisle CC BY-SA 3.0
added 80 characters in body
Apr 2, 2014 at 19:51 comment added David Carlisle Can you try the version I posted originally before @egreg mentioned \hyphenrules? If you wait a minute I'll add both versions to the answer
Apr 2, 2014 at 19:41 comment added dsedivec @DavidCarlisle Hm, I just copy/pasted your source into a local file, compiled with lualatex, and I cannot reproduce your results. The first row of Russian in my resulting PDF is still not hyphenated, and I still get the underfull warning. I'm using MacTeX 2013, which seems to be based on TeX Live 2013, and tlmgr reports no available updates.
Apr 2, 2014 at 15:16 comment added David Carlisle @egreg see above comment:-)
Apr 2, 2014 at 15:16 comment added David Carlisle @dsedivec No I only used lualatex in my testing, and used it to generate the image shown: I'm not sure what quirk egreg meant, let's ping him...
Apr 2, 2014 at 14:55 comment added dsedivec Thanks for the attempt. Today I learned about the \hyphenrules command. Am I right that the consensus is that this only works for XeLaTeX and not LuaLaTeX? It didn't work here for me using LuaLaTeX, at least.
Apr 1, 2014 at 16:25 comment added David Carlisle @egreg but with hyphenrules \righthyphenmin gets set (I guess) so hyphenation occurs in same place, i updated my answer thanks.
Apr 1, 2014 at 16:24 history edited David Carlisle CC BY-SA 3.0
deleted 11 characters in body
Apr 1, 2014 at 16:22 comment added egreg Doh! Quirks with \hyphenrules, it appears.
Apr 1, 2014 at 16:20 comment added David Carlisle @egreg the image was made with lulatex?
Apr 1, 2014 at 16:18 comment added egreg With XeLaTeX, but not with LuaLaTeX, it seems. Probably \begin{tabu}{>{\hyphenrules{russian}}X|X} is better.
Apr 1, 2014 at 16:14 history answered David Carlisle CC BY-SA 3.0