diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-07-09 16:05:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 16:05:57 -0400 |
commit | 24ec22b2e1095a18d2031f697f4aaffb5a0c0609 (patch) | |
tree | e5ec013cd2123fe0a01e0b6148c77f18e84469c6 /ext/js/display/display.js | |
parent | 315dc425e489dc96c2f2d4e13b500105d724ec52 (diff) |
Text parse updates (#1811)
* Expose more settings to QueryParser
* Rename textParse to parseText
* Refactor
* Convert reading inside QueryParser rather than Backend
* Remove use of readingMode from backend
* Rename
* Update parseText args
* Simplify
* Update results
* Move use of optionsContext
* Run mecab and internal parser in parallel
* Added "dictionary-reading" reading mode
* Update romaji conversion case
Diffstat (limited to 'ext/js/display/display.js')
-rw-r--r-- | ext/js/display/display.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js index 1f88258b..d79cc7e2 100644 --- a/ext/js/display/display.js +++ b/ext/js/display/display.js @@ -83,7 +83,8 @@ class Display extends EventDispatcher { this._queryParserContainer = document.querySelector('#query-parser-container'); this._queryParser = new QueryParser({ getSearchContext: this._getSearchContext.bind(this), - documentUtil: this._documentUtil + documentUtil: this._documentUtil, + japaneseUtil }); this._contentScrollElement = document.querySelector('#content-scroll'); this._contentScrollBodyElement = document.querySelector('#content-body'); @@ -312,6 +313,9 @@ class Display extends EventDispatcher { this._queryParser.setOptions({ selectedParser: options.parsing.selectedParser, termSpacing: options.parsing.termSpacing, + readingMode: options.parsing.readingMode, + useInternalParser: options.parsing.enableScanningParser, + useMecabParser: options.parsing.enableMecabParser, scanning: { inputs: scanningOptions.inputs, deepContentScan: scanningOptions.deepDomScan, |