toasted-nutbread
63de9273b3
Fix permissions changes not being supported on some browsers ( #1513 )
2021-03-10 20:26:57 -05:00
toasted-nutbread
b1f96a7ca7
Fix previousStyles being recreated for every transparent element ( #1512 )
2021-03-10 20:26:53 -05:00
toasted-nutbread
4f4990820e
Fix text selection during scanning ( #1508 )
...
* Move function
* Add _onSearchClick function
* Move _onSearchClick after event prevention
* Prevent search if selection is changed before a click occurs
2021-03-09 20:01:37 -05:00
toasted-nutbread
c6f4144fda
Clean up translator ( #1505 )
...
* Remove unused: _removeUsedDefinitions
* Remove unused: _scoreToTermFrequency
* Remove unused: _getTermTagsScoreSum
* Add RegexUtil
* Update Translator to use RegexUtil
* Update sw.js
* Update tests
2021-03-08 21:01:55 -05:00
toasted-nutbread
643dbfb12a
Refactor term frequency data ( #1503 )
...
* Add getTermFrequency
* Update DisplayGenerator to use getTermFrequency
* Remove termFrequency from Translator data
* Backwards compatibility
* Update tests
2021-03-07 20:38:40 -05:00
toasted-nutbread
19f6bf5a3a
Refactor furigana segment data ( #1502 )
...
* Remove redundant language assignment
* Segment furigana from DisplayGenerator
* Remove furiganaSegments from translator data
* Add backwards compatibility for furiganaSegments
* Update tests
2021-03-07 17:55:51 -05:00
toasted-nutbread
7793e14e57
Deinflector refactor ( #1501 )
...
* Make Deinflector._ruleTypes private
* Add createDeinflection helper
* Remove unnecessary field assignments from Deinflector
Move them to Translator instead
2021-03-07 14:07:26 -05:00
toasted-nutbread
92fe1571ae
Translator data format improvements ( #1500 )
...
* Update _createTermDetailsList usage and docs
* Update source of expression/reading/furiganaSegments
2021-03-07 12:18:44 -05:00
toasted-nutbread
49bf562690
Update audio downloader ( #1499 )
...
* Update _getInfoJpod101's empty reading check
* Use URLSearchParams instead of a string
2021-03-06 18:26:16 -05:00
toasted-nutbread
16217728af
Improve empty reading handling ( #1497 )
...
* Handle empty readings earlier in the definition creation process
* Remove empty reading check
* Remove special handling of empty readings
2021-03-06 15:53:45 -05:00
toasted-nutbread
a65742a884
Fix furigana distribution when reading starts with expression, but has remainder characters ( #1496 )
2021-03-06 15:49:07 -05:00
toasted-nutbread
aa6a547da7
Add CSS variable to control tag height ( #1495 )
2021-03-06 15:08:21 -05:00
toasted-nutbread
01f74510f0
Separate display resizer ( #1494 )
...
* Make invokeContentOrigin public
* Move display resizer functionality into a new class: DisplayResizer
* Simplify field names
* Use parent frame instead of content origin
* Remove unused
2021-03-06 14:31:23 -05:00
toasted-nutbread
6e00b5d765
Fix multiline copying ( #1493 )
...
* Change order
* Update multiline text assignment
2021-03-06 13:41:38 -05:00
toasted-nutbread
4bc53d2348
Use dictionary priority later in the definition sorting algorithm ( #1492 )
2021-03-06 13:27:20 -05:00
toasted-nutbread
019c8cd4d7
Split dictionary order and index sorting ( #1491 )
...
* Refactor expression comparison
* Rename function
* Add dictionary index sorting
* Update test data
2021-03-06 13:04:50 -05:00
toasted-nutbread
e28a89e580
Add workaround for a frequency disambiguation layout issue on Firefox ( #1489 )
2021-03-05 23:48:38 -05:00
toasted-nutbread
2203202861
Fix missing meta when reading is empty ( #1486 )
2021-03-05 19:25:31 -05:00
toasted-nutbread
ca4d5a2ac1
Fix text being overwritten when generating the query parser content ( #1483 )
2021-03-03 18:06:12 -05:00
toasted-nutbread
14717b7579
Fix missing required options ( #1482 )
2021-03-02 22:51:06 -05:00
toasted-nutbread
65c20382d3
Add clickable web browser settings links ( #1481 )
2021-03-02 22:46:26 -05:00
toasted-nutbread
3fe825cf30
Request persistent storage on Firefox ( #1480 )
2021-03-02 22:27:53 -05:00
toasted-nutbread
b0bc7dc08f
Add a toggle for the persistent storage option on the permissions page ( #1479 )
2021-03-02 22:08:34 -05:00
toasted-nutbread
4208595293
Persistent storage controller ( #1478 )
...
* Add PersistentStorageController
* Update DictionaryController
* Update DictionaryImportController
* Update when storage stats are updated
2021-03-02 20:27:51 -05:00
toasted-nutbread
571b865ae5
Fix enter key causing duplicate text when typing using an IME ( #1477 )
2021-03-02 18:18:31 -05:00
toasted-nutbread
0e705292cc
Remove zero-width space ( #1475 )
2021-03-01 22:45:03 -05:00
toasted-nutbread
0dab38f0a6
Refactor translator merged mode ( #1474 )
...
* 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
2021-03-01 22:17:23 -05:00
toasted-nutbread
b477da97d4
Translator refactor ( #1473 )
...
* 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
2021-03-01 19:01:30 -05:00
toasted-nutbread
488dc486f1
Update version
2021-02-28 18:28:50 -05:00
toasted-nutbread
90da87f378
Add support for resizing the popup window using touch events ( #1471 )
2021-02-28 17:13:11 -05:00
toasted-nutbread
c192b4a4c1
Wrap host selection copy in a try-catch ( #1470 )
2021-02-28 16:51:48 -05:00
toasted-nutbread
8f057c63fe
Improve text parser ( #1469 )
...
* Merge ungrouped characters
* Update iteration
* Fix incorrect code point handling
* Simplify text
* Specify language
* Update how parsed status is represented
2021-02-28 16:38:01 -05:00
toasted-nutbread
ec1a8380b5
Fix a poorly handled edge case of the scanning parser ( #1468 )
2021-02-28 15:44:57 -05:00
toasted-nutbread
1dfcd3e435
Fix missing details causing frequency tags to not be clickable ( #1467 )
2021-02-28 14:44:44 -05:00
toasted-nutbread
704db45e29
Remove the now-unused hotkey forwarding functionality ( #1466 )
2021-02-28 14:29:43 -05:00
toasted-nutbread
75d7e5dc32
Fix and improve some CSS vars ( #1465 )
2021-02-28 14:23:51 -05:00
toasted-nutbread
4806414f95
Text source element scanning improvements ( #1464 )
...
* 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
2021-02-28 14:18:18 -05:00
toasted-nutbread
6f76645f4c
Use a Set instead of an array ( #1463 )
2021-02-28 13:33:33 -05:00
toasted-nutbread
445f87ebdb
Get categorization of pitch accents ( #1462 )
2021-02-28 13:26:34 -05:00
toasted-nutbread
fce2c51709
Add support for scanning the selected value of <select> elements ( #1461 )
2021-02-28 13:26:23 -05:00
toasted-nutbread
f2d2ba0d25
Add ge deinflect rule ( #1458 )
...
* Add -ge rule
* Add tests
2021-02-27 23:26:47 -05:00
toasted-nutbread
990d3611cd
Update color of name tag to not overlap with frequency tag color ( #1457 )
2021-02-27 23:19:16 -05:00
toasted-nutbread
0decabd768
Improve definition ordering ( #1456 )
...
* Update dictionary priority
* Replace dictionaryPriority with dictionaryOrder
* Update tests
2021-02-27 23:11:41 -05:00
toasted-nutbread
e4a4e5f85f
Improve term meta ordering ( #1455 )
...
* 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
2021-02-27 22:27:00 -05:00
toasted-nutbread
7d6915ec3b
Misc display style updates ( #1454 )
...
* Remove unused style
* Update inflection separator
2021-02-27 17:58:28 -05:00
toasted-nutbread
c7caea7203
Improve expression variables ( #1453 )
...
* Improve how colors are used for expressions
* Add more color definitions
2021-02-27 17:29:59 -05:00
toasted-nutbread
c4b2e83cb4
Organize display styles ( #1452 )
...
* Improve grouping for inflection and expression styles
* kanji-link => expression-kanji-link
* Remove unnecessary entry-header2 and entry-header3
* Move tag list into header for consistency with term definitions
* Move styles
* Add clear
2021-02-27 16:54:15 -05:00
toasted-nutbread
8d3436fca3
Refactor display styles ( #1451 )
...
* term-expression => expression
* term-pitch-accent => pitch-accent
* term-reason => inflection, term-reasons => inflection-list
* term-details => expression-list-details
* term-glossary => glossary
* Update tag list classes
* term-definition => definition
2021-02-27 16:32:44 -05:00
toasted-nutbread
c64a8eac1e
Change "Raw term" to "Plain term" ( #1450 )
2021-02-27 15:29:34 -05:00
toasted-nutbread
2a5aa53411
Refactor expression vars ( #1449 )
...
* Group expression styles
* Rename var
* Update var name and style
* Group --kanji* vars
* Rename var
* Rename vars
2021-02-27 15:28:40 -05:00