From: Jan Nieuwenhuizen Date: Mon, 12 Apr 2010 20:44:53 +0000 (+0200) Subject: translations-status.py: Add table and paragraph markup to TexiMarkup too. X-Git-Tag: release/2.13.18-1~15^2~18 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f522e027e9d1bd444821d0b519ef3fe81af1afce;p=lilypond.git translations-status.py: Add table and paragraph markup to TexiMarkup too. --- diff --git a/scripts/auxiliar/translations-status.py b/scripts/auxiliar/translations-status.py index ad3b8127ec..84c6b0cefd 100755 --- a/scripts/auxiliar/translations-status.py +++ b/scripts/auxiliar/translations-status.py @@ -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])