-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hyphenation issues #14
Comments
Not that I know. But I would recommend right after The commands are new: \registerhyphenationexception[MacOS]
\registerhyphenationexception[de][MacOS] |
Thanks! These commands seems to be undocumented. Why "MacOS"? |
The hyphenation engine is a (somehow) new one. The hyphenator was announced at the mailing list. And I guess I found the command reading the source. Please, feel free to improve the ConTeXt wiki 😏. |
Interesting link. In the thread you complain that the new hyphenator does not work with \hyphenation. https://mailman.ntg.nl/pipermail/ntg-context/2014/080082.html I tried the registerhyphenationexception with your MWE from the mailinglist but Nietz-sche is still incorrectly hyphenated. |
It works with |
Finally I understood. The example with MacOS disturbed me, because I thought it refers to ConTeXt on Mac OS X. I added a very incomplete new page in the wiki. |
I am afraid that it does not work in fptc: Maybe you can try to compile a small text with the word "Wirtschaftsoligarchie" It is hyphenated after "Wirtschaft". The exception does not work here. |
I tried the following (after updating <div lang="de">
<span class="hyphenatedword">Wirtschaftsoligarchie</span>
</div> And it is hyphenated From what you are describing, the word isn’t tagged as German. See the difference after compiling this sample with ConTeXt: \starttext
\hyphenatedword{Wirtschaftsoligarchie}
\de\hyphenatedword{Wirtschaftsoligarchie}
\stoptext Now I can only guess: did you set the proper If i’m missing something, please explain with a minimal sample. BTW, didn’t you have another issues? |
I have
in my YAML-Codeblock. I hope this is enough to set mainlanguage in the process. |
I guess But anyway, what do you get from this as a single document? ---
title: Deutsche Silbentrennung
lang: de-DE
...
<span class="hyphenatedword">Wirtschaftsoligarchie</span> Did you get the right hyphenation when adding the Markdown snippet to your document? Please, update |
No, it does not work. I put
after the setuphyphenation-commands in my style files. The result is: Wirt-schaft-so-lig-ar-chie It does not work with lang: de-DE and/or locale: de-DE |
It works fine here. I’m afraid the word is hyphenated with English hyphenation rules in your system. BTW, do you have the following line in your copy of \installlanguage [de-DE] [de-de] Add it, if not. And replace in the same file: \startxmlsetups xml:hyphenatedword
\hyphenatedword{\xmlflush{#1}}
\stopxmlsetups with \startxmlsetups xml:hyphenatedword
\hyphenatedword{\xmlflush{#1}} \currentdate
\stopxmlsetups and tell me what happens. You should get a German date, not an English one. |
Wirt-schaft-so-lig-ar-chie 11. Februar 2016 |
What happens when you add in the book you’re composing (I mean, one of your production documents) the following? <span class="hyphenatedword">Wirtschaftsoligarchie</span> But comment the hyphenation exception before. |
I added some more samples: Wirt-schaft-so-lig-ar-chie 12. Februar 2016 With \registerhyphenationexception I could not put a hyphen at Ge-sell-schafts... Somehow the whole mechanism is not working here:
|
Leaving the issue with TeX defines a minimum number of letters on the left and on the right to hyphenate words ( Because of that, you can get You could define a minimum length to apply hyphenation (to prevent The way to set the minimum characters is: \setuplanguage[de-de][lefthyphenmin=2, righthyphenmin=2] And I’m now in a hurry. I will give the other parameter later this evening (I don’t have time now to search it). |
The way to define a minimum word length to apply hyphenation in ConTeXt is: \definehyphenationfeatures
[givemefive]
[hyphenmin=4]
\sethyphenationfeatures
[givemefive] Some questions that you should take into consideration:
I hope this is clear now. Let me know, if it isn’t or if hyphenation doesn’t work as expected in your documents. |
@juh2, I don’t know whether the issue was solved. (I guess it is, but I really don’t know.) I suspect that the whole problem with wrong hyphenation is that the If all problems with hyphenation commented in this issue are solved, please close it. I’m not closing it myself, so you may reopen it when needed. |
If I simply put a \hyphenation{...} somewhere in the style file, it does not work.
Is there a special location where to put hyphenation?
The text was updated successfully, but these errors were encountered: