2013/5/15 Vadim Radionov <vadim.radio...@gmail.com>: > According to \tracingparagraphs' output, the first line is tight (1.3), with > badness b=35, while it is in fact overfull and should have b=*. My numbers > are slightly differen (probably, DejaVu fonts are not identical?) and
DejaVu fonts are not identical, it depends on version. I remember that I processed exactly the same document on my Fedora Core 2 (many years ago) and there was one page difference in comparison toprocessing it on a Mac. Finally my PDF was used in production because at that time there was a mac specific bug in XeTeX (loading images, but it was fixed years ago). One version of DejaVu fonts lacks fi and fl ligatures. The glyphs are nice, I like the font, but be prepared that the developers do not care to keep the metrics. > \tracingparagraphs gives even decent line (1.2) with badness b=9 instead of > overfull! > > @secondpass > []\EU1/DejaVuSerif(0)/m/n/10 3. \EU1/DejaVuSerif(1)/m/n/10 По-вест-во- > ва-ние \EU1/DejaVuSerif(0)/m/n/10 со-сто-ит из опи-са-ния > ис- > @\discretionary via @@0 b=9 p=50 d=2861 > @@1: line 1.2- t=2861 -> @@0 > > > > On Wed, May 15, 2013 at 1:22 PM, Zdenek Wagner <zdenek.wag...@gmail.com> > wrote: >> >> 2013/5/14 Vadim Radionov <vadim.radio...@gmail.com>: >> > Dear list memers, >> > >> > I encountered a problem: setting LetterSpace parameter somehow breaks >> > line >> > breaking mechanism. Consider the following example (in Russian); the 1st >> > variant without \mbox has obvious break point missed. (I'm aware that >> > letter spacing is strongly discouraged in English texts, suppose that I >> > have >> > to reproduce some ancient design as close as possible.) >> > >> The break point is not missed but for some reason its usage leads to a >> paragraph that is considered worse. If I set \tracingparagraphs=1, I >> get: >> >> @firstpass >> []\EU1/DejaVuSerif(0)/m/n/10 3. \EU1/DejaVuSerif(1)/m/n/10 Повествование >> \EU1/ >> DejaVuSerif(0)/m/n/10 состоит из описания >> @ via @@0 b=3 p=0 d=169 >> @@1: line 1.2 t=169 -> @@0 >> @secondpass >> []\EU1/DejaVuSerif(0)/m/n/10 3. \EU1/DejaVuSerif(1)/m/n/10 >> По-вест-во-ва-ние \ >> EU1/DejaVuSerif(0)/m/n/10 со-сто-ит из опи-са-ния ис- >> @\discretionary via @@0 b=35 p=50 d=4525 >> @@1: line 1.3- t=4525 -> @@0 >> то-рии пред-ме-та по су-ще-ству, т. е. как воз-ник во- >> @\discretionary via @@1 b=50 p=50 d=26100 >> @@2: line 2.1- t=30625 -> @@1 >> прос, ко-то-рый под-ле-жит раз-ре-ше-нию, и как сло- >> @\discretionary via @@2 b=83 p=50 d=21149 >> @@3: line 3.1- t=51774 -> @@2 >> жи-лось са-мо де-ло. >> @\par via @@3 b=0 p=-10000 d=5100 >> @@4: line 4.2- t=56874 -> @@3 >> >> >> Overfull \hbox (14.1539pt too wide) in paragraph at lines 17--20 >> []\EU1/DejaVuSerif(0)/m/n/10 3. \EU1/DejaVuSerif(1)/m/n/10 Повествование >> \EU1/ >> DejaVuSerif(0)/m/n/10 состоит из описания ис- >> [] >> >> ................................................. >> . fontspec info: "defining-font" >> . >> . Font family 'DejaVuSerif(1)' created for font 'DejaVu Serif' with >> options >> . [Mapping=tex-text,Script=Cyrillic,LetterSpace=40]. >> . >> . This font family consists of the following shapes: >> ................................................. >> @firstpass >> []\EU1/DejaVuSerif(0)/m/n/10 3. [] состоит из описания >> @ via @@0 b=3 p=0 d=169 >> @@1: line 1.2 t=169 -> @@0 >> @secondpass >> []\EU1/DejaVuSerif(0)/m/n/10 3. [] со-сто-ит из опи-са-ния >> @ via @@0 b=3 p=0 d=169 >> @@1: line 1.2 t=169 -> @@0 >> ис-то-рии пред-ме-та по су-ще-ству, т. е. как воз-ник во- >> @\discretionary via @@1 b=2 p=50 d=2644 >> @@2: line 2.2- t=2813 -> @@1 >> прос, ко-то-рый под-ле-жит раз-ре-ше-нию, и как сло- >> @\discretionary via @@2 b=83 p=50 d=21149 >> @@3: line 3.1- t=23962 -> @@2 >> жи-лось са-мо де-ло. >> @\par via @@3 b=0 p=-10000 d=5100 >> @@4: line 4.2- t=29062 -> @@3 >> >> I am not able to explain the difference. I get the same result in TL >> 2012 and 2013 pretest, the only difference s that TL 2012 does not >> display cyrillic in the log thus it is almost unreadable. >> >> > What kind of bug is it? >> > >> > Thank you in advance, >> > Vadim >> > >> > \documentclass{book} >> > \usepackage{geometry} >> > \geometry{width=9.5cm} >> > >> > \usepackage[no-sscript]{xltxtra} >> > \usepackage{polyglossia} >> > >> > \setdefaultlanguage{russian} >> > \newfontfamily\russianfont[Mapping=tex-text,Script=Cyrillic]{DejaVu >> > Serif} % >> > {PT Serif} >> > >> > \emergencystretch4em >> > >> > \begin{document} >> > >> > 3. {\addfontfeature{LetterSpace=40} Повествование} \ состоит из описания >> > истории предмета по >> > существу, т. е. как возник вопрос, который подлежит разрешению, >> > и как сложилось само дело. >> > >> > 3. \mbox{\addfontfeature{LetterSpace=40} Повествование} \ состоит из >> > описания истории предмета по >> > существу, т. е. как возник вопрос, который подлежит разрешению, >> > и как сложилось само дело. >> > >> > \end{document} >> > >> > >> > >> > >> > >> > >> > >> > -------------------------------------------------- >> > Subscriptions, Archive, and List information, etc.: >> > http://tug.org/mailman/listinfo/xetex >> > >> >> >> >> -- >> Zdeněk Wagner >> http://hroch486.icpf.cas.cz/wagner/ >> http://icebearsoft.euweb.cz >> >> >> >> -------------------------------------------------- >> Subscriptions, Archive, and List information, etc.: >> http://tug.org/mailman/listinfo/xetex > > > > > > -------------------------------------------------- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex > -- Zdeněk Wagner http://hroch486.icpf.cas.cz/wagner/ http://icebearsoft.euweb.cz -------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex