How to add Hebrew hyphenruls?
Herbert Voss
Herbert.Voss at fu-berlin.de
Mon Mar 21 17:01:47 UTC 2022
Am 21.03.22 um 16:53 schrieb tush via lyx-users:
> I am writing a document in Hebrew. Choosing "Hebrew" as the document's
> language together with Language Package Automatic (and ticking "Use
> Non TeX font") adds the following to the preamble:
>
> \usepackage{polyglossia}
> \setdefaultlanguage{hebrew}
> \setotherlanguage{english}
> (which is correct)
>
> Now I want to add some Hebrew hyphenation rules. For that one should
> add after the above three lines the rules as an hyphenrules
> environment, like the following:
>
> \begin{hyphenrules}{hebrew}
>
> \hyphenation{או-פ-ט-י-מ-ליות}
>
> \end{hyphenrules}
>
> These kind of rules should appear after loading polyglossia.
Try in the documents preamble:
\AtBeginDocument{%
\begin{hyphenrules}{hebrew}
\hyphenation{או-פ-ט-י-מ-ליות}
\end{hyphenrules}}
Herbert
>
> How can I tell LyX about those hyphenrules? If I insert it to the
> document preamble via the document settings dialogue, then the rules
> are called *before* polyglossia and I get an error.
>
> Any idea or suggestion for that?
>
> The other thing I can do is to choose "None" in the Language package
> and just type manually all the commands (use polyglossia, declare
> languages, state the hyphen rules).
>
> But that sort of misses the help LyX editor offers me - to type
> manually less commands.
>
More information about the lyx-users
mailing list