Skip to content

Commit

Permalink
o ante e nasin pali tawa nasin sin
Browse files Browse the repository at this point in the history
- o kepeken nimi Linku
- o wan e ijo tan nimi Linku e ijo tan pali ni
  • Loading branch information
somasis committed Aug 29, 2022
1 parent 1a86f50 commit a76effb
Show file tree
Hide file tree
Showing 13 changed files with 1,114 additions and 133 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
data.json
tok.bdic
tok.dic
hunspell-tok-*.tar.gz
37 changes: 34 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,48 @@
.DELETE_ON_ERROR:

prefix ?= /usr/local
datadir ?= ${prefix}/share
dictdir ?= ${datadir}/hunspell
bdicdir ?= ${datadir}/qt/qtwebengine_dictionaries

all:
linku ?= https://lipu-linku.github.io/jasima/data.json

dev: data.json all

all: tok.dic

data.json: filter_linku.jq
data.json: augment.json augment_languages.json augment_places.json
curl -Lf ${linku} \
| jq -s '.[0] * .[1] * .[2] * .[3] * .[4] * .[5]' \
- \
./augment.json \
./augment_places.json \
./augment_languages.json \
./augment_names.json \
./augment_transliterations.json \
| jq -cf ./filter_linku.jq > data.json

tok.dic: data.json generate_dic.jq
jq -rf ./generate_dic.jq < data.json > tok.dic

tok.bdic: tok.aff tok.dic
qwebengine_convert_dict tok.aff tok.bdic

bdic: tok.bdic
dist: clean dev
tag=$$(git rev-list --count --since=yesterday --until=tomorrow HEAD | wc -l); \
[ "$$tag" -gt 1 ] && tag=".$$tag" || tag=; \
tag="$$(date +%Y%m%d)$$tag"; \
git tag -fs "$$tag"; \
git archive \
--format=tar \
--prefix="hunspell-tok-$$tag"/ \
--add-file=./tok.dic \
HEAD \
| gzip -9 > "hunspell-tok-$$tag".tar.gz

clean:
rm -f tok.bdic
rm -f tok.bdic tok.dic data.json

install: tok.aff tok.dic
install -d ${DESTDIR}${dictdir}
Expand Down
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ sina kama jo e ni lon ilo sona sina la, sina ken kepeken ni lon ilo `hunspell(1)
== nimi lon

poki ni li jo e nimi ale tan {linku}[nimi Linku]. poki ni li sin lili e ni
kepeken nimi ma, kepeken nimi toki.
kepeken nimi ma, kepeken nimi toki, kepeken nimi jan pi toki pona.

:linku: https://lipu-linku.github.io/
2 changes: 1 addition & 1 deletion README.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ You can install this and use it like any other `hunspell(1)` dictionary.
== Words included

This dictionary contains all the words from {linku}[nimi Linku], with the addition of common
place names and language names.
place names, language names, and Toki Pona names.

:linku: https://lipu-linku.github.io/
Loading

0 comments on commit a76effb

Please sign in to comment.