toasted-nutbread
8c68fa4d94
Anki text furigana parsing and {sentence-furigana} marker ( #1814 )
...
* Add support for textFurigana media
* Add readingMode parameter
* Implement readingMode
* Add {sentence-furigana} marker
* Fallback to sentence if furigana isn't available
* Update test data
2021-07-09 17:48:27 -04:00
toasted-nutbread
0d16709547
JapaneseUtil updates ( #1813 )
...
* Rename test file
* Use shorthand
* Add support checking functions
* Remove convertReading from JapaneseUtil
2021-07-09 17:31:16 -04:00
toasted-nutbread
daa44a8389
Fix an issue with reordering dictionary settings ( #1812 )
2021-07-09 16:06:12 -04:00
toasted-nutbread
24ec22b2e1
Text parse updates ( #1811 )
...
* Expose more settings to QueryParser
* Rename textParse to parseText
* Refactor
* Convert reading inside QueryParser rather than Backend
* Remove use of readingMode from backend
* Rename
* Update parseText args
* Simplify
* Update results
* Move use of optionsContext
* Run mecab and internal parser in parallel
* Added "dictionary-reading" reading mode
* Update romaji conversion case
2021-07-09 16:05:57 -04:00
toasted-nutbread
315dc425e4
Anki card selected text ( #1809 )
...
* Add support for injecting the text selection into Anki cards
* Add selection-text
* Upgrade to add {selection-text}
* Update descriptions
* Update test data
2021-07-07 20:00:30 -04:00
toasted-nutbread
9935e154f1
Update options-util tests and comment ( #1806 )
2021-07-06 22:59:24 -04:00
toasted-nutbread
1088c17503
Add support for injecting dictionary media into Anki cards ( #1805 )
2021-07-06 22:00:18 -04:00
toasted-nutbread
8d1596cdf8
Fix incorrect resultOutputMode ( #1804 )
2021-07-06 21:49:57 -04:00
toasted-nutbread
df72c3927b
Fix function names ( #1803 )
2021-07-06 20:07:13 -04:00
toasted-nutbread
e88d63fc6d
Template renderer media updates ( #1802 )
...
* Add TemplateRendererMediaProvider to abstract media-related functionality
* Update representation of injected media
* Update templates
* Update upgrade file
* Update tests
* Update test data
* Force media to be an object
* Update test data
2021-07-06 19:43:53 -04:00
toasted-nutbread
e155132085
OptionsUtil and tests updates ( #1801 )
...
* Update OptionsUtil.update to support an optional targetVersion param
* Update Anki template updates to have an explicit target version
2021-07-05 23:24:06 -04:00
toasted-nutbread
54808d4a2d
Pass requirements to note generation ( #1800 )
...
* Update structure
* Pass requirements to _createNote
* Show an error for requirements that weren't fulfilled
2021-07-05 16:59:30 -04:00
toasted-nutbread
da13a2ebff
DisplayAnki note requirements ( #1799 )
...
* Update how errors are collected from _formatField
* Expose requirements
2021-07-05 15:08:11 -04:00
toasted-nutbread
0491de12d4
Store anki note details ( #1798 )
...
* Update error handling of _areDictionaryEntriesAddable
* Store note details
* Remove promise after use
* Rename function
* Clear stored details
* Rename function
* Rename function
2021-07-05 14:41:11 -04:00
toasted-nutbread
b8478857aa
Refactor DisplayAnki.setupEntriesComplete params and implementation ( #1794 )
2021-07-04 11:11:05 -04:00
r00ster
e6a9aef2d5
Add a missing "of" ( #1793 )
2021-07-04 10:32:00 -04:00
toasted-nutbread
468c923277
Update the note context object generation process to ensure consistency ( #1792 )
2021-07-03 20:09:22 -04:00
toasted-nutbread
ea47cb8248
DisplayAnki ( #1791 )
...
* Remove anki functionality from display
* Rename function
* Display API updates
* Use DisplayAnki
* TODO
2021-07-03 19:32:11 -04:00
toasted-nutbread
82b7ebfa58
Remove uniqueness check for requirements ( #1790 )
2021-07-03 11:35:03 -04:00
toasted-nutbread
f7d177e6d0
Refactor createNote ( #1789 )
...
* Update createNote to return a wrapper object
* Update how createNote creates errors
2021-07-03 11:30:48 -04:00
toasted-nutbread
d7c934cae8
Fix simple glossary HTML not being escaped ( #1788 )
2021-07-03 10:46:51 -04:00
toasted-nutbread
ca97e38bd2
Anki support for structured-content ( #1786 )
...
* Update how glossary text is formatted
* Update structured content and image generation
* Pass root data to _createStructuredContentGenerator
* Implement media URLs
* Update documentation
* Update options util
* Apply styles to content
* Improve HTML normalization
* Update DatabaseVM.fetch function
* Update test
* Update test data
2021-07-02 22:46:38 -04:00
toasted-nutbread
a4715935cb
More CssStyleApplier updates ( #1785 )
...
* Update eslint rules for css-style-applier.js
* Don't use chrome.runtime.getURL
* Update CSP to allow inline styles
2021-07-02 22:12:02 -04:00
toasted-nutbread
56b2462f13
CssStyleApplier updates ( #1784 )
...
* Remove debug log
* Remove style attribute if empty
* Remove data-* attributes
2021-07-02 18:28:29 -04:00
toasted-nutbread
9c8f32d53f
Update version
2021-06-30 20:43:39 -04:00
toasted-nutbread
558084ec13
Merge the Sentence Parsing section into the Text Parsing section ( #1781 )
2021-06-29 22:34:10 -04:00
toasted-nutbread
ace46503be
Make Display.authenticateMessageData private ( #1780 )
2021-06-29 22:17:14 -04:00
toasted-nutbread
deb2a742ed
Update dictionary image link color ( #1778 )
2021-06-28 22:19:55 -04:00
toasted-nutbread
1f1a958a71
Update CSS rules for images ( #1777 )
2021-06-28 22:12:17 -04:00
toasted-nutbread
9f3d267e24
Fix incorrect aspect ratio of structured-content images ( #1776 )
2021-06-28 21:46:54 -04:00
toasted-nutbread
1794c94844
Add separation before template-renderer-frame-main.js ( #1774 )
2021-06-27 19:29:22 -04:00
toasted-nutbread
1ba19adfe2
Add CssStyleApplier class ( #1773 )
2021-06-27 19:21:27 -04:00
toasted-nutbread
32d5fccc36
Template renderer init update ( #1772 )
...
* Update TemplateRendererFrameApi to post a 'ready' message
* Wait for 'ready' message rather than using 'load' event
2021-06-27 18:16:21 -04:00
toasted-nutbread
002da9fba8
Structured content style json ( #1771 )
...
* Install css
* Remove unnecessary rule
* Create CSS overrides file
* Create script to generate CSS JSON file
* Generate JSON
* Add test
2021-06-27 17:57:00 -04:00
toasted-nutbread
24ef820ba8
Update structured content CSS styles ( #1770 )
2021-06-27 15:01:35 -04:00
toasted-nutbread
94819e0ec3
Move structured content CSS into a separate file ( #1769 )
2021-06-27 11:46:16 -04:00
toasted-nutbread
6b8cd5e623
Template patcher updates ( #1766 )
...
* Don't append anything if the additions is empty
* Simplify update list
2021-06-26 23:55:06 -04:00
toasted-nutbread
8eb9c94f8a
Template renderer internal data update ( #1764 )
...
* Add cleanup callbacks
* Move requirements
* Add custom data
2021-06-26 17:43:07 -04:00
toasted-nutbread
f9167c8fdd
Template rendering updates ( #1762 )
...
* Remove unused function
* Update template rendering return value
2021-06-26 17:05:55 -04:00
toasted-nutbread
f497cb2a07
Remove unused template ( #1761 )
2021-06-26 15:52:00 -04:00
toasted-nutbread
e5284988e2
Structured content generation updates ( #1760 )
...
* Simplify _createElement, fix misuse of classList
* Don't use templates to generate image content
* Omit templates
2021-06-26 15:49:23 -04:00
toasted-nutbread
f389b3c232
Fix missing error logging when logging debug info ( #1758 )
2021-06-26 15:27:33 -04:00
toasted-nutbread
8d1d428ed4
Move structured-content generation code into a separate file ( #1757 )
2021-06-26 14:40:37 -04:00
toasted-nutbread
435af3a485
Improve what info is logged when debugging a definition ( #1756 )
2021-06-26 14:10:18 -04:00
toasted-nutbread
845070b817
Translator sorting updates ( #1755 )
...
* Update when definition sorting takes place
* Update test data
* Change order of sorting
2021-06-26 12:37:38 -04:00
toasted-nutbread
6e0a367afc
Translator data format updates ( #1754 )
...
* Add {dictionaryIndex, dictionaryPriority} to definitions
* Add score to definitions
* Add id to definition
* Use definition id instead of ids array
* Remove ids array
* Update docs
* Update test data
2021-06-26 11:57:09 -04:00
toasted-nutbread
5756885fa9
Structured content updates ( #1753 )
...
* Update schema
* Update content generation
* Update styles
* Update test data
* Update style names
2021-06-25 17:24:29 -04:00
toasted-nutbread
cf70b3de64
Fix search input focus not working properly ( #1752 )
2021-06-25 16:49:47 -04:00
toasted-nutbread
4d5e85ff09
Update dependencies ( #1749 )
...
* Update dependencies
* Remove unnecessary readonly attribute
* Run npm audit fix
2021-06-24 19:59:52 -04:00
toasted-nutbread
ef4ea2271b
Fix handling of document.body as <frameset> ( #1748 )
2021-06-24 19:18:33 -04:00