ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Max Chernoff via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Max Chernoff <mseven@telus.net>, context@st.estfiles.de
Subject: Re: Hyphenation in multi-language projects
Date: Wed, 14 Sep 2022 00:50:31 -0600	[thread overview]
Message-ID: <73008b8b9b079acb11d25c2ca5312997d5e14f44.camel@telus.net> (raw)
In-Reply-To: <1F50758E-2B10-42EB-B0EB-DDCA7E6ED639@st.estfiles.de>

Hi Steffen,

> … \replaceword should be the correct way for proper hyphenation??

Well I'm not sure if it's "correct", but it seems to work. Based on my
testing, having three subsequent sets of groups ({A}{B}{C}) is converted
to a discretionary. The discretionary hyphen "\-" is equivalent to the
Plain TeX command "\discretionary{-}{}{}", so 

   \replaceword[hyphenations][steffen][steff{-}{}{}en]
   
acts just like "steff\-en". TeX won't otherwise hyphenate a word with
discretionaries, so this means that "steff-en" will be the only allowable
hyphenation.

-- Max
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2022-09-14  6:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-12 15:11 Steffen Wolfrum via ntg-context
2022-09-12 15:45 ` Denis Maier via ntg-context
2022-09-14  6:35 ` Max Chernoff via ntg-context
2022-09-14  6:40   ` Steffen Wolfrum via ntg-context
2022-09-14  6:50     ` Max Chernoff via ntg-context [this message]
2022-09-14  7:19       ` Denis Maier via ntg-context
2022-09-14 14:44         ` Steffen Wolfrum via ntg-context
2022-09-14 14:54           ` Denis Maier via ntg-context
2022-09-14 17:38             ` Steffen Wolfrum via ntg-context
2022-09-14 17:40             ` Pablo Rodriguez via ntg-context
2022-10-24 13:08               ` Fwd: " Steffen Wolfrum via ntg-context
2022-10-24 15:09                 ` Hans Hagen via ntg-context
2022-10-24 16:15                   ` Pablo Rodriguez via ntg-context

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=73008b8b9b079acb11d25c2ca5312997d5e14f44.camel@telus.net \
    --to=ntg-context@ntg.nl \
    --cc=context@st.estfiles.de \
    --cc=mseven@telus.net \
    /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).