mkoskim / mawejs

Mawe (Mawe Advanced Writer's Editor) with ElectronJS, React and NodeJS. Third generation of the editors I have written for my own use.
MIT License
7 stars 5 forks source link

Spellchecking and hyphenation #28

Open mkoskim opened 1 year ago

mkoskim commented 1 year ago

Currently, Chrome browser - used with ElectronJS - supports practically only English spellchecking. It does not check the lang property of a HTML element to turn spellchecking off.

If story language is something else, spellchecking needs to be turned off.

In the future, try to choose some suitable spellchecking / hyphenation framework / library, and use it with the editor.

mkoskim commented 1 year ago

NOTE: When you have a dictionary in editor, also export it to RTF and other external formats!

mkoskim commented 1 year ago

It looks like embedded Chromium does not support Finnish as spellchecking language. This is huge drawback for me. I need to investigate the subject more, maybe there is a way to enable it.

Anyways, you can see the embedded Chromium's list of supported spellchecking languages by (main process):

mainWindow.webContents.session.availableSpellCheckerLanguages

Also, it is possible to set the spellchecker's language by (main process):

mainWindow.webContents.session.setSpellCheckerLanguages(['fi'])