generated from mirrors/plugin-sample-vite-svelte
Compare commits
No commits in common. "main" and "v0.2.0" have entirely different histories.
4 changed files with 3 additions and 6 deletions
|
@ -17,7 +17,6 @@ This plugin adds a fully featured grammar and spell checker for SiYuan, powered
|
||||||
- [x] Grammar checker like Grammarly
|
- [x] Grammar checker like Grammarly
|
||||||
- [x] Free and open-source
|
- [x] Free and open-source
|
||||||
- [x] [Self-hostable](https://dev.languagetool.org/http-server) grammar checking server
|
- [x] [Self-hostable](https://dev.languagetool.org/http-server) grammar checking server
|
||||||
- [x] Offline mode (only simple spell checking)
|
|
||||||
- [x] Underlines are not edited into your notes
|
- [x] Underlines are not edited into your notes
|
||||||
<details>
|
<details>
|
||||||
<summary>Why does this matter?</summary>
|
<summary>Why does this matter?</summary>
|
||||||
|
@ -43,8 +42,6 @@ This project couldn't have been possible without (in no particular order):
|
||||||
- The [SiYuan](https://github.com/siyuan-note/siyuan) project
|
- The [SiYuan](https://github.com/siyuan-note/siyuan) project
|
||||||
- [SiYuan plugin sample with vite and svelte](https://github.com/siyuan-note/plugin-sample-vite-svelte)
|
- [SiYuan plugin sample with vite and svelte](https://github.com/siyuan-note/plugin-sample-vite-svelte)
|
||||||
- [LanguageTool](https://languagetool.org/)
|
- [LanguageTool](https://languagetool.org/)
|
||||||
- [ESpells](https://github.com/Monkatraz/espells)
|
|
||||||
- The authors of [offline dictionaries](https://github.com/wooorm/dictionaries?tab=readme-ov-file#list-of-dictionaries)
|
|
||||||
|
|
||||||
Make sure you check them out and support them as well!
|
Make sure you check them out and support them as well!
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "syspell",
|
"name": "syspell",
|
||||||
"version": "0.2.1",
|
"version": "0.2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Include a whiteboard for freehand drawing anywhere in your documents.",
|
"description": "Include a whiteboard for freehand drawing anywhere in your documents.",
|
||||||
"repository": "https://git.massive.box/massivebox/siyuan-jsdraw-plugin",
|
"repository": "https://git.massive.box/massivebox/siyuan-jsdraw-plugin",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "syspell",
|
"name": "syspell",
|
||||||
"author": "massivebox",
|
"author": "massivebox",
|
||||||
"url": "https://git.massive.box/massivebox/syspell",
|
"url": "https://git.massive.box/massivebox/syspell",
|
||||||
"version": "0.2.1",
|
"version": "0.2.0",
|
||||||
"minAppVersion": "3.0.12",
|
"minAppVersion": "3.0.12",
|
||||||
"backends": [
|
"backends": [
|
||||||
"windows",
|
"windows",
|
||||||
|
|
|
@ -15,7 +15,7 @@ export class ESpellChecker implements SpellChecker {
|
||||||
|
|
||||||
let suggestions: Suggestion[] = []
|
let suggestions: Suggestion[] = []
|
||||||
|
|
||||||
const regex = /[\p{L}']+/gu;
|
const regex = /[\w']+/g;
|
||||||
let match;
|
let match;
|
||||||
|
|
||||||
while ((match = regex.exec(text)) !== null) {
|
while ((match = regex.exec(text)) !== null) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue