letters - How to change a Hunspell affix file to allow numbers in words? -


ocr programs mistakenly recognize capital letter o 0 or vice versa. example, might recognize on 0ver or we11.

i tried add

rep 0 o rep 1 l 

to affix file, didn't work because numbers apparently considered word boundaries.

(i had @ hunspell man page, can't figure out of numerous settings needs changed allow numbers in words.)

from manpages:

rep replacement table specifies modifications try first. first rep header of table , 1 or more rep data line following it. table, hunspell can suggest right forms typical spelling mistakes when incorrect form differs more 1 letter right form. search string supports regex boundary signs (^ , $). example possible english replacement table definition handle misspelled consonants:

          rep 5           rep f ph           rep ph f           rep tion$ shun           rep ^cooccurr co-occurr           rep ^alot$ a_lot 

did add first line, rep + number of replacements?


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -