yomichan/ext/bg
toasted-nutbread 86c64ac4c2
Translator refactoring (#878)
* Add helper function _getSecondarySearchDictionaryMap

* Use spreads instead of concat

* Create helper function for assigning disambiguation info

* Add _getTermTagsScoreSum helper

* Rename variables

* Move assignment of definition details

* Convert databaseDefinitions to standard definitions

* Move creation of definitions

* Always pass definitionsByGlossary directly to _mergeByGlossary

* Refactor how used definitions are tracked

* Change _mergeByGlossary parameters

* Simplify _mergeByGlossary

* Generate definition structure at the end of the function

* Add reusable function to clone a tag

* Restructure merged sub-definition creation

* Move setup of totalExpressionSet/totalReadingSet

* Track all definitions with matching glossary

* Move creation of definitionTags

* Update score calculation for multiple definitions

* Disambiguate function name

* Rename variables

* Add helper function _createMergedGlossaryTermDefinition

* Remove rarely used check for secondary search results

Unclear what the purpose was since it was almost never used

* Update data structure

* Rename function/variable

* Add helper functions _createMergedTermDefinition

* Assign expressionDetails to variable

* Add rawSource to grouped definitions

* Use shared function for creating unused definition entries

* Add helper function _createMapKey

* Refactor _createExpressionDetails

* Change argument order

* Add _getTagNamesWithCategory helper

* Optimize _compressDefinitionTags

* Add _createGroupedTermDefinition helper

* Add type information

* Use consistent order for term definition fields, add comments for omitted fields

* Remove unused index field

* Add helper function _createKanjiDefinition

* Update types

* Add frequencies/pitches arrays

* Update terms array setup

* Simplify for loop

* Remove redundant property assignment

* Simplify how deinflections with no definitions are ignored

* Ensure duplicates are removed

* Rename variable

* Add comments about duplicate data

* Refactor variable/parameter names

* Move functions

* Rename functions

* Rename variable

* Add dictionaryPriority field

* Simplify priority comparison

* Rename argument

* Optimize comparison function when dictionary priority is not needed

* Add length check

* Remove unused parameter

* Rename variables/parameters

* Rename dictionaries to enabledDictionaryMap

* Store compactTags/mainDictionary options to variables

* Refactor _getSearchableText
2020-10-04 11:12:15 -04:00
..
css Dictionary controller refactor (#831) 2020-09-15 19:35:44 -04:00
data Move searchTerms/searchKanji to front of object definitions (#873) 2020-09-27 11:53:07 -04:00
img file reorg 2017-03-04 12:27:05 -08:00
js Translator refactoring (#878) 2020-10-04 11:12:15 -04:00
lang Change -teoru endings to be godan verbs 2019-10-16 19:11:45 -04:00
background.html Media utility refactor (#859) 2020-09-26 13:42:31 -04:00
context.html Remove unused dependencies on context.html (#718) 2020-08-09 13:20:48 -04:00
guide.html Context popup update (#594) 2020-06-21 15:57:18 -04:00
legal.html Update legal.html to include full licenses (#563) 2020-05-24 22:10:50 -04:00
query-parser-templates.html remove newline from template 2020-02-10 21:19:18 +02:00
search.html Audio system refactor (#858) 2020-09-26 13:41:26 -04:00
settings-popup-preview.html DOM + DocumentUtil merge (#727) 2020-08-09 21:07:11 -04:00
settings.html Add scan on touch move and prevent touch scroll options (#871) 2020-09-27 11:46:37 -04:00
template-renderer.html Handlebars sandbox (#612) 2020-09-18 21:16:39 -04:00