Thomas A. Schmitz wrote:
Hi gang,
speaking of xml... I have two easy questions, but can't find an answer. It's about tweaking the pdf-output I get:
1. How do you add an additional hyphenation to a word? How would I enter the equivalent of super\-duper in an xml-file? I tried super&addhyphen;duper with this definition: \defineXMLentity[addhyphen]{\-}
in my environment, but this doesn't seem to work.
Needs an example file, because \defineXMLentity[addhyphen]{\-} \starttext \hsize 1in \startXMLdata I tried super&addhyphen;duper \stopXMLdata \stoptext works in both mkii and mkiv.
2. Similar question: how to prevent an unwanted ligature, esp. in German? In TeX, I write Kauf{}laden. What would be a good way to do this in xml? I was thinking of Kauf&nolig;laden and \defineXMLentity[nolig]{\kern0pt}
That should work, but probably better is: \defineXMLentity[nolig]{\prewordbreak\kern0pt\postwordbreak} because the \kern will disable hyphenation, otherwise. In mkii, just \defineXMLentity[nolig]{{}} also works (but not in mkiv, and that is a feature). Best wishes, Taco