From 621aa354e77a5f0e7825ff0ad7a66c41154f2511 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 13 Sep 2020 13:25:03 -0400 Subject: Add scan dictionary type filters (#822) * Add options for searchTerms and searchKanji * Add settings HTML * Add options to TextScanner * Update _search/_findDefinitions to include searchTerms/searchKanji args * Update _searchAtFromMouseMove args * Change argument structure for _searchAt * Use scanning options for searchTerms and searchKanji --- ext/bg/data/options-schema.json | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'ext/bg/data') diff --git a/ext/bg/data/options-schema.json b/ext/bg/data/options-schema.json index 0f310f6e..93dde1e0 100644 --- a/ext/bg/data/options-schema.json +++ b/ext/bg/data/options-schema.json @@ -352,7 +352,9 @@ "showAdvanced": false, "scanOnPenHover": true, "scanOnPenPress": true, - "scanOnPenRelease": false + "scanOnPenRelease": false, + "searchTerms": true, + "searchKanji": true } }, { @@ -367,7 +369,9 @@ "showAdvanced": false, "scanOnPenHover": true, "scanOnPenPress": true, - "scanOnPenRelease": false + "scanOnPenRelease": false, + "searchTerms": true, + "searchKanji": true } } ], @@ -415,7 +419,9 @@ "showAdvanced", "scanOnPenHover", "scanOnPenPress", - "scanOnPenRelease" + "scanOnPenRelease", + "searchTerms", + "searchKanji" ], "properties": { "showAdvanced": { @@ -433,6 +439,14 @@ "scanOnPenRelease": { "type": "boolean", "default": false + }, + "searchTerms": { + "type": "boolean", + "default": true + }, + "searchKanji": { + "type": "boolean", + "default": true } } } -- cgit v1.2.3