sphinx-contrib / spelling

A spelling checker for Sphinx-based documentation
https://sphinxcontrib-spelling.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
82 stars 47 forks source link

Support for the German letter ß missing? #218

Closed kassbohm closed 1 year ago

kassbohm commented 1 year ago

I use:

spelling_lang='de'

and:

sphinx-build -b spelling ...

However: Many German words written with the letter ß are shown as misspelled...

dhellmann commented 1 year ago

This project is really just a wrapper for enchant, so it depends on that tool and its dictionaries. Does enchant report the same words as misspelled when run directly on the file?

kassbohm commented 1 year ago

Thanks for this.

Tested enchant like this:

import enchant

# Does produce spelling mistakes for words with the letter ß:
d = enchant.Dict('de')

# Works fine:
d = enchant.Dict('de_DE')

# Example:
tmp = d.check("heiß") # German word for "hot"
print(tmp)

So from now on I use in my conf.py:

spelling_lang='de_DE'

And it works fine.

dhellmann commented 1 year ago

Excellent, I'm glad you got it working!