Re: a (serious) question about character codes in Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg71485] Re: a (serious) question about character codes in Mathematica
- From: "Philipp" <Philipp.M.O at gmail.com>
- Date: Mon, 20 Nov 2006 06:34:27 -0500 (EST)
- References: <email@example.com>
I suppose you can redefine, if you've got the patience, all Mathematica
encoding files in
(or wherever they sit on your system)
Regarding Mathematica7.m, create, say, Mathematica7unicode.m, with
(* Math7unicode *)
(Be careful with prettifying the list; I found syntax checking on
CharacterEncoding files a bit twitchy)
In:=FromCharacterCode[8477, "Mathematica7unicode"] // FullForm
I hope this helps.
Chris Chiasson wrote:
> Usually, my questions about character codes are more complaints than
> anything else.
> But, this time I just want info. I promise :-)
> (52 in hex is 82 in decimal, so this is the 83rd character in the
> Mathematica7 font - numbering starts from zero)
> As shown below, Mathematica seems to map characters to non-standard
> Unicode points.
> In Unicode, the double struck capitol R is 0x211d in hex and 8477 in decimal.
> But, Mathematica assigns this character to (the second argument is
> optional here)
> 63413 in decimal and 0xf7b5 in hex does not map to any (regular)
> glyph. In fact, the number is in the private use area of Unicode.
> I know Mathematica has been around for a long time. Perhaps this code
> point was in use for DoubleStruckCapitalR before that glyph had a code
> point in regular Unicode. I am sure there is a perfectly good
> I am interested in ways to acquire the common Unicode points for the
> glyphs in Mathematica7 along with the stretchy characters for
> parenthesis and lists from other Mathematica fonts. This can be done
> by feeding the raw character into one of the lower level conversion
> routines like
> (I think this call is right, but I can't be sure because it's
> undocumented - also, it must be enabled by exporting something first)
> but it requires a lot of post processing to apply it to all the
> characters in a particular font (because sometimes the result is a
> plain character instead of an HTML entity string - and sometimes the
> result is a semicolon...).
> What is the best way to get the "real" Unicode points for the exotic
> fonts in Mathematica?
>  http://www.unicode.org/charts/PDF/U2100.pdf
Prev by Date:
Best practice for naming of options
Next by Date:
returning variable number of arguments from a Module[ ]
Previous by thread:
a (serious) question about character codes in Mathematica
Next by thread:
Converting an expression to a list of terms?