]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/texi-gettext.py
Update texinfo.tex from Texinfo CVS
[lilypond.git] / buildscripts / texi-gettext.py
index 49cc62288b2cb7ce25fc3bec13e6c666096db33c..00807407b0050db8e6adf59474b3672d0cb47582 100644 (file)
@@ -36,66 +36,6 @@ ref_re = re.compile (r'(?ms)@(rglos|ref)(\{)(.*?)(\})')
 node_section_re = re.compile (r'@(node|(?:unnumbered|appendix)(?:(?:sub){0,2}sec)?|top|chapter|(?:sub){0,2}section|(?:major|chap|(?:sub){0,2})heading)( )(.*?)(\n)')
 menu_entry_re = re.compile (r'\* (.*?)::')
 
-# Why not use recode?
-# - well, it would add one more dependency...
-accents2texi = (
-       ("á", "@'a"),
-       ("à", "@`a"),
-       ("â", "@^a"),
-       ("ä", "@\"a"),
-       ("é", "@'e"),
-       ("è", "@`e"),
-       ("ê", "@^e"),
-       ("ë", "@\"e"),
-       ("ó", "@'o"),
-       ("ò", "@`o"),
-       ("ô", "@^o"),
-       ("ö", "@\"o"),
-       ("ú", "@'u"),
-       ("ù", "@`u"),
-       ("û", "@^u"),
-       ("ü", "@\"u"),
-       ("ç", "@,{c}"),
-       ("À", "@`A"),
-       ("Á", "@'A"),
-       ("Â", "@^A"),
-       ("Ä", "@\"A"),
-       ("É", "@'E"),
-       ("È", "@`E"),
-       ("Ê", "@^E"),
-       ("Ë", "@\"E"),
-       ("Ó", "@'O"),
-       ("Ò", "@`O"),
-       ("Ô", "@^O"),
-       ("Ö", "@\"O"),
-       ("Ú ", "@'U"),
-       ("Ù", "@`U"),
-       ("Û", "@^U"),
-       ("Ü", "@\"U"),
-       ("Ç", "@,{C}"),
-       ("Í", "@'{@dotless{i}}"),
-       ("ì", "@`{@dotless{i}}"),
-       ("î", "@^{@dotless{i}}"),
-       ("ï", "@\"{@dotless{i}}"),
-       ("Í", "@'I"),
-       ("Ì", "@`I"),
-       ("Î", "@^I"),
-       ("Ï", "@\"I"),
-       ("œ", "@oe{}"),
-       ("Œ", "@OE{}"),
-       ("æ", "@ae{}"),
-       ("Æ", "@AE{}"),
-       ("¡", "@exclamdown{}"),
-       ("¿", "@questiondown{}"),
-       ("ø", "@o{}"),
-       ("Ø", "@O{}"),
-       ("ß", "@ss{}"),
-       ("ł", "@l{}"),
-       ("Ł", "@L{}"),
-       ("å", "@aa{}"),
-       ("Å", "@AA{}"))
-
-
 def title_gettext (m):
        if m.group (2) == '{':
                r = whitespaces.sub (' ', m.group (3))
@@ -125,8 +65,6 @@ well as all `UNTRANSLATED NODE: IGNORE ME' lines.""", '')
        page = page.replace ('UNTRANSLATED NODE: IGNORE ME', _doc ("This section has not been translated yet; please refer to the manual in English."))
        includes = include_re.findall (page)
        page = include_re.sub (lambda m: include_replace (m, filename), page)
-       for (u_char, texiaccent_char) in accents2texi:
-               page = page.replace (u_char, texiaccent_char)
        p = os.path.join (outdir, filename) [:-4] + 'pdftexi'
        f = open (p, 'w')
        f.write (page)