Deploying the i18n Open Toolkit Plugin
For Open Toolkit 1.8.5:
- Expand the plugin Zip file into the Open Toolkit's plugins/ directory so that you have a new directory, org.dita-community.i18n.
- Run the Open Toolkit integrator.xml Ant task:
c:\DITA-OT> ant -f integrator.xml
For Open Toolkit 2.x:
- Run the dita command with the -install parameter, specifying the location of the plugin Zip file, which can be downloaded locally or retrieved directly from GitHub:
c:\DITA-OT> bin\dita -install http://github.com/dita-community/org.dita-community.i18n/release/version-1.0.0/org.dita-community.i18n.zip
Where version-1.0.0 is the release number of the version you want to get (as far as I can tell GitHub does not provide a "latest" URL for releases).
You can verify that the plugin is correctly installed by running the Ant target "org.dita-community.i18n-xslt-test". You should get output like this:
c:\DITA-OT> ant org.dita-community.i18n-xslt-test
org.dita-community.i18n-test:
[echo] Simplified Chinese Test
[java] Collation report for language
[java] Input terms:
[java]
[java] [ 1] Term: "8点40分"
[java] Words and pinyin:
[java]
"点"
: dian3"
[java]
"分"
: fen4"
[java] [ 2] Term: "2009年7月6日"
[java] Words and pinyin:
[java]
"年"
: nian2"
[java]
"月"
: yue4"
[java]
"日"
: ri4"
...
BUILD SUCCESSFUL
Total time: 1 second