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:
|
||||
test "$$(cut -f1 map/hira.map)" = "$$(cut -f1 map/kata.map)"
|
||||
python3 map/mktelex.py | cmp - map/telex.map
|
||||
python3 -B map/mkemoji | cmp - map/emoji.dict
|
||||
python3 -B map/mkhanja | cmp - map/hanja.dict
|
||||
python3 -B map/verifymap.py map/*.map map/*.dict
|
||||
python3 -B tests/mkemoji_test.py
|
||||
python3 -B tests/mkhanja_test.py
|
||||
python3 -B tests/skk2ktrans_test.py
|
||||
python3 map/mkemoji | cmp - map/emoji.dict
|
||||
python3 map/mkhanja | cmp - map/hanja.dict
|
||||
python3 map/verifymap.py map/*.map map/*.dict
|
||||
python3 tests/mkemoji_test.py
|
||||
python3 tests/mkhanja_test.py
|
||||
python3 tests/skk2ktrans_test.py
|
||||
|
||||
.PHONY: all check check-live check-stress test verify-map clean gtk bench \
|
||||
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
|
||||
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=
|
||||
perf_pid=
|
||||
|
||||
|
||||
@@ -28,6 +28,8 @@ def annotations(path):
|
||||
|
||||
|
||||
def main():
|
||||
sys.stdout.reconfigure(encoding="utf-8")
|
||||
sys.stderr.reconfigure(encoding="utf-8")
|
||||
if len(sys.argv) < 3:
|
||||
print(f"usage: {sys.argv[0]} emoji-test.txt annotations.json...",
|
||||
file=sys.stderr)
|
||||
|
||||
@@ -52,7 +52,7 @@ beta β
|
||||
chi χ
|
||||
deg ° 🪯
|
||||
degree °
|
||||
delta δ
|
||||
delta δ Δ
|
||||
de Δ 🪅
|
||||
dn ↓
|
||||
down ↓ 🫳 👇 👎 🐨 📩 📉 ⬇️ ⤵️ 🔽 ⏬ 🔻
|
||||
@@ -60,7 +60,7 @@ _e ₑ
|
||||
eps ε
|
||||
eta η
|
||||
fuck 凸
|
||||
gamma γ
|
||||
gamma γ Γ
|
||||
ga Γ
|
||||
^i ⁱ
|
||||
ii ∫
|
||||
@@ -69,34 +69,34 @@ inf ∞
|
||||
infinity ∞ ♾️
|
||||
iota ι
|
||||
kappa κ
|
||||
lambda λ
|
||||
lambda λ Λ
|
||||
la Λ
|
||||
mul ×
|
||||
times ×
|
||||
mu μ
|
||||
^n ⁿ
|
||||
nu ν
|
||||
omega ω
|
||||
omega ω Ω
|
||||
om Ω 🕉️
|
||||
oo ●
|
||||
circle ● 🛞 ⏺️ ⭕ Ⓜ️ 🔴 🟠 🟡 🟢 🔵 🟣 🟤 ⚫ ⚪
|
||||
_o ₒ
|
||||
phi φ
|
||||
phi φ Φ
|
||||
ph Φ
|
||||
pi π Π 👲
|
||||
pp ∏
|
||||
prod ∏
|
||||
psi ψ
|
||||
psi ψ Ψ
|
||||
ps Ψ
|
||||
rho ρ
|
||||
sigma σ
|
||||
sigma σ Σ
|
||||
si Σ
|
||||
sq √
|
||||
sqrt √
|
||||
ss ∑
|
||||
sum ∑
|
||||
tau τ
|
||||
theta θ
|
||||
theta θ Θ
|
||||
th Θ
|
||||
up ↑ 🤮 🫳 👆 ☝️ 👍 🤲 🧗 🧗♂️ 🧗♀️ 🍳 🧣 🧥 📄 📈 ⬆️ ⤴️ 🔝 🔼 ⏫ 🆙 🔺
|
||||
ups υ
|
||||
|
||||
@@ -69,6 +69,8 @@ def build(entries):
|
||||
|
||||
|
||||
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
|
||||
try:
|
||||
entries = [entry for path in paths for entry in read(path)]
|
||||
|
||||
@@ -55,44 +55,44 @@
|
||||
χ chi
|
||||
° deg degree
|
||||
δ delta
|
||||
Δ De
|
||||
Δ De Delta
|
||||
↓ dn down
|
||||
ₑ _e
|
||||
ε eps
|
||||
η eta
|
||||
凸 fuck
|
||||
γ gamma
|
||||
Γ Ga
|
||||
Γ Ga Gamma
|
||||
ⁱ ^i
|
||||
∫ II integral
|
||||
∞ inf infinity
|
||||
ι iota
|
||||
κ kappa
|
||||
λ lambda
|
||||
Λ La
|
||||
Λ La Lambda
|
||||
× mul times
|
||||
μ mu
|
||||
ⁿ ^n
|
||||
ν nu
|
||||
ω omega
|
||||
Ω Om
|
||||
Ω Om Omega
|
||||
● oo circle
|
||||
ₒ _o
|
||||
φ phi
|
||||
Φ Ph
|
||||
Φ Ph Phi
|
||||
π pi
|
||||
Π Pi
|
||||
∏ PP prod
|
||||
ψ psi
|
||||
Ψ Ps
|
||||
Ψ Ps Psi
|
||||
ρ rho
|
||||
σ sigma
|
||||
Σ Si
|
||||
Σ Si Sigma
|
||||
√ sq sqrt
|
||||
∑ SS sum
|
||||
τ tau
|
||||
θ theta
|
||||
Θ Th
|
||||
Θ Th Theta
|
||||
↑ up
|
||||
υ ups
|
||||
✓ vv check
|
||||
|
||||
@@ -3,7 +3,7 @@ LD = 9l
|
||||
HOSTCC = cc
|
||||
PKG_CONFIG ?= pkg-config
|
||||
CFLAGS ?= -O2 -g
|
||||
UNIT_CPPFLAGS = -I.. -I../cutest
|
||||
UNIT_CPPFLAGS = -I..
|
||||
UNIT_CFLAGS = -std=c99 -Wall -Wextra
|
||||
HOST_CFLAGS = -std=c99 -Wall -Wextra
|
||||
TEXT_CFLAGS = $(shell $(PKG_CONFIG) --cflags pangocairo cairo fontconfig)
|
||||
|
||||
Reference in New Issue
Block a user