From 24ec22b2e1095a18d2031f697f4aaffb5a0c0609 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 9 Jul 2021 16:05:57 -0400 Subject: 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 --- ext/js/comm/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/js/comm') diff --git a/ext/js/comm/api.js b/ext/js/comm/api.js index 7c89f0c5..3ac1d3f7 100644 --- a/ext/js/comm/api.js +++ b/ext/js/comm/api.js @@ -32,8 +32,8 @@ class API { return this._invoke('termsFind', {text, details, optionsContext}); } - textParse(text, optionsContext) { - return this._invoke('textParse', {text, optionsContext}); + parseText(text, optionsContext, scanLength, useInternalParser, useMecabParser) { + return this._invoke('parseText', {text, optionsContext, scanLength, useInternalParser, useMecabParser}); } kanjiFind(text, optionsContext) { -- cgit v1.2.3