paddymcall / SARIT-pdf-conversions

XML to PDF for SARIT texts
https://github.com/sarit/SARIT-corpus
2 stars 1 forks source link

Bad placing of verses with long lines #18

Closed ppasedach closed 8 years ago

ppasedach commented 8 years ago

pramanavarttikavrtti.pdf, p.2: auswahl_068 The last line of the verse extends into the margin.

paddymcall commented 8 years ago

This is a problem of hyphenation failing due to the lack of spaces around the comma. Should be fixed in xml first.

ppasedach commented 8 years ago

I doubt that the comma is the reason for hyphenation failing here, see the following:

\documentclass{article}
\usepackage{polyglossia}
\usepackage{fontspec}
\setdefaultlanguage{english}
\setotherlanguage{sanskrit}
\newfontfamily\devanagarifont[Script=Devanagari,Mapping=devanagarinumerals]{Chandas}
\begin{document}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \textsanskrit{सूक्ताभ्यासविबर्द्धितव्यसनमित्यत्रानुबद्धस्पृहम् }

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\textsanskrit{,सूक्ताभ्यासविबर्द्धितव्यसनमित्यत्रानुबद्धस्पृहम् }

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \textsanskrit{,सूक्ताभ्यासविबर्द्धितव्यसनमित्यत्रानुबद्धस्पृहम् }

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\textsanskrit{सूक्ताभ्यासविबर्द्धितव्यसनमित्यत्रानुबद्धस्पृहम् }
\end{document}

auswahl_071

Which makes me believe that again we're dealing with the 63 letter limit. Something I hope will be overcome relatively soon.

ppasedach commented 8 years ago

Well, well. Compiling the original example with the new xetex it still doesn't hyphenate, but inserting a space after the comma it does. And my sample file looks no different either, I still have to look a bit more into when hyphenation does and doesn't work.

paddymcall commented 8 years ago

Fixed in https://github.com/paddymcall/SARIT-corpus/commit/2517c81473342c945f2c0145970a49fa28fdfb30

see also issue #30