ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Wrong hyphenation when using patterns={fr,agr}
@ 2016-08-09 21:21 josephcanedo
  2016-08-10 11:13 ` Hans Hagen
  2016-08-10 13:59 ` Jean-Pierre Delange
  0 siblings, 2 replies; 5+ messages in thread
From: josephcanedo @ 2016-08-09 21:21 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 678 bytes --]

Dear all,

Combining patterns for french and ancien greek languages, I noticed there are wrong hyphenations at quote char as shown in following MWE.
Is this expected behavior by using the patterns= key in such a way ?

Using ConTeXt  ver: 2016.08.08 21:28 MKIV beta  fmt: 2016.8.9  int: english/English

--------

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

\starttext

\hyphenatedword{l'homme}

\stoptext

---------

The above prints : l’-homme

If so, what is the alternative to specify hyphenation in a text containing both french and ancient greek (the minority) words.

Thanks a lot for advising,
Best regards

Joseph Canedo


[-- Attachment #1.2: Type: text/html, Size: 2870 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Wrong hyphenation when using patterns={fr,agr}
  2016-08-09 21:21 Wrong hyphenation when using patterns={fr,agr} josephcanedo
@ 2016-08-10 11:13 ` Hans Hagen
  2016-08-10 12:15   ` Arthur Reutenauer
  2016-08-10 13:59 ` Jean-Pierre Delange
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2016-08-10 11:13 UTC (permalink / raw)
  To: ntg-context

On 8/9/2016 11:21 PM, josephcanedo@gmail.com wrote:
> Dear all,
>
>
>
> Combining patterns for french and ancien greek languages, I noticed
> there are wrong hyphenations at quote char as shown in following MWE.
>
> Is this expected behavior by using the patterns= key in such a way ?

I see:

languages       > initialization > language 'fr', patterns 'agr,fr', 
discarding conflict (0-9)'(0-9)

so, the ' is used differently between the languages

>
>
> Using ConTeXt  ver: 2016.08.08 21:28 MKIV beta  fmt: 2016.8.9  int:
> english/English
>
>
>
> --------
>
>
>
> \setuplanguage[fr][patterns={fr, agr}]
>
> \mainlanguage[fr]
>
>
>
> \starttext
>
>
>
> \hyphenatedword{l'homme}
>
>
>
> \stoptext
>
>
>
> ---------
>
>
>
> The above prints : l’-homme
>
>
>
> If so, what is the alternative to specify hyphenation in a text
> containing both french and ancient greek (the minority) words.
>
>
>
> Thanks a lot for advising,
>
> Best regards
>
>
>
> Joseph Canedo
>
>
>
>
>
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Wrong hyphenation when using patterns={fr,agr}
  2016-08-10 11:13 ` Hans Hagen
@ 2016-08-10 12:15   ` Arthur Reutenauer
  2016-08-10 13:13     ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Arthur Reutenauer @ 2016-08-10 12:15 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

> I see:
> 
> languages       > initialization > language 'fr', patterns 'agr,fr',
> discarding conflict (0-9)'(0-9)
> 
> so, the ' is used differently between the languages

  As I remember, French has 2'2 while Ancient Greek has 8'8 which are
not exactly contradictory ;-)  We could of course normalise all
languages to the same value (8 is probably sound); in the mean time
Joseph can edit his own copy of, say, the French patterns to replace the
2’s by 8’s.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Wrong hyphenation when using patterns={fr,agr}
  2016-08-10 12:15   ` Arthur Reutenauer
@ 2016-08-10 13:13     ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2016-08-10 13:13 UTC (permalink / raw)
  To: ntg-context

On 8/10/2016 2:15 PM, Arthur Reutenauer wrote:
>> I see:
>>
>> languages       > initialization > language 'fr', patterns 'agr,fr',
>> discarding conflict (0-9)'(0-9)
>>
>> so, the ' is used differently between the languages
>
>   As I remember, French has 2'2 while Ancient Greek has 8'8 which are
> not exactly contradictory ;-)  We could of course normalise all
> languages to the same value (8 is probably sound); in the mean time
> Joseph can edit his own copy of, say, the French patterns to replace the
> 2’s by 8’s.

some harmonization can indeed help there because one never know how the 
weights matter (8'8 vs 7'7 would be interesting indeed)

which remind me that the l/r min values should probably also be adapted 
in such 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Wrong hyphenation when using patterns={fr,agr}
  2016-08-09 21:21 Wrong hyphenation when using patterns={fr,agr} josephcanedo
  2016-08-10 11:13 ` Hans Hagen
@ 2016-08-10 13:59 ` Jean-Pierre Delange
  1 sibling, 0 replies; 5+ messages in thread
From: Jean-Pierre Delange @ 2016-08-10 13:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2090 bytes --]

Dears Joseph, Hans, Wolfgang, Arthur (and others),

As a French user of ConTeXt (current version: 2016.07.18 16:46, 
generally on Windows 10, time to time on Ubuntu), I am currently working 
on a book in French, with Greek quotations, and some rare occurences in 
other non-european languages. Before version: 2016.07.18, there were 
conflicts in hyphenations (with '\setuplanguage[fr][patterns={fr,agr}]' 
command) that Hans has fixed. But some disgraceful double dots [:] used 
to stay at the beginning of lines. With the 
'\setcharacterspacing[frenchpunctuation]' command, all end that end 
well. I found no more hyphenation issues, nor punctuation ones, even 
within text defined by \definefallbackfamily setup.

\setuplanguage[fr][patterns={fr,agr}]

\mainlanguage[fr]

\setcharacterspacing[frenchpunctuation]


Le 09/08/2016 à 23:21, josephcanedo@gmail.com a écrit :
>
> Dear all,
>
> Combining patterns for french and ancien greek languages, I noticed 
> there are wrong hyphenations at quote char as shown in following MWE.
>
> Is this expected behavior by using the patterns= key in such a way ?
>
> Using ConTeXt  ver: 2016.08.08 21:28 MKIV beta  fmt: 2016.8.9  int: 
> english/English
>
> --------
>
> \setuplanguage[fr][patterns={fr, agr}]
>
> \mainlanguage[fr]
>
> \starttext
>
> \hyphenatedword{l'homme}
>
> \stoptext
>
> ---------
>
> The above prints : l’-homme
>
> If so, what is the alternative to specify hyphenation in a text 
> containing both french and ancient greek (the minority) words.
>
> Thanks a lot for advising,
>
> Best regards
>
> Joseph Canedo
>
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 5756 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-08-10 13:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-09 21:21 Wrong hyphenation when using patterns={fr,agr} josephcanedo
2016-08-10 11:13 ` Hans Hagen
2016-08-10 12:15   ` Arthur Reutenauer
2016-08-10 13:13     ` Hans Hagen
2016-08-10 13:59 ` Jean-Pierre Delange

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).