source: trunk/yao/share/antlr-2.7.7/examples/java/unicode.IDENTs/Unicode.readme @ 1

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 
1Readme for Unicode Example
2This example uses Japanese.
3It illustrates Identifiers and Tokens
4It 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)
5Follow these steps
61)Adding Japanese Fonts to Windows
7       
8i) Update InternetExplorer with the Japanese Font Option.
9  This will install the fonts MS Gothic and MS Mincho
10ii) Install international version of JRE (standard version does not support international fonts)
11iii) Replace ..../jre/lib/font.properties with font.properties from this dir.
12iv) compile these java files and run StreamConvert
13that is
14javac -classpath .;c:\antlr *.java
15You should now be able to run this example and see Japanese fonts.
16If not sort out the problem and let me know what you did (I found this solution by chance)
17java -classpath .;c\antlr StreamConverter
182) Run the sample code
19java -classpath .;c:\antlr Main test.in
20This 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
21Matthew Ford
22Forward Computing and Control Pty. Ltd.
23matthew.ford@forward.com.au
Note: See TracBrowser for help on using the repository browser.