Re: Zero-width space

Thomas Dickey <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
On Fri, Aug 23, 2024 at 08:38:11AM -0600, rbell--- via Lynx-dev wrote:
> 	Why doesn't this in UCdomap.c:
> 
> 	else if (ucs == 0xfeff || (ucs >= 0x200b && ucs <= 0x200f)) { 
>         /*
>          * Zero-width space.
>          */
>         return ucZeroWidth;
> 
> cause 200b (zero-width space, aka 8203) to be undisplayed?
> 
> 
> 	It seems to make this in LYCharUtils.c :
> 
>        /*
>                  * 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) {
>                 CTRACE((tfp, "LYUCFullyTranslateString: Ignoring '%"
>                         PRI_UCode_t "'.\n", CAST_UCode_t (code)));
>                 replace_buf[0] = '\0';
>                 state = S_got_outstring;
>                 break;
> 
> 
> unnecessary.  And why does it neglect 8203?
> 
> 	8203 appears in https://www.newyorker.com/news/the-lede/the-democratic-party-rebrands-itself-before-viewers-eyes

I see U+200B in one place in the HTML file (two occurrences immediately
after a left-double-quote), and in lynx it doesn't use any spacing,
which is what I'd expect for zero-width.

-- 
Thomas E. Dickey <[email protected]>
https://invisible-island.net
signature.asc (application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE-----

iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmbJJtwACgkQzCr0RyFn
vgM/7wwA7dQSceTK4+ZXLg62JlOCLdHWWJxf24+f3siVW+9jqN58/2rFPvvP5NQw
1Jt7OPmU2J6frlTQ3Om48oVYAf2YTMeirqd6HYuEawDgKF6LUokXYMisLbk1STIV
mwMZ6Ioso2HxYUacIv4MJvt4v83cq12ZlT8CSRdMBJMaZSw8xBzyDuCTreKiaU2l
uY3L3m+q79PCB9FDoxK0kbiRlvPEIxZoVGtwx1rt15gZNH10KV8nrdZ8gM3H4yIX
gWPs/W3j1cFjGBvPsx90mpGxTEUrfuCxye1f86YHKDlWd+zwtsAAEE4IX1dKDuSN
TPCzTPj7gYn/LldznEU09A5lpUL1hYLJebDv2Fp3lA0iZPKzRaBKCk/CDe0ujF3p
4P0+fMNRLQ08Up2H+JdvML69Xp2PCl1BK6gHwe9OLZIaXjssRMM+KjhDbMihbXdK
bs2HDUYmc5LLIzL2zj0+1DdzTlmxCB+SCmstpp2LLDjkenjo+Yw8brip1OR7/zcr
Q4akygRJ
=oPSS
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.