Rev 13276 | Blame | Compare with Previous | Last modification | View Log | RSS feed
!! textcomp generic anstype (also used by compose)
option:linkword=" " shuffle
# Similar to `imgcomp', except that there is no height item.
good=!rows2lines $(replygood$i)
good=!nonempty lines $good
good=!line 1 of $good
good=!items2words $good
good=!singlespace $good
good=!trim $good
dd=!items2words $(reply$i)
dd=!singlespace $dd
dd=!trim $dd
m_reply$i=$dd
reply$i=$dd
reply_$i=!replace internal $ $ by $(oef_answer_option$i) in $dd
reply__$i=$dd
!if $wims_read_parm=nocompare
!exit
!endif
!if $good=$empty
Test=bad $i
!exit
!endif
diag=
good=!translate | to $\
$ in $good
good=!nonempty lines $good
replyGood$i=!line 1 of $good
replyGood$i=!replace internal $ $ by $(oef_answer_option$i) in $(replyGood$i)
t_=!linecnt $good
!for n=1 to $t_
g=!line $n of $good
g=!trim $g
!if $dd=$g
diag=yes
!endif
!next g
!if $diag=yes
diareply$i=good
!advance freegot
!else
diareply$i=bad
!endif