sonnet:基于 Qt 的多语言拼写检查库项目

可集成到 Qt 应用中实现拼写检查功能,支持 HSpell、Enchant 等多种插件及自动语言检测,通过 SpellCheckDecorator 类可便捷应用于 QTextEdit。【此简介由AI生成】

Branch6Tags7
FilesLast commitLast update
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago

Sonnet

Multi-language spell checker

Introduction

Sonnet is a plugin-based spell checking library for Qt-based applications. It supports several different plugins, including HSpell, Enchant, ASpell and HUNSPELL.

It also supports automated language detection, based on a combination of different algorithms.

The simplest way to use Sonnet in your application is to use the SpellCheckDecorator class on your QTextEdit.

Example

#include <QTextEdit>
#include <spellcheckdecorator.h>

MyFoo::MyFoo(QWidget *parent) : QWidget(parent)
{
    QTextEdit *textEdit = new QTextEdit(this);
    Sonnet::SpellCheckDecorator *decorator = new Sonnet::SpellCheckDecorator(textEdit);
}

Introduction

可集成到 Qt 应用中实现拼写检查功能,支持 HSpell、Enchant 等多种插件及自动语言检测,通过 SpellCheckDecorator 类可便捷应用于 QTextEdit。【此简介由AI生成】

Customize your domain