Last change
on this file since 1 was
1,
checked in by lnalod, 15 years ago
|
Initial import of YAO sources
|
File size:
1.3 KB
|
Line | |
---|
1 | Readme for Unicode Example |
---|
2 | This example uses Japanese. |
---|
3 | It illustrates Identifiers and Tokens |
---|
4 | It also provides a debug class that displays the input and output in a window and logs to a log file in UTF-8 (This code was compiled with JDK1.2.2 JDK1.3 may not work due to the bit set initialization methods exceeding 64K for single method. I have not tried the latest JKD 1.3.1) |
---|
5 | Follow these steps |
---|
6 | 1)Adding Japanese Fonts to Windows |
---|
7 | |
---|
8 | i) Update InternetExplorer with the Japanese Font Option. |
---|
9 | This will install the fonts MS Gothic and MS Mincho |
---|
10 | ii) Install international version of JRE (standard version does not support international fonts) |
---|
11 | iii) Replace ..../jre/lib/font.properties with font.properties from this dir. |
---|
12 | iv) compile these java files and run StreamConvert |
---|
13 | that is |
---|
14 | javac -classpath .;c:\antlr *.java |
---|
15 | You should now be able to run this example and see Japanese fonts. |
---|
16 | If not sort out the problem and let me know what you did (I found this solution by chance) |
---|
17 | java -classpath .;c\antlr StreamConverter |
---|
18 | 2) Run the sample code |
---|
19 | java -classpath .;c:\antlr Main test.in |
---|
20 | This will read a Shift-JIS file in and parse it and display the input and parser output in a debug window as well as write the output to a debug log file in UTF-8 |
---|
21 | Matthew Ford |
---|
22 | Forward Computing and Control Pty. Ltd. |
---|
23 | matthew.ford@forward.com.au |
---|
Note: See
TracBrowser
for help on using the repository browser.