made emoji and UCSUR creation better

This commit is contained in:
plasmaofthedawn
2025-07-02 00:27:51 -04:00
parent 6edaffcacb
commit 323a53b7f5
2 changed files with 16 additions and 7 deletions

View File

@@ -1,14 +1,25 @@
import subprocess import subprocess
import os import os
from collections import defaultdict
header = """KeyCode=mnptkswljiueoaAR
headers = defaultdict(lambda: """KeyCode=mnptkswljiueoaAR
Length=16
Prompt=
ConstructPhrase=
[Data]
""")
headers["UCSUR"] = """KeyCode=mnptkswljiueoa()[]{}^*.:"
Length=16 Length=16
Prompt= Prompt=
ConstructPhrase= ConstructPhrase=
[Data] [Data]
""" """
ucscr_header = """KeyCode=mnptkswljiueoa()[]{}^*.: -" headers["nasin pi sitelen jelo"] = """KeyCode=mnptkswljiueoa[]"
Length=16 Length=16
Prompt= Prompt=
ConstructPhrase= ConstructPhrase=
@@ -70,7 +81,7 @@ for n, fn, d in zip(names, filenames, data.split("---")):
print(n, fn) print(n, fn)
with open(f"raw_tables/{fn}.txt", "w") as f: with open(f"raw_tables/{fn}.txt", "w") as f:
f.write(header if n != "UCSUR" and n != "nasin pi sitelen jelo" else ucscr_header) f.write(headers[n])
f.write(d.strip()) f.write(d.strip())
subprocess.Popen(["libime_tabledict", f"raw_tables/{fn}.txt", f"table/{fn}.dict"]) subprocess.Popen(["libime_tabledict", f"raw_tables/{fn}.txt", f"table/{fn}.dict"])

View File

@@ -2865,9 +2865,7 @@ powe 󱦣
^ 󱦕 ^ 󱦕
* 󱦖 * 󱦖
. 󱦜 . 󱦜
: 󱦝 : 󱦝 
 
-
" 「 」 " 「 」
--- ---
a ⍤︎ a ⍤︎