Okapi Framework - FiltersDTD Filter (BETA) |
|
If you are using an Okapi Tool after the M9 release, you should be using the wiki online help:
http://www.opentag.com/okapi/wiki/index.php?title=DTD_Filter
This filter allows you to process DTD (Document Type Definition) documents.
The filter is intended to process XML-DTD that have translatable text entity declarations, as shown below. An example of such DTDs are the Mozilla DTD files that go with the XUL documents used to build the user-interface parts.
Example of DTD with text entity declarations:
<!--Comments--> <!ENTITY findWindow.title "Find Files"> <!ENTITY fileMenu.label "File"> <!ENTITY editMenu.label "Edit">
This filter is implemented in the class
net.sf.okapi.filters.dtd.DTDFilter of the Okapi library.
The filter decides which encoding to use for the input file using the following logic:
If the output encoding is UTF-8:
The type of line-breaks of the output is the same as the one of the original input.
TODO