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

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -