extract.sh 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. #!/bin/sh
  2. # -*- coding: utf-8 -*-
  3. # license.txt characters.txt patterns.txt [exceptions.txt]
  4. #node tex2hpb ../texPatterns/hyph-en-us.lic.txt ../texPatterns/hyph-en-us.chr.txt ../texPatterns/hyph-en-us.pat.txt ../texPatterns/hyph-en-us.hyp.txt en
  5. #node tex2hpb ../texPatterns/hyph-de-1996.lic.txt ../texPatterns/hyph-de-1996.chr.txt ../texPatterns/hyph-de-1996.pat.txt ../texPatterns/hyph-de-1996.hyp.txt de
  6. texName[1]='de-1996'
  7. hpbName[1]='de'
  8. texName[2]='en-us'
  9. hpbName[2]='en-us'
  10. texName[3]='hy'
  11. hpbName[3]='hy'
  12. texName[4]='hu'
  13. hpbName[4]='hu'
  14. texName[5]='cs'
  15. hpbName[5]='cs'
  16. texName[6]='da'
  17. hpbName[6]='da'
  18. texName[7]='fr'
  19. hpbName[7]='fr'
  20. texName[8]='nl'
  21. hpbName[8]='nl'
  22. texName[9]='es'
  23. hpbName[9]='es'
  24. texName[10]='sv'
  25. hpbName[10]='sv'
  26. texName[11]='it'
  27. hpbName[11]='it'
  28. texName[12]='fi'
  29. hpbName[12]='fi'
  30. texName[13]='pl'
  31. hpbName[13]='pl'
  32. texName[14]='pt'
  33. hpbName[14]='pt'
  34. texName[15]='tr'
  35. hpbName[15]='tr'
  36. texName[16]='lt'
  37. hpbName[16]='lt'
  38. texName[17]='sl'
  39. hpbName[17]='sl'
  40. texName[18]='la-x-classic'
  41. hpbName[18]='la'
  42. texName[19]='nb'
  43. hpbName[19]='nb-no'
  44. texName[20]='lv'
  45. hpbName[20]='lv'
  46. texName[21]='ca'
  47. hpbName[21]='ca'
  48. texName[22]='sk'
  49. hpbName[22]='sk'
  50. texName[23]='eo'
  51. hpbName[23]='eo'
  52. texName[24]='sh-latn'
  53. hpbName[24]='sh-latn'
  54. texName[25]='ro'
  55. hpbName[25]='ro'
  56. texName[26]='et'
  57. hpbName[26]='et'
  58. texName[27]='ga'
  59. hpbName[27]='ga'
  60. texName[28]='be'
  61. hpbName[28]='be'
  62. texName[29]='ru'
  63. hpbName[29]='ru'
  64. texName[30]='sr-cyrl'
  65. hpbName[30]='sr-cyrl'
  66. texName[31]='uk'
  67. hpbName[31]='uk'
  68. pt='../texPatterns/'
  69. px='hyph-'
  70. for i in {1..1}; do {
  71. node tex2hpb.js ${pt}${px}${texName[${i}]}.lic.txt ${pt}${px}${texName[${i}]}.chr.txt ${pt}${px}${texName[${i}]}.pat.txt ${pt}${px}${texName[${i}]}.hyp.txt ${hpbName[${i}]}
  72. }
  73. done