]> git.donarmstrong.com Git - lilypond.git/commitdiff
translations-status.py: Add table and paragraph markup to TexiMarkup too.
authorJan Nieuwenhuizen <janneke@gnu.org>
Mon, 12 Apr 2010 20:44:53 +0000 (22:44 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Mon, 12 Apr 2010 23:47:52 +0000 (01:47 +0200)
scripts/auxiliar/translations-status.py

index ad3b8127ec6c568e3cd75e0da7f34bf47f6a3d1c..84c6b0cefd3b607b6f3be0a80e433330894ba0a0 100755 (executable)
@@ -178,7 +178,17 @@ def tely_word_count (tely_doc):
     return [len (space_re.split (n)) for n in nodes]
 
 class TexiMarkup (object):
-    pass
+    def entity (self, name, string='', attributes=[]):
+        return '''
+@%(name)s
+%(string)s
+@end %(name)s
+''' % locals ()
+    def paragraph (self, string=''):
+        return '''
+%(string)s''' % locals ()
+    def table (self, string):
+        return self.entity ('multitable', string)
 
 class HTMLMarkup (TexiMarkup):
     def entity (self, name, string='', attributes=[]):
@@ -588,6 +598,7 @@ progress ("Generating status pages...")
 date_time = buildlib.read_pipe ('LANG= date -u')[0]
 
 markup = HTMLMarkup ()
+#markup = TexiMarkup ()
 main_status_body = last_updated_string % date_time
 main_status_body += '\n'.join ([doc.texi_status (markup) for doc in master_docs])