final changes to transforms concerning line reordering.

everything *should* be in working order, but there are probably still bugs
This commit is contained in:
Bill Zorn 2015-11-05 21:20:20 -08:00
parent 18b7a69f90
commit 49071aefa6
4 changed files with 44423 additions and 43496 deletions

Binary file not shown.

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -429,21 +429,20 @@ def text_pass_11_linetrans(s):
sublines = line.split(',') sublines = line.split(',')
for subline in sublines: for subline in sublines:
if 'equip' in subline or 'enchant' in subline: if 'equip' in subline or 'enchant' in subline:
prelines += [subline] prelines += [subline.strip()]
elif 'countertype' or 'kicker' in subline: elif 'countertype' in subline or 'kicker' in subline:
postlines += [subline] postlines += [subline.strip()]
else: else:
keylines += [subline] keylines += [subline.strip()]
elif u'\u2014' in line and not u' \u2014 ' in line: elif u'\u2014' in line and not u' \u2014 ' in line:
if 'equip' in line or 'enchant' in line: if 'equip' in line or 'enchant' in line:
prelines += [line] prelines += [line.strip()]
elif 'countertype' or 'kicker' in line: elif 'countertype' in line or 'kicker' in line:
postlines += [line] postlines += [line.strip()]
else: else:
keylines += [line] keylines += [line.strip()]
else: else:
mainlines += [line] mainlines += [line.strip()]
print line.encode('utf-8')
alllines = prelines + keylines + mainlines + postlines alllines = prelines + keylines + mainlines + postlines
return utils.newline.join(alllines) return utils.newline.join(alllines)