[dev-context] Re: translations of xml files

Patrick Gundlach patrick at gundla.ch
Wed Nov 17 14:15:41 CET 2004


Hello,

OK, I've "corrected" the cont-en.xml file and created the other
interfaces (cont-nl.xml ...) files. They all validate against the
known schema. You can find 'em at http://dl.contextgarden.net/xml/

http://dl.contextgarden.net/xml/cont-en.xml
http://dl.contextgarden.net/xml/cont-de.xml
http://dl.contextgarden.net/xml/cont-nl.xml
http://dl.contextgarden.net/xml/cont-cz.xml
http://dl.contextgarden.net/xml/cont-ro.xml
http://dl.contextgarden.net/xml/cont-it.xml

the changes made to cont-en.xml are: (only one change not deleting the
empty arguments set)

--------------------------------------------------
--- /tmp/cont/tex/context/interface/cont-en.xml	Mon Nov  8 00:12:48 2004
+++ cont-en.xml	Wed Nov 17 13:59:42 2004
@@ -838,8 +838,6 @@
   <cd:sequence>
     <cd:variable value="typing"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="typefile" file="verb-ini.tex">
@@ -1006,8 +1004,6 @@
   <cd:sequence>
     <cd:string value="localfootnotes"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="placelocalfootnotes" file="core-not.tex">
@@ -1928,8 +1924,6 @@
   <cd:sequence>
     <cd:string value="background"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="background">
@@ -2257,8 +2251,6 @@
   <cd:sequence>
     <cd:string value="localenvironment"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="setupsystem" file="core-sys.tex">
@@ -2568,8 +2560,6 @@
   <cd:sequence>
     <cd:string value="marginblock"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="part" file="core-sec.tex">
@@ -2972,6 +2962,7 @@
         <cd:constant type="hanging"/>
       </cd:parameter>
       <cd:parameter name="headcommand">
+        <cd:constant type="cd:command"/>
       </cd:parameter>
       <cd:parameter name="hang">
         <cd:constant type="fit"/>
@@ -3048,8 +3039,6 @@
   <cd:sequence>
     <cd:variable value="enumeration"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="definedescription" file="core-des.tex">
@@ -4454,8 +4443,6 @@
   <cd:sequence>
     <cd:string value="opposite"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="setuphyphenmark" file="core-mis.tex">
@@ -4523,8 +4510,6 @@
   <cd:sequence>
     <cd:string value="positioning"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="grid" file="core-spa.tex">
@@ -5252,8 +5237,6 @@
   <cd:sequence>
     <cd:string value="lines"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="setupparagraphnumbering" file="page-lin.tex">
@@ -6849,8 +6832,6 @@
     <cd:variable value="name"/>
     <cd:string value="makeup"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="version">
@@ -6967,16 +6948,12 @@
   <cd:sequence>
     <cd:string value="unpacked"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="linecorrection" type="environment">
   <cd:sequence>
     <cd:string value="linecorrection"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="correctwhitespace" file="core-spa.tex">
@@ -6992,16 +6969,12 @@
   <cd:sequence>
     <cd:string value="postponing"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="local" type="environment">
   <cd:sequence>
     <cd:string value="local"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="narrower" type="environment">
@@ -7021,8 +6994,6 @@
   <cd:sequence>
     <cd:string value="hiding"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="setupalign" file="core-spa.tex">
@@ -7435,8 +7406,6 @@
   <cd:sequence>
     <cd:variable value="formula"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="mathematics" file="supp-mat.tex">
@@ -7628,8 +7597,6 @@
     <cd:string value="placelistof"/>
     <cd:variable value="floats"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="completelistoffloats" generated="yes">
@@ -7637,8 +7604,6 @@
     <cd:string value="completelistof"/>
     <cd:variable value="floats"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="referral" file="core-mis.tex">
@@ -7931,8 +7896,6 @@
   <cd:sequence>
     <cd:variable value="paragraph"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="setupparagraphs" file="core-mis.tex">
@@ -8761,8 +8724,6 @@
   <cd:sequence>
     <cd:string value="screen"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="setuppagetransitions" file="core-int.tex">
@@ -9151,16 +9112,12 @@
   <cd:sequence>
     <cd:string value="synchronize"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="synchronization" type="environment">
   <cd:sequence>
     <cd:string value="synchronization"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="setupsynchronizationbar" file="core-int.tex">
@@ -9344,8 +9301,6 @@
   <cd:sequence>
     <cd:string value="markversion"/>
   </cd:sequence>
-  <cd:arguments>
-  </cd:arguments>
 </cd:command>
 
 <cd:command name="selectversion" file="core-int.tex">

--------------------------------------------------

to generate the othere interfaces I have commented out a line in
ctxtools.rb:


[...]
            data.i_translate('cd:variable' , 'type' , variables)
            data.i_translate('cd:inherit'  , 'name' , strings)
#            data.i_translate('cd:command'  , 'name' , strings)


so we now have (cont-nl.xml)

<cd:command name="showlayout">
  <cd:sequence>
    <cd:string value="toonlayout"/>
  </cd:sequence>
</cd:command>



taken the keys files from the 2004.11.16 distribution:

pg at m24s02:/tmp/pg$ texmfstart ctxtools.rb --translate
CtxTools | generating keys-cz.xml
CtxTools | loading keys-cz.xml
CtxTools | loading cont-en.xml
CtxTools | translating interface en to cz
CtxTools | saving cont-cz.xml
CtxTools | generating keys-de.xml
CtxTools | loading keys-de.xml
CtxTools | loading cont-en.xml
CtxTools | translating interface en to de
CtxTools | saving cont-de.xml
CtxTools | generating keys-it.xml
CtxTools | loading keys-it.xml
CtxTools | loading cont-en.xml
CtxTools | translating interface en to it
CtxTools | saving cont-it.xml
CtxTools | generating keys-nl.xml
CtxTools | loading keys-nl.xml
CtxTools | loading cont-en.xml
CtxTools | translating interface en to nl
CtxTools | saving cont-nl.xml
CtxTools | generating keys-ro.xml
CtxTools | loading keys-ro.xml
CtxTools | loading cont-en.xml
CtxTools | translating interface en to ro
CtxTools | saving cont-ro.xml


Patrick
-- 
ConTeXt wiki: http://contextgarden.net


More information about the dev-context mailing list