Skip to content

Commit 2e7bc3c

Browse files
committed
Add missing entries to phrase.occ
"崐" from openvanilla#833 "𡻈" from openvanilla#75 Those are the only two characters with score -99.0. For 𡻈 it's problematic because it's ranked lower than the emoji 🪡 because of it. Also fixes the `sort` Makefile recipe based on how the issue was fixed in openvanilla#837 Also updates the byte length in `check` from 3 to 4, because "𡻈" is actually 4 bytes long in UTF-8.
1 parent 6316592 commit 2e7bc3c

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Source/Data/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ _deploy: _install
4444
@rsync -avx data.txt data-plain-bpmf.txt $(RHOST):"Library/Input\ Methods/McBopomofo.app/Contents/Resources/"
4545
@test "$(RHOST)" && ssh $(RHOST) "pkill -HUP -f McBopomofo || echo McBopomofo is not running" || true
4646

47+
sort: SHELL:=/bin/bash
48+
sort: export LC_ALL=C
4749
sort:
4850
@env LC_ALL=C sort -k1 phrase.occ | uniq | grep -v '^$$' > tmp
4951
@mv tmp phrase.occ
@@ -64,7 +66,7 @@ check:
6466
@awk 'length($$1)/3!=NF-1' BPMFMappings.txt
6567
@awk '{print $$2,$$3,$$4,$$5,$$6,$$7}' BPMFMappings.txt | awk '/一/'
6668
@diff -u <(awk '{print $$1}' BPMFMappings.txt|sort -u) \
67-
<(awk 'length($$1)>3{print $$1}' phrase.occ|sort -u)
69+
<(awk 'length($$1)>4{print $$1}' phrase.occ|sort -u)
6870

6971
tidy:
7072
@sed -i '' -e 's/ //g' phrase.occ

Source/Data/phrase.occ

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46318,6 +46318,7 @@
4631846318
崎嶇不平 3
4631946319
崎嶇難走 1
4632046320
崏 0
46321+
崐 0
4632146322
崑 95
4632246323
崑劇 13
4632346324
崑山 13
@@ -152586,3 +152587,4 @@
152586152587
龤 0
152587152588
兀 0
152588152589
嗀 0
152590+
𡻈 0

0 commit comments

Comments
 (0)