rules for
> > English!). For example:
> >
> > \hyphenation{%
> > .
> > abo-lished
> > .
> > con-tri-butes
> > .
> > }
>
> Context has a wrapper for the \hyphentation command which lists the
> exceptions to the language given
has a wrapper for the \hyphentation command which lists the
exceptions to the language given in the first agument (e.g. english in
the following example).
\starttext
\hyphenatedword{abolished}
\hyphenatedword{contributes}
\startexceptions[en]
abo-lished
con-tri-butes
\stopexceptions
\hyphenate
wrote:
> Hi Hans,
>
> I have to admit that \startexceptions is new to me, thank you.
>
> nell{a}{}{a'}opera very nicely solves the full word substitution
> but I do not know how to figure out the hyphenatation case:
>
> Using the exception "nel{-}{l
Hi Hans,
I have to admit that \startexceptions is new to me, thank you.
nell{a}{}{a'}opera very nicely solves the full word substitution
but I do not know how to figure out the hyphenatation case:
Using the exception "nel{-}{l'}{l'}opera" it will change also w
t ConTeXt code that is not part
of the contents of the document, but it's important for a particular
typesetting layout.
Once you expunge the tags, you get back the pure, intact content:
... dell’Informazione ...
There's a fourh way ...
\starttext
\startexceptions
nell{a}{}{a'}o
details about
hyphenation.
\startexceptions[de]
He{k-}{k}{ck}en-e{k-}{k}{ck}en-ze{k-}{k}{ck}en
\stopexceptions
% \registerhyphenationpattern[de][c1k/k=k]
%
% \setuphyphenation[method=traditional]
\mainlanguage[de]
\starttext
Heckeneckenzecken = \hyphenatedword{Heckeneckenzecken}
\stoptext
][
hyphenmin=4,
lefthyphenmin=2,
righthyphenmin=2,
]
\starttext
\hyphenatedfile{aesop-de}
\startcolumns
Funktioniert die Trennung? Heckeneckenzecken
\samplefile{aesop-de}
\stopcolumns
\stoptext
Just as a start, the languages manual provides more details about
hyphenation.
\startexceptions[de
gt; Question: is it possible to realize this and how?
> Like this?
>
> \starttext
>
> \startexceptions
>voor-s[chree-ve]
> \stopexceptions
>
> \hsize1mm
> voors[chreeve]
>
> \stoptext
>
>
> ---
abbreviation was interpreted.
The problem then arises with hyphenation, because /voors[chreeve]/ in
the example will not be hyphenated as if the []'s were absent. Which is
what I would like to happen.
Question: is it possible to realize this and how?
Like this?
\starttext
\startexceptions
will work in *all*
languages?
I thought that \hyphenation would work like that, or \startexceptions
without a language code. Apparently that's not the case.
\hyphenation only works for the given language:
\hyphenation{macOS}
\starttext
\startTEXpage[offset=1em]
\currentlanguage:
\hyp
eptions that will work in *all*
>>> languages?
>>
>> I thought that \hyphenation would work like that, or \startexceptions
>> without a language code. Apparently that's not the case.
>
> \hyphenation only works for the given language:
>
> \hyphena
On 9/14/22 16:54, Denis Maier via ntg-context wrote:
>> [...]
>> Isn’t there a way to list exceptions that will work in *all*
>> languages?
>
> I thought that \hyphenation would work like that, or \startexceptions
> without a language code. Apparently that's not th
users
>> Cc: Steffen Wolfrum ; Hans Hagen
>>
>> Betreff: Re: [NTG-context] Hyphenation in multi-language projects
>>
>> Isn’t there a way to list exceptions that will work in *all* languages?
>
> I thought that \hyphenation would work like that, or \st
multi-language projects
>
> Isn’t there a way to list exceptions that will work in *all* languages?
I thought that \hyphenation would work like that, or \startexceptions without a
language code. Apparently that's not the case.
Denis
___
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
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
w can I make sure that ConTeXt is hyphenating this corerctly?
\startexceptions[de]
Eiwei{s-}{s}{ß}es
\stopexceptions
\mainlanguage[de]
\starttext
\hsize 1mm Eiweißes
\stoptext
Hans
-
While luametatex works fine, running this mwe with luatex ends in an error:
\startexceptions
con-text
\stopexceptions
\starttext
context
\stoptext
...-64/tex/texmf-context/tex/context/base/mkiv/lang-ini.lua:198: attempt to
call a nil value (global 'sortedhash')
stack
On 6/6/2021 6:29 PM, Rik Kabel wrote:
On 6/6/2021 12:11, Steffen Wolfrum wrote:
Hi,
yet another strange thing: «ap-plic-»
See code below, Steffen
\mainlanguage[en]
\startexceptions[en]
appli-cable
obli-gated
\stopexceptions
\startexceptions[de]
appli-cable
obli-gated
On 6/6/2021 12:11, Steffen Wolfrum wrote:
Hi,
yet another strange thing: «ap-plic-»
See code below, Steffen
\mainlanguage[en]
\startexceptions[en]
appli-cable
obli-gated
\stopexceptions
\startexceptions[de]
appli-cable
obli-gated
\stopexceptions
\startexceptions[it]
appli-cable
Hi,
yet another strange thing: «ap-plic-»
See code below, Steffen
\mainlanguage[en]
\startexceptions[en]
appli-cable
obli-gated
\stopexceptions
\startexceptions[de]
appli-cable
obli-gated
\stopexceptions
\startexceptions[it]
appli-cable
obli-gated
\stopexceptions
\setuplayout[width
][begrifflich][begri{ffl}ich]
But this breaks the ligature completely.
\replaceword[ligs][begrifflich][begrif{fl}ich] is not correct either (doesn't
do anything).
Or with exceptions:
\startexceptions[de]
begri{ff-}{l}{ffl}(ff\zwnj l)ich
\stopexceptions
But that also breaks the ligature co
t; > I've tried this
> > \replaceword[ligs][begrifflich][begri{ffl}ich]
> > But this breaks the ligature completely.
> > \replaceword[ligs][begrifflich][begrif{fl}ich] is not correct either
> > (doesn't do
> anything).
> >
> > Or with exceptions:
&
][begrifflich][begri{ffl}ich]
But this breaks the ligature completely.
\replaceword[ligs][begrifflich][begrif{fl}ich] is not correct either (doesn't
do anything).
Or with exceptions:
\startexceptions[de]
begri{ff-}{l}{ffl}(ff\zwnj l)ich
\stopexceptions
But that also breaks th
s the ligature completely.
\replaceword[ligs][begrifflich][begrif{fl}ich] is not correct either (doesn't
do anything).
Or with exceptions:
\startexceptions[de]
begri{ff-}{l}{ffl}(ff\zwnj l)ich
\stopexceptions
But that also breaks the ligature completely.
Denis
> -Ursprüngliche Nachricht-
&
ugh:
\blockligatures [
Au:fl:auf,
au:ff:orm,
]
Don't know if there are unwanted side-effects to that approach.
3. \startexceptions
Works via hyphenation exceptions. To define exceptions for "Auflage" and
"Auflaufform" use:
\startexceptions[de]
au{f-}{l}{fl}(f\zwnj l)age
Au{f
ontfeature[default:nolig][default][blockligatures=yes]
% finally this here works
\startexceptions[de]
au{f-}{f}{ff}(f\zwnj f)asse
au{f-}{f}{ff}(f\zwnj f)asste
\stopexceptions
\starttext
no replacements\par
asdf
auffasste
auffasse
ff
\blank
with replacements\par
\setreplacements[eka]
asdf
auffasste
a
Well, see attached.
Interestingly, it does with \mainlanguage[de]. But, not for \language[de]
\enabletrackers[hyphenation.applied.visualize]
\startexceptions[de]
au{f-}{f}{ff}as-sen
\stopexceptions
\mainlanguage[de]
\starttext
auffassen
\language[en]
auffassen
\language[de]
auffassen
On 3/22/2021 12:11 PM, denis.ma...@ub.unibe.ch wrote:
Besides, is it intentional that this here will suppress the ff ligature?
---
\enabletrackers[hyphenation.applied.visualize]
\startexceptions[de]
au{f-}{f}{ff}as-sen
> -Ursprüngliche Nachricht-
> Von: ntg-context Im Auftrag von
> denis.ma...@ub.unibe.ch
> Gesendet: Montag, 22. März 2021 12:12
> An: j.ha...@xs4all.nl
> Cc: ntg-context@ntg.nl
> Betreff: Re: [NTG-context] Questions regarding \startexceptions and
> -Ursprüngliche Nachricht-
> Von: Hans Hagen
> Gesendet: Montag, 22. März 2021 11:28
> An: mailing list for ConTeXt users ; Maier, Denis
> Christian (UB)
> Betreff: Re: [NTG-context] Questions regarding \startexceptions and ligature
> prevention
>
> On 3
On 3/22/2021 10:33 AM, denis.ma...@ub.unibe.ch wrote:
Hi,
there’s this rather new mechanism for preventing ligatures:
\startexceptions[de]
au{f-}{f}{ff}(f\zwnj f)asse
au{f-}{f}{ff}(f\zwnj f)asste
\stopexceptions
Two questions:
1. Can you have multiple \startexceptions[de] environments
Hi,
there's this rather new mechanism for preventing ligatures:
\startexceptions[de]
au{f-}{f}{ff}(f\zwnj f)asse
au{f-}{f}{ff}(f\zwnj f)asste
\stopexceptions
Two questions:
1. Can you have multiple \startexceptions[de] environments ? Will they
accumulate ? (I'm thinking about p
ord[eka][auffasste][au{ff}asste]
\replaceword[eka][asdf][jklö] % this works though
\setreplacements[eka]
% doesn't block the ff ligature
\blockligatures[ff]
% finally this here works
\startexceptions[de]
au{f-}{f}{ff}(f\zwnj f)asse
au{f-}{f}{ff}(f\zwnj f)asste
\stopexceptions
\startte
ssion mechanism via \startexceptions is already
implemented, correct? If yes, it should now be possible to convert the existing
wordlists to the new format, right?
Maybe, but not (yet) on the agenda. My priority is now with some font
Cool.
How is that related to \zwj and \zwnj?
By the way, the ligature suppression mechanism via \startexceptions is already
implemented, correct? If yes, it should now be possible to convert the existing
wordlists to the new format, right?
Best,
Denis
ge[nl]
\startexceptions[nl]
wis-kun-d{e-}{o}{eo}(e-o)n-der-wijs
\stopexceptions
wiskundeonderwijs
\hsize 1mm
wiskundeonderwijs
results in
wiskunde-onderwijs
wis-
kun-
de-
on-
der-
wijs
with proper kerning and ligatures when applicable and
\startexceptions[nl]
wis-kun-d{e-}{o}{eo}(e\zwj o)n-der
When done, I'll of
course share this on the Wiki if there's any need for this.
Now I'm wondering how others deal with inappropriate ligatures. Do
you just ignore them? Do there just so many.
What do you think?
I played a bit with what we have and in a next upload you can do thi
fore typesetting? Do you just disable ligatures globally?
I tend to think there must be an automatic way to deal with the most
awkward cases. The problem is that there just so many.
What do you think?
I played a bit with what we have and in a next upload you can do this:
\startexceptions[de]
atures globally?
I tend to think there must be an automatic way to deal with the most
awkward cases. The problem is that there just so many.
What do you think?
I played a bit with what we have and in a next upload you can do this:
\startexceptions[de]
au{f-}{f}{ff}(f\zwnj f)asse
\stopexc
an automatic way to deal with the most
awkward cases. The problem is that there just so many.
What do you think?
I played a bit with what we have and in a next upload you can do this:
\startexceptions[de]
au{f-}{f}{ff}(f\zwnj f)asse
\stopexceptions
\showglyphs
\starttext
auffass
Hi,
another weird thing:
In this example I use \startexceptions to set hyphenation exceptions:
```
\mainlanguage[en]
\startexceptions[en]
appli-cable
obli-gated
\stopexceptions
\setuplayout[width=1cm]
\starttext
\currentmainlanguage
\currentlanguage
\hyphenatedword{applicable
ome
up? Or is that inappropriate?
you can add your own runtime in a style:
\hyphenation {fo-ob-ar} \hsize 1mm foobar
Sure. I use \startexceptions[en] for that. I just thought everyone might
benefit...
Denis
___
If your
On 3/7/20 7:52 PM, Jano Kula wrote:
> Hello Hans,
>
> \registerhyphenationexception as described in latest languages-mkiv.pdf
> and i-context.pdf does nothing, contrary to \startexceptions, which
> behaves as expected. Here is the minimal example:
Hi Jano,
this shows the ri
Hello Hans,
\registerhyphenationexception as described in latest languages-mkiv.pdf and
i-context.pdf does nothing, contrary to \startexceptions, which behaves as
expected. Here is the minimal example:
\mainlanguage[cs]
\showmakeup[discretionary]
\registerhyphenationexception[cs][cíl-em
hyphenation in ragged right text with no change
in setup-- I use:
\setuptolerance[horizontal,verystrict]
\setupalign[flushleft,hanging,nohz,hyphenated,morehyphenation,height]
Oddly, I do see hyphenation in one place where I have overridden the
default via \startexceptions.
--
Rik
een the times I created
> them, I switched from \hyphenation to \startexceptions.
>
> In general, however, it seems that \startexceptions provides
> fine-grained control by language, whilst \hyphenation appears to be
> broad-stroke across all languages, and so it might mak
\startexceptions.
In general, however, it seems that \startexceptions provides
fine-grained control by language, whilst \hyphenation appears to be
broad-stroke across all languages, and so it might make sense to use
both (or not) depending on how you want to hyphenate, for example, trade
names
Or am I doing something wrong?
With the following, Schwarzenegger is not hyphenated according to the
instruction. I get:
\mainlanguage[en]
\hyphenation{Schwarz-en-egger}
\startexceptions[en]
epi-graphs
Mount-weazels
Mount-weazel
\stopexceptions
\starttext
On 08/01/2016 06:13 PM, Pablo Rodriguez wrote:
> On 08/01/2016 02:39 PM, Ulrike Fischer wrote:
>> Am Mon, 01 Aug 2016 11:52:11 +0200 schrieb Wolfgang Schuster:
>>
>>> The wrong hyphenation happens also with the default font.
>>>
>>> %\startexceptions[e
>>>
>>> \mainlanguage[en]
>>> \usemodule[simplefonts]
>>> \setmainfont[Verdana]
>>> \setupbodyfont[10pt]
>>> \contextversion
>>> \showgrid
>>>
>>> \starttext
>>> \input knuth
>>> \medskip
&
On 08/01/2016 02:39 PM, Ulrike Fischer wrote:
> Am Mon, 01 Aug 2016 11:52:11 +0200 schrieb Wolfgang Schuster:
>
>> The wrong hyphenation happens also with the default font.
>>
>> %\startexceptions[en]
>> %would syn-the-size enu-mer-ate
>> %\stopexceptions
Am Mon, 01 Aug 2016 11:52:11 +0200 schrieb Wolfgang Schuster:
> The wrong hyphenation happens also with the default font.
>
> %\startexceptions[en]
> %would syn-the-size enu-mer-ate
> %\stopexceptions
>
> \starttext \hsize=1mm
> would synthesize enumerate
>
dyfont[10pt]
\contextversion
\showgrid
\starttext
\input knuth
\medskip
\input tufte
\stoptext
The wrong hyphenation happens also with the default font.
%\startexceptions[en]
%would syn-the-size enu-mer-ate
%\stopexceptions
\starttext \hsize=1mm
would synthesize enumerate
\stoptext
just won
rttext
\input knuth
\medskip
\input tufte
\stoptext
The wrong hyphenation happens also with the default font.
%\startexceptions[en]
%would syn-the-size enu-mer-ate
%\stopexceptions
\starttext \hsize=1mm
would synthesize enumerate
\stoptext
Wo
mx.es>>
wrote:
On 07/07/2015 03:33 PM, dr. Hans van der Meer wrote:
Has something happened to hyphenation?
The following does not work
\language[nl]
\startexceptions[nl]
Am-ster-dam
\stopexceptions
Neither does\hyphenation{Am-ster-dam}
Hi Hans,
using latest beta from 2015.07.01 21:40, b
On 07/07/2015 03:33 PM, dr. Hans van der Meer wrote:
> Has something happened to hyphenation?
>
> The following does not work
> \language[nl]
> \startexceptions[nl]
> Am-ster-dam
> \stopexceptions
>
> Neither does\hyphenation{Am-ster-dam}
Hi Hans,
using latest beta
Has something happened to hyphenation?
The following does not work
\language[nl]
\startexceptions[nl]
Am-ster-dam
\stopexceptions
Neither does \hyphenation{Am-ster-dam}
Only in the context-source Am\-ster\-dam is working.
How to load a series of hyphenation exceptions instead of explicitely
add a bigger list of german words (like DUDEN has) or something like
> that, not not have to add \- all the time?
You can add your own list with hyphenation patterns with
\startexceptions[de]
Trenn-fuge
Binde-strich
…
\stopexceptions
To break words at “-” and "/” signs add \setbrea
the next line. I find this quit ugly. Can I disable hyphenation, or let it
>> behave more 'beautiful'? I searched on ContextGarden, but did not find
>> anything.
>
> \hyphenation{genereren} or \hyphenation{gene-re-ren} or
\startexceptions[du]
gene-re-ren
\stopexcep
]
\dorecurse{50}{Multilingual }\dorecurse{50}{русский текст }
\par
\stop
\stoptext
you can add more patterns to an existing set so
\setuplanguage[en][patterns=ru]
will use us+ru patterns. You can say {reset,ru} if needed.
Also available is:
\startexceptions[en]
xxx-yyy-zzz
german} % like
\language[de]\hyphenation{...}
how about \startexceptions[de] ... \stopexceptions
Do any of the above work already or is it just a suggestion for future
improvement?
Also, how does one disable hyphenation throughout the whole document?
(I heard that in the UK
german} % like
\language[de]\hyphenation{...}
how about \startexceptions[de] ... \stopexceptions
Do any of the above work already or is it just a suggestion for future
improvement?
Also, how does one disable hyphenation throughout the whole document?
(I heard that in the UK
ine both in a single command, e.g.
> >
> > \setuphyphenation{exception list for the current active language} % like
> > \hyphenation{...}
> > \setuphyphenation[de]{exception list for german} % like
> > \language[de]\hyphenation{...}
>
> how about \startexceptions
}
but it would be nice to combine both in a single command, e.g.
\setuphyphenation{exception list for the current active language} % like
\hyphenation{...}
\setuphyphenation[de]{exception list for german} % like
\language[de]\hyphenation{...}
how about \startexceptions[de] ... \stopexceptions
i
single command, e.g.
\setuphyphenation{exception list for the current active language} % like
\hyphenation{...}
\setuphyphenation[de]{exception list for german} % like
\language[de]\hyphenation{...}
how about \startexceptions[de] ... \stopexceptions
66 matches
Mail list logo