paddymcall / SARIT-pdf-conversions

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

Use nonbreaking space before daṇḍas #13

Closed ppasedach closed 8 years ago

ppasedach commented 8 years ago

I wonder if it's possible, and desirable, using a search and replace in the xsl transformation, to replace some spaces, particularly the ones before daṇḍas, and around verse numbers, by nonbreaking spaces, ~. Compare the two sections of sample output:

Without nonbreaking spaces: selection_061 With nonbreaking spaces: selection_063

      \begin{center}%% label @type='head'
    \textbf{ख. शा\-स्त्रा\-रम्भप्रयोजनम्}
    \end{center}

      \pstart श्रोतृदोषबा\-हुल्या\-च्छा\-स्त्रेण परोपका\-रमपश्यन् सू\-क्ता\-भ्या\-सभा\-वितचित्तता\-मेवा\-त्मनः शा\-स्त्रा\-रम्भका\-रणन्दर्शयन् वक्रोक्त्या\- दोषता\-पनयनेन शा\-स्त्रे श्रोतृन् प्रवर्तयितुम(ा\-) ह~।
    \pend

        \stanza
\edlabel{pvv.2-asterisk}\footnote{\label{pvv.2-asterisk}  * द्रष्टव्यं परिशिष्टं १।१-४} प्रा\-यः प्रा\-कृतसक्तिरप्रतिबलप्रज्ञो जनः केवलं,ना\-नर्थ्येव सुभा\-षितैः परिगता\- विद्वेष्ट्यपी\-र्ष्या\-मलैः ।&तेना\-यं न परोपका\-र इति नश्चिन्ता\-पि चेतस्ततः,सू\-क्ता\-भ्या\-सविबर्द्धितव्यसनमित्यत्रा\-नुबद्धस्पृहम्~॥~२~॥\&
paddymcall commented 8 years ago

This is an xml problem, one should use the appropriate spacing signs in the right places. (e.g., NON-BREAKING SPACE).

paddymcall commented 8 years ago

Will close only when fixed in the XML branch.

ppasedach commented 8 years ago

That would be just a unicode character in the running text, or would it be a tag? Is anything like that being used in SARIT already?

paddymcall commented 8 years ago

Please reopen if not solved.