You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "bodo@tanzerei.com" <bo...@tanzerei.com> on 2001/08/24 11:41:25 UTC
exceptions for hyphenation
Hi,
since Fops hyphenation algorithm (borrowed from TeX, right?) seems to be
not working perfect, i wonder whether there is a possiblility to define
exceptions:
Example : the german word "Blumentopferde" would be hypenated to
"Blu-men-top-ferde" which is not correct.
In TeX one could define an exceptionlist for such words.
Is this possible in fop too?
Or - if not - is somebody thinking about implementing this in Fop ?
Bodo Teichmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: exceptions for hyphenation
Posted by Carlos Villegas <ca...@uniscope.co.jp>.
bodo@tanzerei.com wrote:
> Hi,
> since Fops hyphenation algorithm (borrowed from TeX, right?) seems to
> be not working perfect, i wonder whether there is a possiblility to
> define exceptions:
> Example : the german word "Blumentopferde" would be hypenated to
> "Blu-men-top-ferde" which is not correct.
> In TeX one could define an exceptionlist for such words.
> Is this possible in fop too?
> Or - if not - is somebody thinking about implementing this in Fop ?
FOP's hyphenation algorithm should produce the same results as TeX. If
it doesn't, there's some error in FOP's implementation. Exceptions are
supported in FOP version, there's a 'exceptions' tag in the hyphenation
DTD used for the pattern files. However, currently it has to be
specified in the pattern file and FOP will only use one pattern file per
language. If you specify a different one in the user configuration, FOP
will use that instead. So the current way to change the exceptions list
is to copy the supplied hyphenation file for your language and
add/replace them.
It's been my intention to add support so that you could give only an
exception list and FOP will merge it with the base pattern file for a
language in a given run. It's also possible to add some extension
property or FO to add hyphentation exceptions in the xsl:fo input file,
so you can add them to the stylesheet more like TeX.
However, I haven't had the time and nobody asked until now. For german,
there's also a hyphen tag to allow you to specify exceptions for words
that change spelling when hyphenated, for example, backen hyphenates to
bak-ken in traditional german and you could specify it in the pattern
file as ba<hyphen pre="k" no="c">ken, however, this doesn't work in
FOP's version. That was also in my things to do list.
I guess since somebody asked, I should go back and fix these things!
I'll take a look.
Carlos
>
>
> Bodo Teichmann
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org