RC-WinTrans uses a file converter to convert HTML files to XLIFF files so that they can be translated using RC-WinTrans. The converter converts HTML files to the XLIFF file format and the translated data in an XLIFF data file to a target HTML file.
The converter can extract and write back the following content to and from HTML files:
Documents that are to be used with the HTML converter should conform to the HTML specifications. Some documents with an irregular structure (e.g., an <h1> element within a <strong> element) cannot be processed at all.
Script, CSS code outside HTML elements, or other non-HTML-code is not handled by the converter- it will only work with HTML code that is part of the HTML DOM when loading the document.
The converter handles images that are loaded with the HTML document; consequently it is also possible to localize images as well. By default, images are stored as part of the XLIFF representation of an HTML file (internal storage). In the case of large or repeated images, however, the converter can be configured to only store the references to image files (external storage).
When writing a translated HTML file the image files will also be written. In order to accomplish this, image files must be referenced locally. Typically, an image file should be referenced relative to the HTML file, as in <img alt="image" href="image/pic1.jpg">.
NOTE: The HTML converter only processes documents with images that are loaded using the file:// protocol (as opposed to the http:// protocol which is not currently supported).
See also: "File Converters."