diff options
Diffstat (limited to 'report/viewer/display.py')
-rwxr-xr-x | report/viewer/display.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/report/viewer/display.py b/report/viewer/display.py deleted file mode 100755 index bf9d2a1f..00000000 --- a/report/viewer/display.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python - -import sys, os, gzip, re -import render, alignment - -import reportlab.rl_config -reportlab.rl_config.warnOnMissingFontGlyphs = 0 -from reportlab.pdfbase.ttfonts import TTFont -from reportlab.pdfbase import pdfmetrics - -pdfmetrics.registerFont(TTFont('PMingLiU', 'PMingLiU.ttf')) - -doc = render.Document(sys.argv[1]) - -for line in sys.stdin: - src, tgt, align = line.split(' ||| ') - src = src.split() - tgt = tgt.split() - align = alignment.parse_pharaoh_align(align) - doc.append(render.Alignment(src, tgt, align, 'PMingLiU', 'Helvetica', 8, 0.4)) - -doc.render() |