Skip to content
This repository has been archived by the owner on Jan 23, 2020. It is now read-only.

problem with special characters such as š, č, ž #9

Open
davidro opened this issue Feb 3, 2013 · 1 comment
Open

problem with special characters such as š, č, ž #9

davidro opened this issue Feb 3, 2013 · 1 comment

Comments

@davidro
Copy link

davidro commented Feb 3, 2013

  1. if I use hunspell via command line it works ok and I can get the word stem

    hunspell -m
    naročniška
    naročniška st: naročniškega fl:P
    naročniška st: naročniški fl:P

  2. and accesing it trough hunspell-ffi gem works ok for my sl_SI dictionary as long as I don't use words with special characters such as: š, č, ž

    # encoding : utf-8
    require 'hunspell-ffi'
    dict = Hunspell.new("/Library/Spelling", "sl_SI")
    puts dict.stem('naročniška') # <= NOT OK returns empty array, instead of 'naročniški'
    puts dict.stem('organizirali') # <= OK returns stem 'organizirati'

  3. I use OSX 10.8, first lines in sl_SI.aff are:

    SET ISO8859-2
    TRY aeiontrmjlsvpdkuzčšgbhcžfwyćx

@ahx
Copy link
Owner

ahx commented Feb 3, 2013

Hi. I don't know, but could you try the stem function in https://github.com/postmodern/ffi-hunspell. That gem looks much better maintained than this one.

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

No branches or pull requests

2 participants