Something went wrong. Try again.
A fork of https://github.com/crosspoint-reader/crosspoint-reader
Something went wrong. Try again.
540 B · 29 lines
Shell
123456789101112131415161718192021222324252627282930#!/usr/bin/env bashset -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
process() { local lang="$1"
mkdir -p "build" wget -O "build/$lang.bin" "https://github.com/typst/hypher/raw/refs/heads/main/tries/$lang.bin"
python scripts/generate_hyphenation_trie.py \ --input "build/$lang.bin" \ --output "lib/Epub/Epub/hyphenation/generated/hyph-${lang}.trie.h"}
process enprocess frprocess deprocess esprocess ruprocess itprocess ukprocess plprocess ptprocess svprocess fi