docbook-apps

  • 1.  Once again french hyphenation

    Posted 03-16-2008 10:20
    Hello folks,

    I still have trouble with french hyphenation. I use the frhyp_rx.tex
    file wich is part of XEP.

    As Jirka said, I've customize this file with a \hyphenation{} section
    and it almost works.

    But with I add words with accent, those words are not used in my
    result PDF.

    For example, I have a bad hyphenation for the word spéc-ifique, I put
    "spé-ci-fi-que" in this file but the result stay as spéc-ifique.

    So the problem is the accents. What is the trick to make it working
    even with the accents ?

    My file is UTF-8 encoded.

    Thanks in advance,
    Jacques


  • 2.  Re: [docbook-apps] Once again french hyphenation

    Posted 03-16-2008 12:09
    Hi Jacques,

    On Sonntag, 16. März 2008, Jacques Foucry wrote:
    >
    > I still have trouble with french hyphenation. I use the frhyp_rx.tex
    > file wich is part of XEP.
    >
    > As Jirka said, I've customize this file with a \hyphenation{} section
    > and it almost works.
    >
    > But with I add words with accent, those words are not used in my
    > result PDF.
    >
    > For example, I have a bad hyphenation for the word spéc-ifique, I put
    > "spé-ci-fi-que" in this file but the result stay as spéc-ifique.
    >
    > So the problem is the accents. What is the trick to make it working
    > even with the accents ?
    >
    > My file is UTF-8 encoded.

    Maybe it has something to do with a missing encoding attribute in your XEP
    config file?

    <language name="French" codes="fr fra fre">
    <hyphenation pattern="frhyph_rx.tex" encoding="UTF-8"/>

    </language>

    What I experienced with the file is, you have to be very careful to edit
    the hyphenation pattern file. If your editor suspects it in UTF-8, but it
    is really ISO-8859, the file contains the wrong encoding after you have
    saved it.

    See also the following URL, there might be other options. For example, you
    can/could(?) use the LaTeX notation for accented characters:

    http://www.renderx.com/reference.html#Linguistic_Hyphenation


    Hope that gives you an idea,
    Tom

    --
    Thomas Schraitle



  • 3.  Re: [docbook-apps] Once again french hyphenation

    Posted 03-21-2008 20:43
    On 16 mars 08, at 13:08, Thomas Schraitle wrote:

    > See also the following URL, there might be other options. For
    > example, you
    > can/could(?) use the LaTeX notation for accented characters:
    >
    > http://www.renderx.com/reference.html#Linguistic_Hyphenation

    It seems working with LaTeX notation.

    Thanks a lot for your help,

    Jacques