Re: [NTG-context] Hyphenation in multi-language projects

2022-09-14 Thread Pablo Rodriguez via ntg-context
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 the case.

\hyphenation only works for the given language:

  \hyphenation{macOS}
  \starttext
  \startTEXpage[offset=1em]
  \currentlanguage:
  \hyphenatedword{macOS}

  \startlanguage[fr]
  \currentlanguage:
  \hyphenatedword{macOS}
  \stoplanguage
  \stopTEXpage
  \stoptext

But I’d say that \registerhyphenationexception[macOS] was
language-independent for me some time ago. (Now it seems to work like
\hyphenation.)

In any case, \registerhyphenationexception seems to have issues with
ligatures:

  \setuphyphenation[method=traditional]
  \registerhyphenationexception[steff-en macOS]
  \registerhyphenationexception[it][steff-en macOS]

  \starttext
  \startTEXpage[offset=1em]
  \currentlanguage:
  \hyphenatedword{steffen macOS}

  \startlanguage[it]
  \currentlanguage:
  \hyphenatedword{steffen macOS}
  \stoplanguage
  \stopTEXpage
  \stoptext

If there isn’t a command to add language-indepented hyphenation
exceptions or patterns, one for proper names (for people, products or
companies) would be really useful.

Just in case Hans or other wizard may take a look at this,

Pablo
___
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
___


Re: [NTG-context] Hyphenation in multi-language projects

2022-09-14 Thread Steffen Wolfrum via ntg-context
a bug?

st.


> Am 14.09.2022 um 16:54 schrieb denis.ma...@unibe.ch:
> 
>> -Ursprüngliche Nachricht-
>> Von: ntg-context  Im Auftrag von Steffen
>> Wolfrum via ntg-context
>> Gesendet: Mittwoch, 14. September 2022 16:45
>> An: mailing list for ConTeXt 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 \startexceptions without 
> a language code. Apparently that's not the case.
> 
> Denis
> 
> 

___
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
___


Re: [NTG-context] Hyphenation in multi-language projects

2022-09-14 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Steffen
> Wolfrum via ntg-context
> Gesendet: Mittwoch, 14. September 2022 16:45
> An: mailing list for ConTeXt 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 \startexceptions without a 
language code. Apparently that's not the case.

Denis


___
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
___


Re: [NTG-context] Hyphenation in multi-language projects

2022-09-14 Thread Steffen Wolfrum via ntg-context
Isn’t there a way to list exceptions that will work in *all* languages?

Steffen


> Am 14.09.2022 um 09:19 schrieb Denis Maier via ntg-context 
> :
> 
>> -Ursprüngliche Nachricht-
>> Von: ntg-context  Im Auftrag von Max
>> Chernoff via ntg-context
>> Gesendet: Mittwoch, 14. September 2022 08:51
>> An: ntg-context@ntg.nl
>> Cc: Max Chernoff ; cont...@st.estfiles.de
>> Betreff: Re: [NTG-context] Hyphenation in multi-language projects
>> 
>> 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.
> 
> Just one caveat though. IIRC, Hans has mentioned that this kind of stuff is 
> slower than using the hyphenation engine directly. (That's why he has 
> reimplemented the ligature suppression mechanism on the hyphenation level, 
> rather than acting on the node list.) 
> 
> Best,
> Denis
> ___
> 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
___


Re: [NTG-context] Hyphenation in multi-language projects

2022-09-14 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Max
> Chernoff via ntg-context
> Gesendet: Mittwoch, 14. September 2022 08:51
> An: ntg-context@ntg.nl
> Cc: Max Chernoff ; cont...@st.estfiles.de
> Betreff: Re: [NTG-context] Hyphenation in multi-language projects
> 
> 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.

Just one caveat though. IIRC, Hans has mentioned that this kind of stuff is 
slower than using the hyphenation engine directly. (That's why he has 
reimplemented the ligature suppression mechanism on the hyphenation level, 
rather than acting on the node list.) 

Best,
Denis
___
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
___


Re: [NTG-context] Hyphenation in multi-language projects

2022-09-14 Thread Max Chernoff via ntg-context
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
___


Re: [NTG-context] Hyphenation in multi-language projects

2022-09-14 Thread Steffen Wolfrum via ntg-context
… \replaceword should be the correct way for proper hyphenation??

st.


> Am 14.09.2022 um 08:35 schrieb Max Chernoff :
> 
> 
> Hi Steffen,
> 
>> 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)?
> 
> You can use \replaceword:
> 
> \starttext
> 
> \setuppapersize[A6][A6]
> 
> \mainlanguage[en]
> 
> \replaceword[hyphenations][steffen][steff{-}{}{}en]
> \setreplacements[hyphenations]
> 
> english text english text english teste: steffen steffen
> 
> \start\language[it]
> italian text italian text italian teste: steffen steffen
> \stop
> 
> \stoptext
> 
> -- 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
___


Re: [NTG-context] Hyphenation in multi-language projects

2022-09-14 Thread Max Chernoff via ntg-context

Hi Steffen,

> 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)?

You can use \replaceword:

   \starttext
   
   \setuppapersize[A6][A6]
   
   \mainlanguage[en]
   
   \replaceword[hyphenations][steffen][steff{-}{}{}en]
   \setreplacements[hyphenations]
   
   english text english text english teste: steffen steffen
   
   \start\language[it]
   italian text italian text italian teste: steffen steffen
   \stop
   
   \stoptext
   
-- 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
___


Re: [NTG-context] Hyphenation in multi-language projects

2022-09-12 Thread Denis Maier via ntg-context
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  im Auftrag von Steffen Wolfrum 
via ntg-context 
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
___


Re: [NTG-context] Hyphenation on digits

2021-11-03 Thread Jairo A. del Rio via ntg-context
Hi again. I've noticed \hyphenateddigits fails with alphabetical symbols,
e.g. with hexadecimal numbers. Maybe there's a better solution, but
something like

--From phys-dim.lua
actions   = function(filler, digits)
digits = gsub(digits,"(%d)","%1\\digitsbreak ") --space added.
Would a "\relax " do better?
digits = gsub(digits,"\\-$",filler)
context(digits)
end

would fix it.

Best regards,

Jairo

El jue, 28 de ene. de 2021 a la(s) 09:00, Hans Hagen (j.ha...@xs4all.nl)
escribió:

> On 1/28/2021 12:50 PM, Jairo A. del Rio wrote:
> > Hi, list.
> >
> > I want to know if ConTeXt provides an option to automatically
> > hyphenate/break digits as if they were alphabetic characters. Example,
> > in a narrow page I expect something like that (I've used (-) for an
> > optional hyphen):
> >
> > *π = *3.141592653(-)
> > 58979323846264(-)
> > 33832795028841(-)
> > 97169399375105(-)
> > ...
> >
> > I found myself unable to read a satisfactory solution in the mailing
> > list archive nor other TeX related resources. Maybe LMTX has some magic
> > for that?
>
> I'll add support for:
>
> \starttext
>
> \hsize6cm
>
> \pi\ =
> \hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}
>
>   \blank
> \pi\ =
> \hyphenateddigits{3.141592653589793238462643383279502884197169399375105}
> \blank
> x $\pi  =
> \hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}$
>
> \blank
> x $\pi  =
> \hyphenateddigits{3.141592653589793238462643383279502884197169399375105}$
>   \blank
>
> \stoptext
>
> A quick and dirty hack as we don't need some full blown mechanism for
> such a rare case.
>
> Hans
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation again

2021-06-06 Thread Hans Hagen

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-ca​ble
obli-gated
\stopexceptions

\startexceptions[de]
appli-ca​ble
obli-gated
\stopexceptions

\startexceptions[it]
appli-ca​ble
obli-gated
\stopexceptions

\setuplayout[width=1cm]


\starttext

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated

\blank

\language[de]

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated

\blank


\mainlanguage[de]

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated


\stoptext





Am 09.10.2020 um 16:38 schrieb Denis Maier:

Hi,
another weird thing:
In this example I use  \startexceptions to set hyphenation exceptions:

```
\mainlanguage[en]
\startexceptions[en]
appli-ca​ble
obli-gated
\stopexceptions

\setuplayout[width=1cm]

\starttext
\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated
\stoptext
```

What am I missing?

Best,
Denis


When I edit this example with Vim, I see, in part:

\startexceptions[en]
appli-ca<200b>ble
obli-gated
\stopexceptions

\startexceptions[de]
appli-ca<200b>ble
obli-gated
\stopexceptions

\startexceptions[it]
appli-ca<200b>ble
obli-gated
\stopexceptions

So it seems that the answer remains the same from when Denis posted a 
similar question a few months ago.


indeed, i just wasted an hour figuring out that there is some non letter 
in there; so there will never be a match (exception words get simplified 
to a key that is used in the lookup .. a \zwj or \zwnj can be used if 
needed but in the meantime there is a more sophisticated mechanism


Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation again

2021-06-06 Thread Rik Kabel


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-ca​ble
obli-gated
\stopexceptions

\startexceptions[de]
appli-ca​ble
obli-gated
\stopexceptions

\startexceptions[it]
appli-ca​ble
obli-gated
\stopexceptions

\setuplayout[width=1cm]


\starttext

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated

\blank

\language[de]

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated

\blank


\mainlanguage[de]

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated


\stoptext





Am 09.10.2020 um 16:38 schrieb Denis Maier :

Hi,
another weird thing:
In this example I use  \startexceptions to set hyphenation exceptions:

```
\mainlanguage[en]
\startexceptions[en]
appli-ca​ble
obli-gated
\stopexceptions

\setuplayout[width=1cm]

\starttext
\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated
\stoptext
```

What am I missing?

Best,
Denis


When I edit this example with Vim, I see, in part:

   \startexceptions[en]
   appli-ca<200b>ble
   obli-gated
   \stopexceptions

   \startexceptions[de]
   appli-ca<200b>ble
   obli-gated
   \stopexceptions

   \startexceptions[it]
   appli-ca<200b>ble
   obli-gated
   \stopexceptions

So it seems that the answer remains the same from when Denis posted a 
similar question a few months ago.


--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation again

2021-06-06 Thread Steffen Wolfrum
Hi,

yet another strange thing: «ap-plic-»

See code below, Steffen


\mainlanguage[en]

\startexceptions[en]
appli-ca​ble
obli-gated
\stopexceptions

\startexceptions[de]
appli-ca​ble
obli-gated
\stopexceptions

\startexceptions[it]
appli-ca​ble
obli-gated
\stopexceptions

\setuplayout[width=1cm]


\starttext

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated

\blank

\language[de]

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated

\blank


\mainlanguage[de]

\currentmainlanguage

\currentlanguage

\hyphenatedword{applicable}

applicable

\hyphenatedword{obligated}

obligated


\stoptext




> Am 09.10.2020 um 16:38 schrieb Denis Maier :
> 
> Hi,
> another weird thing:
> In this example I use  \startexceptions to set hyphenation exceptions: 
> 
> ```
> \mainlanguage[en]
> \startexceptions[en]
> appli-ca​ble
> obli-gated
> \stopexceptions
> 
> \setuplayout[width=1cm]
> 
> \starttext
> \currentmainlanguage
> 
> \currentlanguage
> 
> \hyphenatedword{applicable}
> 
> applicable
> 
> \hyphenatedword{obligated}
> 
> obligated
> \stoptext
> ```
> 
> What am I missing?
> 
> Best,
> Denis
> 
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation patterns

2021-04-09 Thread Arthur Rosendahl
  Denis’ latest question reminded me of an earlier query he had about
hyphenation, asking why “applicable” and “obligated” were hyphenated by
ConTeXt as ap-plic-a-ble and ob-lig-at-ed, and not ap-pli-ca-ble and
ob-li-ga-te(d) like in Merriam-Webster (the discussion started at
https://mailman.ntg.nl/pipermail/ntg-context/2020/099695.html).

  First of all, I note that while Webster’s dictionary is a useful
guide, and indeed a major reference for any American typographer,
there’s no absolute rule that we have to follow it either.  The break
applic-able, for example, does look acceptable to me; oblig-ated, less
so.

  Taco reminded that when producing a set of hyphenation patterns from a
list of hyphenated words, we’re essentially compressing information, and
that some minor deviations are to be expected.  However, in my
experience, unexpected breakpoints are almost never due to chance, but
to a deliberate decision.

  Then Hraban said that:

On Fri, Oct 09, 2020 at 10:15:17AM +0200, Henning Hraban Ramm wrote:
> Usually Arthur’s (hail the emperor of hyphenation and protector of the 
> patterns) patterns are flawless, so I guess it’s not a bug but an exception 
> of the rules.

  I see that my self-appointed title is catching on, nice :-)
Unfortunately the patterns are just as likely to contain errors as
anything else, and in this particular case we’ll probably never know for
sure, because the original hyphenated word list was never published (all
the word lists from which patterns were produced in the 80s and 90s have
been lost, for all languages).  We’re thus reduced to guessing the
intent of those who compiled the lists.

  We can get hints from looking at the patterns involved in the
debatable breaks.  Hans has a useful script:

$ mtxrun --script patterns --language=us --left=2 --right=2 --hyphenate 
applicable
hyphenator  |
hyphenator  | . a p p l i c a b l e .   . a p p l i c a b l e .  
hyphenator  |4p1p0   0 4 1 0 0 0 0 0 0 0 0  
hyphenator  |  1p2l2 0 4 1 2 2 0 0 0 0 0 0  
hyphenator  |  0p0l0i2c1a0b0 0 4 1 2 2 2 1 0 0 0 0  
hyphenator  |1c0a0   0 4 1 2 2 2 1 0 0 0 0  
hyphenator  |0c0a1b0l0   0 4 1 2 2 2 1 1 0 0 0  
hyphenator  |0b2l2   0 4 1 2 2 2 1 1 2 2 0  
hyphenator  |0b4l0e0.0   0 4 1 2 2 2 1 1 4 2 0  
hyphenator  | .0a4p1p2l2i2c1a1b4l2e0.   . a p-p l i c-a-b l e .  
hyphenator  |
mtx-patterns| us 2 2 : applicable : ap-plic-a-ble

  That tells us that there are seven patterns involved in hyphenating
the word applicable: 4p1, 1p2l2, pli2c1ab, 1ca, ca1bl, b2l2, and b4le.
(the final dot is part of that last pattern).  The pattern responsible
for the break applic-able is pli2c1ab.  If we now refer to the source
repository for hyphenation patterns (since comments are stripped in the
ConTeXt sources): 
https://github.com/hyphenation/tex-hyphen/blob/master/hyph-utf8/tex/generic/hyph-utf8/patterns/tex/hyph-en-us.tex
-- we can see line 4508

hyphen.tex patterns end here, and additional patterns begin:

which means that the pattern pli2c1ab, line 4817, is an “additional
pattern”.  The background story is that hyphen.tex, the original
hyphenation pattern file for American English, produced in 1982-1983
from a list of hyphenated words (following mostly Webster’s), was later
augmented with more patterns that were supposed to improve hyphenation
for many words.  The person who added these new patterns apparently had
a list of words hyphenated incorrectly (according to him) by hyphen.tex,
but both that list and the one used to produce hyphen.tex are as
mentioned above now lost, probably forever.

  In any case, the pattern that causes the break applic-able was clearly
added intentionally; and as I said that break seems quite reasonable to
me.  Not so for the one in oblig-ated, so let’s have a look at that:

$ mtxrun --script patterns --language=us --left=2 --right=2 --hyphenate 
obligated
hyphenator  |
hyphenator  | . o b l i g a t e d .   . o b l i g a t e d .  
hyphenator  |  0o0b0l0i2g1 0 0 0 0 2 1 0 0 0 0  
hyphenator  |0b2l2 0 0 2 2 2 1 0 0 0 0  
hyphenator  |  5l0i0g0a0t0e0   0 0 5 2 2 1 0 0 0 0  
hyphenator  |2i0g0 0 0 5 2 2 1 0 0 0 0  
hyphenator  |  1g0a0   0 0 5 2 2 1 0 0 0 0  
hyphenator  |  2t1e0d0 0 0 5 2 2 1 2 1 0 0  
hyphenator  | .0o0b5l2i2g1a2t1e0d0.   . o b-l i g-a t-e d .  
hyphenator  |
mtx-patterns| us 2 2 : obligated : ob-lig-at-ed

  Here we see that the dubious break is caused by the pattern obli2g1,
also an “additional pattern” (line 4783), and here it’s not hard to
guess where 

Re: [NTG-context] Hyphenation pattern for Esperanto

2021-03-01 Thread Alain Delmotte

  
  
I forgot to write that I am ready to
answer your questions.
(En Esperanto one avoids to write the
dates as numbers, because the users do not all understand the
same way: 3/9/2021 is it third of September or ninth of March?)
  
Alain

Le 22/02/2021 à 17:26, Tomas Hala a
  écrit :


  Hi Alain,

in my email, I used official language codes: be=Belarussian, bg=Bulgarian, sr=Serbian.

The \installlanguage command is very important because it contains
definitions of the most frequently used typographic elements of the 
given language, for details see below.

Looking forward for both lang-txt files. The sooner you will send it, the better.

The best,

Tomáš

Mon, Feb 22, 2021 ve 03:01:41PM +0100 Alain Delmotte napsal(a):
#Hi Tomáš,
# 
#Thanks for your message.
# 
#First which country is "be"? If Belgium, pay attention that there are
#three languages: Dutch (Flemish) French (a little bit different from
#France French) and German (1% of the population).
# 
#Could you explain me the meaning of:
# 
#Le 21/02/2021 à 23:48, Tomas Hala a écrit :
# 
#  And this one is also needed:
# 
#  #  \installlanguage
#  #    [\s!esperanto]
#  #    [\c!spacing=\v!packed,
#  #     %\c!leftsentence=\emdash,
#  #     %\c!rightsentence=\emdash,
#  #     %\c!leftsubsentence=\emdash,
#  #     %\c!rightsubsentence=\emdash,
#  #     %\c!leftquote=\lowerleftdoubleninequote,
#  #     %\c!rightquote=\upperrightdoublesixquote,
#  #     %\c!leftquotation=\lowerleftdoubleninequote,
#  #     %\c!rightquotation=\upperrightdoublesixquote,
#  #     %\c!date={\v!year,~m.,\space,\v!month,\space,\v!day,~d.},
#  #     \s!patterns=eo,
#  #     \s!lefthyphenmin=2,
#  #     \s!righthyphenmin=2]

Values for \installlanguage:

* spacing: packed means no difference between interword and intersentence spaces.
* (left|right)sentence: punctuation marks -- very often dashes -- for included parts in some sentences.
* (left|right)quotation: definition of primary quotation marks. 
* (left|right)quote: definition of secondary (nested) quotation marks.
* (left|right)hyphenmin: number of characters at the end of a line and at the beginning of the next line when the word is hyphenated.
* date: how the date should be typically typeset: order, spacing, or other signs or abbreviation or texts.

Those I do not know for eo, have been marked with a percent sign.

#I have seen that the \lowerleftdoubleninequote,... are sometimes given by
#the character itself “ ”,...
#For the date, is it the order of the part of the date yyy mm dd?
# 
#I did prepare the file lang-txt.lua and did send it to two friends for
#checking, I wait for their answer (I hope not to long).
# 
#I also have the pattern for hyphenation, the one from TeXLive uses
#fonctions to shorten the length of the file.
# 
#For French, I'll do it and send it to you.
# 
#Thanks for taking care of this.
# 
#  Regards,
# 
#Alain


  


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation pattern for Esperanto

2021-02-22 Thread Tomas Hala
Hi Alain,

in my email, I used official language codes: be=Belarussian, bg=Bulgarian, 
sr=Serbian.

The \installlanguage command is very important because it contains
definitions of the most frequently used typographic elements of the 
given language, for details see below.

Looking forward for both lang-txt files. The sooner you will send it, the 
better.

The best,

Tomáš

Mon, Feb 22, 2021 ve 03:01:41PM +0100 Alain Delmotte napsal(a):
#Hi Tomáš,
# 
#Thanks for your message.
# 
#First which country is "be"? If Belgium, pay attention that there are
#three languages: Dutch (Flemish) French (a little bit different from
#France French) and German (1% of the population).
# 
#Could you explain me the meaning of:
# 
#Le 21/02/2021 à 23:48, Tomas Hala a écrit :
# 
#  And this one is also needed:
# 
#  #  \installlanguage
#  #    [\s!esperanto]
#  #    [\c!spacing=\v!packed,
#  #     %\c!leftsentence=\emdash,
#  #     %\c!rightsentence=\emdash,
#  #     %\c!leftsubsentence=\emdash,
#  #     %\c!rightsubsentence=\emdash,
#  #     %\c!leftquote=\lowerleftdoubleninequote,
#  #     %\c!rightquote=\upperrightdoublesixquote,
#  #     %\c!leftquotation=\lowerleftdoubleninequote,
#  #     %\c!rightquotation=\upperrightdoublesixquote,
#  #     %\c!date={\v!year,~m.,\space,\v!month,\space,\v!day,~d.},
#  #     \s!patterns=eo,
#  #     \s!lefthyphenmin=2,
#  #     \s!righthyphenmin=2]

Values for \installlanguage:

* spacing: packed means no difference between interword and intersentence 
spaces.
* (left|right)sentence: punctuation marks -- very often dashes -- for included 
parts in some sentences.
* (left|right)quotation: definition of primary quotation marks. 
* (left|right)quote: definition of secondary (nested) quotation marks.
* (left|right)hyphenmin: number of characters at the end of a line and at the 
beginning of the next line when the word is hyphenated.
* date: how the date should be typically typeset: order, spacing, or other 
signs or abbreviation or texts.

Those I do not know for eo, have been marked with a percent sign.

#I have seen that the \lowerleftdoubleninequote,... are sometimes given by
#the character itself “ ”,...
#For the date, is it the order of the part of the date yyy mm dd?
# 
#I did prepare the file lang-txt.lua and did send it to two friends for
#checking, I wait for their answer (I hope not to long).
# 
#I also have the pattern for hyphenation, the one from TeXLive uses
#fonctions to shorten the length of the file.
# 
#For French, I'll do it and send it to you.
# 
#Thanks for taking care of this.
# 
#  Regards,
# 
#Alain
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation pattern for Esperanto

2021-02-22 Thread Alain Delmotte

  
  
Hi Tomáš,
Thanks for your message.
First which country is "be"? If Belgium, pay attention that there
  are three languages: Dutch (Flemish) French (a little bit
  different from France French) and German (1% of the population).
Could you explain me the meaning of:

Le 21/02/2021 à 23:48, Tomas Hala a
  écrit :


  And this one is also needed:

#  \installlanguage
#    [\s!esperanto]
#    [\c!spacing=\v!packed,
#     %\c!leftsentence=\emdash,
#     %\c!rightsentence=\emdash,
#     %\c!leftsubsentence=\emdash,
#     %\c!rightsubsentence=\emdash,
#     %\c!leftquote=\lowerleftdoubleninequote,
#     %\c!rightquote=\upperrightdoublesixquote,
#     %\c!leftquotation=\lowerleftdoubleninequote,
#     %\c!rightquotation=\upperrightdoublesixquote,
#     %\c!date={\v!year,~m.,\space,\v!month,\space,\v!day,~d.},
#     \s!patterns=eo,
#     \s!lefthyphenmin=2,
#     \s!righthyphenmin=2]


I have seen that the \lowerleftdoubleninequote,... are sometimes
  given by the character itself “ ”,...
  For the date, is it the order of the part of the date yyy mm dd?

I did prepare the file lang-txt.lua and did send it to two
  friends for checking, I wait for their answer (I hope not to
  long).
I also have the pattern for hyphenation, the one from TeXLive
  uses fonctions to shorten the length of the file.
For French, I'll do it and send it to you.
Thanks for taking care of this.

 Regards,
Alain


  


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation on digits

2021-01-29 Thread Richard Mahoney
Hans,

Thanks for this.

In addition to:

({\it Ṛgveda}~\hyphenateddigits{1.114.10})  -- break after either "."

Here are some other typical cases reflecting material I've  been
working with of late:

{\it cf}.~(ARE 1949--50)\KSP, -- break after "--"

Tamil (lns 1---517, plates 11a---31b) -- break after either "---"

{\it Ekottarāgama}, T125, 2: 549a10-15. -- break anywhere



Best, Richard




-Original Message-
From: Hans Hagen 
Reply-To: mailing list for ConTeXt users 
To: mailing list for ConTeXt users , Henning
Hraban Ramm 
Subject: Re: [NTG-context] Hyphenation on digits
Date: Fri, 29 Jan 2021 11:25:00 +0100
Mailer: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0)
Gecko/20100101
 Thunderbird/78.6.1
X-Spam-Score: 0.0

On 1/29/2021 10:30 AM, Henning Hraban Ramm wrote:
> > Am 28.01.2021 um 15:00 schrieb Hans Hagen :
> > 
> > I'll add support for:
> >\pi\ =
> > \hyphenateddigits[\unknown]{3.141592653589793238462643383279502884
> > 197169399375105}
> > A quick and dirty hack as we don't need some full blown mechanism
> > for such a rare case.
> 
> Thank you! Might come handy for other non-words, as Richard has
> shown.
> Wikified: https://wiki.contextgarden.net/Hyphenation
Depending on usage it might need to b eimproved (like: does one wants
to break before a period or comma but let's first collect use cases
Hans

---
--   Hans Hagen | PRAGMA
ADE   Ridderstraat 27 | 8061 GH Hasselt | The
Netherlandstel: 038 477 53 69 | www.pragma-ade.nl | 
www.pragma-pod.nl
---
--
__
_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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
__
_
-- 
T +6433121699  M +64210640216  E rmaho...@indica-et-buddhica.org
IM https://t.me/rmahoney  W https://indica-et-buddhica.org/


Indica et Buddhica  Littledene  Bay Road  Oxford  NZ
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation on digits

2021-01-29 Thread Hans Hagen

On 1/29/2021 10:30 AM, Henning Hraban Ramm wrote:



Am 28.01.2021 um 15:00 schrieb Hans Hagen :





I'll add support for:

   \pi\ = 
\hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}

A quick and dirty hack as we don't need some full blown mechanism for such a 
rare case.


Thank you! Might come handy for other non-words, as Richard has shown.

Wikified: https://wiki.contextgarden.net/Hyphenation
Depending on usage it might need to b eimproved (like: does one wants to 
break before a period or comma but let's first collect use cases


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation on digits

2021-01-29 Thread Henning Hraban Ramm

> Am 28.01.2021 um 15:00 schrieb Hans Hagen :
> 
>> 
> 
> I'll add support for:
> 
>   \pi\ = 
> \hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}
> 
> A quick and dirty hack as we don't need some full blown mechanism for such a 
> rare case.

Thank you! Might come handy for other non-words, as Richard has shown.

Wikified: https://wiki.contextgarden.net/Hyphenation

Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation on digits

2021-01-28 Thread Jairo A. del Rio
Nice. Thank you very much, it works perfectly. :)

Jairo :)

El jue, 28 de ene. de 2021 a la(s) 09:00, Hans Hagen (j.ha...@xs4all.nl)
escribió:

> On 1/28/2021 12:50 PM, Jairo A. del Rio wrote:
> > Hi, list.
> >
> > I want to know if ConTeXt provides an option to automatically
> > hyphenate/break digits as if they were alphabetic characters. Example,
> > in a narrow page I expect something like that (I've used (-) for an
> > optional hyphen):
> >
> > *π = *3.141592653(-)
> > 58979323846264(-)
> > 33832795028841(-)
> > 97169399375105(-)
> > ...
> >
> > I found myself unable to read a satisfactory solution in the mailing
> > list archive nor other TeX related resources. Maybe LMTX has some magic
> > for that?
>
> I'll add support for:
>
> \starttext
>
> \hsize6cm
>
> \pi\ =
> \hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}
>
>   \blank
> \pi\ =
> \hyphenateddigits{3.141592653589793238462643383279502884197169399375105}
> \blank
> x $\pi  =
> \hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}$
>
> \blank
> x $\pi  =
> \hyphenateddigits{3.141592653589793238462643383279502884197169399375105}$
>   \blank
>
> \stoptext
>
> A quick and dirty hack as we don't need some full blown mechanism for
> such a rare case.
>
> Hans
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation on digits

2021-01-28 Thread Richard Mahoney
Thank you for this Hans, its going to be very useful for
breaking bibliographic refs including manuscript or
inscription codes in two column mode.

Best, Richard


--
*T* +6433121699  *M* +64210640216  *E* rmaho...@indica-et-buddhica.org
*IM* https://t.me/rmahoney  *W *https://indica-et-buddhica.org/**

*Indica et Buddhica  *Littledene  Bay Road  Oxford  NZ 
<https://indica-et-buddhica.org/>


- Original message -
From: Hans Hagen 
To: mailing list for ConTeXt users , "Jairo A. del Rio" 

Subject: Re: [NTG-context] Hyphenation on digits
Date: Friday, 29 January 2021 03:00

On 1/28/2021 12:50 PM, Jairo A. del Rio wrote:
> Hi, list.
> 
> I want to know if ConTeXt provides an option to automatically 
> hyphenate/break digits as if they were alphabetic characters. Example, 
> in a narrow page I expect something like that (I've used (-) for an 
> optional hyphen):
> 
> *π = *3.141592653(-)
> 58979323846264(-)
> 33832795028841(-)
> 97169399375105(-)
> ...
> 
> I found myself unable to read a satisfactory solution in the mailing 
> list archive nor other TeX related resources. Maybe LMTX has some magic 
> for that?

I'll add support for:

\starttext

\hsize6cm

\pi\ = 
\hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}
 
  \blank
\pi\ = 
\hyphenateddigits{3.141592653589793238462643383279502884197169399375105} 
\blank
x $\pi  = 
\hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}$
 
\blank
x $\pi  = 
\hyphenateddigits{3.141592653589793238462643383279502884197169399375105}$ 
  \blank

\stoptext

A quick and dirty hack as we don't need some full blown mechanism for 
such a rare case.

Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation on digits

2021-01-28 Thread Hans Hagen

On 1/28/2021 12:50 PM, Jairo A. del Rio wrote:

Hi, list.

I want to know if ConTeXt provides an option to automatically 
hyphenate/break digits as if they were alphabetic characters. Example, 
in a narrow page I expect something like that (I've used (-) for an 
optional hyphen):


*π = *3.141592653(-)
58979323846264(-)
33832795028841(-)
97169399375105(-)
...

I found myself unable to read a satisfactory solution in the mailing 
list archive nor other TeX related resources. Maybe LMTX has some magic 
for that?


I'll add support for:

\starttext

\hsize6cm

   \pi\ = 
\hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105} 
 \blank
   \pi\ = 
\hyphenateddigits{3.141592653589793238462643383279502884197169399375105} 
   \blank
x $\pi  = 
\hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}$ 
\blank
x $\pi  = 
\hyphenateddigits{3.141592653589793238462643383279502884197169399375105}$ 
 \blank


\stoptext

A quick and dirty hack as we don't need some full blown mechanism for 
such a rare case.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation pattern for Esperanto

2020-12-23 Thread Mojca Miklavec
Dear Alain,

On Tue, 22 Dec 2020 at 21:02, Alain Delmotte wrote:
>
> Hi Hans and Mojca,
>
> I join a file containing the list of patterns for Esperanto

This one shouldn't be needed unless you believe that there is an issue
with the existing patterns.

> and the definition/translation of the general words for titles, glossaries,...
>
> Now regarding the labels, how could I provide the translations? Should I add 
> a line with translation for each term (or the most important, I have seen 
> that the French labels are not all translated)?

Ideally take the latest version of lang-txt.lua, add a line for
esperanto for each translation and send it to Hans.

We ideally need them in a similar for as for other languages.

Feel free to provide additions for French as well. (I guess in that
case Hans will send the changes for proofreading to at least another
member.)

I'm not exactly up-to-date about what other settings might be needed
in addition, but translations inside lang-txt.lua sound like a good
starting point.

Mojca
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation pattern for Esperanto

2020-12-22 Thread Alain Delmotte

  
  
Hi Hans and Mojca,
I join a file containing the list of
patterns for Esperanto and the definition/translation of the
general words for titles, glossaries,...
In fact there is a file for Esperanto
in:
  
C:\Users\Alain\context-lmlx\tex\texmf-context\tex\context\patterns\mkiv\lang-eo.lua
  
So it has been in mkiv.
Now regarding the labels, how could I
provide the translations? Should I add a line with translation
for each term (or the most important, I have seen that the
French labels are not all translated)?
Thanks, regards,
Alain
  
Le 14/10/2020 à 18:40, Hans Hagen a
  écrit :

On
  10/14/2020 5:36 PM, Alain Delmotte wrote: 
  Dear Mojca, 

I did just repond to the message without remarking that I was
only answering to you; I'll take care inthe future. 

I'll check if the two list are the same, after expanding the
condensed one. And after I'll go to Hans. 
  
  
  As Mojca pointed out, we need to setup a language: 
  
  % Artificial Languages: Esperanto 
  
  \installlanguage 
    [\s!esperanto] 
    [%\c!spacing=\v!packed, 
     %\c!leftsentence=\emdash, 
     %\c!rightsentence=\emdash, 
     %\c!leftsubsentence=\emdash, 
     %\c!rightsubsentence=\emdash, 
     %\c!leftquote=\lowerleftdoubleninequote, 
     %\c!rightquote=\upperrightdoublesixquote, 
     %\c!leftquotation=\lowerleftdoubleninequote, 
     %\c!rightquotation=\upperrightdoublesixquote, 
     %\c!date={\v!year,~m.,\space,\v!month,\space,\v!day,~d.}, 
     \s!patterns=eo, 
     \s!lefthyphenmin=2, 
     \s!righthyphenmin=2] 
  
  apart from labels as in lang-txt.lua because otherwise it's not
  that useful to have it I guess. 
  
  Hans 
  
  Alain 

Le 14/10/2020 à 13:16, Mojca Miklavec a écrit : 
Dear Alain, 
  
  Yes, I'm aware of the differences, but ConTeXt is not ready to
  read 
  patterns in the cryptic format. 
  (If the two sets of patterns are not equivalent, there's
  something 
  that needs fixing.) 
  
  Please be proactive on the list (chatting offline with me
  won't help 
  that much) and just try to convince Hans to add those
  patterns, or ask 
  him what you need to do in order to end up with patterns
  supported in 
  ConTeXt out of the box. 
  
  Mojca 
  
  On Mon, 12 Oct 2020 at 21:50, Alain Delmotte 
   
  wrote: 
  Hi Mojca, 

The pattern in TeXlive as I described (from hyph-eo.tex)
makes the list a littlebit  more compact: instead of 

1a2do, 1a2doj, 1a2dojn, 1a2don one write \nom{1a2d},
otherwise it looks the same (I didn't check the details). 

So I'll wait for the demand of Hans!! 

Alain 

Le 12/10/2020 à 16:38, Mojca Miklavec a écrit : 

Dear Alain, 

On Mon, 12 Oct 2020 at 13:44, Alain Delmotte wrote: 

I'd like to have hyphenation for Esperanto; it doesn't exist
in ConTeXt but exist in TeX/LaTeX. 

Would it be difficult to create the Esperanto file for
ConTeXt? 

The plain text version is already in the correct form: 

https://github.com/hyphenation/tex-hyphen/blob/master/hyph-utf8/tex/generic/hyph-utf8/patterns/txt/hyph-eo.pat.txt
so it should be just a matter of Hans including the patterns
in the 
distribution. 

Usually he asks for translations of basic strings (like
"Chapter" 
etc.) when adding support for a new language ;) 

Mojca 
___

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://context.aanhet.net

archive  :https://bitbucket.org/phg/context-mirror/commits/

wiki :http://contextgarden.net

___

  


___

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

   

Re: [NTG-context] Hyphenation pattern for Esperanto

2020-10-14 Thread Hans Hagen

On 10/14/2020 5:36 PM, Alain Delmotte wrote:

Dear Mojca,

I did just repond to the message without remarking that I was only 
answering to you; I'll take care inthe future.


I'll check if the two list are the same, after expanding the condensed 
one. And after I'll go to Hans.


As Mojca pointed out, we need to setup a language:

% Artificial Languages: Esperanto

\installlanguage
  [\s!esperanto]
  [%\c!spacing=\v!packed,
   %\c!leftsentence=\emdash,
   %\c!rightsentence=\emdash,
   %\c!leftsubsentence=\emdash,
   %\c!rightsubsentence=\emdash,
   %\c!leftquote=\lowerleftdoubleninequote,
   %\c!rightquote=\upperrightdoublesixquote,
   %\c!leftquotation=\lowerleftdoubleninequote,
   %\c!rightquotation=\upperrightdoublesixquote,
   %\c!date={\v!year,~m.,\space,\v!month,\space,\v!day,~d.},
   \s!patterns=eo,
   \s!lefthyphenmin=2,
   \s!righthyphenmin=2]

apart from labels as in lang-txt.lua because otherwise it's not that 
useful to have it I guess.


Hans


Alain

Le 14/10/2020 à 13:16, Mojca Miklavec a écrit :

Dear Alain,

Yes, I'm aware of the differences, but ConTeXt is not ready to read
patterns in the cryptic format.
(If the two sets of patterns are not equivalent, there's something
that needs fixing.)

Please be proactive on the list (chatting offline with me won't help
that much) and just try to convince Hans to add those patterns, or ask
him what you need to do in order to end up with patterns supported in
ConTeXt out of the box.

Mojca

On Mon, 12 Oct 2020 at 21:50, Alain Delmotte
  wrote:

Hi Mojca,

The pattern in TeXlive as I described (from hyph-eo.tex) makes the list a 
littlebit  more compact: instead of

1a2do, 1a2doj, 1a2dojn, 1a2don one write \nom{1a2d}, otherwise it looks the 
same (I didn't check the details).

So I'll wait for the demand of Hans!!

Alain

Le 12/10/2020 à 16:38, Mojca Miklavec a écrit :

Dear Alain,

On Mon, 12 Oct 2020 at 13:44, Alain Delmotte wrote:

I'd like to have hyphenation for Esperanto; it doesn't exist in ConTeXt but 
exist in TeX/LaTeX.

Would it be difficult to create the Esperanto file for ConTeXt?

The plain text version is already in the correct form:
 
https://github.com/hyphenation/tex-hyphen/blob/master/hyph-utf8/tex/generic/hyph-utf8/patterns/txt/hyph-eo.pat.txt
so it should be just a matter of Hans including the patterns in the
distribution.

Usually he asks for translations of basic strings (like "Chapter"
etc.) when adding support for a new language ;)

Mojca
___
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://context.aanhet.net
archive  :https://bitbucket.org/phg/context-mirror/commits/
wiki :http://contextgarden.net
___


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation pattern for Esperanto

2020-10-14 Thread Alain Delmotte

  
  
Dear Mojca,
I did just repond to the message
without remarking that I was only answering to you; I'll take
care inthe future.
I'll check if the two list are the
same, after expanding the condensed one. And after I'll go to
Hans.
Alain

Le 14/10/2020 à 13:16, Mojca Miklavec a
  écrit :


  Dear Alain,

Yes, I'm aware of the differences, but ConTeXt is not ready to read
patterns in the cryptic format.
(If the two sets of patterns are not equivalent, there's something
that needs fixing.)

Please be proactive on the list (chatting offline with me won't help
that much) and just try to convince Hans to add those patterns, or ask
him what you need to do in order to end up with patterns supported in
ConTeXt out of the box.

Mojca

On Mon, 12 Oct 2020 at 21:50, Alain Delmotte
 wrote:

  

Hi Mojca,

The pattern in TeXlive as I described (from hyph-eo.tex) makes the list a littlebit  more compact: instead of

1a2do, 1a2doj, 1a2dojn, 1a2don one write \nom{1a2d}, otherwise it looks the same (I didn't check the details).

So I'll wait for the demand of Hans!!

Alain

Le 12/10/2020 à 16:38, Mojca Miklavec a écrit :

Dear Alain,

On Mon, 12 Oct 2020 at 13:44, Alain Delmotte wrote:

I'd like to have hyphenation for Esperanto; it doesn't exist in ConTeXt but exist in TeX/LaTeX.

Would it be difficult to create the Esperanto file for ConTeXt?

The plain text version is already in the correct form:
https://github.com/hyphenation/tex-hyphen/blob/master/hyph-utf8/tex/generic/hyph-utf8/patterns/txt/hyph-eo.pat.txt
so it should be just a matter of Hans including the patterns in the
distribution.

Usually he asks for translations of basic strings (like "Chapter"
etc.) when adding support for a new language ;)

Mojca
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

  

  


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation pattern for Esperanto

2020-10-12 Thread Mojca Miklavec
Dear Alain,

On Mon, 12 Oct 2020 at 13:44, Alain Delmotte wrote:
>
> I'd like to have hyphenation for Esperanto; it doesn't exist in ConTeXt but 
> exist in TeX/LaTeX.
>
> Would it be difficult to create the Esperanto file for ConTeXt?

The plain text version is already in the correct form:

https://github.com/hyphenation/tex-hyphen/blob/master/hyph-utf8/tex/generic/hyph-utf8/patterns/txt/hyph-eo.pat.txt
so it should be just a matter of Hans including the patterns in the
distribution.

Usually he asks for translations of basic strings (like "Chapter"
etc.) when adding support for a new language ;)

Mojca
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Denis Maier

Am 09.10.2020 um 14:48 schrieb Hans Hagen:

On 10/9/2020 9:01 AM, Denis Maier wrote:

[...]
I see. I've noticed lang-us.lua has a list of exceptions in it:
  ["exceptions"]={
   ["characters"]="abcdefghijlmnoprstuyz",
   ["data"]="as-so-ciate as-so-ciates dec-li-na-tion oblig-a-tory 
phil-an-thropic present presents project projects reci-procity 
re-cog-ni-zance ref-or-ma-tion ret-ri-bu-tion ta-ble",

   ["length"]=168,
   ["n"]=14,
  },

Would it be possible to add more exceptions to that list as they come 
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 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation again

2020-10-09 Thread Denis Maier

Am 09.10.2020 um 16:49 schrieb Rik Kabel:

Denis

You have a hex 200b after ca below.

On 10/9/2020 10:38, Denis Maier wrote:

appli-ca​ble


Thanks, that was it.
You shall never copy from a website ... You shall never copy from a 
website... etc.


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Hans Hagen

On 10/9/2020 9:01 AM, Denis Maier wrote:

Am 09.10.2020 um 08:57 schrieb Taco Hoekwater:



On 9 Oct 2020, at 08:52, Denis Maier  wrote:

Am 08.10.2020 um 19:05 schrieb Henning Hraban Ramm:

\starttext

{EN: \en\hyphenatedcoloredword{applicable}}

{DE: \de\hyphenatedcoloredword{applicable}}

\stoptext

Wow, that's super helpful. The English pattern seems to be 
"ap-plic-a-ble"

According to Meriam-Webster it should just be "ap·​pli·​ca·​ble".

{EN: \en\hyphenatedcoloredword{obligate}} gives me "ob-lig-ate"
According to Meriam-Webster it should be "ob·​li·​gate".

I've had a look at the files mentioned by Tomáš, but as these are not 
just wordlists I can not really tell what is happening.


So, is that a bug?
Not really. hyphenation patterns are a bit like applying JPEG 
compression to
a dictionary. It makes the data size smaller by recognising patterns 
while

ignoring outliers.

Occasional errors are to be expected, which is why \hyphenation exists.



I see. I've noticed lang-us.lua has a list of exceptions in it:
  ["exceptions"]={
   ["characters"]="abcdefghijlmnoprstuyz",
   ["data"]="as-so-ciate as-so-ciates dec-li-na-tion oblig-a-tory 
phil-an-thropic present presents project projects reci-procity 
re-cog-ni-zance ref-or-ma-tion ret-ri-bu-tion ta-ble",

   ["length"]=168,
   ["n"]=14,
  },

Would it be possible to add more exceptions to that list as they come 
up? Or is that inappropriate?

you can add your own runtime in a style:

\hyphenation {fo-ob-ar} \hsize 1mm foobar

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Denis Maier

Am 08.10.2020 um 19:05 schrieb Henning Hraban Ramm:

\starttext

{EN: \en\hyphenatedcoloredword{applicable}}

{DE: \de\hyphenatedcoloredword{applicable}}

\stoptext

Wow, that's super helpful. The English pattern seems to be "ap-plic-a-ble"
According to Meriam-Webster it should just be "ap·​pli·​ca·​ble".

{EN: \en\hyphenatedcoloredword{obligate}} gives me "ob-lig-ate"
According to Meriam-Webster it should be "ob·​li·​gate".

I've had a look at the files mentioned by Tomáš, but as these are not 
just wordlists I can not really tell what is happening.


So, is that a bug?

Best,
Denis
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Hans Hagen

On 10/9/2020 10:15 AM, Henning Hraban Ramm wrote:




Am 09.10.2020 um 08:52 schrieb Denis Maier :

Am 08.10.2020 um 19:05 schrieb Henning Hraban Ramm:

\starttext

{EN: \en\hyphenatedcoloredword{applicable}}

{DE: \de\hyphenatedcoloredword{applicable}}

\stoptext


Wow, that's super helpful.


BTW \hyphenatedword works the same. I didn’t see anything colored.
There are some more commands like this, even \hyphenatedfile, see
https://source.contextgarden.net/tex/context/base/mkiv/supp-box.mkiv?search=hyphenated

Usually Arthur’s (hail the emperor of hyphenation and protector of the 
patterns) patterns are flawless, so I guess it’s not a bug but an exception of 
the rules.

ancient secret features:

>mtxrun --script patterns --hyphenate applicable --language=gb
hyphenator  |
hyphenator  | . a p p l i c a b l e .   . a p p l i c a b l e .
hyphenator  |  2a0p0 2 0 0 0 0 0 0 0 0 0 0
hyphenator  |4p1p2   2 4 1 2 0 0 0 0 0 0 0
hyphenator  |  0p2l2 2 4 1 2 2 0 0 0 0 0 0
hyphenator  |  1a0b0 2 4 1 2 2 0 1 0 0 0 0
hyphenator  |2b0l2   2 4 1 2 2 0 1 2 0 2 0
hyphenator  |  4l0e0.0   2 4 1 2 2 0 1 2 4 2 0
hyphenator  | .2a4p1p2l2i0c1a2b4l2e0.   . a p-p l i c-a b l e .
hyphenator  |
mtx-patterns| gb 3 3 : applicable : applic-able

>mtxrun --script patterns --hyphenate applicable --language=us
hyphenator  |
hyphenator  | . a p p l i c a b l e .   . a p p l i c a b l e .
hyphenator  |4p1p0   0 4 1 0 0 0 0 0 0 0 0
hyphenator  |  1p2l2 0 4 1 2 2 0 0 0 0 0 0
hyphenator  |  0p0l0i2c1a0b0 0 4 1 2 2 2 1 0 0 0 0
hyphenator  |1c0a0   0 4 1 2 2 2 1 0 0 0 0
hyphenator  |0c0a1b0l0   0 4 1 2 2 2 1 1 0 0 0
hyphenator  |0b2l2   0 4 1 2 2 2 1 1 2 2 0
hyphenator  |0b4l0e0.0   0 4 1 2 2 2 1 1 4 2 0
hyphenator  | .0a4p1p2l2i2c1a1b4l2e0.   . a p-p l i c-a-b l e .
hyphenator  |
mtx-patterns| us 3 3 : applicable : applic-a-ble

not the kind of stuff one wants to expose a new user to

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Hans Hagen

On 10/8/2020 7:05 PM, Henning Hraban Ramm wrote:



Am 08.10.2020 um 17:41 schrieb Denis Maier :

where can I find the hyphenation patterns used by ConTeXt? I have two wrongly 
hyphenated words, and I want to check whether this is due to incorrect 
patterns. (I tried the source browser... not much luck so far.) The words are:
1. applicable => hyphenated as applic-able
2. obligated => hyphenated as oblig-ated

I know I can use \hyphenation to correct that, but I wanted to check the 
patterns nevertheless.


I guess it’s just a valid option.
You can check possible hyphenations like this:

\starttext

{EN: \en\hyphenatedcoloredword{applicable}}

{DE: \de\hyphenatedcoloredword{applicable}}

\stoptext

americans and brits hyphnetate differently

\starttext
{\language[usenglish]  {\tt US \number\normallanguage}: 
\hyphenatedcoloredword{applicable}}\par
{\language[ukenglish]  {\tt UK \number\normallanguage}: 
\hyphenatedcoloredword{applicable}}\par

\stoptext

syllable vs stem (but I bet Arthur can explain better)

hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Henning Hraban Ramm


> Am 09.10.2020 um 08:52 schrieb Denis Maier :
> 
> Am 08.10.2020 um 19:05 schrieb Henning Hraban Ramm:
>> \starttext
>> 
>> {EN: \en\hyphenatedcoloredword{applicable}}
>> 
>> {DE: \de\hyphenatedcoloredword{applicable}}
>> 
>> \stoptext
>> 
> Wow, that's super helpful.

BTW \hyphenatedword works the same. I didn’t see anything colored.
There are some more commands like this, even \hyphenatedfile, see
https://source.contextgarden.net/tex/context/base/mkiv/supp-box.mkiv?search=hyphenated

Usually Arthur’s (hail the emperor of hyphenation and protector of the 
patterns) patterns are flawless, so I guess it’s not a bug but an exception of 
the rules.

Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Denis Maier

Am 09.10.2020 um 08:57 schrieb Taco Hoekwater:



On 9 Oct 2020, at 08:52, Denis Maier  wrote:

Am 08.10.2020 um 19:05 schrieb Henning Hraban Ramm:

\starttext

{EN: \en\hyphenatedcoloredword{applicable}}

{DE: \de\hyphenatedcoloredword{applicable}}

\stoptext


Wow, that's super helpful. The English pattern seems to be "ap-plic-a-ble"
According to Meriam-Webster it should just be "ap·​pli·​ca·​ble".

{EN: \en\hyphenatedcoloredword{obligate}} gives me "ob-lig-ate"
According to Meriam-Webster it should be "ob·​li·​gate".

I've had a look at the files mentioned by Tomáš, but as these are not just 
wordlists I can not really tell what is happening.

So, is that a bug?

Not really. hyphenation patterns are a bit like applying JPEG compression to
a dictionary. It makes the data size smaller by recognising patterns while
ignoring outliers.

Occasional errors are to be expected, which is why \hyphenation exists.



I see. I've noticed lang-us.lua has a list of exceptions in it:
 ["exceptions"]={
  ["characters"]="abcdefghijlmnoprstuyz",
  ["data"]="as-so-ciate as-so-ciates dec-li-na-tion oblig-a-tory 
phil-an-thropic present presents project projects reci-procity 
re-cog-ni-zance ref-or-ma-tion ret-ri-bu-tion ta-ble",

  ["length"]=168,
  ["n"]=14,
 },

Would it be possible to add more exceptions to that list as they come 
up? Or is that inappropriate?


Denis
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Taco Hoekwater


> On 9 Oct 2020, at 08:52, Denis Maier  wrote:
> 
> Am 08.10.2020 um 19:05 schrieb Henning Hraban Ramm:
>> \starttext
>> 
>> {EN: \en\hyphenatedcoloredword{applicable}}
>> 
>> {DE: \de\hyphenatedcoloredword{applicable}}
>> 
>> \stoptext
>> 
> Wow, that's super helpful. The English pattern seems to be "ap-plic-a-ble"
> According to Meriam-Webster it should just be "ap·​pli·​ca·​ble".
> 
> {EN: \en\hyphenatedcoloredword{obligate}} gives me "ob-lig-ate"
> According to Meriam-Webster it should be "ob·​li·​gate".
> 
> I've had a look at the files mentioned by Tomáš, but as these are not just 
> wordlists I can not really tell what is happening.
> 
> So, is that a bug? 

Not really. hyphenation patterns are a bit like applying JPEG compression to 
a dictionary. It makes the data size smaller by recognising patterns while
ignoring outliers. 

Occasional errors are to be expected, which is why \hyphenation exists.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation patterns

2020-10-08 Thread Henning Hraban Ramm

> Am 08.10.2020 um 17:41 schrieb Denis Maier :
> 
> where can I find the hyphenation patterns used by ConTeXt? I have two wrongly 
> hyphenated words, and I want to check whether this is due to incorrect 
> patterns. (I tried the source browser... not much luck so far.) The words are:
> 1. applicable => hyphenated as applic-able
> 2. obligated => hyphenated as oblig-ated
> 
> I know I can use \hyphenation to correct that, but I wanted to check the 
> patterns nevertheless.

I guess it’s just a valid option.
You can check possible hyphenations like this:

\starttext

{EN: \en\hyphenatedcoloredword{applicable}}

{DE: \de\hyphenatedcoloredword{applicable}}

\stoptext


Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation patterns

2020-10-08 Thread Tomas Hala
Hi,

you can find patterns on this directory:

texlive/2020/texmf-dist/tex/context/patterns/mkiv/

Best wishes,

Tomáš 

Thu, Oct 08, 2020 ve 05:41:09PM +0200 Denis Maier napsal(a):
# Hi,
# 
# where can I find the hyphenation patterns used by ConTeXt? I have
# two wrongly hyphenated words, and I want to check whether this is
# due to incorrect patterns. (I tried the source browser... not much
# luck so far.) The words are:
# 1. applicable => hyphenated as applic-able
# 2. obligated => hyphenated as oblig-ated
# 
# I know I can use \hyphenation to correct that, but I wanted to check
# the patterns nevertheless.
# 
# Best,
# Denis
# 
___
# 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://context.aanhet.net
# archive  : https://bitbucket.org/phg/context-mirror/commits/
# wiki : http://contextgarden.net
# 
___

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation LuaTeX

2020-01-17 Thread Pablo Rodriguez
On 1/17/20 12:05 PM, MANUEL GONZALEZ SUAREZ wrote:
> Hi:
> When I compile a document with the following preamble:
> [...]
> \usemodule[simplefonts]

Hi Manuel,

as Hraban and Thomas mentioned, the module has been deprecated.

The commands \definefallbackfamily, \definefontfamily and \setupbodyfont
are standard ConTeXt commands, they don’t require any module.

> \definefallbackfamily [mainface] [serif] [Old Standard]
> [range={greekandcoptic, greekextended}, force=yes, rscale=auto]

"preset=range:greek" might replace "range={greekandcoptic, greekextended}".

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation LuaTeX

2020-01-17 Thread Arthur Reutenauer
On Fri, Jan 17, 2020 at 03:44:58PM +0100, Henning Hraban Ramm wrote:
> Thank you for the clarification!

  You’re welcome :-)

> That means, I can mix e.g. {de,agr,ru} but not {de,en}, right?

  Exactly.  In the latter case, even with both languages marked up, the
mix of two completely different pattern sets is likely to be a disaster
(actually, even the full set of US English patterns contains some later
additions and isn’t completely consistent with itself ...)

> But apparently the combined patterns didn’t work for the OP.

  That’s of course a problem, but no insight into that, sorry Manuel.

Best,

Arthur
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation LuaTeX

2020-01-17 Thread Henning Hraban Ramm

> Am 2020-01-17 um 15:36 schrieb Arthur Reutenauer 
> :
> 
> On Fri, Jan 17, 2020 at 01:51:42PM +0100, Henning Hraban Ramm wrote:
>> Just \mainlanguage[es] and \language[agr] (= \agr) where you need it should 
>> be enough.
> 
>  As Thomas said, that shouldn’t be necessary.
> 
>> You can’t expect ConTeXt to auto-detect your language, even if that maybe 
>> would work for Greek.
>> (My texts are usually in German, thus I have \mainlanguage[de] and use \en 
>> or \fr to markup foreign quotes.
>> 
>> Correct me if I miss something.
> 
>  Since the two patterns sets Manuel wants to load use two different
> writing systems, you can mix them without risking bad interactions.  It
> effectively means using a pattern set that is the union of the Spanish
> and Ancient Greek patterns, the former are used when hyphenating Spanish
> words without affecting the Greek text, and vice-versa.  No language
> detection (or markup) is necessary.

Thank you for the clarification!

That means, I can mix e.g. {de,agr,ru} but not {de,en}, right?


But apparently the combined patterns didn’t work for the OP.
Of course, no MWE to check…


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation LuaTeX

2020-01-17 Thread Arthur Reutenauer
On Fri, Jan 17, 2020 at 01:51:42PM +0100, Henning Hraban Ramm wrote:
> Just \mainlanguage[es] and \language[agr] (= \agr) where you need it should 
> be enough.

  As Thomas said, that shouldn’t be necessary.

> You can’t expect ConTeXt to auto-detect your language, even if that maybe 
> would work for Greek.
> (My texts are usually in German, thus I have \mainlanguage[de] and use \en or 
> \fr to markup foreign quotes.
> 
> Correct me if I miss something.

  Since the two patterns sets Manuel wants to load use two different
writing systems, you can mix them without risking bad interactions.  It
effectively means using a pattern set that is the union of the Spanish
and Ancient Greek patterns, the former are used when hyphenating Spanish
words without affecting the Greek text, and vice-versa.  No language
detection (or markup) is necessary.

Best,

Arthur
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation LuaTeX

2020-01-17 Thread Thomas A. Schmitz

On 17.01.20 12:55, Henning Hraban Ramm wrote:

I suspect "patterns" understands only one file, as far as I understood the 
source, but don’t trust me on this.

When you mark your Greek passages with {\agr ἡ Ἑλληνικὴ γλῶσσα} (or 
\language[agr] instead of \agr), you should get the right pattern without that 
setup.


No, since the patterns for Spanish and Greek are utf8, they can 
co-exist, there's no need to mark the Greek passages.




The module simplefonts is obsolete since 2013.


Yes, that's right.

I get both Spanish and Greek hyphenation in a test file:

\mainlanguage[es]
\setuplanguage[es][patterns={es,agr}]
\setupbodyfont[gentium,11pt]

\starttext
\hyphenatedword{ἄνθρωπος selección}
\stoptext

If this fails for OP, he will have to produce a real example, taking out 
irrelevant parts and telling us which version he uses. In the original 
example, there was only "..." which of course doesn't hyphenate.


Thomas
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation LuaTeX

2020-01-17 Thread Henning Hraban Ramm


> Am 2020-01-17 um 13:04 schrieb MANUEL GONZALEZ SUAREZ 
> :
> 
> Thanks very much, but if the module simplefonts is obsolete, What should I 
> indicate in the preamble to write with both languages?

Your font setup should be good without trying to load that module (that doesn’t 
do anything anymore anyway).

Just \mainlanguage[es] and \language[agr] (= \agr) where you need it should be 
enough.
You can’t expect ConTeXt to auto-detect your language, even if that maybe would 
work for Greek.
(My texts are usually in German, thus I have \mainlanguage[de] and use \en or 
\fr to markup foreign quotes.

Correct me if I miss something.


> When you mark your Greek passages with {\agr ἡ Ἑλληνικὴ γλῶσσα} (or 
> \language[agr] instead of \agr), you should get the right pattern without 
> that setup.
> 
> The module simplefonts is obsolete since 2013.
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation LuaTeX

2020-01-17 Thread Henning Hraban Ramm

> Am 2020-01-17 um 12:05 schrieb MANUEL GONZALEZ SUAREZ 
> :
> 
> Hi:
> When I compile a document with the following preamble:
> 
> \mainlanguage[es]
> %\setuphyphenation[method=traditional]
> \usemodule[simplefonts]
> \setuplanguage[es][patterns={es,agr}]
> \definefallbackfamily [mainface] [serif] [Old Standard] 
> [range={greekandcoptic, greekextended}, force=yes, rscale=auto]
> \definefontfamily [mainface] [serif] [TeX Gyre Schola]
> \setupbodyfont[mainface,11pt]

I suspect "patterns" understands only one file, as far as I understood the 
source, but don’t trust me on this.

When you mark your Greek passages with {\agr ἡ Ἑλληνικὴ γλῶσσα} (or 
\language[agr] instead of \agr), you should get the right pattern without that 
setup.

The module simplefonts is obsolete since 2013.

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation questions

2019-05-01 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 01.05.2019 um 16:14:

2. how to switch language for just three words for correct hyphenation?

\starttext
English ... \language[de]{Deutsch}
\stoptext

Shouldn’t that be

\starttext
English ... {\language[de]Deutsch}
\stoptext

?
Yes, the brace should be before \language because the command is switch 
to change the language.


Wolfgang

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation questions

2019-05-01 Thread Henning Hraban Ramm
Am 2019-04-24 um 19:47 schrieb Wolfgang Schuster 
:

> Dmitry Starostin schrieb am 24.04.2019 um 19:34:
>> 1. is there an analog to \hyp{} command from the 'hyphenat' package? Double 
>> words with a dash happen all too often.
> 
> 1. Add \setbreakpoints[compound] to enable a line break at a hyphen.
> 
> \setbreakpoints[compound]
> 
> \starttext
> electromagnetic-endioscopy
> \stoptext
> 
> 2. Use || to insert a breakable hyphen.
> 
> \starttext
> electromagnetic||endioscopy
> \stoptext
> 
>> 2. how to switch language for just three words for correct hyphenation?
> 
> \starttext
> English ... \language[de]{Deutsch}
> \stoptext

Shouldn’t that be

\starttext
English ... {\language[de]Deutsch}
\stoptext

?

For most languages you can also use their shortcut, e.g. \de, \ru, \en – but 
not \it (italic, not Italian) or \sl (slanted, not Slowenian).

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation questions

2019-04-24 Thread Wolfgang Schuster

Dmitry Starostin schrieb am 24.04.2019 um 19:34:
1. is there an analog to \hyp{} command from the 'hyphenat' package? 
Double words with a dash happen all too often.


1. Add \setbreakpoints[compound] to enable a line break at a hyphen.

\setbreakpoints[compound]

\starttext
electromagnetic-endioscopy
\stoptext

2. Use || to insert a breakable hyphen.

\starttext
electromagnetic||endioscopy
\stoptext


2. how to switch language for just three words for correct hyphenation?


\starttext
English ... \language[de]{Deutsch}
\stoptext

Wolfgang

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] hyphenation

2018-10-26 Thread Wolfgang Schuster

Untested:

\setupreferenceformat[style=\nohyphens]

Wolfgang


Hans van der Meer schrieb am 26.10.18 um 13:38:
Using roman numbers in figures I encountered a case where XIII.9 was 
hyphenated into XI-II.9. A bit unclear, in my opinion.


Easily repairable with something 
like \def\myfigure[#1]{{\nohyphens\in{figure}[#1]}}
Just an observation, not really a problem but maybe something waiting 
to be fixed.


dr. Hans van der Meer




___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] hyphenation

2018-10-26 Thread Hans Hagen

On 10/26/2018 1:38 PM, Hans van der Meer wrote:
Using roman numbers in figures I encountered a case where XIII.9 was 
hyphenated into XI-II.9. A bit unclear, in my opinion.


Easily repairable with something 
like \def\myfigure[#1]{{\nohyphens\in{figure}[#1]}}
Just an observation, not really a problem but maybe something waiting to 
be fixed.


\nl \hyphenation{XIII}


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] \hyphenation problem

2017-10-23 Thread Pablo Rodriguez
On 10/22/2017 10:16 PM, Rik Kabel wrote:
> Thank you, Pablo, for the workaround.
> 
> As to your question, it originally came about because of the order in 
> which environment files were included in a document (one general to many 
> documents, one specific to a new document). Between 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 make sense to use 
> both (or not) depending on how you want to hyphenate, for example, trade 
> names or other proper nouns in a multi-language work.

Hi Rik,

see this sample:

{\es \hyphenation{Schwarz-en-egger}}
{\en \hyphenation{epi-graphs Mount-weazels Mount-weazel}}
\hyphenation{Schwarz-en-egger}
\starttext
\startTEXpage[offset=1em]
\hyphenatedword{Schwarzenegger} \\
{\es\hyphenatedword{Schwarzenegger}} \\
\hyphenatedword{Mountweazel} \\
\hyphenatedword{Mountweazels} \\
\hyphenatedword{epigraph} \\
\hyphenatedword{epigraphs}
\stopTEXpage
\stoptext

I have just realized that it isn’t a question of \startexceptions, it is
just \hyphenation itself.

BTW, either I totally missing the issue or \hyphenation doesn’t work for
all languages, it only works for US English (the default language).

That being said, I wonder whether it makes sense to define two instances
of hyphenation exceptions.

> But this does have me wondering if I am cancelling hyphenation overrides 
> made in the ConTeXt base code by way of \hyphenation when I use 
> \startexceptions. Are there any such overrides standard? (I could not 
> see any in a quick search of the source, but they may not be obvious to 
> me if they exist.)

I used \registerhyphenationexceptions and I didn’t get the impression it
was so tricky. But this was years ago and I don’t remember which file it
was.

Sorry for not giving more help,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] \hyphenation problem

2017-10-22 Thread Rik Kabel

Thank you, Pablo, for the workaround.

As to your question, it originally came about because of the order in 
which environment files were included in a document (one general to many 
documents, one specific to a new document). Between 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 make sense to use 
both (or not) depending on how you want to hyphenate, for example, trade 
names or other proper nouns in a multi-language work.


But this does have me wondering if I am cancelling hyphenation overrides 
made in the ConTeXt base code by way of \hyphenation when I use 
\startexceptions. Are there any such overrides standard? (I could not 
see any in a quick search of the source, but they may not be obvious to 
me if they exist.)


In any case, the wiki has been updated, at least to warn of this 
ordering issue and to suggest that \startexceptions exists. I have no 
documentation of \startexceptions to add.


--
Rik

On 2017-10-22 13:43, Pablo Rodriguez wrote:

On 10/22/2017 07:18 PM, Rik Kabel wrote:

Or am I doing something wrong?

With the following, Schwarzenegger is not hyphenated according to the
instruction. I get:

Hi Rik,

is there any reason not to include Schwarzenegger in the exceptions?

In any case, either you use \hyphenation *after* the exceptions, or you
include it in them. Both work fine.

Just in case it helps,

Pablo



___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] \hyphenation problem

2017-10-22 Thread Pablo Rodriguez
On 10/22/2017 07:18 PM, Rik Kabel wrote:
> Or am I doing something wrong?
> 
> With the following, Schwarzenegger is not hyphenated according to the
> instruction. I get:

Hi Rik,

is there any reason not to include Schwarzenegger in the exceptions?

In any case, either you use \hyphenation *after* the exceptions, or you
include it in them. Both work fine.

Just in case it helps,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation with dashes in natural table

2017-09-13 Thread Christoph Reller
Dear Pablo, Rik, and Thomas

Thank you so much for your quick help! This gives me much more insight into
the matter. And you provide various solutions with their pros and cons. For
the moment I will stick to Thomas' suggestion \setupbreakpoints[compound]
because I don't want to change the source files.

Many thanks,
Christoph
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation with dashes in natural table

2017-09-11 Thread Thomas A. Schmitz

On 09/11/2017 10:23 PM, Rik Kabel wrote:

See http://wiki.contextgarden.net/Compound_words.


But this page also contains the solution to the original problem:

\setbreakpoints [compound]

Thomas
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation with dashes in natural table

2017-09-11 Thread Rik Kabel

On 2017-09-11 14:14, Pablo Rodriguez wrote:

On 09/11/2017 03:10 PM, Christoph Reller wrote:

Hi,

It seems that the hyphenation algorithm for long words with dashes when
typeset in a natural table has changed.
[...]> Could this be a bug or do I have to setup hyphenation differently in
natural tables? Any feedback is welcome.

Hi Christoph,

I don’t know, but the following seems to work:

\starttext
\bTABLE[width=5cm]
\bTR
\bTD super||cali||fragi||listic||expi||ali||docious \eTD
\bTD The longest word known to me that ever had an appearance in a musical.
\eTD
\eTR
\eTABLE
\stoptext

Just in case it helps,

Pablo


|| inserts an en-dash. What you want is |-|, and using that gives a good 
result which agrees with Christoph’s earlier result.


See http://wiki.contextgarden.net/Compound_words.

   \starttext
   \bTABLE[width=5cm]
   \bTR
   \bTD super-cali-fragi-listic-expi-ali-docious \eTD
   \bTD The longest word known to me that ever had an appearance in a
   musical.
   \eTD
   \eTR
   \bTR
   \bTD super||cali||fragi||listic||expi||ali||docious \eTD
   \bTD The longest word known to me that ever had an appearance in a
   musical.
   \eTD
   \eTR
   \bTR
   \bTD super|-|cali|-|fragi|-|listic|-|expi|-|ali|-|docious \eTD
   \bTD The longest word known to me that ever had an appearance in a
   musical.
   \eTD
   \eTR
   \eTABLE
   \stoptext

--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation with dashes in natural table

2017-09-11 Thread Pablo Rodriguez
On 09/11/2017 03:10 PM, Christoph Reller wrote:
> Hi,
> 
> It seems that the hyphenation algorithm for long words with dashes when
> typeset in a natural table has changed.
> [...]> Could this be a bug or do I have to setup hyphenation differently in
> natural tables? Any feedback is welcome.

Hi Christoph,

I don’t know, but the following seems to work:

\starttext
\bTABLE[width=5cm]
\bTR
\bTD super||cali||fragi||listic||expi||ali||docious \eTD
\bTD The longest word known to me that ever had an appearance in a musical.
\eTD
\eTR
\eTABLE
\stoptext

Just in case it helps,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] \hyphenation command in TL 16

2017-04-16 Thread Florian Grammel
Obviously fixed in new beta. Splendid -- thank you!
Florian.

> Den 14. apr. 2017 kl. 01.20 skrev Florian Grammel
> 
> ok, thanks;
> so I’ll need to get some things to work in the standalone then…
> 
> For one ver: 2017.04.08 12:00 doesn’t seem to hyphenate in \WORDS
> Please compare
> 
> \setuphead[section][style={\WORDS}]
> \section{this is bit of a problem problem problem problem problem problem 
> problem problems}
> 
> on the standalone (last word in the margin) to TL16 (properly hyphenated)
> 
> Can this be fixed?
> 
> Best
> Florian.
> 
>> Den 13. apr. 2017 kl. 22.10 skrev Hans Hagen > >:
>> 
>> On 4/13/2017 9:37 PM, Florian Grammel wrote:
>>> The \hyphenation{}-command is ignored in the texlive 2016 version (ver: 
>>> 2016.05.17 19:20 MKIV). This has obviously been fixed since, as it works in 
>>> the standalone.
>>> 
>>> For other reasons I’d prefer to keep working with the TL16-version -- is it 
>>> possible to patch the hyphenation easily in TL 16?
>> 
>> unlikely
>> 
>> Hans
>> 
>> 
>> -
>>  Hans Hagen | PRAGMA ADE
>>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>   tel: 038 477 53 69 | www.pragma-ade.nl  | 
>> www.pragma-pod.nl 
>> -
>> ___
>> 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://context.aanhet.net 
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
>> 
>> wiki : http://contextgarden.net 
>> ___
> 
> 
> 
> Florian Grammel
> 
> Copenhagen, Denmark
> 

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] \hyphenation command in TL 16

2017-04-13 Thread Florian Grammel
ok, thanks;
so I’ll need to get some things to work in the standalone then…

For one ver: 2017.04.08 12:00 doesn’t seem to hyphenate in \WORDS
Please compare

\setuphead[section][style={\WORDS}]
\section{this is bit of a problem problem problem problem problem problem 
problem problems}

on the standalone (last word in the margin) to TL16 (properly hyphenated)

Can this be fixed?

Best
Florian.

> Den 13. apr. 2017 kl. 22.10 skrev Hans Hagen :
> 
> On 4/13/2017 9:37 PM, Florian Grammel wrote:
>> The \hyphenation{}-command is ignored in the texlive 2016 version (ver: 
>> 2016.05.17 19:20 MKIV). This has obviously been fixed since, as it works in 
>> the standalone.
>> 
>> For other reasons I’d prefer to keep working with the TL16-version -- is it 
>> possible to patch the hyphenation easily in TL 16?
> 
> unlikely
> 
> Hans
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___



Florian Grammel

Copenhagen, Denmark

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] \hyphenation command in TL 16

2017-04-13 Thread Hans Hagen

On 4/13/2017 9:37 PM, Florian Grammel wrote:

The \hyphenation{}-command is ignored in the texlive 2016 version (ver: 
2016.05.17 19:20 MKIV). This has obviously been fixed since, as it works in the 
standalone.

For other reasons I’d prefer to keep working with the TL16-version -- is it 
possible to patch the hyphenation easily in TL 16?


unlikely

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation on apostrophe and proper noun

2016-10-01 Thread Jean-Pierre Delange
Hi Alain,

The ConTeXt version 2016.07.17 (or 2016.07.16 ?) allows to correct this issue 
(if I remember and don't make a mistake).
Hope this helps !
JP

- Mail original -
De: "Alain Auger" <aau...@diffusionvie.com>
À: ntg-context@ntg.nl
Envoyé: Vendredi 30 Septembre 2016 19:12:30
Objet: Re: [NTG-context] Hyphenation on apostrophe and proper noun



Bonjour Jean-Pierre, 
excellent ! Votre solution corrige le problème de l'apostrophe. 

Toutefois j'ai rencontré un message d'erreur avec la commande : 
\mainlanguage[fr] 
Est-ce la version de ConTeXt que j'utilise ? (ConTeXt ver: 2016.05.17 19:20 
MKIV current fmt: 2016.8.29 int: english/english) 
Mais en retirant cette commande, l'hyphenation fonctionne bien. 
Si je pourrais gérer les noms propres, ce serait encore mieux. 

Encore merci ! 

Alain Auger 

- 
Hi Jean-Pierre, 
excellent! Your solution corrects the apostrophe problem. 

However, I encountered an error message with the \mainlanguage [fr] 
Is the version of ConTeXt I use? (ConTeXt worm: 2016.05.17 7:20 p.m. MKIV 
current fmt: 2016.8.29 int: English / English) 
But removing this command, the hyphenation works well. 
If I could manage the proper noun, it would be even better. 

Thanks again ! 

Alain Auger 


Le 16-09-30 à 12:29, Jean-Pierre Delange a écrit : 


Hi Alain,

J'ai rencontré le même problème, y compris pour la ponctuation dans les notes 
et j'ai résolu le problème de la manière suivante.
I've encountered the same issue, even in footnotes, and I've solved it with 
this (note that there are other languages than French in my documents) :

\setuplanguage[fr][patterns={fr,agr}]
\mainlanguage[fr]
\setcharacterspacing[frenchpunctuation]

- Mail original -
De: "Alain Auger" <aau...@diffusionvie.com> À: ntg-context@ntg.nl Envoyé: 
Vendredi 30 Septembre 2016 15:45:53
Objet: [NTG-context] Hyphenation on apostrophe and proper noun


Dear list, 
T here is a way to prevent hyphenation to occur on a apostrophe " L' -..." , 
and also on proper noun ? 

\language[fr] 
\setcharacterspacing[frenchpunctuation] 
\setupalign[stretch,verytolerant] 

--- 

L’un des critiques, Dean Farrar, écrivit : « L’- 
histoire n’a jamais entendu parler d’un roi Belt- 
schatsar. » 
--- 

Thanks! 

Alain Auger 

___
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  : 
http://foundry.supelec.fr/projects/contextrev/ wiki : 
http://contextgarden.net 
___
___
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  : 
http://foundry.supelec.fr/projects/contextrev/ wiki : 
http://contextgarden.net 
___
 




-- 


Alain Auger 
Infographiste 

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation on apostrophe and proper noun

2016-09-30 Thread Alain Auger

Bonjour Jean-Pierre,
excellent ! Votre solution corrige le problème de l'apostrophe.

Toutefois j'ai rencontré un message d'erreur avec la commande : 
\mainlanguage[fr]
Est-ce la version de ConTeXt que j'utilise ? (ConTeXt  ver: 2016.05.17 
19:20 MKIV current  fmt: 2016.8.29  int: english/english)

Mais en retirant cette commande, l'hyphenation fonctionne bien.
Si je pourrais gérer les noms propres, ce serait encore mieux.

Encore merci !

Alain Auger

-
Hi Jean-Pierre,
excellent! Your solution corrects the apostrophe problem.

However, I encountered an error message with the \mainlanguage [fr]
Is the version of ConTeXt I use? (ConTeXt worm: 2016.05.17 7:20 p.m. 
MKIV current fmt: 2016.8.29 int: English / English)

But removing this command, the hyphenation works well.
If I could manage the proper noun, it would be even better.

Thanks again !

Alain Auger


Le 16-09-30 à 12:29, Jean-Pierre Delange a écrit :

Hi Alain,

J'ai rencontré le même problème, y compris pour la ponctuation dans les notes 
et j'ai résolu le problème de la manière suivante.
I've encountered the same issue, even in footnotes, and I've solved it with 
this (note that there are other languages than French in my documents) :

\setuplanguage[fr][patterns={fr,agr}]
\mainlanguage[fr]
\setcharacterspacing[frenchpunctuation]

- Mail original -
De: "Alain Auger" 
À: ntg-context@ntg.nl
Envoyé: Vendredi 30 Septembre 2016 15:45:53
Objet: [NTG-context] Hyphenation on apostrophe and proper noun


Dear list,
T here is a way to prevent hyphenation to occur on a apostrophe " L' -..." ,
and also on proper noun ?

\language[fr]
\setcharacterspacing[frenchpunctuation]
\setupalign[stretch,verytolerant]

---

L’un des critiques, Dean Farrar, écrivit : « L’-
histoire n’a jamais entendu parler d’un roi Belt-
schatsar. »
---

Thanks!

Alain Auger

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



--

Alain Auger
Infographiste


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation on apostrophe and proper noun

2016-09-30 Thread Jean-Pierre Delange
Hi Alain,

J'ai rencontré le même problème, y compris pour la ponctuation dans les notes 
et j'ai résolu le problème de la manière suivante.
I've encountered the same issue, even in footnotes, and I've solved it with 
this (note that there are other languages than French in my documents) :

\setuplanguage[fr][patterns={fr,agr}]
\mainlanguage[fr]
\setcharacterspacing[frenchpunctuation]

- Mail original -
De: "Alain Auger" 
À: ntg-context@ntg.nl
Envoyé: Vendredi 30 Septembre 2016 15:45:53
Objet: [NTG-context] Hyphenation on apostrophe and proper noun


Dear list, 
T here is a way to prevent hyphenation to occur on a apostrophe " L' -..." , 
and also on proper noun ? 

\language[fr] 
\setcharacterspacing[frenchpunctuation] 
\setupalign[stretch,verytolerant] 

--- 

L’un des critiques, Dean Farrar, écrivit : « L’- 
histoire n’a jamais entendu parler d’un roi Belt- 
schatsar. » 
--- 

Thanks! 

Alain Auger 

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-08-02 Thread Pablo Rodriguez
On 08/02/2016 01:58 PM, Henri Menke wrote:
> On 08/01/2016 06:13 PM, Pablo Rodriguez wrote:
>>[...]
>> Linux 32bit has luatex-0.95 and I get wrong hyphenations.
> 
> I have LuaTeX, Version 0.95.0 (TeX Live 2016) on openSUSE 13.2
> (Harlequin) (x86_64) and correct hyphenations. [...]

Hi Henri,

could you try the hyphenation with ConTeXt Standalone for 32bit?

The issue might be related to 32bit architecture.


Pablo
-- 
http://www.ousia.tk
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-08-02 Thread Henri Menke
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[en]
>>> %would syn-the-size enu-mer-ate
>>> %\stopexceptions
>>>
>>> \starttext \hsize=1mm
>>> would synthesize enumerate
>>> \stoptext
>>
>> On windows the hyphenation is correct, I just updated context and
>> tested. 
>>
>> (I get errors in the example with the simplefonts module, probably I
>> didn't update the module correctly).
> 
> Hans,
> 
> would it be possible that only Windows has the latest LuaTeX binary
> (0.98.0)?
> 
> Linux 32bit has luatex-0.95 and I get wrong hyphenations.

I have LuaTeX, Version 0.95.0 (TeX Live 2016) on openSUSE 13.2 (Harlequin) 
(x86_64) and correct hyphenations.  Wolfgangs minimal example

\starttext \hsize=1mm
would synthesize enumerate
\stoptext

produces

would
syn-
the-
size
enu-
mer-
ate

which is what pdfTeX produces as well for a similar example.

> 
> Just in case it helps,
> 
> 
> Pablo
> 

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-08-02 Thread Robert Blackstone

On 1 Aug 2016, at 14:40 , Hans Hagen <pra...@wxs.nl>
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] Hyphenation errors (again or still) in
>   recent mkiv
> Message-ID: <d887e5a3-1195-b141-623f-897f7540f...@wxs.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> On 8/1/2016 11:52 AM, Wolfgang Schuster wrote:
>>> Robert Blackstone <mailto:blackstone.rob...@gmail.com>
>>> 1. August 2016 um 11:02
>>> On 31 Jul 2016, at 21:06 , Hans Hagen <pra...@wxs.nl>
>>> 
>>> 
>>> Hi Hans,
>>> 
>>> Here is an example:
>>> 
>>> %
>>> 
>>> \mainlanguage[en]
>>> \usemodule[simplefonts]
>>> \setmainfont[Verdana]
>>> \setupbodyfont[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 wondering, as on my machine and luigi's things run ok .. can this 
> be a osx binary issue?
> 
> Hans

My apologies for not answering this particular question, other than by saying 
that indeed I work on a Mac, two in fact, one with  OSX 10.9.5 Mavericks, the 
other on OS X 10.11.5 El Capitan.
No difference in this respect: they produce the same hyphenation errors in an 
English text.

To complicate (perhaps) matters a bit: I did some tests with German, French and 
Italian texts. Compilation with different mkiv - versions produced no 
differences and no hyphenation errors.
So far I found hyhpenation errors only in English texts compiled with recent 
mkiv's  on a Mac.

I hope this helps to find a remedy.

Best regards,

Robert Blackstone





___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-08-01 Thread Pablo Rodriguez
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
>>
>> \starttext \hsize=1mm
>> would synthesize enumerate
>> \stoptext
> 
> On windows the hyphenation is correct, I just updated context and
> tested. 
> 
> (I get errors in the example with the simplefonts module, probably I
> didn't update the module correctly).

Hans,

would it be possible that only Windows has the latest LuaTeX binary
(0.98.0)?

Linux 32bit has luatex-0.95 and I get wrong hyphenations.

Just in case it helps,


Pablo
-- 
http://www.ousia.tk
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-08-01 Thread Hans Hagen

On 8/1/2016 3:32 PM, Herbert Voss wrote:

Am 01.08.2016 um 09:45 schrieb Hans Hagen:

On 8/1/2016 9:22 AM, Jan Willem Flamma wrote:

Hi Pablo,

I wasn’t aware of the \hyphenatedword feature. Thanks for sharing.



mtxrun --script patterns --hyphenate schematic


Can I change the language or do I have to choose a specific
pattern file?


--language=de

(it uses context pattern databases but these use regular patterns)


Herbert



hyphenator  |
hyphenator  | . s c h e m a t i c .   . s c h e m a t i c .
hyphenator  |  0s0c0h2 0 0 0 2 0 0 0 0 0 0
hyphenator  |2c0h0 0 2 0 2 0 0 0 0 0 0
hyphenator  |0c0h0e2   0 2 0 2 2 0 0 0 0 0
hyphenator  |  1m0a0   0 2 0 2 2 0 0 0 0 0
hyphenator  |0a0t1i0c0 0 2 0 2 2 0 0 1 0 0
hyphenator  | .0s2c0h2e2m0a0t1i0c0.   . s c h e m a t-i c .
hyphenator  |
mtx-patterns| us 3 3 : schematic : schematic



I used an online hyphenation tool (English US) because it’s too tricky
for me too!
Using English UK the words maintenance and integrated are indeed
correctly hyphenated. So I jumped to conclusions there.

What remains is that ‘schematic' is incorrectly hyphenated as
'sc-hematic’.
Another example is the word ‘cards’, which I see hyphenated as
'ca-rds’ but I’m unable to reproduce it in a MWE for now.

Regards,
Jan Willem




On 31 jul. 2016, at 21:06, Pablo Rodriguez  wrote:

On 07/31/2016 08:40 PM, Jan Willem Flamma wrote:

Dear all,

I can confirm it behaves incorrectly on ConTeXt  ver: 2016.07.30
00:26 MKIV beta


Hi Jan Willem,

are patterns for Brittish English better?

   \starttext
   \hyphenatedword{schematic, maintenance and integrated
   beginning procedure adequately style}


   \uk\hyphenatedword{schematic, maintenance and integrated
  beginning procedure adequately style}
   \stoptext

Sorry, but English hyphenation is too tricky for me.

Just in case it helps,


Pablo
--
http://www.ousia.tk
___


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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




___


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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___








___

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-08-01 Thread Herbert Voss

Am 01.08.2016 um 09:45 schrieb Hans Hagen:

On 8/1/2016 9:22 AM, Jan Willem Flamma wrote:

Hi Pablo,

I wasn’t aware of the \hyphenatedword feature. Thanks for sharing.



mtxrun --script patterns --hyphenate schematic


Can I change the language or do I have to choose a specific
pattern file?

Herbert



hyphenator  |
hyphenator  | . s c h e m a t i c .   . s c h e m a t i c .
hyphenator  |  0s0c0h2 0 0 0 2 0 0 0 0 0 0
hyphenator  |2c0h0 0 2 0 2 0 0 0 0 0 0
hyphenator  |0c0h0e2   0 2 0 2 2 0 0 0 0 0
hyphenator  |  1m0a0   0 2 0 2 2 0 0 0 0 0
hyphenator  |0a0t1i0c0 0 2 0 2 2 0 0 1 0 0
hyphenator  | .0s2c0h2e2m0a0t1i0c0.   . s c h e m a t-i c .
hyphenator  |
mtx-patterns| us 3 3 : schematic : schematic



I used an online hyphenation tool (English US) because it’s too tricky
for me too!
Using English UK the words maintenance and integrated are indeed
correctly hyphenated. So I jumped to conclusions there.

What remains is that ‘schematic' is incorrectly hyphenated as
'sc-hematic’.
Another example is the word ‘cards’, which I see hyphenated as
'ca-rds’ but I’m unable to reproduce it in a MWE for now.

Regards,
Jan Willem




On 31 jul. 2016, at 21:06, Pablo Rodriguez  wrote:

On 07/31/2016 08:40 PM, Jan Willem Flamma wrote:

Dear all,

I can confirm it behaves incorrectly on ConTeXt  ver: 2016.07.30
00:26 MKIV beta


Hi Jan Willem,

are patterns for Brittish English better?

   \starttext
   \hyphenatedword{schematic, maintenance and integrated
   beginning procedure adequately style}


   \uk\hyphenatedword{schematic, maintenance and integrated
  beginning procedure adequately style}
   \stoptext

Sorry, but English hyphenation is too tricky for me.

Just in case it helps,


Pablo
--
http://www.ousia.tk
___

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



___

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___







___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-08-01 Thread Ulrike Fischer
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
> \stoptext

On windows the hyphenation is correct, I just updated context and
tested. 

(I get errors in the example with the simplefonts module, probably I
didn't update the module correctly).


-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-08-01 Thread Robert Blackstone

On 1 Aug 2016, at 12:00 , Hans Hagen 
>>> 
>>> On 7/31/2016 12:57 PM, Robert Blackstone wrote:
 Dear all,
 
 In the setupfile of my project I have \mainlanguage[en]. The font used is 
 Verdana.
 With mkiv versions till october 2015 the hyphenation of English words was 
 always correct.
 
 The same files compiled with mkiv of july 2016 (version 2016.07.18 16;26) 
 give hyphenations that are definitely wrong.
 Some examples: begi-nning, pr-ocedure, adequ-ately, st-yle
 
 I made some tests with Linux Libertine sans and here also the earlier 
 mkiv's gave correct hyphenations, the july version wrong ones.
 
 So it seems that ref. hyphenation something is wrong with this 
 mkiv-version.  Or do I now have to use something other than  
 \mainlanguage[en] ?
>>> 
>>> no example so no solution
>>> 
>>> Hans
>> 
>> 
>> Hi Hans,
>> 
>> Here is an example:
>> 
>> %
>> 
>> \mainlanguage[en]
>> \usemodule[simplefonts]
>> \setmainfont[Verdana]
>> \setupbodyfont[10pt]
>> \contextversion
>> \showgrid
>> 
>> \starttext
>> \input knuth
>> \medskip
>> \input tufte
>> \stoptext
>> 
>> %
>> 
>> With mkiv version 2015.10.09 21:28 there are no hyphenation errors.
>> With mkiv version 2016.07.18 16:46 the following errors occur: wo-uld (line 
>> 6), synth-esize (line 13), enum-erate (line 18)
>> I mentioned some more errors in my original mail, see above.
> 
> I get
> 
> Thus, I came to the conclusion that the designer of a new system must 
> not only be
> the implementer and first large--scale user; the designer should also 
> write the first
> user manual.
> The separation of any of these four components would have hurt T E X 
> significantly. If
> I had not participated fully in all these activities, literally hundreds 
> of improvements
> would never have been made, because I would never have thought of them 
> or per-
> ceived why they were important.
> But a system cannot be successful if it is too strongly influenced by a 
> single person.
> Once the initial design is complete and fairly robust, the real test 
> begins as people
> with many different viewpoints undertake their own experiments.
> We thrive in information--thick worlds because of our marvelous and 
> everyday ca-
> pacity to select, edit, single out, structure, highlight, group, pair, 
> merge, harmo-
> nize, synthesize, focus, organize, condense, reduce, boil down, choose, 
> categorize,
> catalog, classify, list, abstract, scan, look into, idealize, isolate, 
> discriminate, dis-
> tinguish, screen, pigeonhole, pick over, sort, integrate, blend, 
> inspect, filter, lump,
> skip, smooth, chunk, average, approximate, cluster, aggregate, outline, 
> summarize,
> itemize, review, dip into, flip through, browse, glance into, leaf 
> through, skim, re-
> fine, enumerate, glean, synopsize, winnow the wheat from the chaff and 
> separate the
> sheep from the goats.

Hi Hans,
I'm afraid I'm lost here.
When I copy what you write you get and paste it into my example I still get, 
with Verdana 10 pt, no hyphenation errors with mkiv version 2015.10.09 21:28 
and some with mkiv version 2016.07.18 16:46: marv-elous and di-scriminate.

So doesn't it show that at least the two mkiv-versions differ in this respect 
and that when using the new version something extra or different has to be done 
in the setups to get the correct hyphenations?
Fortunately I still have kept some of the older ConTeXt-versions, so my project 
will not suffer from hyphenation error. But I suspect that reliance on older 
versions should not have to be necessary.

Best regards,
Robert Blackstone




___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-08-01 Thread Hans Hagen

On 8/1/2016 11:52 AM, Wolfgang Schuster wrote:

Robert Blackstone 
1. August 2016 um 11:02
On 31 Jul 2016, at 21:06 , Hans Hagen 


Hi Hans,

Here is an example:

%

\mainlanguage[en]
\usemodule[simplefonts]
\setmainfont[Verdana]
\setupbodyfont[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 wondering, as on my machine and luigi's things run ok .. can this 
be a osx binary issue?


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-08-01 Thread Wolfgang Schuster

Robert Blackstone 
1. August 2016 um 11:02
On 31 Jul 2016, at 21:06 , Hans Hagen 


Hi Hans,

Here is an example:

%

\mainlanguage[en]
\usemodule[simplefonts]
\setmainfont[Verdana]
\setupbodyfont[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

Wolfgang
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-08-01 Thread Hans Hagen

On 8/1/2016 11:02 AM, Robert Blackstone wrote:


On 31 Jul 2016, at 21:06 ,  Hans Hagen 


On 7/31/2016 12:57 PM, Robert Blackstone wrote:

Dear all,

In the setupfile of my project I have \mainlanguage[en]. The font used is 
Verdana.
With mkiv versions till october 2015 the hyphenation of English words was 
always correct.

The same files compiled with mkiv of july 2016 (version 2016.07.18 16;26) give 
hyphenations that are definitely wrong.
Some examples: begi-nning, pr-ocedure, adequ-ately, st-yle

I made some tests with Linux Libertine sans and here also the earlier mkiv's 
gave correct hyphenations, the july version wrong ones.

So it seems that ref. hyphenation something is wrong with this mkiv-version.  
Or do I now have to use something other than  \mainlanguage[en] ?


no example so no solution

Hans



Hi Hans,

Here is an example:

%

\mainlanguage[en]
\usemodule[simplefonts]
\setmainfont[Verdana]
\setupbodyfont[10pt]
\contextversion
\showgrid

\starttext
\input knuth
\medskip
\input tufte
\stoptext

%

With mkiv version 2015.10.09 21:28 there are no hyphenation errors.
With mkiv version 2016.07.18 16:46 the following errors occur: wo-uld (line 6), 
synth-esize (line 13), enum-erate (line 18)
I mentioned some more errors in my original mail, see above.


I get

Thus, I came to the conclusion that the designer of a new system must 
not only be
the implementer and first large--scale user; the designer should also 
write the first

user manual.
The separation of any of these four components would have hurt T E X 
significantly. If
I had not participated fully in all these activities, literally hundreds 
of improvements
would never have been made, because I would never have thought of them 
or per-

ceived why they were important.
But a system cannot be successful if it is too strongly influenced by a 
single person.
Once the initial design is complete and fairly robust, the real test 
begins as people

with many different viewpoints undertake their own experiments.
We thrive in information--thick worlds because of our marvelous and 
everyday ca-
pacity to select, edit, single out, structure, highlight, group, pair, 
merge, harmo-
nize, synthesize, focus, organize, condense, reduce, boil down, choose, 
categorize,
catalog, classify, list, abstract, scan, look into, idealize, isolate, 
discriminate, dis-
tinguish, screen, pigeonhole, pick over, sort, integrate, blend, 
inspect, filter, lump,
skip, smooth, chunk, average, approximate, cluster, aggregate, outline, 
summarize,
itemize, review, dip into, flip through, browse, glance into, leaf 
through, skim, re-
fine, enumerate, glean, synopsize, winnow the wheat from the chaff and 
separate the

sheep from the goats.



--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-08-01 Thread Robert Blackstone

On 31 Jul 2016, at 21:06 ,  Hans Hagen 
> 
> On 7/31/2016 12:57 PM, Robert Blackstone wrote:
>> Dear all,
>> 
>> In the setupfile of my project I have \mainlanguage[en]. The font used is 
>> Verdana.
>> With mkiv versions till october 2015 the hyphenation of English words was 
>> always correct.
>> 
>> The same files compiled with mkiv of july 2016 (version 2016.07.18 16;26) 
>> give hyphenations that are definitely wrong.
>> Some examples: begi-nning, pr-ocedure, adequ-ately, st-yle
>> 
>> I made some tests with Linux Libertine sans and here also the earlier mkiv's 
>> gave correct hyphenations, the july version wrong ones.
>> 
>> So it seems that ref. hyphenation something is wrong with this mkiv-version. 
>>  Or do I now have to use something other than  \mainlanguage[en] ?
> 
> no example so no solution
> 
> Hans


Hi Hans,

Here is an example:

%

\mainlanguage[en]
\usemodule[simplefonts]
\setmainfont[Verdana]
\setupbodyfont[10pt]
\contextversion
\showgrid

\starttext
\input knuth
\medskip
\input tufte
\stoptext

%

With mkiv version 2015.10.09 21:28 there are no hyphenation errors.
With mkiv version 2016.07.18 16:46 the following errors occur: wo-uld (line 6), 
synth-esize (line 13), enum-erate (line 18) 
I mentioned some more errors in my original mail, see above.

Best regards,

Robert Blackstone




___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-08-01 Thread Hans Hagen

On 8/1/2016 9:22 AM, Jan Willem Flamma wrote:

Hi Pablo,

I wasn’t aware of the \hyphenatedword feature. Thanks for sharing.

I used an online hyphenation tool (English US) because it’s too tricky for me 
too!
Using English UK the words maintenance and integrated are indeed correctly 
hyphenated. So I jumped to conclusions there.

What remains is that ‘schematic' is incorrectly hyphenated as 'sc-hematic’.
Another example is the word ‘cards’, which I see hyphenated as 'ca-rds’ but I’m 
unable to reproduce it in a MWE for now.


maybe wrong hyphenation min values?


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-08-01 Thread Hans Hagen

On 8/1/2016 9:22 AM, Jan Willem Flamma wrote:

Hi Pablo,

I wasn’t aware of the \hyphenatedword feature. Thanks for sharing.


>mtxrun --script patterns --hyphenate schematic

hyphenator  |
hyphenator  | . s c h e m a t i c .   . s c h e m a t i c .
hyphenator  |  0s0c0h2 0 0 0 2 0 0 0 0 0 0
hyphenator  |2c0h0 0 2 0 2 0 0 0 0 0 0
hyphenator  |0c0h0e2   0 2 0 2 2 0 0 0 0 0
hyphenator  |  1m0a0   0 2 0 2 2 0 0 0 0 0
hyphenator  |0a0t1i0c0 0 2 0 2 2 0 0 1 0 0
hyphenator  | .0s2c0h2e2m0a0t1i0c0.   . s c h e m a t-i c .
hyphenator  |
mtx-patterns| us 3 3 : schematic : schematic



I used an online hyphenation tool (English US) because it’s too tricky for me 
too!
Using English UK the words maintenance and integrated are indeed correctly 
hyphenated. So I jumped to conclusions there.

What remains is that ‘schematic' is incorrectly hyphenated as 'sc-hematic’.
Another example is the word ‘cards’, which I see hyphenated as 'ca-rds’ but I’m 
unable to reproduce it in a MWE for now.

Regards,
Jan Willem




On 31 jul. 2016, at 21:06, Pablo Rodriguez  wrote:

On 07/31/2016 08:40 PM, Jan Willem Flamma wrote:

Dear all,

I can confirm it behaves incorrectly on ConTeXt  ver: 2016.07.30 00:26 MKIV beta


Hi Jan Willem,

are patterns for Brittish English better?

   \starttext
   \hyphenatedword{schematic, maintenance and integrated
   beginning procedure adequately style}


   \uk\hyphenatedword{schematic, maintenance and integrated
  beginning procedure adequately style}
   \stoptext

Sorry, but English hyphenation is too tricky for me.

Just in case it helps,


Pablo
--
http://www.ousia.tk
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-08-01 Thread Jan Willem Flamma
Hi Pablo,

I wasn’t aware of the \hyphenatedword feature. Thanks for sharing.

I used an online hyphenation tool (English US) because it’s too tricky for me 
too!
Using English UK the words maintenance and integrated are indeed correctly 
hyphenated. So I jumped to conclusions there.

What remains is that ‘schematic' is incorrectly hyphenated as 'sc-hematic’.
Another example is the word ‘cards’, which I see hyphenated as 'ca-rds’ but I’m 
unable to reproduce it in a MWE for now.

Regards,
Jan Willem



> On 31 jul. 2016, at 21:06, Pablo Rodriguez  wrote:
> 
> On 07/31/2016 08:40 PM, Jan Willem Flamma wrote:
>> Dear all,
>> 
>> I can confirm it behaves incorrectly on ConTeXt  ver: 2016.07.30 00:26 MKIV 
>> beta
> 
> Hi Jan Willem,
> 
> are patterns for Brittish English better?
> 
>\starttext
>\hyphenatedword{schematic, maintenance and integrated
>beginning procedure adequately style}
> 
> 
>\uk\hyphenatedword{schematic, maintenance and integrated
>   beginning procedure adequately style}
>\stoptext
> 
> Sorry, but English hyphenation is too tricky for me.
> 
> Just in case it helps,
> 
> 
> Pablo
> -- 
> http://www.ousia.tk
> ___
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-07-31 Thread Pablo Rodriguez
On 07/31/2016 08:40 PM, Jan Willem Flamma wrote:
> Dear all,
> 
> I can confirm it behaves incorrectly on ConTeXt  ver: 2016.07.30 00:26 MKIV 
> beta

Hi Jan Willem,

are patterns for Brittish English better?

\starttext
\hyphenatedword{schematic, maintenance and integrated
beginning procedure adequately style}


\uk\hyphenatedword{schematic, maintenance and integrated
   beginning procedure adequately style}
\stoptext

Sorry, but English hyphenation is too tricky for me.

Just in case it helps,


Pablo
-- 
http://www.ousia.tk
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-07-31 Thread Jan Willem Flamma
Dear all,

I can confirm it behaves incorrectly on ConTeXt  ver: 2016.07.30 00:26 MKIV beta

Below a MWE with some example sentences where the words schematic, maintenance 
and integrated are incorrect hyphenated

\mainlanguage[en]
\setuppapersize[A4][A4] 


\setuplayout
[height=middle,
 width=middle,
 backspace=1.25in,
 topspace=0.5in,
 headerdistance=0cm]

\definefontfamily [mainface] [sans]  [DejaVu Sans]
\setupbodyfont[mainface,sans,9pt]

\starttext
The following gives a sequence of events describing what happens when the ram 
close function is activated from one of the control panels. Figure 4.9 provides 
a simplified schematic of the hydraulic control system for activating the ram 
close function.

Test programs can include visual inspections, functional operations, pressure 
tests, maintenance practices and drills.

Subsea BOP systems include choke and kill lines built into the BOP stack and 
LMRP and integrated with the marine riser system. 
\stoptext

Kind regards,
Jan Willem Flamma



> On 31 jul. 2016, at 16:51, Hans Hagen  wrote:
> 
> On 7/31/2016 12:57 PM, Robert Blackstone wrote:
>> Dear all,
>> 
>> In the setupfile of my project I have \mainlanguage[en]. The font used is 
>> Verdana.
>> With mkiv versions till october 2015 the hyphenation of English words was 
>> always correct.
>> 
>> The same files compiled with mkiv of july 2016 (version 2016.07.18 16;26) 
>> give hyphenations that are definitely wrong.
>> Some examples: begi-nning, pr-ocedure, adequ-ately, st-yle
>> 
>> I made some tests with Linux Libertine sans and here also the earlier mkiv's 
>> gave correct hyphenations, the july version wrong ones.
>> 
>> So it seems that ref. hyphenation something is wrong with this mkiv-version. 
>>  Or do I now have to use something other than  \mainlanguage[en] ?
> 
> no example so no solution
> 
> Hans
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation errors (again or still) in recent mkiv

2016-07-31 Thread Hans Hagen

On 7/31/2016 12:57 PM, Robert Blackstone wrote:

Dear all,

In the setupfile of my project I have \mainlanguage[en]. The font used is 
Verdana.
With mkiv versions till october 2015 the hyphenation of English words was 
always correct.

The same files compiled with mkiv of july 2016 (version 2016.07.18 16;26) give 
hyphenations that are definitely wrong.
Some examples: begi-nning, pr-ocedure, adequ-ately, st-yle

I made some tests with Linux Libertine sans and here also the earlier mkiv's 
gave correct hyphenations, the july version wrong ones.

So it seems that ref. hyphenation something is wrong with this mkiv-version.  
Or do I now have to use something other than  \mainlanguage[en] ?


no example so no solution

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation of chemical names

2016-02-07 Thread Hans Hagen

On 2/6/2016 9:19 PM, Alan BRASLAU wrote:

ConTeXt has troubles hyphenating chemical names, which in organic
chemistry  can be funny things such as
N-(4-n-alkoxybenzylidene)-4’-alkylaniline.
The names can get much worse...

The rules for hyphenating in chemistry are well defined. Without
putting specific hyphenating hints into the names themselves, I do not
know how to go about adding these rules into ConTeXt. Of course, they
can differ slightly by language, but the system is pretty much the same.

Does anyone know how to deal with this?

Maybe we need special rules that get applied within \chemical{}?


sure, we can make a rule set, given that these names are somehow tagged 
.. just come up with the rules


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation list ignored

2016-02-02 Thread Hans Hagen

On 2/1/2016 10:28 AM, Francisco Gracia wrote:

It has taken me some time to conjecture that *mwe* would probably mean
*minimal working example* and somewhat more to try to concoct something
that could pass for it, but here it is, in the attached file
*mis-hyph.tex*. I hope not to have incurred in any gross mistake.

Attached are also three other files (*exhibit-n.pdf*) which show the
results of its compilation under three different circumstances. These
circumstances are described at the end of each typeset text.
Mishyphenated words are underlined.

Inept as it is, this example has proved to me that I was mistaken in my
initial supposition that the problem was related to the importing
mechanism of a separate file containing the exceptions' list. The
difficulty seems now to lie deeper into the hyphenation machinery itself.

I would be glad if it could be of any help to solve it.


fixed in luatex 0.89 (end of week release)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation list ignored

2016-01-31 Thread Hans Hagen

On 1/27/2016 1:18 PM, Francisco Gracia wrote:

This is to report a problem I am presently experiencing with Context.

The symptom is that the contents of an hyphenation list, implemented as
an outstanding file, I use for typesetting a lating text are no longer
taken into account when performing the hyphenation operations.

This happens with the current version of Context and apparently has been
operative during the last month or two. I have checked older jobs
performed in preceding months and the process worked as it should.
Nothing has been altered in the way of working on this side or in the
running script.


no mwe given

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation, OTF font and tagging

2015-11-09 Thread Rik Kabel

On 2015-11-09 07:34, Thomas A. Schmitz wrote:

On 11/09/2015 08:42 AM, Christoph Reller wrote:

MWE:

\setuptagging[state=start] %<- correct when commenting this line
\starttypescript[sans][myfont]
\definefontsynonym[Sans][file:MyriadPro-Regular]
\stoptypescript
\definetypeface[Body][ss][sans][myfont]
\setupbodyfont[Body,ss,10pt]
\starttext
\input knuth
\input tufte
\input reich
\input linden
\input darwin
\stoptext

Any feedback is welcome. @Hans: I can provide the Myriad font if this 
helps.


It's not specific to Myriad, I get the same problem with other fonts 
as well, such as Adobe Garamond or Optima (but not Minion Pro or 
Sabon). It's a bug with the new font loading mechanism; if you add


\usemodule [oldotf]

to your document, the problem goes away. Hans will probably write 
"fixed in next beta."


Thomas
And this appears to be the same issue I reported (on 20151022) with 
tagging and ebgaramond, so no need for an Adobe-licensed font for testing.


--
Rik
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation, OTF font and tagging

2015-11-09 Thread Thomas A. Schmitz

On 11/09/2015 08:42 AM, Christoph Reller wrote:

MWE:

\setuptagging[state=start] %<- correct when commenting this line
\starttypescript[sans][myfont]
\definefontsynonym[Sans][file:MyriadPro-Regular]
\stoptypescript
\definetypeface[Body][ss][sans][myfont]
\setupbodyfont[Body,ss,10pt]
\starttext
\input knuth
\input tufte
\input reich
\input linden
\input darwin
\stoptext

Any feedback is welcome. @Hans: I can provide the Myriad font if this helps.


It's not specific to Myriad, I get the same problem with other fonts as 
well, such as Adobe Garamond or Optima (but not Minion Pro or Sabon). 
It's a bug with the new font loading mechanism; if you add


\usemodule [oldotf]

to your document, the problem goes away. Hans will probably write "fixed 
in next beta."


Thomas
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] hyphenation exceptions?

2015-07-07 Thread Pablo Rodriguez
On 07/07/2015 05:41 PM, Arthur Reutenauer wrote:
 [...]
   That's because the word you're trying to hyphenate is
 Amsterdam-Buitenveldert, not Amsterdam.  Compound words are by
 default hyphenated only at the hyphen in TeX.

\setbreakpoints[compound] works in the following sample:

\language[nl]
\setbreakpoints[compound]
\starttext
\hyphenatedword{Amsterdam--Buitenveldert}
\stoptext

I don’t know whether it would make sense to use an en-dash for compound
words in Dutch.

I hope it helps now,


Pablo
-- 
http://www.ousia.tk
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] hyphenation exceptions?

2015-07-07 Thread Arthur Reutenauer
On Tue, Jul 07, 2015 at 03:29:11PM +, Meer, H. van der wrote:
 The \hyphenatedword works here too. But it does not work out when the word 
 Amsterdam occurs in the text. See tthe two examples. In the first Amsterdam 
 is not broken according to the \hyphenation{Am-ster-dam}-rule. In the second 
 example the linebreak is forced by the explicit use of Am\-ster\-dam in the 
 source text.

  That's because the word you're trying to hyphenate is
Amsterdam-Buitenveldert, not Amsterdam.  Compound words are by
default hyphenated only at the hyphen in TeX.

Arthur
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] hyphenation exceptions?

2015-07-07 Thread Meer, H. van der
Indeed, the combination Amsterdam-Buitenveldert is the culprit.
The solution therefore is to use (it is ConTeXt afterall) 
Amsterdam|-|Buitenveldert, then the word Amsterdam doesn't even needs an 
exception.
Thanks for the help.

Hans van der Meer


On 07 Jul 2015, at 18:00, Pablo Rodriguez oi...@gmx.esmailto:oi...@gmx.es 
wrote:

On 07/07/2015 05:41 PM, Arthur Reutenauer wrote:
[...]
 That's because the word you're trying to hyphenate is
Amsterdam-Buitenveldert, not Amsterdam.  Compound words are by
default hyphenated only at the hyphen in TeX.

\setbreakpoints[compound] works in the following sample:

   \language[nl]
   \setbreakpoints[compound]
   \starttext
   \hyphenatedword{Amsterdam--Buitenveldert}
   \stoptext

I don’t know whether it would make sense to use an en-dash for compound
words in Dutch.

I hope it helps now,


Pablo

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] hyphenation exceptions?

2015-07-07 Thread Meer, H. van der
The \hyphenatedword works here too. But it does not work out when the word 
Amsterdam occurs in the text. See tthe two examples. In the first Amsterdam is 
not broken according to the \hyphenation{Am-ster-dam}-rule. In the second 
example the linebreak is forced by the explicit use of Am\-ster\-dam in the 
source text.

So it doesn't work when occurring in the text.

[cid:3FCD961E-655E-4A3A-B889-D6CDB564D4F8@dynamic.ziggo.nl]

[cid:2F0C9076-27B7-4CD4-9965-23FC2141A1E6@dynamic.ziggo.nl]

met vriendelijke groet
Hans van der Meer


On 07 Jul 2015, at 16:37, Pablo Rodriguez oi...@gmx.esmailto:oi...@gmx.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, both options work for me:

   \language[nl]
   %~ \startexceptions[nl]
   %~ Ams-terd-am
   %~ \stopexceptions
   \hyphenation{Ams-terd-am}
   \starttext
   \hyphenatedword{Amsterdam}
   \stoptext

BTW, I have to change the hyphenation points, since the proposed
exception is the default hyphenation in Dutch.

Or how did you know that the exceptions weren’t working?

I hope it helps,


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] hyphenation exceptions?

2015-07-07 Thread Pablo Rodriguez
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, both options work for me:

\language[nl]
%~ \startexceptions[nl]
%~ Ams-terd-am
%~ \stopexceptions
\hyphenation{Ams-terd-am}
\starttext
\hyphenatedword{Amsterdam}
\stoptext

BTW, I have to change the hyphenation points, since the proposed
exception is the default hyphenation in Dutch.

Or how did you know that the exceptions weren’t working?

I hope it helps,


Pablo
-- 
http://www.ousia.tk
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation documentation

2013-04-27 Thread Marco Patzer
On 2013–04–20 Sietse Brouwer wrote:

 1. how do I protect a single instance of a word against hyphenation?
 Does ConTeXt, like LaTeX, use \hbox{myfragileword}, or something
 different?

You can enclose it in vertical bars:

  |thiswordwillnotbehyphenated|

However, I'd prefer the new \unhyphenated command, it's declarative
and doesn't interfere with \asciimode.

Marco


signature.asc
Description: Digital signature
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation documentation

2013-04-27 Thread Wolfgang Schuster

Am 27.04.2013 um 15:55 schrieb Marco Patzer home...@lavabit.com:

 On 2013–04–20 Sietse Brouwer wrote:
 
 1. how do I protect a single instance of a word against hyphenation?
 Does ConTeXt, like LaTeX, use \hbox{myfragileword}, or something
 different?
 
 You can enclose it in vertical bars:
 
  |thiswordwillnotbehyphenated|

Even though this works it’s only side effect of the |…| and not meant to have a 
unbreakable word.

The |…| commands are the old method to have line breaks after certain symbols 
and can in most cases be replaced with \setbreakpoint etc.

Wolfgang
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation documentation

2013-04-21 Thread Wolfgang Schuster

Am 20.04.2013 um 22:05 schrieb Sietse Brouwer sbbrou...@gmail.com:

 Hello all,
 
 I've just pulled together some questions of mine and their answers,
 and written them up into a hyphenation QA.
 http://wiki.contextgarden.net/Hyphenation
 http://wiki.contextgarden.net/Command/definebreakpoint
 
 Unfortunately, there are still some holes in the documentation I
 wrote. Questions I still have, and which I now pose to the list:
 
 1. how do I protect a single instance of a word against hyphenation?
 Does ConTeXt, like LaTeX, use \hbox{myfragileword}, or something
 different?

No, you have to use \hbox too but I think a command with a speaking
name would be better.

 2. In the command \definebreakpoint, what do these keys do? I can't
 get them to do anything (MWE below)
 ** left
 ** middle
 ** right

The left, right and middle keys are used in combination with “type=5”.

\definebreakpoints[test]

\definebreakpoint [test] [?] [type=5,left=L,right=R,middle=M]

\setbreakpoints[test]

\setuppapersize[A7]

\starttext \showframe
???????\par
\stoptext

 3. Is there perhaps a bug in breakpoints of type 2 and 3. (MWE below.)
 The key 'type' seems to control where hyphens appear. If 1 is a
 hyphenation character of type 1, etc, this is the observed behaviour
 (`/` is the linebreak):
 ...1...1  / ...
 ...2...   / 2-...   % I would expect: ...2... / -2...
 ...3...-3 / ... % I would expect: ...3...3- / ...
 ...4...4  / 4...
 ../ ... % breakpoint of type 5 just disappears

Type 2 and 3 are used for braces to have line breaks which produce

   (xxx-)
   xxx

and

   xxx
   (-xxx)

 If this behaviour is not a bug: is there a way to set a breakpoint X
 that produces ...X...X- / …?


You have to use type 5 to create a rule for this, do you have a example
where this is needed besides the one mentioned in the duden [1] example
for a closing bracket.

[1] 
http://www.duden.de/sprachwissen/sprachratgeber/klammern-und-bindestrich-bei-der-worttrennung

Wolfgang
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation documentation

2013-04-21 Thread Hans Hagen

On 4/21/2013 10:26 AM, Wolfgang Schuster wrote:

 No, you have to use \hbox too but I think a command with a speaking

name would be better.


\unexpanded\def\unhyphenated
  {\groupedcommand{\lefthyphenmin\maxdimen}\donothing}

I'll add that.

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation documentation

2013-04-21 Thread Sietse Brouwer
Hi Wolfgang, hi Hans,

Thanks, I've updated the documentation accordingly.

 You have to use type 5 to create a rule for this,
 do you have a example where this is needed besides
 the one mentioned in the duden [1] example for a
 closing bracket.

No, this was just a gut reaction. I can see the sense of the other
way, too, and I couldn't hope to compete with the Duden for authority.
;-)

 \unexpanded\def\unhyphenated
   {\groupedcommand{\lefthyphenmin\maxdimen}\donothing}

\unhyphenated also documented. The name is inconsistent with
\setupalign[nothyphenated];
perhaps \nothyphenated is a better name? (You could also add it as a
synonym, but it is cleaner to have only one name, I think.)

Cheers,
Sietse

On 21 April 2013 12:43, Hans Hagen pra...@wxs.nl wrote:
 On 4/21/2013 10:26 AM, Wolfgang Schuster wrote:

 No, you have to use \hbox too but I think a command with a speaking

 name would be better.


 \unexpanded\def\unhyphenated
   {\groupedcommand{\lefthyphenmin\maxdimen}\donothing}

 I'll add that.

 Hans


 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -

 ___
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation documentation

2013-04-21 Thread Hans Hagen

On 4/21/2013 7:27 PM, Sietse Brouwer wrote:

Hi Wolfgang, hi Hans,

Thanks, I've updated the documentation accordingly.


You have to use type 5 to create a rule for this,
do you have a example where this is needed besides
the one mentioned in the duden [1] example for a
closing bracket.


No, this was just a gut reaction. I can see the sense of the other
way, too, and I couldn't hope to compete with the Duden for authority.
;-)


\unexpanded\def\unhyphenated
   {\groupedcommand{\lefthyphenmin\maxdimen}\donothing}


\unhyphenated also documented. The name is inconsistent with
\setupalign[nothyphenated];
perhaps \nothyphenated is a better name? (You could also add it as a
synonym, but it is cleaner to have only one name, I think.)


that would be more like a directive: {.. \nothyphenated ...}

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hyphenation in German

2012-11-15 Thread Peter Münster
On Thu, Nov 15 2012, H. Özoguz wrote:

 context does not know how to hyphenate a word

Hi,

Could you give an example please?

Thanks,
-- 
   Peter
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hyphenation in German

2012-11-15 Thread Wolfgang Schuster

Am 15.11.2012 um 14:13 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Hi there,
 
 I always use
 
 \mainlanguage [de]
 
 But still, many breakings and stretches are ugly, because context does not 
 know how to hyphenate a word. Of course I can add \- to help, but is there a 
 way to 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 \setbreakpoints[compound] to your 
document.

Wolfgang
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


  1   2   3   >