diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2019-11-03 21:37:30 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2019-11-03 21:37:30 +0100 |
commit | 9c09c62a00aad211484e23940e70ab8dfe1ea65c (patch) | |
tree | 8fde0ca2358f1d3dd18def1e5dae00b50182f156 /gen.sh | |
parent | 80a7db488ac82fdf67a2d30fc3c9bf2709612c17 (diff) | |
download | lulua-9c09c62a00aad211484e23940e70ab8dfe1ea65c.tar.gz lulua-9c09c62a00aad211484e23940e70ab8dfe1ea65c.tar.bz2 lulua-9c09c62a00aad211484e23940e70ab8dfe1ea65c.zip |
stats: Word stats+LatinIME renderer
Add word stats (well, tokens seperated by non-letter symbols really, but
that’s alright) and dumping into an LatinIME-compatible dictionary file
(for Android).
Diffstat (limited to 'gen.sh')
-rwxr-xr-x | gen.sh | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -40,13 +40,12 @@ rule render-xmodmap rule analyze-heat command = lulua-analyze -l \$layout keyheatmap < \$in > \$out -# XXX: add lulua-analyze combine here rule write-bbcarabic - command = find \$in -type f | lulua-write bbcarabic \$layout > \$out + command = find \$in -type f | lulua-write bbcarabic \$layout | lulua-analyze combine > \$out pool = write rule write-aljazeera - command = find \$in -type f | lulua-write aljazeera \$layout > \$out + command = find \$in -type f | lulua-write aljazeera \$layout | lulua-analyze combine > \$out pool = write rule write-epub @@ -73,6 +72,9 @@ rule letterfreq rule analyze-fingerhand command = lulua-analyze -l \$layout fingerhand < \$in > \$out +rule wordlist + command = lulua-analyze -l ar-lulua latinime < \$in > \$out + rule cpp command = gcc -E -x c -nostdinc -MMD -MF \$out.d -C -P -I \$docdir/_temp \$in -o \$out depfile = \$out.d @@ -81,6 +83,9 @@ rule cpp rule cp command = cp \$in \$out +rule gz + command = gzip -c \$in > \$out + ### build targets ### build \$docdir/_build: mkdir build \$docdir/_build/fonts: mkdir @@ -89,6 +94,9 @@ build \$docdir/_build/index.html: cpp \$docdir/index.html || \$docdir/_build build \$docdir/_build/letterfreq.json: letterfreq \$statsdir/ar-lulua/all.pickle || \$docdir/_build build \$docdir/_build/style.css: cp \$docdir/style.css || \$docdir/_build build \$docdir/_build/lulua-logo.svg: cp \$docdir/lulua-logo.svg || \$docdir/_build +# wordlist +build \$docdir/_temp/lulua.combined: wordlist \$statsdir/ar-lulua/all.pickle || \$docdir/_temp +build \$docdir/_build/lulua.combined.gz: gz \$docdir/_temp/lulua.combined || \$docdir/_build build \$docdir/_build/fonts/IBMPlexArabic-Regular.woff2: cp \$fontdir/IBMPlexArabic-Regular.woff2 || \$docdir/_build/fonts |