Commit 4eb53492 authored by Arndt Heilmann's avatar Arndt Heilmann
Browse files

Fixed Names

parent 5db348ec
......@@ -3,12 +3,12 @@ The following procedure allows you to manually re-align modification ids to the
1) Put .Event.xml-files into EventFiles
2) Run CreatePuzzleFileFromKd.py from Scripts-Folder.
2) Run 1_CreatePuzzleFileFromEventFile.py from Scripts-Folder.
3) Open .pzl-file from ManualRealignment-Folder in a spreadsheet program.
4) Re-align modifications by cutting and pasting modification ids to token ids.
5) Run CreateFixedKD.py from Scripts-Folder to get an updated kd.-file.
5) Run 2_CreateFixedEventFiles.py from Scripts-Folder to get an updated kd.-file.
6) Use and upload .Event.xml-files from FixedEventFiles
\ No newline at end of file
......@@ -51,16 +51,16 @@ for dirs,subdirs,files in os.walk('..\\EventFiles\\'):
#%%
for translation in TokKDdict:
# writefile=False
# try:
# open("..\\ManualRealignment\\"+translation+".pzl")
# answer=input("Do you really want to overwrite "+translation+".pzl (y/n)")
# if answer=="y":
# writefile=True
writefile=False
try:
open("..\\ManualRealignment\\"+translation+".pzl")
answer=input("Do you really want to overwrite "+translation+".pzl (y/n)")
if answer=="y":
writefile=True
# except FileNotFoundError:
# writefile=True
# if writefile==True:
except FileNotFoundError:
writefile=True
if writefile==True:
with open("..\\ManualRealignment\\"+translation+".pzl","w",encoding="utf-8") as outfile:
for i,token in enumerate(sorted(list(TokKDdict[translation].keys()))):
# token=str(token)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment