Michael Wojcik wrote:
John Pye wrote:
Setting key to 4128,
KeySym is Shift_L
isOK is 1
isMod is 1
isModifier true
sending IMStart with 0 chars to 0x86031c8
sending IMEnd with 1 chars to 0x86031c8, text=
Setting key to 0, ?
KeySym is ?
isOK is 1
isMod is 0
encoding is iso8859-1
Using codec ISO 8859-1
Oof. Can't encode the text !
ISOEncoded returning value 0

At this point, a LyX developer will have to weigh in, I'm afraid. I've been meaning to grab the LyX sources and familiarize myself with the code, but haven't had time yet. (My rather limited time for mucking about with other people's sources is currently taken up with writing Wireshark dissectors...)

The "Can't encode the text" by itself makes me suspicious that the ISO 8859-1 codec isn't recognizing the degree symbol. But the degree symbol is in ISO 8859-1 - it's code point 176.[1]
Are you sure you're getting a degree symbol and not a zero exponent?
Those two are different - degree is a perfect circle while the zero exponent
is a tiny "0".

When I type ^0 I get a zero exponent: ⁰
Typing ALT 0 (in an xterm) gives me the degree: °

The degree symbol works when I paste it into LyX.  The zero exponent
does not print unless I change the document encoding to utf8x.
This encoding is available in LyX 1.5 - I don't know about earlier releases.

Helge Hafting






Reply via email to