Le vendredi 31 janvier 2014 08:02:22 UTC+1, Rustom Mody a écrit :
OMG! OMG!!
That is an ASCII K and not a unicode K
Now poor jmf will suffer the fire and brimstone of hell without
diacrïticál marks
====
I'm aware of what I did.
1) You wrote: "That is an ASCII K and not a unicode K".
This is a non sense. You are opposing ascii and unicode,
the reperoire of the ascii chars and the repertoire of the
Unicode chars.
In unicode, the are two "K"'s, one for the letter and one
for the Kelvin unit, see my previous post.
2) I used the letter "K" for commodity. Btw, I'm also
aware the 'KELVIN SIGN' is not availaible in many fonts.
3) If you wish to discuss the typographical aspect
in that story, one can discuss the kind of space which
should separate the number and the unit ('SPACE',
'SOFT HYPHEN', 'NARROW NO-BREAK SPACE',
'HAIR SPACE', ...). My "lazy" white space can also be
considered as a mistake.
4) What is definitively wrong is to claim :
"It's the 21st century; you should be making use of
Unicode: 0°C."
The 'DEGREE SIGN' and "Unicode" are two different
things. It exists in many coding schemes.
cs = ['iso-8859-1', 'iso-8859-2', 'cp437', 'cp850', 'cp1252', 'cp857',\
'iso-8859-15']
for c in cs:
c, '\u00b0'.encode(c, 'replace').decode(c)
cs = ['iso-8859-1', 'iso-8859-2', 'cp437', 'cp850', 'cp1252', 'cp857',\ .... 'iso-8859-15']
for c in cs:
.... c, '\u00b0'.encode(c, 'replace').decode(c)
....
('iso-8859-1', '°')
('iso-8859-2', '°')
('cp437', '°')
('cp850', '°')
('cp1252', '°')
('cp857', '°')
('iso-8859-15', '°')
5) Not unicode. The "°" is available as "direct (Shift) key"
on many European keyboards.
6) Finally and for the record : "n Kelvin" and not "n Degree Kelvin".
jmf