Ajout hyphen

This commit is contained in:
Tibo
2020-01-13 22:21:24 +01:00
parent aff4f57711
commit 1e895d5b51
157 changed files with 16864 additions and 10 deletions
@@ -0,0 +1,17 @@
#!/bin/sh
# -*- coding: utf-8 -*-
path_in='../texPatterns/'
path_out='./convertedPatterns/'
prefix='hyph-'
rm -R $path_out
mkdir $path_out
for filename in ${path_in}*.chr.txt; do {
#filename="de.chr.txt"
base=$(basename "$filename" .chr.txt)
langcode=${base#$prefix}
node tex2hpb.js $path_in$base.lic.txt $path_in$base.chr.txt $path_in$base.pat.txt $path_in$base.hyp.txt $path_out$langcode
}
done