Sebastian Geerken
2012-11-18 13:29:32 UTC
Hi!
At http://flpsed.org/hgweb/dillo_hyphen, you'll find some extensions
for hyphenation I've not yet merged into the main repository. Still
needs some documentation, but here is an overview:
There are now configuration variables for dillorc (see source):
penalties for hyphens, as well as the left and right side of an
em-dash. The suffix "_2" means that this value is used for lines
following a line which ends already with a hyphen. When this value is
larger, two adjacent lines ending with a hyphen are avoided.
For values, see the definition of the "badness". Typical values:
0 = Penalty used for normal spaces.
1 = A justified line with spaces having 150% or 67% of the ideal space
width has this as badness.
8 = A justified line with spaces twice as wide as ideally has this as
badness.
"inf" may be used (preventing a break in any case); also "-inf"
(forcing a break), although the latter makes no sense and may lead to
strange results.
There is a text page, test/hyphens-etc.html, to play around.
Sebastian
At http://flpsed.org/hgweb/dillo_hyphen, you'll find some extensions
for hyphenation I've not yet merged into the main repository. Still
needs some documentation, but here is an overview:
There are now configuration variables for dillorc (see source):
penalties for hyphens, as well as the left and right side of an
em-dash. The suffix "_2" means that this value is used for lines
following a line which ends already with a hyphen. When this value is
larger, two adjacent lines ending with a hyphen are avoided.
For values, see the definition of the "badness". Typical values:
0 = Penalty used for normal spaces.
1 = A justified line with spaces having 150% or 67% of the ideal space
width has this as badness.
8 = A justified line with spaces twice as wide as ideally has this as
badness.
"inf" may be used (preventing a break in any case); also "-inf"
(forcing a break), although the latter makes no sense and may lead to
strange results.
There is a text page, test/hyphens-etc.html, to play around.
Sebastian