1This utility consists of two parts. 2 3Part 1 converts languages.rb to languages.xml. It consists of 4ConvertLanguageData.java, LanguageDataParser.java, 5ConvertLanguageData.xsl, codemapping.xml. Invocation: 6 7java org.tug.texhyphen.util.ConvertLanguageData path/to/languages.rb 8 9output: languages.xml, in the same directory as languages.rb. 10 11The file codemapping contains the mapping from tex-code to 12fop-code. If this file has an entry with non-empty fop-code, it is 13inserted in languages.xml as attribute fop-code. If this file has an 14entry with empty fop-code, that language gets no attribute 15fop-code. Otherwise, that language gets attribute fop-code with the 16same value as tex-code (attribute code). 17 18The current file languages.xml was modified manually after conversion, 19to add the three languages at the bottom of the file. 20 21Part 2 converts tex pattern files to fop pattern files. It consists of 22ConvertTeXPattern.java, TeXPatternParser.java, ConvertTeXPattern.xsl, 23languages.xml. Invocation: 24 25java org.tug.texhyphen.util.ConvertTeXPattern [--uselanguagedata] 26[--texcodes code1,code2,...] infileuri1 [infileuri2 ...] outfile 27 28infileuri must be a file or http URI. With a file URI, it may also be 29a directory; in that case all pattern files in that directory are 30converted. outfile must be a path to an output filename or 31directory. If there are more input files, it must be an output 32directory. Option 'uselanguagedata' converts all input files which 33represent a language in the languages file with a fop-code. Option 34'--texcodes code1,code2,...' converts only those input files which 35represent a language with one of the given tex codes. Without those 36options all input files are converted. In any case, only files are 37converted which represent a language in the languages file with a 38fop-code. 39