Rev 539 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 539 | Rev 14891 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #! /bin/sh |
1 | #! /bin/sh |
2 | - | ||
- | 2 | LL="env LC_ALL=C LC_CTYPE=C LANG=C" |
|
3 | dicsort_separator=':' |
3 | dicsort_separator=':' |
4 | w_dictionary=dic/syno |
4 | w_dictionary=dic/syno |
5 | w_suffix_dictionary=dic/suffix |
5 | w_suffix_dictionary=dic/suffix |
6 | w_translator_unknown=leave |
6 | w_translator_unknown=leave |
7 | export dicsort_separator w_dictionary w_suffix_dictionary w_translator_unknown |
7 | export dicsort_separator w_dictionary w_suffix_dictionary w_translator_unknown |
Line 15... | Line 15... | ||
15 | index=`echo $base | tr / @` |
15 | index=`echo $base | tr / @` |
16 | # if [ ! -f index/$index ] || [ index/$index -ot $i ]; then |
16 | # if [ ! -f index/$index ] || [ index/$index -ot $i ]; then |
17 | get=`awk 'BEGIN {a=0}; |
17 | get=`awk 'BEGIN {a=0}; |
18 | substr($1,1,1)==":" {if(a==0) a=1; else exit;} |
18 | substr($1,1,1)==":" {if(a==0) a=1; else exit;} |
19 | a==1 {print}' $i | |
19 | a==1 {print}' $i | |
20 | tr 'çéèêëúùûüáàâäãóòôöõíìïîñýÇÉÈÊËÚÙÛÜÁÀÂÃÄÓÒÔÖÕÍÌÏÎÑÝ' 'ceeeeuuuuaaaaaoooooiiiinyCEEEEUUUUAAAAAOOOOOIIIINY' | |
20 | $LL tr 'çéèêëúùûüáàâäãóòôöõíìïîñýÇÉÈÊËÚÙÛÜÁÀÂÃÄÓÒÔÖÕÍÌÏÎÑÝ' 'ceeeeuuuuaaaaaoooooiiiinyCEEEEUUUUAAAAAOOOOOIIIINY' | |
21 | tr "\:[A-Z]\-\012\'" " [a-z] , " | sed 's/,/, /g' | tr -s '[:blank:]' ' '` |
21 | $LL tr "\:[A-Z]\-\012\'" " [a-z] , " | sed 's/,/, /g' | tr -s '[:blank:]' ' '` |
22 | wims_exec_parm="$get" |
22 | wims_exec_parm="$get" |
23 | got=`exec dic/translator | tr , '\012' | sed 's/^ //' | sort | uniq` |
23 | got=`exec dic/translator | tr , '\012' | sed 's/^ //' | sort | uniq` |
24 | echo "$got" | awk '{print $0":'$base'"}' >>dic/form |
24 | echo "$got" | awk '{print $0":'$base'"}' >>dic/form |
25 | # echo "$got" | awk '{print $0":'$base'"}' >index/$index |
25 | # echo "$got" | awk '{print $0":'$base'"}' >index/$index |
26 | # fi |
26 | # fi |