ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Vit Zyka <vit.zyka@seznam.cz>
Subject: Re: Czech compound word handling
Date: Wed, 02 Feb 2005 16:19:51 +0100	[thread overview]
Message-ID: <4200EF97.7060507@seznam.cz> (raw)
In-Reply-To: <20050202131641.GA2940@erik.fi.muni.cz>

David Antos wrote:
> 	Hello,
> 
> would it be possible to define || for compound words to act as
> \discretionary{-}{-}{-}? In Czech, the hyphen for compound words should
> be repeated in the following line.

This mechanism is already present in the ConTeXt: use |_| like 
"bude|_|li". Unfortunately, AFAIK there are two drawbacks:

1) From some time the hyphen started to be defined
   \def\compoundhyphen{\hbox{-\kern-.25ex-}}
but for Czech is better:
   \def\compoundhyphen{-}
I intend to incorporated it to Czech support. (cont-cz.tex ?)

2) This kind of |.| does not operate inside with XML processing.
Here is minimal example sent last week:

-----
\defineXMLentity[hyphen]{|_|}
\starttext
   dojde|_|li
   \startXMLdata
     dojde&hyphen;li
   \stopXMLdata
\stoptext
------

Vit Zyka

  parent reply	other threads:[~2005-02-02 15:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-02 13:16 David Antos
2005-02-02 14:46 ` Hans Hagen
2005-02-02 14:59   ` David Antos
2005-02-02 15:21     ` Hans Hagen
2005-02-02 16:42       ` Vit Zyka
2005-02-02 15:19 ` Vit Zyka [this message]
2005-02-02 16:26   ` David Antos

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=4200EF97.7060507@seznam.cz \
    --to=vit.zyka@seznam.cz \
    --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).