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(',')
for subline in sublines:
if 'equip' in subline or 'enchant' in subline:
prelines += [subline]
elif 'countertype' or 'kicker' in subline:
postlines += [subline]
prelines += [subline.strip()]
elif 'countertype' in subline or 'kicker' in subline:
postlines += [subline.strip()]
else:
keylines += [subline]
keylines += [subline.strip()]
elif u'\u2014' in line and not u' \u2014 ' in line:
if 'equip' in line or 'enchant' in line:
prelines += [line]
elif 'countertype' or 'kicker' in line:
postlines += [line]
prelines += [line.strip()]
elif 'countertype' in line or 'kicker' in line:
postlines += [line.strip()]
else:
keylines += [line]
keylines += [line.strip()]
else:
mainlines += [line]
print line.encode('utf-8')
mainlines += [line.strip()]
alllines = prelines + keylines + mainlines + postlines
return utils.newline.join(alllines)