aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language
Commit message (Collapse)AuthorAge
* Json schema improvements (#1698)toasted-nutbread2021-05-22
| | | | | | | | | | | * Simplify schema multi-push/pop * Reverse order of schema path * Reverse order of value path * Simplify schema path structure * Rename for better clarity
* Json schema validation improvements (#1697)toasted-nutbread2021-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Create new JsonSchema class * Add proxy handler * Update tests * Update validation scripts * Update backend * Update audio downloader * Update options util * Update dictionary importer * Update json schema file reference * Remove old json-schema.js * Rename new json-schema.js * Update file names * Rename class
* Structured content image size units (#1692)toasted-nutbread2021-05-20
| | | | | * Add support for sizeUnits on image content * Update test data
* Selection clear improvements (#1690)toasted-nutbread2021-05-19
| | | | | | | | | * Update selection clear process * Clean up old clearSelection API * Update clear order * Add clear event handling
* 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
* Dictionary image display refactoring (#1687)toasted-nutbread2021-05-18
| | | | | | | | | | | | | | | * Generalize image definition generation * Enable optional aspect ratio * Move styles * Update styles * Add more options for collapsing images * Add image options for collapsing * Improve layout for images that are collapsed
* Fix repeated dictionary image importing (#1685)toasted-nutbread2021-05-16
|
* 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
* Add pitch categories template helper (#1636)toasted-nutbread2021-04-28
| | | | | | | * Move utility function * Expose dictionary entry as a hidden property for internal use * Add pitchCategories helper
* Translator alphanumeric improvement (#1635)toasted-nutbread2021-04-28
| | | | | * Simplify alphanumeric check * Update option name for clarity
* Add support for restoring the selection after using scanSelectedText (#1631)toasted-nutbread2021-04-26
|
* Fix incorrect return type causing an error (#1623)toasted-nutbread2021-04-21
|
* Translator refactoring for consistency (#1619)toasted-nutbread2021-04-18
| | | | | | | * Remove unused argument * Improve naming in _groupDictionaryEntriesByHeadword More consistent with _getRelatedDictionaryEntries.
* 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
* More terminology updates (#1600)toasted-nutbread2021-04-08
| | | | | | | | | | | | | | | | | | | * Update terminology * Update display * Rename expression-list to headword-list * Rename expression-current-indicator * Rename expression classes * Update dictionary entry container * Rename glossary => gloss * Rename heading * Rename gloss classes to gloss-content
* 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
* Remove repeated disambiguations (#1572)toasted-nutbread2021-03-28
|
* 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
* Remove debug log (#1558)toasted-nutbread2021-03-25
|
* 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
* 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
* 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 dictionary image support (#1526)toasted-nutbread2021-03-14
| | | | | | | | | | | | | * Fix content security policy for images * Add createBlobFromBase64Content to MediaUtil * Update MediaLoader to use MediaUtil * Use blob URLs when importing dictionaries * Update VM's URL to support createObjectURL and revokeObjectURL * Fix test
* Make MediaUtil a static class (#1525)toasted-nutbread2021-03-14
|
* Simplify _findFirstBulk (#1521)toasted-nutbread2021-03-13
|
* Database API updates (#1520)toasted-nutbread2021-03-13
| | | | | * Add Database.findFirst * Add DictionaryDatabase.findTagMetaBulk
* Fix sorting of non-top-level definitions (#1516)toasted-nutbread2021-03-10
|
* Fix incorrect furigana distribution (#1514)toasted-nutbread2021-03-10
| | | | | * Improve distributeFuriganaInflected implementation * Update tests
* Fix text selection during scanning (#1508)toasted-nutbread2021-03-09
| | | | | | | | | * Move function * Add _onSearchClick function * Move _onSearchClick after event prevention * Prevent search if selection is changed before a click occurs
* 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
* Deinflector refactor (#1501)toasted-nutbread2021-03-07
| | | | | | | | | * Make Deinflector._ruleTypes private * Add createDeinflection helper * Remove unnecessary field assignments from Deinflector Move them to Translator instead
* Translator data format improvements (#1500)toasted-nutbread2021-03-07
| | | | | * Update _createTermDetailsList usage and docs * Update source of expression/reading/furiganaSegments
* Improve empty reading handling (#1497)toasted-nutbread2021-03-06
| | | | | | | * Handle empty readings earlier in the definition creation process * Remove empty reading check * Remove special handling of empty readings
* Fix furigana distribution when reading starts with expression, but has ↵toasted-nutbread2021-03-06
| | | | remainder characters (#1496)
* Use dictionary priority later in the definition sorting algorithm (#1492)toasted-nutbread2021-03-06
|
* Split dictionary order and index sorting (#1491)toasted-nutbread2021-03-06
| | | | | | | | | * Refactor expression comparison * Rename function * Add dictionary index sorting * Update test data
* Fix missing meta when reading is empty (#1486)toasted-nutbread2021-03-05
|
* Refactor translator merged mode (#1474)toasted-nutbread2021-03-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove sourceDefinitions * Add id * Remove related definitions from unsequencedDefinitions * Add separate _addRelatedDefinitions function * Add secondary definitions * Update how secondary definitions are added * Update expression/reading source * Move _mergeByGlossary body * Refactor _createTermDetailsListFromTermInfoMap * Move _addUniqueTermInfos body * Rename function * Organize * Simplify duplicate check * Rename relatedDefinitionIds to definitionIds * Refactor secondary definition adding * Early exit * Add matching unsequencedDefinitions to secondaryDefinitions * Clean * Fix incorrect condition * Move _addSecondaryDefinitions call * Add comments
* 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
* Text source element scanning improvements (#1464)toasted-nutbread2021-02-28
| | | | | | | | * Add api.textHasJapaneseCharacters * Add support for empty query * Add support for showing the query parser for TextSourceElement with content that does not start with Japanese text
* Get categorization of pitch accents (#1462)toasted-nutbread2021-02-28
|
* Improve definition ordering (#1456)toasted-nutbread2021-02-27
| | | | | | | * Update dictionary priority * Replace dictionaryPriority with dictionaryOrder * Update tests