makePatterns.sh 415 B

1234567891011121314151617
  1. #!/bin/sh
  2. # -*- coding: utf-8 -*-
  3. path_in='../texPatterns/'
  4. path_out='./convertedPatterns/'
  5. prefix='hyph-'
  6. rm -R $path_out
  7. mkdir $path_out
  8. for filename in ${path_in}*.chr.txt; do {
  9. #filename="de.chr.txt"
  10. base=$(basename "$filename" .chr.txt)
  11. langcode=${base#$prefix}
  12. 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
  13. }
  14. done