ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: two easy xml-questions
Date: Sun, 13 Apr 2008 11:54:54 +0200	[thread overview]
Message-ID: <4801D86E.5050905@elvenkind.com> (raw)
In-Reply-To: <1BF28984-5005-4FC1-8856-ECAA47DC6DDB@uni-bonn.de>

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
___________________________________________________________________________________


      reply	other threads:[~2008-04-13  9:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-12 10:07 Thomas A. Schmitz
2008-04-13  9:54 ` Taco Hoekwater [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4801D86E.5050905@elvenkind.com \
    --to=taco@elvenkind.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).