build, data: skk2ktrans keeps the SKK header; the recipe names every generator; an inert config line goes

An SKK dictionary's ";;" header carries its license notice, which
LICENSES/README.md relies on for kanji.dict, and skk2ktrans dropped
every ";;" line: a re-import as map/README describes lost the grant.
The leading comment block is kept now.  README's regenerate-and-verify
recipe omitted mktelex.py although verify-map checks its output; and
the Dockerfile set a shell variable named egrep in plan9's config that
9c never reads, calling egrep by name.
This commit is contained in:
2026-08-17 01:49:45 +09:00
parent 7c9e736996
commit 42568ab020
4 changed files with 13 additions and 5 deletions

View File

@@ -35,7 +35,6 @@ RUN export DEBUGINFOD_URLS=https://debuginfod.archlinux.org \
"$debugdir/${buildid#??}.debug" \
&& rm -rf /root/.cache/debuginfod_client
RUN printf "egrep='grep -E'\n" > /usr/lib/plan9/config
RUN dbus-uuidgen --ensure=/etc/machine-id
ENV PLAN9=/usr/lib/plan9

View File

@@ -183,16 +183,18 @@ is not started and the popup is disabled.
## Dictionary data
After changing an input source, regenerate and verify the dictionaries:
After changing an input source, regenerate and verify the maps and
dictionaries:
```sh
python3 map/mktelex.py >map/telex.map
map/mkemoji >map/emoji.dict
map/mkhanja >map/hanja.dict
make verify-map
```
See [`map/README`](map/README) for Hanja import and Japanese dictionary
generation.
See [`map/README`](map/README) for the emoji, Hanja, and Japanese data and
where it comes from.
## Benchmark

View File

@@ -36,10 +36,16 @@ function add(k, v, id) {
row[k] = row[k] " "
row[k] = row[k] v
}
/^;;/ || /^[[:space:]]*$/ {
/^;;/ {
if(!body) # the header, with its license notice, is kept
print
next
}
/^[[:space:]]*$/ {
next
}
{
body = 1
if(!match($0, /[[:space:]]+/))
fail("missing candidate list")
key = substr($0, 1, RSTART-1)

View File

@@ -1,3 +1,4 @@
;; converter fixture; the test transcodes this file to EUC-JP
かんじ 漢字 幹事 感じ
えがお 笑顔
きごう 記号 普通
1 かんじ ;; converter fixture; the test transcodes this file to EUC-JP 漢字 幹事 感じ
1 ;; converter fixture; the test transcodes this file to EUC-JP
2 かんじ かんじ 漢字 幹事 感じ
3 えがお えがお 笑顔
4 きごう きごう 記号 普通