Transformation file to convert the JMdict into TEI P5 Freedict file

The Japanese Multilingual Dictionary (jmdict) is a free xml database by Jim Breens et al. (http://www.edrdg.org/jmdict/j_jmdict.html)

This stylesheet aims to convert this multilingual resource into a bilingual Freedict file. JMdict and TEI P5 DTD are quite different, so the xml elements of JMdict have been turned into TEI elements. Following the pretty good JMdict DTD comments, here is how I tried to fit the TEI pattern (http://www.tei-c.org/release/doc/tei-p5-doc/fr/html/DI.html): ant => ref type="ant" dial => usg type="geo" field => usg type="dom" gloss => cit type="trans"/quote k_ele => form type="k_ele" keb => orth ke_inf => lbl type="ke_inf" ke_pri => usg type="pri" lsource => lang misc => note pos => note type="pos" pri => pri reb => orth r_ele => form type="r_ele re_inf => lbl typ="re_inf" re_nokanji => type="re_nokanji" re_pri => usg type="pri" re_restr => lbl type="re_restr" s_inf => note type="sense" stagk => note type="stagk" stagr => note type="stagr" xref => ref

Denis ARNAUD the author(s), 2016; license: GPL v3 or any later version (http://www.gnu.org/licenses/gpl.html).
trans ls_wasei