aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* More Spanish transforms (#1100)James Maa2024-06-24
| | | | | | | * Preterite and spanish bench * More spanish forms * Rename
* add cn reading processors (#1120)Cashew2024-06-24
| | | | | | | | | | | | | | | | | | | | | * add cn reading processors * remove meow * fix lint * add cn reading processors * remove meow * fix lint * wip * update names * update test * remove vestigial code
* Add diacritics normalization preprocessors for Vietnamese (#1107)Cashew2024-06-21
| | | | | | | | | | | | | * add viet diacritics normalization * move regexp construction outside of function * fix eslint * add 'off' option * fix lint * fix type
* support css file in dictionaries (#1080)StefanVukovic992024-06-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * get styles in db * get styles in settings * use styles * fix test * scope * fix comma separated * escape dict name in css selector * g regex * get styles in anki * fix tests * more specificity * whitespace * test importing * test handlebars * add styles to glossary-first
* [ja] Refactor Japanese transforms names and add English descriptions (#1007)24.6.17.0Lyroxide2024-06-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add -rya -cha -n * add tests * fix typos * resolve merge conflicts * add tests * change to -ya with chaining * fix -ge and add -garu * add descriptions * descriptions done * add back imperative negative * fix description * add string var * remove form * revert back to volitional * -ku * remove new causative * revert to negative and clarify -n * fix tests * clarify some desc * fix test
* Fix DOMTextScanner entering initial div on backwards seeks (#1071)James Maa2024-06-17
| | | | | | | | | * Fix dom-text-scanner entering initial div on reverse seeks * Add new case * Add launch.json * Cleanup launch.json
* Add web option to profile switching keybinds (#933)Kuuuube2024-06-14
| | | | | | | | | | | | | | | * Add web option to profile switching keybinds * Fix spacing * Refactor * Fix comment on update * Make linter happy --------- Signed-off-by: Kuuuube <61125188+Kuuuube@users.noreply.github.com>
* fix -masen verbs being deinflected as negative potential polite (#1046)StefanVukovic992024-06-10
| | | | | | | * test * fix * positive test
* Add context menu interface for Yomitan (#1028)James Maa2024-06-10
| | | | | | | | | | | | | | | | | | | | | | | | | * --wip-- [skip ci] * Draft * Remove weird code * Use existing API instead of dulpicating * Small improvements * remove console.log * remove console.log * Add setting for contextMenu * Fix test * Address comments * Add option-util upgrade * fix option-utils
* display inflection rule descriptions (#1000)24.6.3.0StefanVukovic992024-06-03
| | | | | | | | | | | | | | | | | | | | | * load descriptions in deinflector * description functions in deinflectors * show descriptions in title * use toaster * use names without internal * css lint * reformat transform descriptors * fix merge errors * done? * rename method
* Allow trailing commas in ESLint (#1013)James Maa2024-05-31
| | | | | * Update comma-dangle rule * Fix dangling commas
* Basic Spanish Transforms (#908)James Maa2024-05-23
| | | | | | | | | | | * Spanish transforms * Add more spanish transforms * Address comments * Fix types * Undo prefix change
* [ja] add preprocessor for width of alphabetic characters (#964)StefanVukovic992024-05-22
| | | | | | | | | | | | | | | | | | | | | | * add japanese text preprocessor for variants in width of alphabetic characters * try combining with numeric to improve performance * Update ext/js/language/ja/japanese.js Co-authored-by: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> * Update ext/js/language/ja/japanese.js Co-authored-by: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> * fix tests --------- Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> Co-authored-by: Kuuuube <61125188+Kuuuube@users.noreply.github.com>
* Remove No pitch accent data from pitch handlebars (#982)Kuuuube2024-05-21
| | | | | | | * Remove No pitch accent data from pitch handlebars * Update tests * Fix newline
* Add onyomi-hiragana handlebars (#960)rhgg22024-05-21
| | | | | | | | | | | | | | | | | | | | | | * Add onyomi-hiragana handlebars * Add onyomi-hiragana handlebars * Add docs * Fix typo in documentation of kunyomi/onyomi handlebars * Update ext/data/templates/anki-field-templates-upgrade-v36.handlebars Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com> Signed-off-by: rhgg2 <richard.garner@mq.edu.au> * Update tests for onyomi-hiragana handlebars * Update tests for onyomi-hiragana handlebars * Fix typo in code --------- Signed-off-by: rhgg2 <richard.garner@mq.edu.au> Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com>
* refactored onKeyDown to be easier to read, and added test (#943)Brandon Rainey2024-05-17
| | | | | | | | | | | * refactored onKeyDown to be easier to read, and added test to ensure preserved behavior * added new keypress events to test * refactored test to call method directly from SearchDisplayController, removed second test, removed old copyright * added test for invalid keys, split keyboard events into valid and invalid * added crtl + backspace as valid keypress, added 2 new invaid keypresses to test
* Fix -ge and add -garu transforms (#952)Lyroxide2024-05-16
| | | | | | | | | | | | | | | * add -rya -cha -n * add tests * fix typos * resolve merge conflicts * add tests * change to -ya with chaining * fix -ge and add -garu
* add test case for search resolution "word" (#939)24.5.14.0StefanVukovic992024-05-14
| | | | | * fix search resolution infinite loop * add search resolution word test case
* add korean (#787)StefanVukovic992024-05-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * prepare preprocessors * add postprocessors * add hangul functions (#13) * move hangul to lib, add test (#14) * add hangul functions * hangul lib * fix tests * test inputs * fix hangul disassemble, fix postprocessing * rename test * reset transformedText for multiple postprocessors * add credits * fix conflict --------- Co-authored-by: Stefan Vukovic <stefanvukovic44@gmail.com> * Vetting done (#16) * add hangul functions * hangul lib * fix tests * test inputs * fix hangul disassemble, fix postprocessing * rename test * reset transformedText for multiple postprocessors * add credits * fix conflict * add transforms * move substring * textprocessing function * mostly fixed * delete comment * mostly fixed (cherry picked from commit 268c8968ec64bf9d1fbd7d448a96d590399265c4) * prepare preprocessors (cherry picked from commit d139258398de9285396db31c6d46795ee95eb01a) * (reset) remove textSourceMap * rawSource before textreplacements * update tests * fix transforms * fix transforms * 100% vetted * add link to dict --------- Co-authored-by: Stefan Vukovic <stefanvukovic44@gmail.com> * update unit tests * update test --------- Co-authored-by: Lyroxide <33834537+Lyroxide@users.noreply.github.com>
* Add glossary-first handlebars (#921)24.5.13.0Kuuuube2024-05-13
| | | | | | | | | * Add glossary-first handlebars * Add docs * Fix missing /if * Write handlebars test data
* Write english transform tests (#907)Daniel Chapman2024-05-11
| | | | | | | * Write transforms tests for English Wrote transforms tests for English to cover all implemented transforms and fixed code that was failing the tests. * Fix linter errors
* add a few deinflections for Latin (#901)StefanVukovic992024-05-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * abstract deinflections * undo redundant changes * remove cast * switch to js * MultiLanguageTransformer * comments * comments * fix test * suffixInflection * fix bench * substring instead of replace * without heuristic * suffixMap * add other language deinflections * wip * catch cycles * fix tests * uninflect to deinflect * use less regex * start * organize language transform test by language * simpler folders * wip * wip * delete german test * cleanup
* Update eslint unsafe rule (#887)James Maa2024-05-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Enable @typescript-eslint/no-unsafe-assignment * Updates * Add missing import * Updates * Fix types? * Fix tests * Address comments * Move TextProcessorVariant to types * Update types/ext/translation-internal.d.ts Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com> Signed-off-by: James Maa <jmaa@berkeley.edu> --------- Signed-off-by: James Maa <jmaa@berkeley.edu> Co-authored-by: toasted-nutbread <toasted-nutbread@users.noreply.github.com> Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com>
* add single dictionary handlebars (#814)24.5.5.0StefanVukovic992024-05-05
| | | | | | | | | | | | | | | | | * add single dictionary handlebars * fix dicts with kanji in title * sort * rename to single-glossary-XYZ * add brief and no dict variants * add docs, only terms no kanji * allow testing single dict handlebars * remove empty comment
* Fix definition.cloze and text-based getMedia in handlebars being escaped (#857)Kuuuube2024-05-04
| | | | | | | | | * Fix definition.cloze in handlebars not being unescaped * Fix {clipboard-text} * Fix {selection-text} * Update update note
* add some Japanese transforms (#833)Lyroxide2024-05-04
| | | | | | | | | | | | | * add -rya -cha -n * add tests * fix typos * resolve merge conflicts * add tests * change to -ya with chaining
* add profile switching keyboard shortcuts (#832)StefanVukovic992024-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add profile switching * add duplicate behavior dropdown (#853) * duplicate behavior dropdown * allow duplicate for existing users * Update docs/anki-integration.md Co-authored-by: James Maa <jmaa@berkeley.edu> Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> * Update docs/anki-integration.md Co-authored-by: James Maa <jmaa@berkeley.edu> Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> * Update docs/anki-integration.md Co-authored-by: James Maa <jmaa@berkeley.edu> Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> * remove suggestion comment --------- Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> Co-authored-by: James Maa <jmaa@berkeley.edu> --------- Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> Co-authored-by: James Maa <jmaa@berkeley.edu>
* add duplicate behavior dropdown (#853)StefanVukovic992024-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | * duplicate behavior dropdown * allow duplicate for existing users * Update docs/anki-integration.md Co-authored-by: James Maa <jmaa@berkeley.edu> Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> * Update docs/anki-integration.md Co-authored-by: James Maa <jmaa@berkeley.edu> Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> * Update docs/anki-integration.md Co-authored-by: James Maa <jmaa@berkeley.edu> Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> * remove suggestion comment --------- Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> Co-authored-by: James Maa <jmaa@berkeley.edu>
* move Albanian grammar comments to test (#852)StefanVukovic992024-04-22
| | | | | * move albanian grammar comments to test * redundant line
* rework text processors (#793)24.4.21.0StefanVukovic992024-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | * rework text processors * rename text-preprocessors file * Fix search header left margins on small screens (#839) * Refocuses search input on backspace (#840) Fixes #775. Note that this behavior gets overridden if backspace is set as a shortcut action. * Change hotkey triggering condition to account for IME usage (#837) _isKeyCharacterInput only worked when not using an IME, as inside of an IME when a keydown event is fired, the key is reported as "Process", which does not have a key.length equal to 1. This resulted in hotkeys being triggered while typing, which this commit fixes. --------- Co-authored-by: James Maa <jmaa@berkeley.edu> Co-authored-by: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Co-authored-by: Andrew Thomas Sartor <andrew@sartor.net>
* abstract deinflection tests (#784)StefanVukovic992024-04-18
| | | | | | | * abstract deinflection tests * add a couple of phrasal verb tests * fix past simple phrasal verb deinflection
* Revert to using canAddNotes (#827)Eloy Robillard2024-04-16
| | | Fix #818
* fix: add missing handlebar entry (#823)m-edlund2024-04-15
| | | | | * fix: add missing handlebar entry * fix: add new handlebar to tests
* improve term sorting (#806)24.4.15.0StefanVukovic992024-04-15
| | | | | * improve term sorting * edge case
* Add scanOnTouchTap and improve touch scanning defaults (#791)24.4.14.0Kuuuube2024-04-14
| | | | | | | * Add scanOnTouchTap * Update version to 30 * Cleanup if statement
* fix (#811)StefanVukovic992024-04-14
|
* feature: add handlebar for jidoujisho pitch graph (#773)m-edlund2024-04-09
| | | | | | | | | * feat: add handlebar for jidoujisho pitch graph * fix: update handlebar upgrade test --------- Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com>
* expand deinflection format (#745)StefanVukovic992024-03-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * abstract deinflections * undo redundant changes * remove cast * switch to js * MultiLanguageTransformer * comments * comments * fix test * suffixInflection * fix bench * substring instead of replace * without heuristic * suffixMap * add other language deinflections * wip * catch cycles * fix tests * uninflect to deinflect * use less regex * add suru masu stem deinflection
* add suru verb masu stem deinflection (#774)StefanVukovic992024-03-18
|
* feat: support skipping already import dictionaries (#769)Birudo un2024-03-18
|
* Add an option to allow both viewing and adding duplicates (#693)Eloy Robillard2024-03-18
| | | | | * Detect duplicates when checking if can add note * Display the stacked add buttons
* Move sandbox files (#731)toasted-nutbread2024-03-04
| | | | | * Move sandbox files * Update order
* fix whitespace (#755)StefanVukovic992024-03-03
|
* Bump the minor group with 16 updates (#747)dependabot[bot]2024-03-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bump the minor group with 16 updates Bumps the minor group with 16 updates: | Package | From | To | | --- | --- | --- | | [@zip.js/zip.js](https://github.com/gildas-lormeau/zip.js) | `2.7.34` | `2.7.36` | | [dexie](https://github.com/dfahlander/Dexie.js) | `3.2.4` | `3.2.5` | | [dexie-export-import](https://github.com/dexie/Dexie.js) | `4.1.0` | `4.1.1` | | [@playwright/test](https://github.com/microsoft/playwright) | `1.41.2` | `1.42.0` | | [@stylistic/eslint-plugin](https://github.com/eslint-stylistic/eslint-stylistic/tree/HEAD/packages/eslint-plugin) | `1.6.0` | `1.6.3` | | [@stylistic/stylelint-plugin](https://github.com/stylelint-stylistic/stylelint-stylistic) | `2.0.0` | `2.1.0` | | [@types/chrome](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chrome) | `0.0.260` | `0.0.262` | | [@types/firefox-webext-browser](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/firefox-webext-browser) | `120.0.0` | `120.0.1` | | [dotenv](https://github.com/motdotla/dotenv) | `16.4.1` | `16.4.5` | | [esbuild](https://github.com/evanw/esbuild) | `0.20.0` | `0.20.1` | | [eslint](https://github.com/eslint/eslint) | `8.56.0` | `8.57.0` | | [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) | `48.0.6` | `48.2.0` | | [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs) | `0.23.0` | `0.24.0` | | [eslint-plugin-unused-imports](https://github.com/sweepline/eslint-plugin-unused-imports) | `3.0.0` | `3.1.0` | | [html-validate](https://gitlab.com/html-validate/html-validate) | `8.9.1` | `8.11.1` | | [husky](https://github.com/typicode/husky) | `9.0.10` | `9.0.11` | Updates `@zip.js/zip.js` from 2.7.34 to 2.7.36 - [Release notes](https://github.com/gildas-lormeau/zip.js/releases) - [Commits](https://github.com/gildas-lormeau/zip.js/compare/v2.7.34...v2.7.36) Updates `dexie` from 3.2.4 to 3.2.5 - [Release notes](https://github.com/dfahlander/Dexie.js/releases) - [Commits](https://github.com/dfahlander/Dexie.js/compare/v3.2.4...v3.2.5) Updates `dexie-export-import` from 4.1.0 to 4.1.1 - [Release notes](https://github.com/dexie/Dexie.js/releases) - [Commits](https://github.com/dexie/Dexie.js/commits) Updates `@playwright/test` from 1.41.2 to 1.42.0 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](https://github.com/microsoft/playwright/compare/v1.41.2...v1.42.0) Updates `@stylistic/eslint-plugin` from 1.6.0 to 1.6.3 - [Release notes](https://github.com/eslint-stylistic/eslint-stylistic/releases) - [Commits](https://github.com/eslint-stylistic/eslint-stylistic/commits/v1.6.3/packages/eslint-plugin) Updates `@stylistic/stylelint-plugin` from 2.0.0 to 2.1.0 - [Release notes](https://github.com/stylelint-stylistic/stylelint-stylistic/releases) - [Changelog](https://github.com/stylelint-stylistic/stylelint-stylistic/blob/main/CHANGELOG.md) - [Commits](https://github.com/stylelint-stylistic/stylelint-stylistic/compare/v2.0.0...v2.1.0) Updates `@types/chrome` from 0.0.260 to 0.0.262 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chrome) Updates `@types/firefox-webext-browser` from 120.0.0 to 120.0.1 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/firefox-webext-browser) Updates `dotenv` from 16.4.1 to 16.4.5 - [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md) - [Commits](https://github.com/motdotla/dotenv/compare/v16.4.1...v16.4.5) Updates `esbuild` from 0.20.0 to 0.20.1 - [Release notes](https://github.com/evanw/esbuild/releases) - [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md) - [Commits](https://github.com/evanw/esbuild/compare/v0.20.0...v0.20.1) Updates `eslint` from 8.56.0 to 8.57.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.56.0...v8.57.0) Updates `eslint-plugin-jsdoc` from 48.0.6 to 48.2.0 - [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases) - [Changelog](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/.releaserc) - [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v48.0.6...v48.2.0) Updates `eslint-plugin-sonarjs` from 0.23.0 to 0.24.0 - [Release notes](https://github.com/SonarSource/eslint-plugin-sonarjs/releases) - [Commits](https://github.com/SonarSource/eslint-plugin-sonarjs/compare/0.23.0...0.24.0) Updates `eslint-plugin-unused-imports` from 3.0.0 to 3.1.0 - [Commits](https://github.com/sweepline/eslint-plugin-unused-imports/commits) Updates `html-validate` from 8.9.1 to 8.11.1 - [Release notes](https://gitlab.com/html-validate/html-validate/tags) - [Commits](https://gitlab.com/html-validate/html-validate/compare/v8.9.1...v8.11.1) Updates `husky` from 9.0.10 to 9.0.11 - [Release notes](https://github.com/typicode/husky/releases) - [Commits](https://github.com/typicode/husky/compare/v9.0.10...v9.0.11) --- updated-dependencies: - dependency-name: "@zip.js/zip.js" dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor - dependency-name: dexie dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor - dependency-name: dexie-export-import dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor - dependency-name: "@playwright/test" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: "@stylistic/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor - dependency-name: "@stylistic/stylelint-plugin" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: "@types/chrome" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor - dependency-name: "@types/firefox-webext-browser" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor - dependency-name: dotenv dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor - dependency-name: esbuild dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: eslint-plugin-jsdoc dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: eslint-plugin-sonarjs dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: eslint-plugin-unused-imports dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: html-validate dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: husky dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix new html lint --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>
* Ci updates (#757)toasted-nutbread2024-03-03
| | | | | | | | | * Add test:unit:options to CI * Add test:unit:options to full test * Change config targets * Add newline
* Fix sentence-furigana template (#733)Kuuuube2024-03-02
|
* make deinflections language-specific (#720)StefanVukovic992024-02-27
| | | | | | | | | | | | | * abstract deinflections * undo redundant changes * remove cast * MultiLanguageTransformer * comments * comments
* Update to zip.js for tests (#698)toasted-nutbread2024-02-27
| | | | | | | * Use zip.js * Set compression level to 0 * Update comments
* Turn on @typescript-eslint/no-unsafe-argument (#728)24.2.26.0toasted-nutbread2024-02-25
|
* Improve type safety for playwright stuff (#727)toasted-nutbread2024-02-25
|