diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2010-12-22 08:58:07 -0600 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2010-12-22 08:58:07 -0600 |
commit | b5ca2bd7001a385594af8dc4b9206399c679f8c5 (patch) | |
tree | 332cb09a27f783760532e688e14bde21a128bb2b /report/viewer/display.py | |
parent | 86805dcb8aaaa716fdc73725ad41e411be53f6a6 (diff) |
remove report
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() |