Hi, very carefully I am trying to make first steps towards XML and ConTeXt (with MkIV). Thus, I have enjoyed reading Thomas' MyWay "Getting Web Content and pdf-Output from One Source": I only kept wondering, how to keep control over the pdf-Output in terms of fine-tuning the actual typesetting? A quick search in the archive gave me the answer that is attached below: by using XMLentities. But coming back to Thomas' issue "Getting Web Content and pdf-Output from One Source": What about the other branch, getting web content? Doesn't the XML source gets "spoiled" by these inserted XMLentities that only make sense when following the pdf-Output branch? Or will these XMLentities be silently ignored when feeding the XML source in a CMS system or processing further to web content? Apologies for asking such basic questions... Any help or tips to deal with this hybrid will be greatly appreciated Steffen Am 13.04.2008 um 11:54 schrieb Taco Hoekwater:
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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________