> @brammool wrote: > > > Is there documentation about what ICONV does exactly? > > >From https://linux.die.net/man/4/hunspell: > > ``` > > ICONV pattern pattern2 > > Define input conversion table. > > ``` > > My understanding that that Hunspell transforms input using ICONV rules > before probing the directory.
You mean dictionary? > So that various apostrophes can become the regular ' apostrophe for example. But what is a "pattern"? Just text (white space separated) or are there wildcards? What does "input" mean? I assume the original (typed) text that needs to be checked. Then when suggesting a fix, I wonder how we revert the conversion. Always do the opposite, or under some conditions? I also wonder what rules there are. E.g. quotes at the start and end of a word can be handled differently. > You can see many ICONV rules in this French dictionary with rules for > apost> rophe, digraphs and various forms of ways to write diacritics: > > https://github.com/titoBouzout/Dictionaries/blob/master/French.aff > > ``` > ICONV 38 > ICONV ’ ' > ICONV ffi ffi > ICONV ffl ffl > ICONV ff ff > ICONV fi fi > ICONV fl fl > ICONV à à > ICONV â â > ICONV ä ä > ICONV é é > ICONV è è > ICONV ê ê > etc. This also handles composing characters rewritten to a single character. That is not language specific, should be handled elsewhere. -- Never eat yellow snow. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
