Mercurial Hosting > editor
comparison src/luan_editor/Spell_checker.luan @ 71:99ebb6176d2f default tip
better build
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 12 Jun 2025 17:08:31 -0600 |
parents | b7ff52d45b9a |
children |
comparison
equal
deleted
inserted
replaced
70:f4e393a13d59 | 71:99ebb6176d2f |
---|---|
5 local SpellCheckerLuan = require "java:luan_editor.SpellCheckerLuan" | 5 local SpellCheckerLuan = require "java:luan_editor.SpellCheckerLuan" |
6 | 6 |
7 | 7 |
8 local Spell_checker = {} | 8 local Spell_checker = {} |
9 | 9 |
10 local dir = System.getenv("DICTIONARIES") or error() | 10 local dir = System.getProperty("dictionaries") or error() |
11 SpellCheckerLuan.registerDictionaries( "file:"..dir, "en" ) | 11 SpellCheckerLuan.registerDictionaries( "file:"..dir, "en" ) |
12 | 12 |
13 function Spell_checker.spell_check(text_component,spell_check) | 13 function Spell_checker.spell_check(text_component,spell_check) |
14 local jtext_component = text_component.java | 14 local jtext_component = text_component.java |
15 if spell_check then | 15 if spell_check then |