summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* Remove log, clone test value before use (#1695)toasted-nutbread2021-05-22
|
* Update schema tests (#1693)toasted-nutbread2021-05-22
| | | | | | | | | * Update helper functions * Rename file * Update deleteProperty * Add some basic proxy tests
* Structured content image size units (#1692)toasted-nutbread2021-05-20
| | | | | * Add support for sizeUnits on image content * Update test data
* Add support for definitions with structured content (#1689)toasted-nutbread2021-05-19
| | | | | | | | | | | * Add structured content to schema * Add support for generating custom content * Update importer * Update test data * Add verticalAlign property
* Update test valid dictionaries (#1688)toasted-nutbread2021-05-18
| | | | | | | | | | | * Update test data for valid-dictionary1 * Use valid-dictionary1 instead of valid-dictionary2 * Update test data * Remove test of valid-dictionary2 * Remove valid-dictionary2 data
* Expose search query to anki template renderer (#1686)toasted-nutbread2021-05-17
| | | | | | | | | | | * Expose query and fullQuery to Anki context * Add {search-query} marker * Update test data * Update tests * Wrap search query in multiLine
* Sentence termination character mode (#1682)toasted-nutbread2021-05-16
| | | | | | | | | | | * Change enableTerminationCharacters to terminationCharacterMode * Update settings * Update sentence extraction * Update tests * Add tests
* Improve source term exact match count (#1674)toasted-nutbread2021-05-14
| | | | | * Update sourceTermExactMatchCount to be based on headword count * Update tests
* Improve term grouping (#1653)toasted-nutbread2021-05-08
| | | | | | | | | | | | | | | * Rename _addUniqueStrings to _addUniqueSimple * Update definition merging to not depend the sequence number * Improve naming * Update AnkiNoteDataCreator * Update docs * Remove fields that no longer exist * Update test data
* Flags profile conditions (#1647)toasted-nutbread2021-05-01
| | | | | | | | | | | | | * Generalize modifier keys * Optimize bindings * Add support for flags * Add clipboard flag * Update tests * Add tests
* Show any custom tags on words that have anki cards created (#1628)soriac2021-04-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Proof-of-concept for showing card tags (#1626) * Resolved most PR comments: - Added a snackbar notification when clicking tag button - Replaced magnifying glass icon with new tag icon - Button now contains a span w/icon, to use text color - Removed unnecessary attributes from button - Backend now returns full noteInfos object - Frontend now handles filtering tags * Add options to show/hide tag button & filter tags * Do not show tags button if, after filtering, we have zero tags. * Change tags option to enums, optimize tags intersection check & fix code style. * Update options-util.js to include new tag options. * Fix wording on new tag setting. * Add CSS to remove hidden buttons from the display layout. * getAnkiNoteInfo extra parameter for additional info. * Add new tag option to tests. * Remove unnecessary changes related to anki tags option. * Code style fixes.
* Translator alphanumeric improvement (#1635)toasted-nutbread2021-04-28
| | | | | * Simplify alphanumeric check * Update option name for clarity
* Remove redundant dictionary entry sequence (#1618)toasted-nutbread2021-04-18
| | | | | | | | | * Remove sequence/sequenceDictionary from dictionary entry objects * Expose isPrimary on definitions * Update sequence * Update test data
* Improve dictionary sequence info (#1617)toasted-nutbread2021-04-18
| | | | | | | | | | | * Ensure negative sequence is always -1 * Expose sequence on definition objects * Update how sequence is exposed for definitions * Update test data * Update TS docs
* Replace furigana with reading (#1614)toasted-nutbread2021-04-13
| | | | | * Use "reading" instead of "furigana" for reading distribution * Update tests
* Update dictionary entry terminology (#1592)toasted-nutbread2021-04-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update terminology * Update terminology in display.js * Update terminology in display-audio.js * Update terminology in text-scanner.js * Update terminology in backend.js * Update terminology in mecab.js * Update terminology in audio-downloader.js * Update terminology in translator-vm.js * Update terminology in dictionary-data-util.js * Update terminology in dictionary-database.js * Update terminology in japanese-util.js * Change/upgrade {expression} to {term} * Update terminology in test-japanese.js * Update terminology in test-database.js * Update terminology in anki-templates-controller.js * Update terminology in anki-note-builder.js * Update terminology in backend.js * Update terminology in text-scanner.js * Update terminology in display.js * Update terminology in display.js
* Improve term dictionary entry sequence (#1591)toasted-nutbread2021-04-03
| | | | | | | | | | | * Improve sequence for merged entries and add sequenceDictionary * Update docs * Expose sequence in definitions * Expose sequence in root definition * Update test data
* Update dictionary settings structure (#1587)toasted-nutbread2021-04-03
| | | | | | | * Update dictionary settings structure to use an array instead of an object * Update ensureDictionarySettings implementation * Remove some usage of ObjectPropertyAccessor
* Optimize template renderer (#1585)toasted-nutbread2021-04-02
| | | | | | | * Add renderMulti * Batch template rendering * Update tests
* Move test VM crypto definition (#1584)toasted-nutbread2021-04-02
|
* Refactor template rendering (#1583)toasted-nutbread2021-04-02
| | | | | | | | | | | | | | | | | * Update _errorToJson to _serializeError * Remove async * Refactor render * Simplify _getModifiedData * Rename data => commonData * Rename templates => template for consistency * Improve errors check * Update tests
* Definition collapsing when overflowing (#1575)toasted-nutbread2021-03-31
| | | | | | | | | | | | | | | * Add double-down-chevron.svg * Add options * Update dictionary importers * Update settings * Add support for collapsible definitions * Improve case when there is a very small amount of overflow * Fix incorrect enabled state of newly imported dictionaries
* Shimau inflection (#1569)toasted-nutbread2021-03-28
| | | | | * Add deinflection rule * Update tests
* -chimau inflection (#1568)toasted-nutbread2021-03-28
| | | | | * Update inflections * Update tests
* Hotkey arguments (#1565)toasted-nutbread2021-03-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Update display * Move scope definitions * Update scopes button after changing action * Don't show menu if empty * Improve scope updating * Update style * Simplify * Add argument to settings * Update convertToNumber implementation * Add support for arguments * Pass argument to action handler * Update hotkey action definitions * Remove x3 options
* Add part of speech info (#1561)toasted-nutbread2021-03-26
| | | | | | | | | | | | | | | | | | | * Add part of speech info to headwords * Expose parts of speech to Anki template rendering * Expose parts of speech * Update pitch accent categories * Update docs * Add part-of-speech * Update options and tests * Update markers * Update test data
* Fix incorrect sorting (#1557)toasted-nutbread2021-03-25
| | | | | | | * Sort by the maximum length of transformedText instead of deinflectedText * Update docs * Update tests
* Refactor Translator and dictionary entry format (#1553)toasted-nutbread2021-03-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Update test data * Move translator.js * Create new version of Translator * Update Backend * Update DictionaryDataUtil * Update DisplayGenerator * Create AnkiNoteDataCreator * Replace AnkiNoteData with AnkiNoteDataCreator * Update tests * Remove AnkiNoteData * Update test data * Remove translator-old.js * Add TypeScript interface definitions for the new translator data format
* Update simple test (#1551)toasted-nutbread2021-03-23
| | | | | * Test null for simple mode * Update test data
* Test AnkiNoteBuilder (#1550)toasted-nutbread2021-03-23
| | | | | * Add test for AnkiNoteBuilder * Add test data
* TranslatorVM (#1548)toasted-nutbread2021-03-22
| | | | | * Add TranslatorVM * Update test-translator.js
* Remove node data for 'simple' mode, since this is never used (#1538)toasted-nutbread2021-03-17
|
* Fix incorrect mode in translator test (#1537)toasted-nutbread2021-03-17
|
* Fix invalid commas in HTML (#1533)toasted-nutbread2021-03-15
|
* Fix furigana distribution when source/expression kana differs (#1532)toasted-nutbread2021-03-15
| | | | | * Fix furigana distribution when source/expression kana differs * Add an additional test
* Improve translator test data (#1531)toasted-nutbread2021-03-15
| | | | | | | * Organize files * Split translator test data into two files * Add test for AnkiNoteData
* Remove old settings page (#1524)toasted-nutbread2021-03-14
| | | | | * Remove old settings page * Remove spinner.gif
* Dictionary database improvements (#1527)toasted-nutbread2021-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update formatting * Add _findMultiBulk * Update implementation of findTermsBySequenceBulk * Update tests * Generalize query creation * Remove _findGenericBulk * Reduce function creation * Add more bindings * Simplify findTermsExactBulk implementation * Update var names * Update _findMultiBulk to support multiple index queries * Update findTermsBulk * Update getMedia implementation * Pass data arg to getAll and findFirst to avoid having multiple closures
* Fix incorrect furigana distribution (#1514)toasted-nutbread2021-03-10
| | | | | * Improve distributeFuriganaInflected implementation * Update tests
* Clean up translator (#1505)toasted-nutbread2021-03-08
| | | | | | | | | | | | | | | * Remove unused: _removeUsedDefinitions * Remove unused: _scoreToTermFrequency * Remove unused: _getTermTagsScoreSum * Add RegexUtil * Update Translator to use RegexUtil * Update sw.js * Update tests
* Refactor term frequency data (#1503)toasted-nutbread2021-03-07
| | | | | | | | | | | * Add getTermFrequency * Update DisplayGenerator to use getTermFrequency * Remove termFrequency from Translator data * Backwards compatibility * Update tests
* Refactor furigana segment data (#1502)toasted-nutbread2021-03-07
| | | | | | | | | | | * Remove redundant language assignment * Segment furigana from DisplayGenerator * Remove furiganaSegments from translator data * Add backwards compatibility for furiganaSegments * Update tests
* Fix furigana distribution when reading starts with expression, but has ↵toasted-nutbread2021-03-06
| | | | remainder characters (#1496)
* Split dictionary order and index sorting (#1491)toasted-nutbread2021-03-06
| | | | | | | | | * Refactor expression comparison * Rename function * Add dictionary index sorting * Update test data
* Translator refactor (#1473)toasted-nutbread2021-03-01
| | | | | | | | | | | | | * Refactor _groupTerms and add doc comment * Update where expression/reading is acquired from * Add doc comment * Add isPrimary field * Update test data * Add definition which has "isPrimary": false definitions
* Add ge deinflect rule (#1458)toasted-nutbread2021-02-27
| | | | | * Add -ge rule * Add tests
* Improve definition ordering (#1456)toasted-nutbread2021-02-27
| | | | | | | * Update dictionary priority * Replace dictionaryPriority with dictionaryOrder * Update tests
* Improve term meta ordering (#1455)toasted-nutbread2021-02-27
| | | | | | | | | | | | | | | | | | | * Update implementation of _buildTermMeta * Remove old implementation * Expose dictionaryPriority on frequencies and pitch accents * Update how meta data is generated; add index * Update order * Update names * Expose expressionIndex as part of pitch/frequency data * Implement meta sorting * Update test data
* Add standalone reading (#1448)toasted-nutbread2021-02-27
| | | | | | | | | * Add option * Update display * Hide redundant readings * Improve label and description
* Improve kana segmentation (#1446)toasted-nutbread2021-02-26
| | | | | * Improve edge case furigana distribution for mixed hiragana/katakana * Update/add tests