L. David Baron wrote:
We do?  nsTextTransformer only seems to invoke it in the *Unicode*
functions, and https://bugzilla.mozilla.org/show_bug.cgi?id=255990 says
we don't.

Actually, I should have thought about that bug earlier. There, people are advocating *always* using the JISX4051 rules. That is quite scary because it means we'd start breaking ASCII text with punctation but no spaces, e.g., we'll break after the comma in "hello,kitty" and after plus in "a+b". But maybe that isn't so bad... It would eliminate the locality problem I just complained about, and remove the need for multi-line analysis --- except for Thai. It would reduce the context required to at most two characters either side of the line break (again, except for Thai), so we're hardly ever going to have to look at more than one text frame either side, so when we do, we can afford to do something simple and slow, i.e. traversing the frame tree looking for the required text.

Rob
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to