0

"English" dictionary appears to be American, not Brish English.

IanJ 4 years ago updated by User 3 years ago 8

It's great to have the commit editor perform spellchecking, but the "English" dictionary supplied appears to only offer damaged American "English", not Britsh English.  This is irritating for us Brits, where we see SmartGit highlight quite a number of "spelling errors" that are actually perfectly correct.  

That's why it is named en_US. You may use a British English or any other language dictionary.

This reply is somewhat condescending.  The UI appears to show just "Chinese" and "English" options.  A bit more digging around today shows that .indeed "en_US" is the only dictionary provided - in /usr/share/smartgit/dictionaries/en_US.dic - so where might I get other .dic files?

+1

Sorry, it wasn't my intent to sound rude. Please distinguish between the user interface language and a spell checker. The spell checker exists since a long time while the Chinese UI language was only introduced recently (before, the UI language of SmartGit always was English). We always just shipped an US-English spell checker. You may use spell check files from Firefox/Thunderbird or LibreOffice. Please take a look at https://www.syntevo.com/blog/?p=4883.

Thanks for the link.  I was able to download a LibreOffice .oxt file - figure out it's just a .zip file, and pull out the en_GB.dic from there.  smartgit didn't appear to recognise it or use it until I actually removed the en_US diictionary.   Anyway, this is great now.  Thanks.

Regardless if the default `en_US` dictionary is present or not in SmartGit's preferences, it seems to be impossible to load the British English dictionary by Marco A.G.Pinto (dictionary V 2.92 - 2021-01-01). The dictionary files used were obtained from the LibreOffice Extension (identical en-GB files also available on GitHub).

SmartGit will report "Spell Check: Could not read the dictionary file. Affix".

If the `en_GB.aff` is removed and SmartGit restarted, "Spell Check: The file you are trying to access seems to be no valid dictionary file." is reported.

The files seem to be compatible in Firefox when installed via extension (which appears to be the very same dictionary

version), so perhaps the problem lays on SmartGit's end, rather than perhaps incorrect syntax in the `.aff` or `.dic`?

Windows 10 20H2

SmartGit v20.2.2 portable (installed via scoop)


On further investigation, it would seem that the V 2.81 - 2020-02-01 commit was the last compatible en-GB dictionary with SmartGit v20.2.2. Commit V 2.82 - 2020-03-01 and beyond seem to be incompatible.

Please use SmartGit 20.2 build 16142+ (Help | Check for Latest Build). The old code could not manage the UTF-8 BOM, but the new code should be able to.

Build 16142 appears to have fixed the issue when using the latest en-GB dictionary available from the above repo's `master`. No more Spell Check warnings, and incorrect spellings are being underlined correctly.

Thanks!

There was a dictionary update to V 2.93. No change.

I hope SmartGit will be able to determine why it cannot load the more recent en-GB dictionaries, whilst other software can. Though not strictly necessary, I'd appreciate being able to use the most recent dictionary version.

Thanks.