summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-01-25 02:56:14 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-01-25 02:56:14 +0200
commitaa5a044dade6a6b4caaa368215b96add53a312b4 (patch)
tree321aa096c2ef8cf68444fa49db512dbb20e2335b /ext
parent04727a8cd7dc29a02595690389979ec1070bbded (diff)
query parser: add reading mode 'none'
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/data/options-schema.json2
-rw-r--r--ext/bg/settings.html1
-rw-r--r--ext/mixed/js/japanese.js2
3 files changed, 4 insertions, 1 deletions
diff --git a/ext/bg/data/options-schema.json b/ext/bg/data/options-schema.json
index 3cb25218..224b93f8 100644
--- a/ext/bg/data/options-schema.json
+++ b/ext/bg/data/options-schema.json
@@ -398,7 +398,7 @@
},
"readingMode": {
"type": "string",
- "enum": ["hiragana", "katakana", "romaji"],
+ "enum": ["hiragana", "katakana", "romaji", "none"],
"default": "hiragana"
}
}
diff --git a/ext/bg/settings.html b/ext/bg/settings.html
index a283335c..4b73e02c 100644
--- a/ext/bg/settings.html
+++ b/ext/bg/settings.html
@@ -457,6 +457,7 @@
<option value="hiragana">ひらがな</option>
<option value="katakana">カタカナ</option>
<option value="romaji">Romaji</option>
+ <option value="none">Disabled</option>
</select>
</div>
</div>
diff --git a/ext/mixed/js/japanese.js b/ext/mixed/js/japanese.js
index 23b2bd36..c9bc7b87 100644
--- a/ext/mixed/js/japanese.js
+++ b/ext/mixed/js/japanese.js
@@ -80,6 +80,8 @@ function jpConvertReading(expressionFragment, readingFragment, readingMode) {
}
}
return readingFragment;
+ case 'none':
+ return null;
default:
return readingFragment;
}