Subversion Repositories wimsdev

Rev

Rev 7692 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
791 bpr 1
!if $wims_read_parm!=slib_header
2
 !goto proc
3
!endif
4158 bpr 4
 
4349 bpr 5
slib_author=Bernadette, Perrin-Riou
4158 bpr 6
 
15456 bpr 7
slib_example=mother,mothers,father,fathers
791 bpr 8
 
9
!exit
10
:proc
11
!reset slib_epd slib_out
12
slib_text=$wims_read_parm
13
slib_text=!replace internal $	$ by $\
14
$ in $slib_text
15
slib_line_cnt=!linecnt $slib_text
16
slib_bad=,;?!.:
17
slib_bad_cnt=!charcnt $slib_bad
18
!for slib_a =1 to $slib_bad_cnt
19
  slib_char=!char $slib_a of $slib_bad
20
  slib_text=!replace internal $slib_char by $ $slib_char$ $ in $slib_text
21
!next
22
!for slib_l=1 to $slib_line_cnt
23
  !reset slib_epd_l
24
  slib_line=!line $slib_l of $slib_text
25
  slib_word_cnt=!wordcnt $slib_line
26
  !for slib_j = 1 to $slib_word_cnt
27
    slib_w = !word $slib_j of $slib_text
28
    slib_e=
29
    !if $slib_j notin $slib_bad
30
      slib_e = !lookup $slib_w in data/lex/epd_data
31
      slib_e=!item 1 of $slib_e
32
    !endif
33
    !default slib_e=$slib_w
34
    slib_epd_l=!append word $slib_e to $slib_epd_l
35
  !next
36
  slib_epd=$slib_epd\
37
$slib_epd_l
38
!next
39
slib_epd=!trim $slib_epd
40
 
41
!read slib/lang/epd2ipa $slib_epd
42
!for slib_a =1 to $slib_bad_cnt
43
  slib_char=!char $slib_a of $slib_bad
44
  slib_out=!replace internal $ $slib_char by $slib_char in $slib_out
45
!next