ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* hyphenation exceptions?
@ 2015-07-07 13:33 dr. Hans van der Meer
  2015-07-07 14:37 ` Pablo Rodriguez
  0 siblings, 1 reply; 6+ messages in thread
From: dr. Hans van der Meer @ 2015-07-07 13:33 UTC (permalink / raw)
  To: NTG ConTeXt


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

Has something happened to hyphenation?

The following does not work
\language[nl]
\startexceptions[nl]
Am-ster-dam
\stopexceptions

Neither does \hyphenation{Am-ster-dam}

Only in the context-source Am\-ster\-dam is working.

How to load a series of hyphenation exceptions instead of explicitely spelling out the breakpoints in the source?

Hans van der Meer



[-- Attachment #1.2: Type: text/html, Size: 1210 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] 6+ messages in thread

* Re: hyphenation exceptions?
  2015-07-07 13:33 hyphenation exceptions? dr. Hans van der Meer
@ 2015-07-07 14:37 ` Pablo Rodriguez
  2015-07-07 15:29   ` Meer, H. van der
  0 siblings, 1 reply; 6+ messages in thread
From: Pablo Rodriguez @ 2015-07-07 14:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

* Re: hyphenation exceptions?
  2015-07-07 14:37 ` Pablo Rodriguez
@ 2015-07-07 15:29   ` Meer, H. van der
  2015-07-07 15:41     ` Arthur Reutenauer
  0 siblings, 1 reply; 6+ messages in thread
From: Meer, H. van der @ 2015-07-07 15:29 UTC (permalink / raw)
  To: NTG ConTeXt


[-- Attachment #1.1.1: Type: text/plain, Size: 1328 bytes --]

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 <oinos@gmx.es<mailto:oinos@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,



[-- Attachment #1.1.2: Type: text/html, Size: 3007 bytes --]

[-- Attachment #1.2: hyphens-1.jpg --]
[-- Type: image/jpeg, Size: 10109 bytes --]

[-- Attachment #1.3: hyphens-2.jpg --]
[-- Type: image/jpeg, Size: 9463 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] 6+ messages in thread

* Re: hyphenation exceptions?
  2015-07-07 15:29   ` Meer, H. van der
@ 2015-07-07 15:41     ` Arthur Reutenauer
  2015-07-07 16:00       ` Pablo Rodriguez
  0 siblings, 1 reply; 6+ messages in thread
From: Arthur Reutenauer @ 2015-07-07 15:41 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

On Tue, Jul 07, 2015 at 03:29:11PM +0000, 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
___________________________________________________________________________________

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

* Re: hyphenation exceptions?
  2015-07-07 15:41     ` Arthur Reutenauer
@ 2015-07-07 16:00       ` Pablo Rodriguez
  2015-07-07 16:20         ` Meer, H. van der
  0 siblings, 1 reply; 6+ messages in thread
From: Pablo Rodriguez @ 2015-07-07 16:00 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

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
___________________________________________________________________________________

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

* Re: hyphenation exceptions?
  2015-07-07 16:00       ` Pablo Rodriguez
@ 2015-07-07 16:20         ` Meer, H. van der
  0 siblings, 0 replies; 6+ messages in thread
From: Meer, H. van der @ 2015-07-07 16:20 UTC (permalink / raw)
  To: NTG ConTeXt


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

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 <oinos@gmx.es<mailto:oinos@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


[-- Attachment #1.2: Type: text/html, Size: 1930 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] 6+ messages in thread

end of thread, other threads:[~2015-07-07 16:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-07 13:33 hyphenation exceptions? dr. Hans van der Meer
2015-07-07 14:37 ` Pablo Rodriguez
2015-07-07 15:29   ` Meer, H. van der
2015-07-07 15:41     ` Arthur Reutenauer
2015-07-07 16:00       ` Pablo Rodriguez
2015-07-07 16:20         ` Meer, H. van der

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