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
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
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
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
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
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
participants (4)
-
Arthur Reutenauer
-
dr. Hans van der Meer
-
Meer, H. van der
-
Pablo Rodriguez