ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* xml content and tweaked pdf output
@ 2010-03-10  9:58 Steffen Wolfrum
  2010-03-10 10:25 ` Italic correction is missing Mehdi Omidali
  2010-03-10 10:38 ` xml content and tweaked pdf output Thomas A. Schmitz
  0 siblings, 2 replies; 9+ messages in thread
From: Steffen Wolfrum @ 2010-03-10  9:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Taco Hoekwater, Thomas A. Schmitz

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
> ___________________________________________________________________________________

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-03-10 14:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-10  9:58 xml content and tweaked pdf output Steffen Wolfrum
2010-03-10 10:25 ` Italic correction is missing Mehdi Omidali
2010-03-10 10:42   ` Taco Hoekwater
2010-03-10 10:38 ` xml content and tweaked pdf output Thomas A. Schmitz
2010-03-10 10:48   ` luigi scarso
2010-03-10 11:49   ` Steffen Wolfrum
2010-03-10 12:35     ` Thomas A. Schmitz
2010-03-10 13:51       ` Steffen Wolfrum
2010-03-10 14:40       ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).