Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path of saving dictionary files does not match with the one mentioned in the config file #8

Open
shantanuo opened this issue Apr 24, 2020 · 7 comments

Comments

@shantanuo
Copy link
Contributor

Correct your dictionary as shown below:

## Download and unzip your file
# mkdir hindi
# cd hindi
# wget https://github.com/Shreeshrii/hindi-hunspell/raw/master/hi_spellchecker_OOo3.oxt
# unzip hi_spellchecker_OOo3.oxt 

## Note the path mentioned in config file
# grep origin dictionaries.xcu
<value>%origin%/dictionaries/hi_IN.aff %origin%/dictionaries/hi_IN.dic</value>

## affix and dict files should be in a folder and not at root
## Create a folder and move dict files
# mkdir dictionaries
# mv hi_IN.* dictionaries/
# cd dictionaries

## Add number of lines at the top of the dict file
# wc -l hi_IN.dic
207694 hi_IN.dic
# vi hi_IN.dic

## SET UTF-8 at the top of affix file
# vi hi_IN.aff

## zip the file and test with libreoffice
# cd ..
# zip -r hindi.oxt *
@shantanuo shantanuo mentioned this issue Apr 24, 2020
@shantanuo
Copy link
Contributor Author

Please add the new file to release and remove all older versions with wrong path :)

@Shreeshrii
Copy link
Owner

-rw-rw-r-- 1 ubuntu ubuntu 2688652 Apr 24 09:26 hindi.oxt
-rw-rw-r-- 1 ubuntu ubuntu 1344390 Apr 24 09:26 hi_spellchecker_OOo3.oxt

The new file from you is twice as big as old one. Is that intended?

Do I need to do the other changes mentioned by you above?

@Shreeshrii
Copy link
Owner

@shantanuo It's been a while since I worked on hunspell. Please help with the following:

The hi_IN.aff file in hi_spellchecker_OOo3.oxt is different from the one in repo. I have changes some rules. Please review if the repo version is better.

@Shreeshrii Shreeshrii reopened this Apr 24, 2020
@shantanuo
Copy link
Contributor Author

  1. The new file is twice as big as old one because I forgot to remove your .oxt file before zipping. Sorry for the mistake. Please do the needful since you know that the path was missing in your config file.
  2. I do not see any problem with your affix file in the repo. I will check again and let you know if I come across any issues.

@shantanuo
Copy link
Contributor Author

Are you the author of hi_IN.aff file?

@Shreeshrii
Copy link
Owner

Shreeshrii commented Jul 28, 2020 via email

@shantanuo
Copy link
Contributor Author

I have added the libre office and firefox addon to official site. Can you please give 5 Stars on this page?

https://addons.mozilla.org/en-US/firefox/addon/hindi-spell-check/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants