Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spelling checker
#13
1. To use two languages in single macro? I would use two variables, one initialized with "en", another with "el". I can see these en and el in C:\Program Files (x86)\Aspell\dict.

2. Example.

Macro Macro274
Code:
Copy      Help
out

str s=
;she sels
;sea shels

#compile Caspell
Caspell k.Init("en_US")

ARRAY(str) a; int i
tok s a
for i 0 a.len
,str& w=a[i]
,if(k.Check(w)) continue
,ARRAY(str) b
,k.Suggest(w b)
,str sug=b; sug.findreplace("[]" ", ")
,out F"{w}: {sug}"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)