Duncan Gibson wrote:
>> 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.

We shouldn't do that, IMHO.  FLTK is not a text processing program.

> [It would be interesting to know what nedit does with a soft hyphen]

nedit, notepad++, editpad, and even Windows notepad display cp1252.txt (yes, 
that with 'native' encoding) correctly, including the soft hyphen as a visible 
character. Let's do it this way, I'd say.

I also tried FLTK 2.0 with cp1252_utf-8.txt, and it works like a charm. Even 
0x98 (U+02DC, SMALL TILDE) is displayed and handled correctly (WRT cursor 
movement). No line length problems as in FLTK 1.3 - maybe we should have a look 
at FLTK 2's implementation?

> Do we need to add soft hyphen as a line break opportunity if it isn't
> already handled? Probably yes.

IMHO not, see above. Maybe later...

> 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.

This would make it (IMHO) unnecessarily complex, see above.

Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to