Roozbeh Pournader wrote on 2001-05-24 14:58 UTC:
> Quoting '/usr/src/linux/drivers/char/consolemap.c' (Lines 647-648):
> 
> else if (ucs == 0xfeff || (ucs >= 0x200a && ucs <= 0x200f))
>       return -2;                      /* Zero-width space */
> 
> Does this mean that there's no way we can make the console display
> characters for ZWNBSP (also known as BOM), ZWJ, ZWNJ, ..., something like
> a show controls mode? We really need your comments.

It was probably me who wrote that console code half a decade ago,
wondering what to do with all these zero-width characters that might or
might not be present in plaintext.

A more modern approach would be an ESC sequence to tell the terminal,
which wcwidth policy exactly it is supposed to follow. Something like

  http://www.cl.cam.ac.uk/~mgk25/ucs/scw-proposal.html

where ESC [4w would do what you want (even a zero-width character is
still a graphic character, not a control code).

[I'm somewhat disappointed for not having received any feedback
whatsoever on the above SCW proposal so far. Come on!]

Markus

-- 
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org,  WWW: <http://www.cl.cam.ac.uk/~mgk25/>

-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/lists/

Reply via email to