toasted-nutbread
0a1664ba29
Separate close hotkey ( #1242 )
...
* Add focusSearchBox hotkey
* Update close hotkey action
* Update hotkeys
2021-01-15 20:19:56 -05:00
toasted-nutbread
1dcfbf6ba6
Support suspending new anki cards ( #1240 )
...
* Add new option: anki.suspendNewCards
* Update Anki APIs
* Suspend card based on options
* Add setting
* Disable wrap for toggle property
2021-01-14 22:42:11 -05:00
toasted-nutbread
84d3af0f8d
Hotkeys ( #1236 )
...
* Set up hotkey inputs
* Improve key display
* Add setInput
* Add KeyboardShortcutController
* Update how display handles hotkeys
2021-01-14 20:56:18 -05:00
toasted-nutbread
c1e4741f22
Use code instead of key ( #1234 )
...
* Update KeyboardMouseInputField to use .code instead of .key
* Update Display to use .code instead of .key
* Remove unused function
2021-01-14 19:08:05 -05:00
toasted-nutbread
5ae3acf6ff
Anki note data abstraction ( #1228 )
...
* Create AnkiNoteData
* Create AnkiNoteDataDefinitionProxyHandler
* Update media injection
* Create AnkiNoteDataDefinitionSecondaryProperties
* Update note context format
* Expose url and cloze on definition
* Simplify for understandability
* Remove unused _createNoteData
* Update public object
* Remove trims on sentence, since it should already be trimmed
* Fix unused global
2021-01-12 22:47:07 -05:00
toasted-nutbread
b7c9fa1057
Refactor note document title ( #1227 )
...
* Pass url into setContent
* Update where url is checked from
* Add documentTitle to state information
* Update how _getNoteContext gets the document title
* Update how url is fetched for options context
* Pass document title in to 'searched' event
2021-01-12 18:04:26 -05:00
toasted-nutbread
983e2c7936
Refactor text scanner options context generation ( #1225 )
...
* Refactor how options context is created and updated
* Udpate TextScanner/QueryParser to use getSearchContext instead of getOptionsContext
2021-01-11 23:13:35 -05:00
toasted-nutbread
5e87a490f7
Refactor display anki functions ( #1224 )
...
* Refactor note adding/viewing functions
* Move _addDefinition
* Update where anki field templates are assigned
* Update _createNote to not include options/templates arguments
* Simplify getAnkiNoteInfo to not require duplicateScope
2021-01-11 18:37:07 -05:00
toasted-nutbread
4ed9493645
Refactor anki note building ( #1223 )
...
* Move TemplateRendererProxy creation into AnkiNoteBuilder
* Simplify _stringReplaceAsync
* Organize note generation
* Rename API
* Make the template rendering function more generic
2021-01-10 19:28:50 -05:00
toasted-nutbread
7f07b905ab
Update how navigation sidebar visibility is controlled ( #1221 )
2021-01-10 16:48:31 -05:00
toasted-nutbread
1614335bb0
Fix profile panel not being able to be closed due to hidden sidebar ( #1220 )
2021-01-10 16:06:00 -05:00
toasted-nutbread
f6a38f40dc
Customizable sentence parsing ( #1217 )
...
* Add new sentenceParsing options
* Update TextScanner.setOptions
* Assign terminator/quote maps
* Pass sentence parsing info to extractSentence
* Simplify setting
* Add setting for enableTerminationCharacters
* Create new settings for sentence termination characters
2021-01-10 14:43:06 -05:00
toasted-nutbread
083da93142
Refactor sentence parsing ( #1215 )
...
* Rename sentenceExtent with sentenceScanExtent
* Update TextScanner.setOptions
* Change function argument order
* Rename quote map variables
* Fix edge case quote handling
* Update terminator maps to support character inclusion
2021-01-09 23:10:55 -05:00
toasted-nutbread
da1e1e5c5b
Sentence parsing options ( #1214 )
...
* Rename options.anki.sentenceExt to options.sentenceParsing.scanExtent
* Create sentence parsing icon
* Create new sentence parsing section
2021-01-09 21:25:04 -05:00
toasted-nutbread
d698911bc9
Refactor sentence scanning ( #1213 )
...
* Update tests
* Update extractSentence implementation
* Remove old extractSentence implementation
* Optimize maps/sets
2021-01-09 19:02:51 -05:00
toasted-nutbread
5b58a9aeef
Update term tags display and fix a layout issue ( #1208 )
...
* Fix layout issue with term expression display
* Update display of term tags
* Update tag notification to include disambiguation information
2021-01-09 16:02:03 -05:00
toasted-nutbread
06d23f59d8
Improve frequency display ( #1209 )
...
* Disable old frequencies
* Update layout
* Implement new frequency display
* Update count info
2021-01-09 10:41:17 -05:00
toasted-nutbread
b20622b2c8
Core refactor ( #1207 )
...
* Copy set intersection functions
* Remove unused functions
* Simplify url check
* Remove parseUrl
* Simplify stringReverse
* Remove hasOwn due to infrequent use
* Rename errorToJson/jsonToError to de/serializeError
For clarity on intended use.
* Fix time argument on timeout
* Add missing return value
* Throw an error for unexpected argument values
* Add documentation comments
2021-01-07 21:36:20 -05:00
toasted-nutbread
7d706df66b
Update DictionaryDataUtil to be able to be used in a sandbox frame ( #1206 )
2021-01-07 20:24:22 -05:00
toasted-nutbread
8c92c1cbc2
Refactor anki note generation ( #1202 )
...
* Create _injectAnkiNoteMedia function
* Remove unused code path
* Simplify modeOptions
2021-01-03 19:40:12 -05:00
toasted-nutbread
a02891e52c
Update copyright year ( #1194 )
...
* Update copyright year
* Remove redundant Author info
2021-01-01 14:50:41 -05:00
toasted-nutbread
889240311b
Improve tag scanning behaviour ( #1189 )
...
* Update include/exclude selectors for Display._definitionTextScanner
* Fix missing condition
2020-12-31 14:21:50 -05:00
toasted-nutbread
ad90bad057
Display profile panel ( #1178 )
...
* Expose Display.displayGenerator
* Update search when assigning options context
* Don't clear selection unless the popup changes
* Merge search styles
* Create panel for changing the profile
2020-12-29 23:38:44 -05:00
toasted-nutbread
2cd429fdfd
Rename PopupElement to PanelElement; split classes into separate files ( #1173 )
2020-12-29 00:06:51 -05:00
toasted-nutbread
b6038c87b6
Improve document focus control ( #1167 )
...
* Improve styles for #content-scroll-focus
* Create new class to manage and control document focus
* Use new focus class
* Add a check to prevent redundant .blur calls
2020-12-28 17:41:59 -05:00
toasted-nutbread
a354becd51
Furigana distribution improvements ( #1157 )
...
* Improve furigana when reading kana is not an exact match
* Simplify group structure
* Return consistent type
* Add more tests
* Remove redundant isAmbiguous assignment
* Simplify group usage
* Add helper function
* Optimize returned arrays
* Use variable
* Remove s(p)lice calls
* Reduce number of convertKatakanaToHiragana calls
* Optimize text length access
* Optimize reading substring
* Move segmentize to a separate function
* Use var
* Use _createFuriganaSegment
* Optimize distributeFuriganaInflected
2020-12-22 11:02:19 -05:00
toasted-nutbread
18043babeb
Improve query parser scanning ( #1154 )
...
* Improve how the search page updates after settings have changed
* Always update the history on the first scan of the query parser
2020-12-21 19:19:59 -05:00
toasted-nutbread
9dd2a9c98e
Fix Display._definitionTextScanner not ignoring certain elements ( #1153 )
2020-12-21 19:18:39 -05:00
toasted-nutbread
443d6d1956
Popup action bar options ( #1140 )
...
* Add options for action bar visibility and location
* Add settings
* Update styles
* Expose properties
* Update styles
* Update tests
2020-12-19 20:07:55 -05:00
toasted-nutbread
bef8612665
Focus the current entry earlier in the generation process ( #1137 )
2020-12-19 16:00:47 -05:00
toasted-nutbread
1b1b24ab35
Entry indicator update ( #1134 )
...
* Move entry current indicator rules
* Simplify rules
* Add popupCurrentIndicatorMode option
* Add option to settings page
* Expose popupCurrentIndicatorMode
* Restore asterisk current indicator
* Implement dot
* Update action button vars
* Fix tests
* Add none option
* Add triangle option
2020-12-19 15:42:44 -05:00
toasted-nutbread
51223abfa6
Set up initial manifest v3 support ( #605 )
2020-12-18 15:54:05 -05:00
toasted-nutbread
194359f4ec
Simplify _getUrl function ( #1121 )
2020-12-18 13:35:20 -05:00
toasted-nutbread
f28fe33cae
Change the resizer color when the window is being resized ( #1120 )
2020-12-18 12:06:39 -05:00
toasted-nutbread
bf34905012
Improve display tags ( #1117 )
...
* Update tag style
* Add styles/HTML for notifications
* Add DisplayNotification class
* Add support for tag notifications
* Simplify notification content
2020-12-18 09:43:54 -05:00
toasted-nutbread
48b8041800
Fix incorrect page type condition causing incorrect document title ( #1105 )
2020-12-13 10:33:47 -05:00
toasted-nutbread
5948229176
Add info page ( #1102 )
...
* Add api.getAnkiConnectVersion
* Enable basic functionality when certain features/elements aren't present
* Add info page
* Update information links
* Update info link on the settings v2 page
2020-12-12 14:57:24 -05:00
toasted-nutbread
125c296eed
Support frame resize on firefox ( #1088 )
...
* Add popup functions for getting/setting the frame size
* Add frontend functions for getting/setting popup frame size
* Expose display mode attribute on display HTML
* Disable resizer on iframe
* Add custom frame resizer handle
* Add support for custom frame resizer
2020-12-08 20:31:02 -05:00
toasted-nutbread
f89f9d777f
Use expression as reading if reading is blank ( #1083 )
2020-12-05 21:30:51 -05:00
toasted-nutbread
0fc8578dee
Fix pitch accent info gathering using new data format ( #1081 )
2020-12-05 21:16:24 -05:00
toasted-nutbread
95b225462a
Fix frequency tags ( #1080 )
...
* Rename term-frequency to tag-frequency
* Move tag styles
* Expand
* Use separate templates for terms vs kanji
2020-12-05 17:45:45 -05:00
toasted-nutbread
34451ebf71
JapaneseUtil normalization ( #1076 )
...
* Use JapaneseUtil as a class which is manually instantiated
* Use alias function for toKana
2020-11-29 13:09:02 -05:00
toasted-nutbread
008ffdb6bf
Frequencies marker ( #1074 )
...
* Update japanese.js tests
* Simplify fallback/early exit
* Add overloads to furigana and furiganaPlain handlebars helper functions
* Expose unique expression/reading arrays (and subsequently counts)
* Add {frequencies} marker
2020-11-28 14:30:50 -05:00
toasted-nutbread
94d63f4f87
Display style updates ( #1072 )
...
* Add variables for tag styles
* Add variable for compact list separator
* Improve compactness of pitch accents
* Improve kanji link styles
* Improve coloring for lists
* Move styles
* Update styles for lists
* Move conditional styles
* Simplify definitions
* Remove unused styles
* Cleanup
* Use strings for dataset properties
* Don't always collapse pitch accents
2020-11-27 15:22:06 -05:00
toasted-nutbread
8449322e1c
Fix kanji note creation ( #1069 )
...
* Fix kanji note creation
* Move try/catch for consistency
* Move audio normalization
2020-11-26 22:53:58 -05:00
toasted-nutbread
92e9f69c80
Popup style updates ( #1066 )
...
* Replace compactGlossaries option with new glossaryLayoutMode option
* Update attributes
* Update attributes
* Update color definitions
* Fix default theme scrollbar
2020-11-25 23:22:05 -05:00
toasted-nutbread
c6c4631817
Display button improvements ( #1065 )
...
* Use hidden and disabled properties instead of custom classes
* Enable transitions on buttons
2020-11-25 12:39:09 -05:00
toasted-nutbread
02d9f7c736
Improve html templates ( #1061 )
...
* Add template pre-processing
* Remove whitespace
* Add labels
* Reuse tag template for search tags
* Add space
2020-11-24 19:06:29 -05:00
toasted-nutbread
0b00de3c0f
Frequency display improvements ( #1060 )
...
* Hide redundant frequencies
* Add dataset counters for unique expressions/readings
* Update frequency display to include disambiguations
2020-11-24 11:56:40 -05:00
toasted-nutbread
de299c64ae
Display updates ( #1057 )
...
* Fix history assignment on the search page
* Use clear instead of assigned
* Simplify definitions assignment
* Organize
* Fix query not being cleared
* Fix media loading
* Fix potential issue with options not being assigned
* Catch error when frameId is null, causing infinite loop
* Fix frontend construction parameters
2020-11-24 11:54:08 -05:00