aboutsummaryrefslogtreecommitdiff
path: root/ext/data
Commit message (Collapse)AuthorAge
* Add scanOnTouchTap and improve touch scanning defaults (#791)24.4.14.0Kuuuube2024-04-14
| | | | | | | * Add scanOnTouchTap * Update version to 30 * Cleanup if statement
* 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>
* fix whitespace (#755)StefanVukovic992024-03-03
|
* 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
* fix translator bug, simplify language-transformer (#687)24.2.23.0StefanVukovic992024-02-23
| | | | | | | | | | | | | | | * simplify transformer * use isPartOfSpeech * simplify * rename to isDictionaryForm * NOP --------- Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>
* add language select, abstract text transformations (#584)StefanVukovic992024-02-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 (#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 <toasted-nutbread@users.noreply.github.com> Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>
* Show all duplicate notes on click (#636)Eloy Robillard2024-02-15
| | | | | | | | | | | | | | | | | * Show all duplicate notes on click * Change 'notesView' to 'viewNotes' * Replace api.noteView with api.viewNotes * Update "viewNote" action to "viewNotes" in options util * Update options-util test with "viewNotes" action * Replace uses of "viewNote" with "viewNotes" * Replace _viewNote with _viewNotes * Rename /*ViewNote*/ methods to /*ViewNotes*/
* Add and fix tests with options upgrades (#671)24.2.12.0Kuuuube2024-02-12
| | | | | | | | | | | | | | | | | | | | | | | * Add and fix tests and options applying * Fix comma * Add test file to json.json * Fix direction of conjugation handlebars update * Add frequency and cloze-body-kana to upgrade * Use Array.isArray() instead of arbitrary length check * Add pitch-accent-categories handlebar * programmatically get upgrade files * add type --------- Co-authored-by: Cashew <tungbinem@gmail.com>
* fix broken handlebars upgrade v24 (#670)24.2.11.1Darius Jahandarie2024-02-11
|
* Eslint rule updates (#665)toasted-nutbread2024-02-11
| | | | | | | | | | | | | | | | | | | | | | | * Padding newline rules * Update rules * Update rules * Update rules * Updates * Update object quotes * Merge similar ts and js rules * Change export spacing rules * Move typescript-eslint rules * Spacing * Actually save and commit changes
* Add eslint eol-last rule (#662)Cashew2024-02-10
| | | | | | | * add eol-last eslint rule * fix lint * update css-json.test
* Add cloze-body-kana handlebar (#650)Kuuuube2024-02-08
| | | | | * Add cloze-body-kana handlebar * Convert if else to ternary
* Stricter deinflection conditions (#644)Cashew2024-02-08
| | | | | | | | | * stricten deinflections * relocate items * fix lint * rename iru to -te
* allow inflection rule chains with "polite" (#627)StefanVukovic992024-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | * fix deinflection bug * add test * fix polite te and past * expand verb flag * fix polite negative * fix polite volitional * fix polite past negative * remove unneeded rules in * new deinflector format * make nicer * lint * remove extra line
* Fix EOL whitespace (#631)toasted-nutbread2024-02-04
| | | | | * Remove eol whitespace * Add setting
* Deinflect Json overhaul (#433)Cashew2024-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * deinflect overhaul template * remove duplicates with -e rule * deinflection updates * add neba deinflections * kansaiben updates * remove redundancy * Revert "remove redundancy" This reverts commit de714066851680314c988b577e77e6bd4c9db26a. * update deinflect.json * move deinflect.json to japanese-transforms.json * remove trailing spaces * wip add tests * update deinflect.json, add tests * run 'npm run test-code-write' * rename to kansai-ben * update tests * run 'npm run test-code-write' again * add -tara deinflection
* Add frequency number handlebars (#600)Kuuuube2024-02-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add frequencies-num handlebar * Fix handlebar name * Fix inconsistent variable name format * Add frequency-number to anki tests * Use full names for total and frequency variables * Migrate handlebars to JS, split rank and occurance, add average * Remove left behind frequency-number * Fix "occurrence" spelling * Cleanup types * Add frequency support for kanji cards * Fix code style * Clean up most of duplicate code and merge functions * Fix frequencies.length check * Use less witchcraft and remove redundant type casting
* Language transformer (#582)toasted-nutbread2024-01-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Set up new deinflection data file * Define types * Test * Add internal types * Set up loading for transforms * Add getPartOfSpeechFlags * Convert static methods * Add note * Add transform function * Update trace structure * Add a language tag to the language transform descriptor * Add clear function * Add function for multiple parts of speech * Clarify naming * Add getConditionFlagsFromConditionType * Add plural function * Replace usages of Deinflector * Update tests * Update config * Remove old * Rename * Rename files
* Allow `clip-path`, `background`, `text-emphasis` styles in structured ↵Stephen Kraus2024-01-31
| | | | | | | | | | | content (#556) * Allow `clip-path` and `background` styles in structured content * Allow `text-emphasis` style in structured content --------- Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
* Adding a handlebar to return pitch accent categories of a word (#563)arbyste2024-01-27
| | | | | * Fixing logic in isNonNounVerbOrAdjective function * Adding handlebar to return pitch accent categories of a word
* Add border styling options for structured content images (#577)Stephen Kraus2024-01-27
| | | | | | | | | * Add border styling options for structured content images * Replace border style, width, and color properties with shorthand --------- Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
* Fix Ajv validation warning (#576)toasted-nutbread2024-01-27
| | | | | * Fix Ajv validation warning * Add test
* fix deinflection bug (#547)StefanVukovic992024-01-27
| | | | | * fix deinflection bug * add test
* Dictionary deinflections (#503)StefanVukovic992024-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * wip * fix v3 * wip * fix tests * fix maxitems * hide deinflection definitions * fix anki template * undo unnecessary change * delete console.log * refactor * add set false to handlebars * lint * fix tests * fix comments * fix * use Map in areArraysEqualIgnoreOrder * move inflection source icons to css * lint * improve naming * fix tests * add test * typescript * use for of * wip * comments * anki template upgrade * update descriptions
* Allow `text-shadow` style in dictionary structured content (#527)Stephen Kraus2024-01-15
| | | Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
* add option to disable part of speech rule check (#438)StefanVukovic992024-01-13
| | | | | | | | | | | | | | | | | | | | | | | * pos filter wip * add part of speech filter option * add part of speech filter option * remove from deinflector * update test * remove return * tie to dictionary * duplicate to welcome page * delete unused html * fix ts * typo
* search resolution option (#436)StefanVukovic992023-12-29
| | | | | | | | | | | | | | | * add search resolution setting * move finding next substring to method * use regex literal * fix comments * fix comments * add options update function * update test
* Remove unnecessary array (#464)toasted-nutbread2023-12-28
|
* add phonetic transcriptions term meta type (#434)StefanVukovic992023-12-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move dictionary files to dictionary folder * wip * move dictionary files to dictionary folder * add ipa term meta * wip * fixing comments wip * fixing comments wip * fixing comments wip * fixing comments wip * fixing comments wip * fixing comments wip * fix comments * fix comments * update test data * fix gitignore * engines * add tests * update database test * fix test
* Add support for more HTML attributes and style declarations in structured ↵Stephen Kraus2023-12-27
| | | | | | | | | | | | | | | content (#450) * Add support for more HTMl attributes and style declarations * Update test term to use new `margin` property * Allow string values for 'padding' and 'margin' properties * Remove newly added default 'unset' values from term bank schema --------- Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
* Add support for alt attribute on structured content images (#359)Stephen Kraus2023-12-23
| | | | | | | | | | | * Add support for alt attribute on structured content images * Add new `alt` property for structured content images * Update test script with new media file count --------- Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
* Add 出来る/できる as inflections of する (#419)Cashew2023-12-22
| | | | | | | | | | | * Deinflect できる to する * Unit test できる→する deinflection * Deinflect 出来る to する --------- Co-authored-by: Tom Dong <tomtung@users.noreply.github.com>
* Fix issues in build-libs (#354)toasted-nutbread2023-12-11
|
* Add JSDoc type annotations to project (rebased)toasted-nutbread2023-11-27
|
* Replace JsonSchema with ajv for dictionary validationDarius Jahandarie2023-11-03
|
* catch a few more cases in the template patchpraschke2023-10-22
|
* update: pronunciationpraschke2023-10-17
|
* update: hasMedia and getMediapraschke2023-10-17
|
* update: set and getpraschke2023-10-17
|
* fix: formatGlossarypraschke2023-10-17
|
* fix: furigana and furiganaPlainpraschke2023-10-17
|
* initial handlebars patchpraschke2023-10-17
|
* renamed default tag to yomitan, renamed exported settings to yomitanAustin Siew2023-03-25
|
* Use "const" instead of "enum" with one value (#2259)toasted-nutbread2022-10-16
|
* Exclude documentElement from zoom calculation (#2227)toasted-nutbread2022-09-20
| | | | | | | | | | | | | | | * Exclude documentElement from zoom calculation * Add an option * Refactor zoom coordinate conversion functions * Convert zoom coordinates for text sources * Rename variable * Convert rect coordinate spaces * Handle shadow DOM
* Fix invalid default values for popupTheme and popupOuterTheme (#2180)toasted-nutbread2022-08-20
| | | | | * Fix invalid default values for popupTheme and popupOuterTheme * Options update
* Audio download timeout (#2187)toasted-nutbread2022-08-20
| | | | | | | | | | | | | | | | | | | | | | | * Add support for an idle timeout when downloading audio * Update eslint rules * Pass idleTimeout to the downloader from DisplayAnki * Add anki.downloadTimeout setting * Update tests * Assign _audioDownloadIdleTimeout using settings * Show info about cancelled downloads * Handle Firefox bug * Improve audio errors * Refactor * Move functions to RequestBuilder
* Add new structured content styling options (#2203)Stephen Kraus2022-08-14
| | | | | | | | | Allow for arbitrary string assignment to the font-size property. https://developer.mozilla.org/en-US/docs/Web/CSS/font-size Add support for the text-align property. https://developer.mozilla.org/en-US/docs/Web/CSS/text-align Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
* Touch and pen input updates (#2172)toasted-nutbread2022-06-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove unnecessary return * Move touch start input filtering * Refactor * Add scanOnTouchPress * Add preventPenScrolling * Rename scanOnPenPress to scanOnPenMove * Rename scanOnPenRelease to scanOnPenReleaseHover * Simplify * Refactor _searchAtFromPen early exit * Merge _penPointerPressed and _penPointerReleased into a single variable * Add more options * Simplify pen pointer coordinates * Implement scanOnPenPress and scanOnPenRelease * Implement scanOnTouchRelease * Fix tests * Don't search on touch cancel * Cancel touch if the touch action is used for scrolling or other gestures * Fix incorrect scroll prevention options being used * Organize options * Fix typos