We have an educational simulation game which was upgraded from vb with live code and we use all around the world to enable people to discover solutions for themselves. Recently we were asked to add French language menu, help and tooltips.
This we thought would be fine but we have an issue when we import French text to the app from a file.
Letters like è become È and special characters like … become Ö for example. There are many other changes to characters and punctuation that occur on the import of the text.
We have overcome this with pasting the original text into a text field on a language card and then read from it instead of a file but this is a compromise. In addition it means that all languages - the next is Turkish, then Italian have to be built in rather than loaded on demand.
We have also had an bigger issue with the Chinese version which in vb had to be undertaken with images instead of text.
Do you have any experience of this type of thing or any ideas about how to get a more consistent import of text so that the capitalisation and punctuation for example remains accurate please?
If in addition anyone has experience of how to import Chinese characters we would very grateful for any help you can give.
Regards
John
Imported text characters are changed
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Imported text characters are changed
Hi John,
1. welcome to the forum!
2. What platform are you working on?
In what format do the text files come along?
What is the internal text encoding of these files?
You can already take a look at the "textencode" and "textdecode" functions in the dictionary.
Best
Klaus
1. welcome to the forum!
2. What platform are you working on?
In what format do the text files come along?
What is the internal text encoding of these files?
You can already take a look at the "textencode" and "textdecode" functions in the dictionary.
Best
Klaus
-
- Livecode Opensource Backer
- Posts: 10
- Joined: Wed Apr 12, 2006 12:23 am
- Contact:
Re: Imported text characters are changed
John, your example characters look very much like what happens when you change text in the Apple/Mac character set to ISO-Latin (used by Windows). In other words, it sounds as though your original files aren't Unicode, and were prepared on a Mac and then imported on Windows. Is this possible?
If that sounds like it might be the problem, check out the macToISO and ISOToMac functions (which translate between the two character sets).
If that sounds like it might be the problem, check out the macToISO and ISOToMac functions (which translate between the two character sets).
Re: Imported text characters are changed
Klaus Jennie thank you for replying. I will look at what you have suggested.