-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (24 loc) · 1.19 KB
/
Copy pathMakefile
File metadata and controls
36 lines (24 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
all: SKK-JISYO.jawiki
clean:
rm -f dat/*.tsv
check: SKK-JISYO.jawiki
pytest check.py
test:
uv run ruff check .
uv run ruff format --check .
uv run pytest
dat/jawiki-latest-pages-articles.xml:
curl -s https://dumps.wikimedia.org/jawiki/latest/jawiki-latest-pages-articles.xml.bz2 | bunzip2 > dat/jawiki-latest-pages-articles.xml
dat/grepped.txt: dat/jawiki-latest-pages-articles.xml
grep -E "<title>.*</title>|'''[』|((]" dat/jawiki-latest-pages-articles.xml > dat/grepped.txt
dat/scanned.tsv: dat/grepped.txt bin/scanner.py jawiki/scanner.py
uv run python3 bin/scanner.py
dat/pre_validated.tsv: dat/scanned.tsv bin/pre_validator.py jawiki/pre_validate.py
uv run python3 bin/pre_validator.py
dat/converted.tsv: dat/pre_validated.tsv bin/converter.py jawiki/converter.py jawiki/hojin.py jawiki/jachars.py
uv run python3 bin/converter.py
dat/post_validated.tsv: dat/converted.tsv bin/post_validator.py jawiki/post_validate.py user_simpledic.csv
uv run python3 bin/post_validator.py
SKK-JISYO.jawiki: dat/post_validated.tsv bin/makedict.py jawiki/skkdict.py
uv run python3 bin/makedict.py /usr/share/skk/SKK-JISYO.L /usr/share/skk/SKK-JISYO.jinmei /usr/share/skk/SKK-JISYO.geo
.PHONY: all test check