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: Thomas Dickey
Subject: Re: [Lynx-dev] how do I get &zwsp; treated as a nothing?
Date: Wed, 6 Dec 2017 20:34:03 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

On Wed, Dec 06, 2017 at 08:31:04AM -0700, address@hidden wrote:
> 
>       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)?

no - I haven't dug into it, but I can see that 8205 also comes out
on the terminal.  (also, changing def7_uni.h did not have an effect).
 
>       Why doesn't lynx use either decimal or hex instead of both?

more than one developer :-)

by the way, 8203 isn't in RFC 2070

-- 
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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