Zim

Choose different languages for spell checking for individual pages

Bug #350556 reported by Alexander Wolf
36
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Zim
Confirmed
Wishlist
Unassigned

Bug Description

Feature request:
I would like to have a choice of different languages when spell-checking. English is not my native language, still I use it a lot (like here), so I have notebooks with mixed languages.
Currently the only way to change the language is the config file, which is feasible only when having very few notes. To have a GUI element to change the language would improve the situation. The good solution is an individual language for each page. And if single words or paragraphs can be assigned a language, that would be perfect. This could be like in openoffice, there the assigned language is not displayed (the user will notice that all words are underlined).

Changed in zim:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
dotancohen (dotancohen) wrote :

++1

My native language is not English, either, and having spell check on each language would be great. Actually, I'd like to be able to enable _two_ dictionaries are once, so that I would not need to manually switch dictionaries.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

See notes in HACKING notebook in python source. Proper implementation would be to auto-detect language being used instead of having configuration per notebook / page / paragraph / ...

Changed in zim:
importance: Low → Medium
Changed in zim:
importance: Medium → Wishlist
summary: - Choose different languages for individual pages
+ Choose different languages for spell checking for individual pages
tags: added: page properties spellcheck
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Update: recent (?) version of gtkspell allow the user to modify the language through the context menu, would be great if zim could just remember the last selected language for a page. Unfortunately there is no interface to request the language from gtkspell. So need to re-create gtkspell using enchant bindings directly for this.

Revision history for this message
zapyon (zapyon) wrote :

May be it is feasible to add a declaration for a page's langauge somewhere in the head(er).

Similarly, a paragraph's or line's language might be set by putting something like ":de:" at the start of the content (using something like "* :de:" for lists or ""=== :de:" for headlines.

This might even make it possible to exclude text from spellchecking (e.g. ":none:") or change the language several times within a line, e.g. "The word 'house' in several languages: German: :de: 'Haus', Dutch: :nl: 'huis', French :fr: 'maison', ..."

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 350556] Re: Choose different languages for spell checking for individual pages

On Sun, Oct 14, 2012 at 1:24 PM, zapyon <email address hidden> wrote:
> May be it is feasible to add a declaration for a page's langauge
> somewhere in the head(er).

Yes, this is feasible.

> Similarly, a paragraph's or line's language might be set by putting
> something like ":de:" at the start of the content (using something like
> "* :de:" for lists or ""=== :de:" for headlines.
>
> This might even make it possible to exclude text from spellchecking
> (e.g. ":none:") or change the language several times within a line, e.g.
> "The word 'house' in several languages: German: :de: 'Haus', Dutch: :nl:
> 'huis', French :fr: 'maison', ..."

No, this is not feasible. Or at least not with the current spellcheck
library. The library simply does not allow for this level of control.

Regards,

Jaap

Revision history for this message
Andreas Wehler (andreas-wehler) wrote :

Hi.

Often I have to toggle between English and German within a single page.
So it would be super to select the spell language in a 1-of-m manner.

For inspiration see thunderbird's solution (small snapshot).

Thanks a lot,

    Andreas

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Andreas, language selection toggle should be in the context menu of the page. This report is about storing the language selected per page.

Regards,

Jaap

tags: added: 2min
removed: page properties
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.