OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Re: Hypenation in narrow columns (fo stylesheet)

Hi Jens,

Jens Stavnstrup wrote:
> 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

No it’s not (at least not in FOP 0.95). You have to download the
separate fop-hyph.jar.

You should have got the following warning when running FOP on the
command line: “Couldn't find hyphenation pattern en”. If not and you’re
still not happy with the hyphenation, please attach the PDF and describe
what is wrong.

At any rate, with your FO file I get a properly hyphenated PDF.

> 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 <article lang="en"  ...>
>>> 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

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]