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 problem using |-| in composed words -- bug?

2009-11-25 Thread Oliver Heins
To comment on myself:

Oliver Heins o...@sopos.org writes:

 Hi,

 when using |-| in a word as a non exclusive dash, this produces wrong
 hyphenation.

[...]

 longer
 -word
 -to
 -be
 -hy-
 phen-
 ated

This is a workaround:

\definetextmodediscretionary {-}
  {\prewordbreak\discretionary{\hbox{-}}{}{\hbox{-}}\prewordbreak}

However, \setuphyphenmark[sign=normal] still does not work correctly.

Regards,
 olli

-- 
Oliver Heins he...@sopos.orghttp://oliverheins.net/
http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8
http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
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 problem using |-| in composed words -- bug?

2009-11-25 Thread Taco Hoekwater
Hi olli,

Oliver Heins wrote:
 To comment on myself:
 
 Oliver Heins o...@sopos.org writes:
 
 Hi,

 when using |-| in a word as a non exclusive dash, this produces wrong
 hyphenation.
 

Verified. Same problems here, in both mkii and mkiv.

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


Re: [NTG-context] hyphenation problem

2008-05-12 Thread Hans Hagen
Hans van der Meer wrote:
 In dutch hyphenated accented characters loose there accent when  
 hyphenated: oö becomes o-o instead of o-ö. But the latter happens when  
 I process the code below. It happens both in mkii and mkiv. The number  
 of a's must be chosen so as to generate hyphenation between the two  
 o's. I tried this also with another font than lmodern, but got the  
 same result. What happened to (dutch) hyphenation?
 
 ConTeXt  ver: 2008.04.18 14:17 MKII  fmt: 2008.4.19  int: english/ 
 english
 
 \enableregime[mac]
 \language[nl]
 \setupbodyfont[lmodern,10pt]
 \starttext
 hyphen test:  
 aa  
 coördinaat.
 \par
 hyphen test:  
 aa  
 co\ordinaat.
 \par
 \stoptext

in principle we can make patterns that has this info by adding 
discretionaries to the patterns ... too much work to do that by hand


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


Re: [NTG-context] hyphenation problem

2008-05-12 Thread Taco Hoekwater
Hans van der Meer wrote:
 In dutch hyphenated accented characters loose there accent when  
 hyphenated: oö becomes o-o instead of o-ö. But the latter happens when  
 I process the code below. It happens both in mkii and mkiv. The number  
 of a's must be chosen so as to generate hyphenation between the two  
 o's. I tried this also with another font than lmodern, but got the  
 same result. What happened to (dutch) hyphenation?

I do not believe this ever has worked, because it is not supported
by Knuth's hyphenation algorithm, at all.


In MkIV, the following (in utf-8!) will work:

\language[nl]
\setupbodyfont[lmodern,10pt]
\hyphenation{co{-}{o}{ö}r-di-naat}
\starttext
hyphen test:
a
coördinaat
\stoptext

But not the example with the \ coding (and that likely never will).

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


Re: [NTG-context] hyphenation problem

2008-05-12 Thread Hans van der Meer
On 12 mei 2008, at 13:01, Taco Hoekwater wrote:

 Hans van der Meer wrote:
 In dutch hyphenated accented characters loose there accent when
 hyphenated: oö becomes o-o instead of o-ö. But the latter happens  
 when
 I process the code below. It happens both in mkii and mkiv. The  
 number
 of a's must be chosen so as to generate hyphenation between the two
 o's. I tried this also with another font than lmodern, but got the
 same result. What happened to (dutch) hyphenation?

 I do not believe this ever has worked, because it is not supported
 by Knuth's hyphenation algorithm, at all.


 In MkIV, the following (in utf-8!) will work:

 \language[nl]
 \setupbodyfont[lmodern,10pt]
 \hyphenation{co{-}{o}{ö}r-di-naat}
 \starttext
 hyphen test:
 a
 coördinaat
 \stoptext

 But not the example with the \ coding (and that likely never will).

 Best wishes,
 Taco


In my recollection this worked like a charm in the LaTeX-Babel package!

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


Re: [NTG-context] hyphenation problem

2008-05-12 Thread Taco Hoekwater


Hans van der Meer wrote:
 
 In my recollection this worked like a charm in the LaTeX-Babel package!

Well, \usemodule[babel] has never worked either ;-)

Anyway, I just realised after posting my message that the input could
be made to work by making ö active and having it execute a macro like

\unexpanded\def\dutchotrema{\dicretionary{-}{o}{\charF6}}

The problem is that there is no infrastructure for such macros
(and there really has to be one, because it touches all of the
input regime, current language, and font encoding).

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


Re: [NTG-context] hyphenation problem

2008-05-12 Thread Hans van der Meer

On 12 mei 2008, at 12:50, Hans Hagen wrote:

 Hans van der Meer wrote:
 In dutch hyphenated accented characters loose there accent when
 hyphenated: oö becomes o-o instead of o-ö. But the latter happens  
 when
 I process the code below. It happens both in mkii and mkiv. The  
 number
 of a's must be chosen so as to generate hyphenation between the two
 o's. I tried this also with another font than lmodern, but got the
 same result. What happened to (dutch) hyphenation?

 ConTeXt  ver: 2008.04.18 14:17 MKII  fmt: 2008.4.19  int: english/
 english

 \enableregime[mac]
 \language[nl]
 \setupbodyfont[lmodern,10pt]
 \starttext
 hyphen test:
 aa
 coördinaat.
 \par
 hyphen test:
 aa
 co\ordinaat.
 \par
 \stoptext

 in principle we can make patterns that has this info by adding
 discretionaries to the patterns ... too much work to do that by hand


I am quite surprised by this, because in dutch there are a lot of  
words with ö, ë to be hyphenated this way. And isn't there something  
alike in german with the \SS?
Anyway, it would be much appreciated as this sort of hyphenation could  
find its way in ConTeXt. It wouldn't do if LaTeX would keep in front  
of ConTeXt in this respect ;-)

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


Re: [NTG-context] hyphenation problem

2008-05-12 Thread Hans Hagen
Hans van der Meer wrote:
 On 12 mei 2008, at 12:50, Hans Hagen wrote:
 
 Hans van der Meer wrote:
 In dutch hyphenated accented characters loose there accent when
 hyphenated: oö becomes o-o instead of o-ö. But the latter happens  
 when
 I process the code below. It happens both in mkii and mkiv. The  
 number
 of a's must be chosen so as to generate hyphenation between the two
 o's. I tried this also with another font than lmodern, but got the
 same result. What happened to (dutch) hyphenation?

 ConTeXt  ver: 2008.04.18 14:17 MKII  fmt: 2008.4.19  int: english/
 english

 \enableregime[mac]
 \language[nl]
 \setupbodyfont[lmodern,10pt]
 \starttext
 hyphen test:
 aa
 coördinaat.
 \par
 hyphen test:
 aa
 co\ordinaat.
 \par
 \stoptext
 in principle we can make patterns that has this info by adding
 discretionaries to the patterns ... too much work to do that by hand

 
 I am quite surprised by this, because in dutch there are a lot of  
 words with ö, ë to be hyphenated this way. And isn't there something  
 alike in german with the \SS?
 Anyway, it would be much appreciated as this sort of hyphenation could  
 find its way in ConTeXt. It wouldn't do if LaTeX would keep in front  
 of ConTeXt in this respect ;-)

this the area were the active  was used to inject disc's: ck and such

at some point we need to fix the pattern files for this since anything 
active or funnily escaped (using ) will mess up something else

context operates within the same constraints as latex so .. -)

Hans


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


Re: [NTG-context] hyphenation problem with apostrophe (fwd)

2005-05-14 Thread Taco Hoekwater
No, as long as you remember to check all hyphenations of
the words that end an inline quote (the ones with single
or double apostrophs attached immediately to the word).
Taco
Peter Münster wrote:
Ok, so this means, that there is no problem with
\startlanguagespecifics[nl,cz,sk,fr]
   \lccode`\'=`\'
\stoplanguagespecifics
Right?
Cheers, Peter
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] hyphenation problem with apostrophe (fwd)

2005-05-14 Thread Peter Münster
On Sat, 14 May 2005, Taco Hoekwater wrote:

 No, as long as you remember to check all hyphenations of
 the words that end an inline quote (the ones with single
 or double apostrophs attached immediately to the word).

No problem, quoting in French goes « like this » :)
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] hyphenation problem with apostrophe

2005-04-26 Thread Hans Hagen
Peter Münster wrote:
Hello,
there is no hyphenation with l'éducation.
Example:
\enableregime[il1]
\usetypescript[modern][\defaultencoding]
\setupbodyfont[modern]
\mainlanguage[fr]
\starttext
\dorecurse{66}x éducation
\dorecurse{65}x l'éducation
\stoptext
ConTeXt version is 2005.01.31
Could someone help please?
The solution is:
\startlanguagespecifics[nl,cz,sk,fr]
  \lccode`\'=`\'
\stoplanguagespecifics
\mainlanguage[fr]
\starttext
\hyphenatedword{\eacute ducation}
\hyphenatedword{l'\eacute ducation}
\stoptext
however, there was a good reason for not making this a default, maybe taco 
remembers why

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context