make_skeleton = ('--skeleton', '') in optlist # --skeleton extract the node tree from a Texinfo source
output_file = 'doc.pot'
-node_blurb = '''@ifhtml
-UNTRANSLATED NODE: IGNORE ME
-@end ifhtml
+
+# @untranslated should be defined as a macro in Texinfo source
+node_blurb = '''@untranslated
'''
doclang = ''
head_committish = read_pipe ('git-rev-parse HEAD')
str (i + 1) + ' (variable)\n_(r"' + var + '")\n')
elif comment:
output_file.write ('# ' + printedfilename + ':' + \
- str (i + 1) + ' (comment)\n_(r"' + comment + '")\n')
+ str (i + 1) + ' (comment)\n_(r"' + \
+ comment.replace ('"', '\\"') + '")\n')
# process Texinfo node names and section titles
if write_skeleton:
for item in includes:
process_texi (os.path.join (dir, item.strip ()), i_blurb, n_blurb, write_skeleton, topfile, output_file, scan_ly)
except IOError, (errno, strerror):
- sys.stderr.write ("I/O error(%s): %s: %s" % (errno, texifilename, strerror))
+ sys.stderr.write ("I/O error(%s): %s: %s\n" % (errno, texifilename, strerror))
if intro_blurb != '':