JOpenCC is a Java based tool to convert Traditional Chinese to Simplified Chinese and vice versa.
This project is a java port of OpenCC which developed by BYVoid byvoid.kcp@gmail.com.
Since the foundation differences between Java and C, only the dictionary is the same as OpenCC. The mapping methodology is completely different from the native C Opencc.
The GUI part is based on the Standard Widget ToolkitStand (SWT). SWT is a graphical widget toolkit for use with the Java platform and it is written in Java. To display GUI elements, the SWT implementation accesses the native GUI libraries of the operating system using JNI (Java Native Interface) in a manner that is similar to those programs written using operating system-specific APIs. Programs that call SWT are portable, but the implementation of the toolkit, despite the fact that part of it is written in Java, is unique for each platform.
SWT is chosen instead of Swing because the interface looks more native and more responsive in SWT. However, it should be easy for a Swing port.
English, Traditional Chinese and Simplified Chinese interfaces are provided.
-
Java 1.7 or above
-
SWT (tested 3.4, 3.7 and 4.3)
- By default the SWT JAR will be placed in ..\org.eclipse.swt\swt.jar
-
Apache ANT is needed to build the project
$ ant lib
It's suggested that to enlarge the memory for the JVM for processing long text
$ java -XstartOnFirstThread -Xms32M -Xmx512m -Xmn16M -jar jopencc.jar
-XstartOnFirstThread
is required in macOS and Java 7.
or
$ ant run
- adding different encoding support for input and output, currently only supports UTF-8
- use background thread for conversion
- Able to select convert mode using menu bar
- Able to select interface language
- Replace Apache ANT with Apache Maven