Hi. I think the non-letter handling in LineArea's hyphenation routine needs to enhanced.
I'm producing a two-column index which contains keywords from WebDAV specs, such as "DAV:version-controlled-collection", i.e. the words contain multiple non-letter characters. The current implementation seems to have two limitations: - if a non-letter character other than "/" and "-" is found, the whole word isn't hyphenated at all. - the code that tries to identify "-"-separated word parts does this only once instead of continuing until no space is left. The result is words like the example above aren't hyphenated at all, and that words like "version-controlled-collection" will always be hyphenated after the first minus sign, even if there would have been enough room for more. I'm currently testing a patch than changes this to: - accept *all* non-letter characters as possible hyphenation points, - continue scanning the word after the first non-letter char was found, and - add a single hyphenation character if hyphenation occurs at a non-letter character other than "-". This seems to work fine for my test cases. As I'm new to this list I wonder how to proceed? Should I raise a bug and post the patch? Julian (patch attached) -- <green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
LineArea.diff
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]