A fork of https://github.com/crosspoint-reader/crosspoint-reader
1#!/usr/bin/env bash
2set -euo pipefail
3
4ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
5
6cd "$ROOT_DIR"
7
8process() {
9 local lang="$1"
10
11 mkdir -p "build"
12 wget -O "build/$lang.bin" "https://github.com/typst/hypher/raw/refs/heads/main/tries/$lang.bin"
13
14 python scripts/generate_hyphenation_trie.py \
15 --input "build/$lang.bin" \
16 --output "lib/Epub/Epub/hyphenation/generated/hyph-${lang}.trie.h"
17}
18
19process en
20process fr
21process de
22process es
23process ru
24process it
25process uk