Skip to content

Commit

Permalink
Fix merge conflicts wih origin
Browse files Browse the repository at this point in the history
  • Loading branch information
1313ou committed Oct 10, 2024
2 parents 43887d0 + e9a60a6 commit 1b52446
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions scripts/from_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,10 @@ def map_sense_key(sk):
"""
if "%" in sk:
e = sk.split("%")
return ("oewn-" + e[0].replace("'","-ap-").replace("/","-sl-")
.replace("!","-ex-").replace(",","-cm-")
.replace(":","-cn-").replace("+","-pl-") +
return ("oewn-" + e[0].replace("'","-ap-").replace("/","-sl-").replace("!","-ex-").replace(",","-cm-").replace(":","-cn-").replace("+","-pl-") +
"__" + e[1].replace("_","-sp-").replace(":","."))
else:
return ("oewn-" + sk.replace("%", "__").replace("'","-ap-")
.replace("/","-sl-").replace("!","-ex-").replace(",","-cm-")
.replace(":","-cn-").replace("+","-pl-"))

return "oewn-" + sk.replace("%", "__").replace("'","-ap-").replace("/","-sl-").replace("!","-ex-").replace(",","-cm-").replace(":","-cn-").replace("+","-pl-")

def unmap_sense_key(sk):
"""
Expand All @@ -40,14 +35,10 @@ def unmap_sense_key(sk):
e = sk.split("__")
oewn_key = e[0][KEY_PREFIX_LEN:]
r = "__".join(e[1:])
<<<<<<< HEAD:scripts/from_yaml.py
return (oewn_key.replace("-ap-", "'").replace("-sl-", "/").replace("-ex-", "!")
.replace("-cm-",",").replace("-cn-",":").replace("-pl-","+") +
return (l.replace("-ap-", "'").replace("-sl-", "/").replace("-ex-", "!").replace("-cm-",",").replace("-cn-",":").replace("-pl-","+") +
"%" + r.replace(".", ":").replace("-sp-","_"))
else:
return (sk[KEY_PREFIX_LEN:].replace("__", "%").replace("-ap-", "'")
.replace("-sl-", "/").replace("-ex-", "!").replace("-cm-",",")
.replace("-cn-",":").replace("-pl-","+"))
return sk[KEY_PREFIX_LEN:].replace("__", "%").replace("-ap-", "'").replace("-sl-", "/").replace("-ex-", "!").replace("-cm-",",").replace("-cn-",":").replace("-pl-","+")


def make_pos(y, pos):
Expand Down

0 comments on commit 1b52446

Please sign in to comment.