Skip to content

feat: Persian spell-check dictionary plugin#1

Closed
hamidfzm wants to merge 1 commit into
mainfrom
feat/spellcheck-fa
Closed

feat: Persian spell-check dictionary plugin#1
hamidfzm wants to merge 1 commit into
mainfrom
feat/spellcheck-fa

Conversation

@hamidfzm

@hamidfzm hamidfzm commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

First dictionary plugin for the new ctx.spellcheck.registerDictionary contribution point (plugin API 1.3, hamidfzm/glyph#403): Persian (Farsi) spell check. Installing it adds فارسی to Settings → Editor → Spell Check; the Hunspell dictionary (Lilak, Apache-2.0, published as dictionary-fa) is fetched from jsDelivr, pinned to 2.0.0, the first time the language is selected.

Changes

  • com.glyph.spellcheck-fa/: manifest (declares network:cdn.jsdelivr.net) + main.js
  • index.json: registry entry (sorted, schema-valid)
  • docs/api-reference.md: new ctx.spellcheck (API 1.3) section
  • docs/plugin-catalog.md: catalog entry (CI requirement)

Verification

  • ajv schema validation, id ordering, and the catalog check pass locally (same commands as the Validate workflow)
  • End-to-end smoke test: loaded main.js through the same data:-URL import Glyph uses, fetched the real dictionary (1.7 MB in ~0.8s), and checked real words: correct Persian incl. ZWNJ-joined forms passes, misspellings are flagged with sensible suggestions

Note: installs require a Glyph build with plugin API >= 1.3.0 (hamidfzm/glyph#403); on older builds the version gate rejects the install with a clear message, so landing this first is harmless.

…-fa)

Registers a Persian (Farsi) dictionary through the new ctx.spellcheck
contribution point (plugin API 1.3): installing the plugin adds فارسی to
Settings → Editor → Spell Check. The Hunspell dictionary is Lilak's,
published as dictionary-fa (Apache-2.0), fetched from jsDelivr pinned to
an exact version the first time the language is selected.

Also documents ctx.spellcheck in the API reference and adds the catalog
entry CI requires.
@hamidfzm hamidfzm self-assigned this Jul 10, 2026
@hamidfzm hamidfzm closed this Jul 14, 2026
@hamidfzm
hamidfzm deleted the feat/spellcheck-fa branch July 14, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant