THE BACKGROUND:
I have some Japanese text that uses only the Katakana alphabet and I have a bitmap font system to display it. However, the bitmap font system does not support Unicode or even UTF-8. I can only use Windows-1252 encoded ASCII which is obviously no use for displaying Katakana.
THE TASK:
I have a text file that has each character (and character combinations) of the Katakana alphabet per line. What I would like to do is create a look-up table and then use it to perform a search/replace in the main text.
I want to keep the standard ASCII characters from space (32) to Z (90). So, starting with ASCII 91 and going up I need each Katakana character to have an alternate ASCII variant. Then I want to use that look-up to search/replace my main Katakana text file and replace it with valid ASCII characters.
Back in the bitmap font system I will read (for example) the ASCII character å and know that it should be replaced by the Katakana character オ
I don't even know if what I am trying to do is possible and if it is, I don't know where to start.
Any suggestions gratefully received.
Thanks,
Craig
I have some Japanese text that uses only the Katakana alphabet and I have a bitmap font system to display it. However, the bitmap font system does not support Unicode or even UTF-8. I can only use Windows-1252 encoded ASCII which is obviously no use for displaying Katakana.
THE TASK:
I have a text file that has each character (and character combinations) of the Katakana alphabet per line. What I would like to do is create a look-up table and then use it to perform a search/replace in the main text.
I want to keep the standard ASCII characters from space (32) to Z (90). So, starting with ASCII 91 and going up I need each Katakana character to have an alternate ASCII variant. Then I want to use that look-up to search/replace my main Katakana text file and replace it with valid ASCII characters.
Back in the bitmap font system I will read (for example) the ASCII character å and know that it should be replaced by the Katakana character オ
I don't even know if what I am trying to do is possible and if it is, I don't know where to start.
Any suggestions gratefully received.
Thanks,
Craig