query parser: add reading mode 'none'

This commit is contained in:
siikamiika 2020-01-25 02:56:14 +02:00
parent 04727a8cd7
commit aa5a044dad
3 changed files with 4 additions and 1 deletions

View File

@ -398,7 +398,7 @@
},
"readingMode": {
"type": "string",
"enum": ["hiragana", "katakana", "romaji"],
"enum": ["hiragana", "katakana", "romaji", "none"],
"default": "hiragana"
}
}

View File

@ -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>

View File

@ -80,6 +80,8 @@ function jpConvertReading(expressionFragment, readingFragment, readingMode) {
}
}
return readingFragment;
case 'none':
return null;
default:
return readingFragment;
}