GoldSim Technology Group Forum Index GoldSim Technology Group
GTG User Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

a matter of character

 
Post new topic   Reply to topic    GoldSim Technology Group Forum Index -> Generic GoldSim Issues and Questions
View previous topic :: View next topic  
Author Message
jtauxe



Joined: 28 May 2008
Posts: 30
Location: Los Alamos, NM

PostPosted: Tue Jun 17, 2008 1:47 pm    Post subject: a matter of character Reply with quote

Will GoldSim handle Unicode characters?
Like these: ĉħąяǻčţēŕ

I realize it does not use Strings as variables, but as far as comments, descriptions, etc. it seems to convert some characters that should be available. For example, the character "Č" in the word Čifársky (the name of a small water body in Slovakia) gets converted to "C" in descriptions and other text in GoldSim. The "á" remains as it is, perhaps since it is not Unicode.

What's up?
_________________
my web stuff: http://www.neptuneandco.com/~jtauxe

Neptune and Co.'s GoldSim pages:
http://www.neptuneandco.com/goldsim
Back to top
View user's profile Send private message Visit poster's website
rkossik



Joined: 31 Dec 2007
Posts: 8
Location: Issaquah, Washington USA

PostPosted: Mon Jun 23, 2008 7:14 am    Post subject: Reply with quote

John,

Good question. Most applications are built using ASCII only strings, multi-byte character strings (MBCS) or Unicode strings. It is difficult to mix and match. GoldSim uses MBCS. This assures that the Slovaks can use their local strings, but those specifics get lost when moving the model to a machine with a different local settings (or OS).

Because this is an all or nothing approach, we would have to change our expression parser, tokenizer, colorizer, binary expression tree builder, node builder etc. to change to Unicode. In addition, we would have to add code that prevents usage of non-standard characters as IDs (element names). That’s a big effort for a relatively small improvement. So, yes it is on our list, but it's priority is rather low right now.
_________________
Rick Kossik
GoldSim Technology Group
Back to top
View user's profile Send private message Visit poster's website
jtauxe



Joined: 28 May 2008
Posts: 30
Location: Los Alamos, NM

PostPosted: Fri Jun 27, 2008 8:15 am    Post subject: Reply with quote

I just noticed that within a Text Box (the formatted, scrollable text element that is useful for on-page documentation) it seems that Unicode is supported. So that's interesting. It also means that at least in some cases, one could use one of these if the formatting is absolutely necessary.
_________________
my web stuff: http://www.neptuneandco.com/~jtauxe

Neptune and Co.'s GoldSim pages:
http://www.neptuneandco.com/goldsim
Back to top
View user's profile Send private message Visit poster's website
rkossik



Joined: 31 Dec 2007
Posts: 8
Location: Issaquah, Washington USA

PostPosted: Fri Jun 27, 2008 8:28 am    Post subject: Reply with quote

Yeah, but that is simply a note (and that is easy). It becomes much more difficult if we need to deal with those characters in element names (that need to be parsed).
_________________
Rick Kossik
GoldSim Technology Group
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    GoldSim Technology Group Forum Index -> Generic GoldSim Issues and Questions All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com