> So, the question would be: should we display a soft hyphen or not?
> Currently we do, and mk_wcwidth() is consistent (width=1).
In my explorations of Fl_Text_{Buffer,Display} so far, I haven't been
looking at, or for, "advanced" features such as optional hyphenation.
[It would be interesting to know what nedit does with a soft hyphen]
As far as I remember, for the default wrap_mode(0,x), line breaks are
determined by newline characters only, but I would really need to check.
For wrap_mode(1,N), line breaks are determined by newline and extra
line breaks are introduced where the total number of columns needed
to display the first K characters on a line exceeds N. Note that K
is not necessarily equal to N.
For wrap_mode(1,0), line breaks are determined by newline and extra
line breaks are introduced where the total number of pixels needed to
display the first K characters on a line exceeds the width of display.
I still need to debug this last case, because there are still problems
with missing/spurious line breaks, most noticeably with CJK characters.
Do we need to add soft hyphen as a line break opportunity if it isn't
already handled? Probably yes.
Do we only display it at end-of-line? That would mess up your misc/
examples. So probably it's easier to always display it for the moment.
If we do have "conditional" display only at end-of-line, do we need
to add a "show all characters" option? Probably yes.
Cheers
D.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev