lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] how do I get &zwsp; treated as a nothing?


From: russellbell
Subject: Re: [Lynx-dev] how do I get &zwsp; treated as a nothing?
Date: Wed, 6 Dec 2017 08:31:04 -0700

        Quoth Mr Thomas Dickey: 'It may require some program logic
(beyond also ensuring that the number's in your locale tables).
Soft-hyphen for instance is treated specially.'
        It's in conv_uni_to_pc and conv_uni_to_str in UCdomap.c.  

        If I change:
        
         if (ucs == 0xfeff || (ucs >= 0x200b && ucs <= 0x200f))

to:

         if (ucs == 0xfeff || (ucs > 0x200b && ucs <= 0x200f))

200b is treated as nothing, but &zwsp; is still printed out.

        &zwnj; , 0x200c , is treated as nothing

LYCharUtils.c has

   /*
                 * Ignore 8204 (zwnj), 8205 (zwj) 8206 (lrm), and 8207 (rlm),
                 * for now, if we got this far without finding a representation
                 * for them.
                 */
            } else if (code == 8204 || code == 8205 ||
                       code == 8206 || code == 8207) {


Adding 8203 to this made no difference - does that mean a
representation was found for 8203 (200b) but not 8204 (200c)?

        Why doesn't lynx use either decimal or hex instead of both?

russell bell



reply via email to

[Prev in Thread] Current Thread [Next in Thread]