final changes to transforms concerning line reordering.
everything *should* be in working order, but there are probably still bugs
This commit is contained in:
parent
18b7a69f90
commit
49071aefa6
4 changed files with 44423 additions and 43496 deletions
BIN
data/cbow.bin
BIN
data/cbow.bin
Binary file not shown.
57576
data/cbow.txt
57576
data/cbow.txt
File diff suppressed because it is too large
Load diff
30324
data/output.txt
30324
data/output.txt
File diff suppressed because it is too large
Load diff
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue