-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add language select, abstract text transformations #584
add language select, abstract text transformations #584
Conversation
…2' into text-transformation-tests
✔️ No visual differences introduced by this PR. View Playwright Report (note: open the "playwright-report" artifact) |
What is the delta you're seeing? The comment above is only showing N/A, not sure where to see accurate numbers. |
RIP having to deconflict for the umpteenth time - #636 also added a setting upgrade. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Let's think about how to improve performance in further PRs. Though I think we need to make sure we have the right set of benchmarks that really indicate end-to-end performance (esp when there are a lot of dictionaries loaded) rather than just microoptimizing the existing benchmarks we have.
I will merge after @toasted-nutbread's final review
* Copy functions from JapaneseUtil * Remove JapaneseUtil * Update usages of JapaneseUtil functions * part1 * frotend done? * fix tests * offscreen and type complications * add tests * start fixing tests * keep fixing tests * fix tests * Copy functions from JapaneseUtil * Remove JapaneseUtil * Update usages of JapaneseUtil functions * delete pt * renames * add tests * kebab-case filenames * lint * minor fixes * merge * fixes * fix part of comments * fix more comments * delete unused types * comment * comment * do backend * other files * move fetch utils to own file * remove extra line * add extra line * remove unnecessary export * simplify folder structure * remove redundant async * fix param type in api * fix language index * undo changes to cssStyleApplier * undo changes to utilities.js * undo changes to utilities.js * simplify language util * lint * undo phantom changes to anki integration * require textTransformations options * explicit locale in localeCompare * punctuate notes * prefer early exit * rename LanguageOptionsObjectMap * rename to textPreprocessor * tuple with names instead of boolean array * safe data setting * optional chaining * simplify LanguageOptions * encapsulate languages * delete language util * nullable language in text preprocessors controller * rename transform to process * remove settings * make translation advanced again * remove unused getTextTransformations api call * comments * change language types * RIP flags * comments * fix tests * lint * Text preprocessor type changes (FooSoft#10) * Add types * Update types * Simplify type check * Refactor typing and structuring of language definitions * lint * update translator benchmark * undo markdown changes * undo markdown changes * undo markdown changes * more merge * simplify language controller --------- Co-authored-by: toasted-nutbread <[email protected]> Co-authored-by: Darius Jahandarie <[email protected]>
Adds a language select to Options > General, and makes text transformations language-specific.
I don't fully understand the offscreen proxy stuff, but i think it was necessary. The LanguageUtil on manifest v2 dynamically loaded files the first time a language was called for. Seems modules can't be loaded dynamically in the "backend" on MV3, so any suggestions to that are welcome, and as always to the naming/types.
Part 6 of #422. After this, most Yezichak users should be able to move to Yomitan.