toasted-nutbread
cda04b576d
Update simple test ( #1551 )
...
* Test null for simple mode
* Update test data
2021-03-23 22:44:20 -04:00
toasted-nutbread
022154c3e1
Test AnkiNoteBuilder ( #1550 )
...
* Add test for AnkiNoteBuilder
* Add test data
2021-03-23 20:54:04 -04:00
toasted-nutbread
0e1845c7ed
Fix case where {tags} returns an error ( #1549 )
2021-03-23 20:43:38 -04:00
toasted-nutbread
7a8d359aa2
TranslatorVM ( #1548 )
...
* Add TranslatorVM
* Update test-translator.js
2021-03-22 22:54:24 -04:00
toasted-nutbread
89ec1c7572
Remove node data for 'simple' mode, since this is never used ( #1538 )
2021-03-17 21:55:17 -04:00
toasted-nutbread
f8b2483f0f
Fix incorrect mode in translator test ( #1537 )
2021-03-17 21:32:55 -04:00
toasted-nutbread
28f97ba40b
Update display results style ( #1536 )
...
* Expose resultOutputMode
* Update display styles
2021-03-16 18:48:24 -04:00
toasted-nutbread
97ac9099e8
Update packages ( #1534 )
2021-03-15 23:17:50 -04:00
toasted-nutbread
b923e33328
Fix invalid commas in HTML ( #1533 )
2021-03-15 23:15:21 -04:00
toasted-nutbread
8ae78449f2
Fix furigana distribution when source/expression kana differs ( #1532 )
...
* Fix furigana distribution when source/expression kana differs
* Add an additional test
2021-03-15 23:02:38 -04:00
toasted-nutbread
cba45b5e30
Improve translator test data ( #1531 )
...
* Organize files
* Split translator test data into two files
* Add test for AnkiNoteData
2021-03-15 20:55:26 -04:00
toasted-nutbread
9ad9961ca8
Fix error for kanji note data ( #1530 )
2021-03-15 20:50:18 -04:00
toasted-nutbread
9addd3f6d1
Fix search tab not focusing correctly ( #1529 )
2021-03-15 18:53:03 -04:00
toasted-nutbread
49b603c756
Remove old settings page ( #1524 )
...
* Remove old settings page
* Remove spinner.gif
2021-03-14 22:51:48 -04:00
toasted-nutbread
a52d86a39e
Dictionary database improvements ( #1527 )
...
* 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
2021-03-14 22:51:20 -04:00
toasted-nutbread
07df1e0117
Fix dictionary image support ( #1526 )
...
* 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
2021-03-14 18:41:15 -04:00
toasted-nutbread
52a4d874ea
Make MediaUtil a static class ( #1525 )
2021-03-14 18:04:19 -04:00
toasted-nutbread
06b02c3cf2
Add css width var ( #1523 )
...
* Rename --main-content-size to --content-width
* Add --content-width-search variable
2021-03-13 13:08:50 -05:00
toasted-nutbread
f6b591fd1a
Remove TODO comment from settings.css ( #1522 )
2021-03-13 13:04:26 -05:00
toasted-nutbread
e1477adeec
Simplify _findFirstBulk ( #1521 )
2021-03-13 11:42:04 -05:00
toasted-nutbread
a00ed41838
Database API updates ( #1520 )
...
* Add Database.findFirst
* Add DictionaryDatabase.findTagMetaBulk
2021-03-13 11:25:10 -05:00
toasted-nutbread
638e5783ac
Fix sorting of non-top-level definitions ( #1516 )
2021-03-10 20:27:10 -05:00
toasted-nutbread
5fe40d7ec4
Fix tag height ( #1515 )
2021-03-10 20:27:06 -05:00
toasted-nutbread
800ce9ed9e
Fix incorrect furigana distribution ( #1514 )
...
* Improve distributeFuriganaInflected implementation
* Update tests
2021-03-10 20:27:01 -05:00
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
97f9884f0b
Update browser bug list ( #1488 )
2021-03-05 23:44:20 -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