diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-01-09 21:25:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-09 21:25:04 -0500 |
commit | da1e1e5c5b4dc20cc6aa46b51c55a496d094ed5c (patch) | |
tree | 63d60b93b85b063ff8c42d113083d3b732bb19f5 /ext/bg/js | |
parent | d698911bc9bf7cb431bce939412131a90f24ee45 (diff) |
Sentence parsing options (#1214)
* Rename options.anki.sentenceExt to options.sentenceParsing.scanExtent
* Create sentence parsing icon
* Create new sentence parsing section
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/options.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index adf3cfd4..441d56ec 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -683,11 +683,16 @@ class OptionsUtil { _updateVersion8(options) { // Version 8 changes: // Added translation.textReplacements. + // Moved anki.sentenceExt to sentenceParsing.scanExtent. for (const profile of options.profiles) { profile.options.translation.textReplacements = { searchOriginal: true, groups: [] }; + profile.options.sentenceParsing = { + scanExtent: profile.options.anki.sentenceExt + }; + delete profile.options.anki.sentenceExt; } return options; } |