Special characters in asterisms.dat (?)

Post requests, images, descriptions and reports about work in progress here.
Topic author
MindToAsk
Posts: 82
Joined: 15.10.2003
With us: 21 years 1 month
Location: Romania

Special characters in asterisms.dat (?)

Post #1by MindToAsk » 12.10.2004, 20:45

I've made a translation (in Romanian) of the constellation names from asterisms.dat and I need to put some special characters in the names. I see that in "Bootes" is a special character starting with "\" (an hex value, I assume...). Now, I tried the same thing for the characters I need (ie. "?", wich in hex is "0xe2") but it didn't worked. Celestia stops rendering the constellation lines when I do this. Can some one help me with this? Where can I find the values I need to put in to get the specific characters?

thanxS,
MindToAsk

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #2by granthutchison » 12.10.2004, 21:16

Celestia uses Unicode letter codes, indicated by entering "\u" followed by a hex value. You can find a table of Unicode characters and their codes here. So your character ? would be added to Celestia as "\u00e2".
Celestia doesn't support the whole of Unicode, so you might find that not all your characters appear. It's not happy with the correct Romanian t-with-a-comma-below (\u021B), for instance, but fortunately t-cedilla (\u0163) is accepted and comes out looking correct in the Celestia font.

Grant

Topic author
MindToAsk
Posts: 82
Joined: 15.10.2003
With us: 21 years 1 month
Location: Romania

Post #3by MindToAsk » 13.10.2004, 04:42

Thanks a lot Grant :D
This should do it.

MindToAsk


Return to “Add-on development”