Skip to content

[Feature] Add Vim/Neovim-compatible dictionaries #6

@alexmozaidze

Description

@alexmozaidze

Currently, the dictionary files are extremely messy, and the spellchecker for Vim/Neovim is whiny about the correctness and duplicate elements. Here's the steps I had to take in order to make the dictionary work:

  1. Download dictionaries/ka_GE.{aff, dic}
  2. Remove all the comments in both of them with :g/^\s*#/d
  3. Remove all the MAP entries in .aff with :g/^MAP /d or Dedup the characters, the spellchecker can't handle complex things
  4. Remove all single characters in .dic with :g/^[ა-ჰ]$/d
  5. :mkspell ka ka_GE
  6. Move the generated ka.utf-8.spl to ~/.local/share/nvim/site/spell/
  7. Set the language vim.opt.spelllang = { "en", "ka" }

And I still see minor issues. For instance, when making an error in the word and typing out გავაკეთ, the spell suggestions show გავაკეთო�, which is a correct word, I grant you, but there is an invalid garbage character attached to the end of it, for some reason.

I wasn't able to build the repo myself. It would error out saying there was an unsorted file or something. But that's a different issue entirely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions