Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Mixed Language Support #103

Open
Open

Description

@ccorcos

It would be really sweet, if this library (as well as electron.webframe.setSpellCheckProvider) supported mixed languages. Chrome does a really good job with this already.

Activity

  1. dmoonfire commented on Oct 15, 2018

    @dmoonfire
    Contributor

    What do you mean by mixed language? Using English and German at the same time? That functionality is part of the locales setting in the main configuration (you can put the simplified IEFT tag as a comma-separated list). Or is it a specific handling of different languages?

  2. ccorcos commented on Oct 15, 2018

    @ccorcos
    Author

    Interesting, so this would supposedly work?

    const { webFrame } = require('electron')
    webFrame.setSpellCheckProvider('en,de', true, {
      spellCheck (text) {
        return !(require('spellchecker').isMisspelled(text))
      }
    })
  3. dmoonfire commented on Oct 16, 2018

    @dmoonfire
    Contributor

    Sorry, I was thinking of the other spell check. When using this library, you can create two instances and point each one to a different dictionary file. Then you can check one and then the other. It doesn't use webFrame at all, mainly because it was written as a standalone app (direct in node).

  4. ccorcos commented on Oct 16, 2018

    @ccorcos
    Author

    I see. spellchecker.setDictionary and then spellchecker.isMisspelled for each language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions