ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* two easy xml-questions
@ 2008-04-12 10:07 Thomas A. Schmitz
  2008-04-13  9:54 ` Taco Hoekwater
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas A. Schmitz @ 2008-04-12 10:07 UTC (permalink / raw)
  To: mailing ConTeXt users list for

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.

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}

Any thoughts?

Thanks!

Thomas

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


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

* Re: two easy xml-questions
  2008-04-12 10:07 two easy xml-questions Thomas A. Schmitz
@ 2008-04-13  9:54 ` Taco Hoekwater
  0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 2008-04-13  9:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

end of thread, other threads:[~2008-04-13  9:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-12 10:07 two easy xml-questions Thomas A. Schmitz
2008-04-13  9:54 ` Taco Hoekwater

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).