From: Denis Maier via ntg-context <ntg-context@ntg.nl>
To: <ntg-context@ntg.nl>
Cc: denis.maier@unibe.ch, context@st.estfiles.de
Subject: Re: Hyphenation in multi-language projects
Date: Mon, 12 Sep 2022 15:45:31 +0000 [thread overview]
Message-ID: <5d90ca362cfd47d8a2e249b5f6218d1a@unibe.ch> (raw)
In-Reply-To: <B96417D3-DA20-45EB-96DC-051C243E30F7@st.estfiles.de>
Untested: try specifying the exceptions first, load mainlanguage later?
Or, use \hyphenation?
Have you tested any if these?
Or, you could use multiple exception blocks...
\startexceptions[it]
Steff-en
\stopexceptions
\startexceptions[en]
Steff-en
\stopexceptions
________________________________________
Von: ntg-context <ntg-context-bounces@ntg.nl> im Auftrag von Steffen Wolfrum via ntg-context <ntg-context@ntg.nl>
Gesendet: Montag, 12. September 2022 17:11:55
An: mailing list for ConTeXt users
Cc: Steffen Wolfrum
Betreff: [NTG-context] Hyphenation in multi-language projects
Hi,
please have a look at this minimal example.
The idea is to set the hyphenation for certain words regardless of the language that is used in the surrounding paragraphs.
In this example it should stay: «steff-en»
How do i set this to all non-english paragraphs (without using \hyphenation on each language-switch)?
Best,
Steffen
—
\starttext
\setuppapersize[A6][A6]
\mainlanguage[en]
\startexceptions
steff-en
\stopexceptions
english text english text english teste: steffen
\start\language[it]
italian text italian text italian teste: steffen
\stop
\start\language[it]\hyphenation{steff-en}
italian text italian text italian teste: steffen
\stop
\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2022-09-12 15:45 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 [this message]
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
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=5d90ca362cfd47d8a2e249b5f6218d1a@unibe.ch \
--to=ntg-context@ntg.nl \
--cc=context@st.estfiles.de \
--cc=denis.maier@unibe.ch \
/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).