> From: Glen Mazza [mailto:[EMAIL PROTECTED] > Sent: Sunday, August 10, 2003 3:58 PM > To: [EMAIL PROTECTED] > Subject: Re: 0.20.5 vs hyphenation > > > --- Julian Reschke <[EMAIL PROTECTED]> wrote: > > 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. > > > > Which would actually be good in the case of a http:// > URL, correct? In other words, if we made this change, > wouldn't we end up getting complaints that > "www.someURL.com" is being broken up and hyphenated > (and perhaps linking properties lost)?
Yes. But the issue that got me where I am right now is that the word *itself* doesn't fit into the line. Currently, fop handles this either by just overflowing the area, or by breaking the word without hyphenating it. What it doesn't do is to break the word where the "-" character already is in. So maybe my change should only be active when this is the first word on the line. > We have to be careful that majority cases are properly > handled: DAV:one-two-three is used less often than > "http://www.someURL.com" (or "www.someURL.com") in > text, and so the proper handling of the latter should > take precedence. Yes. But what *is* proper handling here? Currently, FOP just gives up, producing extremely ugly output, while other engines (such as RenderX and AntennaHouse) just hyphenate the word. > > I'm currently testing a patch than changes this to: > > > > - continue scanning the word after the first > > non-letter char was found, and > > > > This one may be a good idea. > > > > > As I'm new to this list I wonder how to proceed? > > Should I raise a bug and > > post the patch? > > > > Yes, please post it to Bugzilla (we may not have time > to get to it for awhile though...), *but* using "diff > -u" option so we see the +'s and -'s changes in the > first column. Also make sure you list in the bug > description text the "before" functionality and the > "after" functionality (as you did above) so other > users/developers can comment on the proposed changes > in business rules. OK, let's discuss what we *want* it to do, and then I'll make the bug report / change request. Julian -- <green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]