On Apr 22, 2010, at 1:06 AM, Albrecht Schlosser wrote:
> On 21.04.2010, at 18:32, MacArthur, Ian (SELEX GALILEO, UK) wrote:
>> 
>>>> I just tested this with my Ubuntu/firefox, too. After setting the
>>>> default character set to UTF-8, everything in cp1252_utf-8.txt
>>>> displays okay, except 0xAD (U+00AD), which is the "soft hyphen".
>>>> I'd say that it's okay for a browser to hide the soft
>>> hyphen, isn't it?
>>> 
>>> MK's wcwidth() says: "SOFT HYPHEN (U+00AD) has a column width of 1."
>>> so it looks like we haven't solved everything yet :-(
>> 
>> This may be a browser thing?
>> 
>> I just tried this on the browser I have to hand (IE on winXP) and it
>> appears to be treating SOFT HYPHEN as a zero-width, non-printing
>> character.
>> 
>> I used both­  and­ and got the same result both times.
>> 
>> So, that's consistent with what Albrecht saw in FF then; it sounds like
>> web browsers think SHY has a column width of zero...
> 
> Isn't this what a browser is supposed to do? Hide the soft hyphen (i.e. 
> non-printing, width=0), unless it is used as a line break? If it is used 
> to break the line, it would certainly be displayed or converted to a 
> real hyphen.
> 
> So, the question would be: should we display a soft hyphen or not? 
> Currently we do, and mk_wcwidth() is consistent (width=1).

In the absence of any special handling, I'd say you want to display it.

________________________________________
Michael Sweet, Easy Software Products



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

Reply via email to