docbook-apps

  • 1.  Hypenation in narrow columns (fo stylesheet)

    Posted 12-15-2009 18:25
      |   view attached
    Hi All

    FOP generated PDF with FOP 0.95 or newer do not hyphenate properly
    when transforming the enclosed DocBook file containing tables with
    narrow column.

    When translating the enclosed file with the plain fo/docbook.xsl
    (DocBook XSL 1.75.2) and subsequently with FOP 0.20.5 and FOP 0.95 (or
    newer), there are significat difference in the output, both in the
    header and body cells.

    When analyzing the generated fo code - hyphenation attributes seem to
    be set according to the standard. The only thing missing seems to be
    keep-together.within-column="always", which should be set for each
    cell according to section 3.10 of
    http://xmlgraphics.apache.org/fop/faq.html, however adding this
    attribute to each fo-table-cell of the table have no effect.

    I have checked all relevant parameters and extension of the DocBook
    stylesheet, but nothing seems to work.

    Regards

    Jens

    Attachment(s)

    xml
    narrow-column.xml   5 KB 1 version


  • 2.  Re: Hypenation in narrow columns (fo stylesheet)

    Posted 12-15-2009 21:23
    In the enclosed file, the the root element is missing the attribute lang.

    The start tag should of course be


    However, adding this tag have no effect.

    Regards

    Jens

    On Tue, Dec 15, 2009 at 7:24 PM, Jens Stavnstrup <stavnstrup@mil.dk> wrote:
    > Hi All
    >
    > FOP generated PDF with FOP 0.95 or newer do not hyphenate properly
    > when  transforming the enclosed DocBook file containing tables with
    > narrow column.
    >
    > When translating the enclosed file with the plain fo/docbook.xsl
    > (DocBook XSL 1.75.2) and subsequently with FOP 0.20.5 and FOP 0.95 (or
    > newer), there are significat difference in the output, both in the
    > header and body cells.
    >
    > When analyzing the generated fo code - hyphenation attributes seem to
    > be set according to the standard. The only thing missing seems to be
    > keep-together.within-column="always", which should be set for each
    > cell according to section 3.10 of
    > http://xmlgraphics.apache.org/fop/faq.html, however adding this
    > attribute to each fo-table-cell of the table have no effect.
    >
    > I have checked all relevant parameters and extension of the DocBook
    > stylesheet, but nothing seems to work.
    >
    > Regards
    >
    > Jens
    >



  • 3.  Re: [docbook-apps] Re: Hypenation in narrow columns (fo stylesheet)

    Posted 12-16-2009 11:12
    Hi Jens,

    What do you mean by “do not hyphenate properly”? If FOP doesn’t
    hyphenate at all, this probably is because it is missing hyphenation
    patterns. Look here for how to install them:
    http://offo.sourceforge.net/hyphenation/index.html

    Otherwise, could you please attach your FO file and describe your
    problem more precisely?

    HTH,
    Vincent


    Jens Stavnstrup wrote:
    > In the enclosed file, the the root element is missing the attribute lang.
    >
    > The start tag should of course be

    >
    > However, adding this tag have no effect.
    >
    > Regards
    >
    > Jens
    >
    > On Tue, Dec 15, 2009 at 7:24 PM, Jens Stavnstrup <stavnstrup@mil.dk> wrote:
    >> Hi All
    >>
    >> FOP generated PDF with FOP 0.95 or newer do not hyphenate properly
    >> when transforming the enclosed DocBook file containing tables with
    >> narrow column.
    >>
    >> When translating the enclosed file with the plain fo/docbook.xsl
    >> (DocBook XSL 1.75.2) and subsequently with FOP 0.20.5 and FOP 0.95 (or
    >> newer), there are significat difference in the output, both in the
    >> header and body cells.
    >>
    >> When analyzing the generated fo code - hyphenation attributes seem to
    >> be set according to the standard. The only thing missing seems to be
    >> keep-together.within-column="always", which should be set for each
    >> cell according to section 3.10 of
    >> http://xmlgraphics.apache.org/fop/faq.html, however adding this
    >> attribute to each fo-table-cell of the table have no effect.
    >>
    >> I have checked all relevant parameters and extension of the DocBook
    >> stylesheet, but nothing seems to work.
    >>
    >> Regards
    >>
    >> Jens
    >>
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >



  • 4.  Re: [docbook-apps] Re: Hypenation in narrow columns (fo stylesheet)

    Posted 12-16-2009 11:35
    Vincent

    The english hyphenation patterna is embedded in the main FOP archive
    (i.e fop.jar) in both FOP 0.20.5 and FOP 0.95

    However you can translate yourself with the command, which will work
    with all versions of FOP

    fop -xml narow-column.xml -xsl
    /path-to-docbook-1.75.2/fo/docbook.xsl example.pdf

    I have enclosed the FO file for your convenience.

    Regards

    Jens

    On Wed, Dec 16, 2009 at 12:12 PM, Vincent Hennebert
    <vhennebert@gmail.com> wrote:
    > Hi Jens,
    >
    > What do you mean by “do not hyphenate properly”? If FOP doesn’t
    > hyphenate at all, this probably is because it is missing hyphenation
    > patterns. Look here for how to install them:
    > http://offo.sourceforge.net/hyphenation/index.html
    >
    > Otherwise, could you please attach your FO file and describe your
    > problem more precisely?
    >
    > HTH,
    > Vincent
    >
    >
    > Jens Stavnstrup wrote:
    >> In the enclosed file, the the root element is missing the attribute lang.
    >>
    >> The start tag should of course be

    >>
    >> However, adding this tag have no effect.
    >>
    >> Regards
    >>
    >> Jens
    >>
    >> On Tue, Dec 15, 2009 at 7:24 PM, Jens Stavnstrup <stavnstrup@mil.dk> wrote:
    >>> Hi All
    >>>
    >>> FOP generated PDF with FOP 0.95 or newer do not hyphenate properly
    >>> when  transforming the enclosed DocBook file containing tables with
    >>> narrow column.
    >>>
    >>> When translating the enclosed file with the plain fo/docbook.xsl
    >>> (DocBook XSL 1.75.2) and subsequently with FOP 0.20.5 and FOP 0.95 (or
    >>> newer), there are significat difference in the output, both in the
    >>> header and body cells.
    >>>
    >>> When analyzing the generated fo code - hyphenation attributes seem to
    >>> be set according to the standard. The only thing missing seems to be
    >>> keep-together.within-column="always", which should be set for each
    >>> cell according to section 3.10 of
    >>> http://xmlgraphics.apache.org/fop/faq.html, however adding this
    >>> attribute to each fo-table-cell of the table have no effect.
    >>>
    >>> I have checked all relevant parameters and extension of the DocBook
    >>> stylesheet, but nothing seems to work.
    >>>
    >>> Regards
    >>>
    >>> Jens
    >>>
    >>
    >> ---------------------------------------------------------------------
    >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >>
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >