Alexander R. Pruss
> Here's a puzzle about paragraph.c/GetLineMetrics(). The
> puzzling code reads:
> /* CRLF can be inserted anywhere if it is multibyte char */
> if ( TxtGlueCharSize( nextToken ) == 2 ) { ...}
> 1. This looks to me like it's checking for all two-byte
> length characters, not just CRLF. This surely isn't
> correct behavior, because it will allow line-breaking
> at any two-byte length character.
Speculation:
I think they were assuming that it would never reach
this code unless that character was already chosen for
the wrap. The special-casing would be about how many
characters (bytes) were assigned to this line. In that
case, they would want to do it for all multibyte characters;
a two-character CRLF just happened to be the case
they ran into.
> Maybe FntWordWrap() can't handle soft hyphens?
The documentation at
http://www.palmos.com/dev/support/docs/palmos/Font.html#1122926
is already inconsistent over whether it would wrap at a
line feed, and does explicitly say "typically". To me, that
leaves plenty of room for upgrading the whitespace
handing in the future. So even if you test it, it might
turn out differently on next year's device.
_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev