For Programmers: Free Programming Magazines  


Home > Archive > Tcl > May 2007 > "X11 Control Characters" encoding









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author "X11 Control Characters" encoding
billposer@alum.mit.edu

2007-05-21, 4:25 am

The list returned by [encoding names] includes a so-called encoding
labelled "X11 Control Characters". However, I've never heard of such
an encoding and there is no enc file for this. Can anyone tell me what
this is supposed to be? Thanks.

Kevin Kenny

2007-05-21, 8:09 am

billposer@alum.mit.edu wrote:
> The list returned by [encoding names] includes a so-called encoding
> labelled "X11 Control Characters". However, I've never heard of such
> an encoding and there is no enc file for this. Can anyone tell me what
> this is supposed to be? Thanks.
>


It's a fake encoding that we use to process text that's going into a
Tk widget. The font substitution mechanism allows for encoding
conversion, so Unicode CJK text, for instance, can be displayed
in an euc-cn or Big Five font. We abuse this mechanism a little
bit by putting in a dummy fallback font at the end of the search.
A character that has no representation in any font in the system
gets converted to a \xnn or \unnnn string by the X11ControlCharacters
encoding and displayed in an ISO8859-1 font.

Don't you feel better, knowing that? :)

--
73 de ke9tv/2, Kevin
billposer@alum.mit.edu

2007-05-21, 7:10 pm

On May 21, 5:48 am, Kevin Kenny <kenn...@acm.org> wrote:
> billpo...@alum.mit.edu wrote:
>
> It's a fake encoding that we use to process text that's going into a
> Tk widget. The font substitution mechanism allows for encoding
> conversion, so Unicode CJK text, for instance, can be displayed
> in an euc-cn or Big Five font. We abuse this mechanism a little
> bit by putting in a dummy fallback font at the end of the search.
> A character that has no representation in any font in the system
> gets converted to a \xnn or \unnnn string by the X11ControlCharacters
> encoding and displayed in an ISO8859-1 font.
>
> Don't you feel better, knowing that? :)
>
> --
> 73 de ke9tv/2, Kevin


Ah, thanks. Among other things, it is useful to know because there is
no point in presenting users with this choice of encoding. And I like
to think that I know every encoding, though that is no doubt a futile
task.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com