build, data: the Greek capitals by name; one way to run python3; bench.sh checks its own binary
Δ Γ Λ Ω Φ Ψ Σ Θ answered only to De, Ga, La, Om, Ph, Ps, Si, Th, while their small letters answered to delta, gamma and the rest; they answer to the names too now. mkemoji and cldr2emoji write UTF-8 whatever the locale, as the other generators already did; verify-map calls python3 the one way; the tests' include path drops a directory nothing includes through; and bench.sh says which binary is missing instead of blaming the daemon ten seconds later.
This commit is contained in:
12
Makefile
12
Makefile
@@ -89,12 +89,12 @@ test: check
|
|||||||
verify-map:
|
verify-map:
|
||||||
test "$$(cut -f1 map/hira.map)" = "$$(cut -f1 map/kata.map)"
|
test "$$(cut -f1 map/hira.map)" = "$$(cut -f1 map/kata.map)"
|
||||||
python3 map/mktelex.py | cmp - map/telex.map
|
python3 map/mktelex.py | cmp - map/telex.map
|
||||||
python3 -B map/mkemoji | cmp - map/emoji.dict
|
python3 map/mkemoji | cmp - map/emoji.dict
|
||||||
python3 -B map/mkhanja | cmp - map/hanja.dict
|
python3 map/mkhanja | cmp - map/hanja.dict
|
||||||
python3 -B map/verifymap.py map/*.map map/*.dict
|
python3 map/verifymap.py map/*.map map/*.dict
|
||||||
python3 -B tests/mkemoji_test.py
|
python3 tests/mkemoji_test.py
|
||||||
python3 -B tests/mkhanja_test.py
|
python3 tests/mkhanja_test.py
|
||||||
python3 -B tests/skk2ktrans_test.py
|
python3 tests/skk2ktrans_test.py
|
||||||
|
|
||||||
.PHONY: all check check-live check-stress test verify-map clean gtk bench \
|
.PHONY: all check check-live check-stress test verify-map clean gtk bench \
|
||||||
docker docker-image docker-build docker-check docker-check-live \
|
docker docker-image docker-build docker-check docker-check-live \
|
||||||
|
|||||||
5
bench.sh
5
bench.sh
@@ -9,6 +9,11 @@ if test "$#" -ne 0; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! test -x ./bench/bench; then
|
||||||
|
echo "bench.sh: ./bench/bench is not executable; run make bench first" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
strans_pid=
|
strans_pid=
|
||||||
perf_pid=
|
perf_pid=
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ def annotations(path):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
sys.stdout.reconfigure(encoding="utf-8")
|
||||||
|
sys.stderr.reconfigure(encoding="utf-8")
|
||||||
if len(sys.argv) < 3:
|
if len(sys.argv) < 3:
|
||||||
print(f"usage: {sys.argv[0]} emoji-test.txt annotations.json...",
|
print(f"usage: {sys.argv[0]} emoji-test.txt annotations.json...",
|
||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ beta β
|
|||||||
chi χ
|
chi χ
|
||||||
deg ° 🪯
|
deg ° 🪯
|
||||||
degree °
|
degree °
|
||||||
delta δ
|
delta δ Δ
|
||||||
de Δ 🪅
|
de Δ 🪅
|
||||||
dn ↓
|
dn ↓
|
||||||
down ↓ 🫳 👇 👎 🐨 📩 📉 ⬇️ ⤵️ 🔽 ⏬ 🔻
|
down ↓ 🫳 👇 👎 🐨 📩 📉 ⬇️ ⤵️ 🔽 ⏬ 🔻
|
||||||
@@ -60,7 +60,7 @@ _e ₑ
|
|||||||
eps ε
|
eps ε
|
||||||
eta η
|
eta η
|
||||||
fuck 凸
|
fuck 凸
|
||||||
gamma γ
|
gamma γ Γ
|
||||||
ga Γ
|
ga Γ
|
||||||
^i ⁱ
|
^i ⁱ
|
||||||
ii ∫
|
ii ∫
|
||||||
@@ -69,34 +69,34 @@ inf ∞
|
|||||||
infinity ∞ ♾️
|
infinity ∞ ♾️
|
||||||
iota ι
|
iota ι
|
||||||
kappa κ
|
kappa κ
|
||||||
lambda λ
|
lambda λ Λ
|
||||||
la Λ
|
la Λ
|
||||||
mul ×
|
mul ×
|
||||||
times ×
|
times ×
|
||||||
mu μ
|
mu μ
|
||||||
^n ⁿ
|
^n ⁿ
|
||||||
nu ν
|
nu ν
|
||||||
omega ω
|
omega ω Ω
|
||||||
om Ω 🕉️
|
om Ω 🕉️
|
||||||
oo ●
|
oo ●
|
||||||
circle ● 🛞 ⏺️ ⭕ Ⓜ️ 🔴 🟠 🟡 🟢 🔵 🟣 🟤 ⚫ ⚪
|
circle ● 🛞 ⏺️ ⭕ Ⓜ️ 🔴 🟠 🟡 🟢 🔵 🟣 🟤 ⚫ ⚪
|
||||||
_o ₒ
|
_o ₒ
|
||||||
phi φ
|
phi φ Φ
|
||||||
ph Φ
|
ph Φ
|
||||||
pi π Π 👲
|
pi π Π 👲
|
||||||
pp ∏
|
pp ∏
|
||||||
prod ∏
|
prod ∏
|
||||||
psi ψ
|
psi ψ Ψ
|
||||||
ps Ψ
|
ps Ψ
|
||||||
rho ρ
|
rho ρ
|
||||||
sigma σ
|
sigma σ Σ
|
||||||
si Σ
|
si Σ
|
||||||
sq √
|
sq √
|
||||||
sqrt √
|
sqrt √
|
||||||
ss ∑
|
ss ∑
|
||||||
sum ∑
|
sum ∑
|
||||||
tau τ
|
tau τ
|
||||||
theta θ
|
theta θ Θ
|
||||||
th Θ
|
th Θ
|
||||||
up ↑ 🤮 🫳 👆 ☝️ 👍 🤲 🧗 🧗♂️ 🧗♀️ 🍳 🧣 🧥 📄 📈 ⬆️ ⤴️ 🔝 🔼 ⏫ 🆙 🔺
|
up ↑ 🤮 🫳 👆 ☝️ 👍 🤲 🧗 🧗♂️ 🧗♀️ 🍳 🧣 🧥 📄 📈 ⬆️ ⤴️ 🔝 🔼 ⏫ 🆙 🔺
|
||||||
ups υ
|
ups υ
|
||||||
|
|||||||
@@ -69,6 +69,8 @@ def build(entries):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
sys.stdout.reconfigure(encoding="utf-8")
|
||||||
|
sys.stderr.reconfigure(encoding="utf-8")
|
||||||
paths = [Path(arg) for arg in sys.argv[1:]] or SOURCES
|
paths = [Path(arg) for arg in sys.argv[1:]] or SOURCES
|
||||||
try:
|
try:
|
||||||
entries = [entry for path in paths for entry in read(path)]
|
entries = [entry for path in paths for entry in read(path)]
|
||||||
|
|||||||
@@ -55,44 +55,44 @@
|
|||||||
χ chi
|
χ chi
|
||||||
° deg degree
|
° deg degree
|
||||||
δ delta
|
δ delta
|
||||||
Δ De
|
Δ De Delta
|
||||||
↓ dn down
|
↓ dn down
|
||||||
ₑ _e
|
ₑ _e
|
||||||
ε eps
|
ε eps
|
||||||
η eta
|
η eta
|
||||||
凸 fuck
|
凸 fuck
|
||||||
γ gamma
|
γ gamma
|
||||||
Γ Ga
|
Γ Ga Gamma
|
||||||
ⁱ ^i
|
ⁱ ^i
|
||||||
∫ II integral
|
∫ II integral
|
||||||
∞ inf infinity
|
∞ inf infinity
|
||||||
ι iota
|
ι iota
|
||||||
κ kappa
|
κ kappa
|
||||||
λ lambda
|
λ lambda
|
||||||
Λ La
|
Λ La Lambda
|
||||||
× mul times
|
× mul times
|
||||||
μ mu
|
μ mu
|
||||||
ⁿ ^n
|
ⁿ ^n
|
||||||
ν nu
|
ν nu
|
||||||
ω omega
|
ω omega
|
||||||
Ω Om
|
Ω Om Omega
|
||||||
● oo circle
|
● oo circle
|
||||||
ₒ _o
|
ₒ _o
|
||||||
φ phi
|
φ phi
|
||||||
Φ Ph
|
Φ Ph Phi
|
||||||
π pi
|
π pi
|
||||||
Π Pi
|
Π Pi
|
||||||
∏ PP prod
|
∏ PP prod
|
||||||
ψ psi
|
ψ psi
|
||||||
Ψ Ps
|
Ψ Ps Psi
|
||||||
ρ rho
|
ρ rho
|
||||||
σ sigma
|
σ sigma
|
||||||
Σ Si
|
Σ Si Sigma
|
||||||
√ sq sqrt
|
√ sq sqrt
|
||||||
∑ SS sum
|
∑ SS sum
|
||||||
τ tau
|
τ tau
|
||||||
θ theta
|
θ theta
|
||||||
Θ Th
|
Θ Th Theta
|
||||||
↑ up
|
↑ up
|
||||||
υ ups
|
υ ups
|
||||||
✓ vv check
|
✓ vv check
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ LD = 9l
|
|||||||
HOSTCC = cc
|
HOSTCC = cc
|
||||||
PKG_CONFIG ?= pkg-config
|
PKG_CONFIG ?= pkg-config
|
||||||
CFLAGS ?= -O2 -g
|
CFLAGS ?= -O2 -g
|
||||||
UNIT_CPPFLAGS = -I.. -I../cutest
|
UNIT_CPPFLAGS = -I..
|
||||||
UNIT_CFLAGS = -std=c99 -Wall -Wextra
|
UNIT_CFLAGS = -std=c99 -Wall -Wextra
|
||||||
HOST_CFLAGS = -std=c99 -Wall -Wextra
|
HOST_CFLAGS = -std=c99 -Wall -Wextra
|
||||||
TEXT_CFLAGS = $(shell $(PKG_CONFIG) --cflags pangocairo cairo fontconfig)
|
TEXT_CFLAGS = $(shell $(PKG_CONFIG) --cflags pangocairo cairo fontconfig)
|
||||||
|
|||||||
Reference in New Issue
Block a user