toasted-nutbread
c73ee13086
More terminology updates ( #1600 )
...
* Update terminology
* Update display
* Rename expression-list to headword-list
* Rename expression-current-indicator
* Rename expression classes
* Update dictionary entry container
* Rename glossary => gloss
* Rename heading
* Rename gloss classes to gloss-content
2021-04-08 19:59:55 -04:00
toasted-nutbread
e444141511
Fix autofocus sometimes not working on the search page ( #1597 )
2021-04-07 19:07:42 -04:00
toasted-nutbread
e14b52ef84
Update dictionary entry terminology ( #1592 )
...
* Update terminology
* Update terminology in display.js
* Update terminology in display-audio.js
* Update terminology in text-scanner.js
* Update terminology in backend.js
* Update terminology in mecab.js
* Update terminology in audio-downloader.js
* Update terminology in translator-vm.js
* Update terminology in dictionary-data-util.js
* Update terminology in dictionary-database.js
* Update terminology in japanese-util.js
* Change/upgrade {expression} to {term}
* Update terminology in test-japanese.js
* Update terminology in test-database.js
* Update terminology in anki-templates-controller.js
* Update terminology in anki-note-builder.js
* Update terminology in backend.js
* Update terminology in text-scanner.js
* Update terminology in display.js
* Update terminology in display.js
2021-04-04 16:22:35 -04:00
toasted-nutbread
8de1e9b3d8
Update logged data name to dictionaryEntry ( #1590 )
2021-04-03 15:23:55 -04:00
toasted-nutbread
a9fe2d03b2
Update dictionary settings structure ( #1587 )
...
* Update dictionary settings structure to use an array instead of an object
* Update ensureDictionarySettings implementation
* Remove some usage of ObjectPropertyAccessor
2021-04-03 13:02:49 -04:00
toasted-nutbread
8179846e38
Refactor template rendering ( #1583 )
...
* Update _errorToJson to _serializeError
* Remove async
* Refactor render
* Simplify _getModifiedData
* Rename data => commonData
* Rename templates => template for consistency
* Improve errors check
* Update tests
2021-04-02 12:42:06 -04:00
toasted-nutbread
c66fe71ee0
Remove debug statements ( #1582 )
2021-04-01 19:17:53 -04:00
toasted-nutbread
5d7309ed54
Log Anki data ( #1579 )
...
* Remove unused modifierPost
* Add _getModifier
* Add _getModifiedData
* Add getModifiedData
* Add getRenderingData
* Update logging to also log anki note data
* Fix dangling comma
2021-03-31 20:07:11 -04:00
toasted-nutbread
da612bbdd7
Fix missing document title on the search page ( #1578 )
2021-03-31 19:58:33 -04:00
toasted-nutbread
bcbd413e57
Definition collapsing when overflowing ( #1575 )
...
* Add double-down-chevron.svg
* Add options
* Update dictionary importers
* Update settings
* Add support for collapsible definitions
* Improve case when there is a very small amount of overflow
* Fix incorrect enabled state of newly imported dictionaries
2021-03-31 18:17:28 -04:00
toasted-nutbread
cbcfdcacaf
Fix incorrect state assignment when unbinding wanakana ( #1573 )
2021-03-29 18:46:32 -04:00
toasted-nutbread
b4d6a5d3b4
Toggle option hotkey ( #1571 )
...
* Set up toggleOption hotkey action settings
* Update styles
* Disable spell check and autocomplete
* Add OptionToggleHotkeyHandler
* Improve auto-close behaviour
2021-03-28 14:04:20 -04:00
toasted-nutbread
98994d0b65
Add playAudioFromSource hotkey ( #1570 )
2021-03-28 11:27:37 -04:00
toasted-nutbread
2098d2faae
Hotkey arguments ( #1565 )
...
* Update display
* Move scope definitions
* Update scopes button after changing action
* Don't show menu if empty
* Improve scope updating
* Update style
* Simplify
* Add argument to settings
* Update convertToNumber implementation
* Add support for arguments
* Pass argument to action handler
* Update hotkey action definitions
* Remove x3 options
2021-03-27 22:30:45 -04:00
toasted-nutbread
90f7d5ba07
Add part of speech info ( #1561 )
...
* Add part of speech info to headwords
* Expose parts of speech to Anki template rendering
* Expose parts of speech
* Update pitch accent categories
* Update docs
* Add part-of-speech
* Update options and tests
* Update markers
* Update test data
2021-03-26 19:50:54 -04:00
toasted-nutbread
482dd8c8d8
Display fixes ( #1560 )
...
* Fix _getDefinitionDetailsForNote
* Fix _getExpressionAndReading
2021-03-26 19:31:19 -04:00
toasted-nutbread
6af0ee26b9
Fix tag disambiguation ( #1556 )
...
* Update display generator to use new data format for tag disambiguation
* Add separator for multiple disambiguations
2021-03-25 20:54:39 -04:00
toasted-nutbread
4be5c8fd9f
Refactor Translator and dictionary entry format ( #1553 )
...
* Update test data
* Move translator.js
* Create new version of Translator
* Update Backend
* Update DictionaryDataUtil
* Update DisplayGenerator
* Create AnkiNoteDataCreator
* Replace AnkiNoteData with AnkiNoteDataCreator
* Update tests
* Remove AnkiNoteData
* Update test data
* Remove translator-old.js
* Add TypeScript interface definitions for the new translator data format
2021-03-25 19:55:31 -04:00
toasted-nutbread
e7035dcff4
Enable audio menu shift click ( #1555 )
...
* Expose modifier keys
* Add updateMenuItems
* Don't close menu if shift key is held
* Add _createMenuItems
* Simplification
* Maintain a list of open popup menus
* Expose expression/reading
* Reuse existing items
* Update menu after a cache update
* Update menu position
2021-03-25 19:22:34 -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
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
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
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
ca4d5a2ac1
Fix text being overwritten when generating the query parser content ( #1483 )
2021-03-03 18:06:12 -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
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
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
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
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
1a7c264165
Add standalone reading ( #1448 )
...
* Add option
* Update display
* Hide redundant readings
* Improve label and description
2021-02-27 14:04:52 -05:00
toasted-nutbread
782b945905
Header lint ( #1444 )
...
* Add eslint-plugin-header
* Add rule for header format
* Add missing header
* Fix header issues
2021-02-25 20:21:05 -05:00
toasted-nutbread
ec495bd7b2
Improve frequency display ( #1438 )
...
* Add frequencyDisplayMode option
* Update tests
* Add setting
* Update frequency display styles
* Improve wrapping
2021-02-25 17:48:39 -05:00
toasted-nutbread
6bda81b422
Improve note addability ( #1440 )
...
* Add valid field
* Add isNoteDataValid function
* Update _areDefinitionsAddableForcedValue to return proper valid values
* Refactor isAnkiConnected check
* Force canAdd to false if not valid
2021-02-24 22:23:40 -05:00
toasted-nutbread
ae92e0b378
AnkiUtil ( #1439 )
...
* Add AnkiUtil
* Update AnkiConnect to use AnkiUtil
* Use AnkiUtil in AnkiNoteBuilder
* Replace containsAnyMarker with AnkiUtil.stringContainsAnyFieldMarker
* Add AnkiUtil.getFieldMarkers
* Add fieldsObjectContainsMarker to AnkiUtil
* Remove unused global
* Remove unused parameter: enabled
* Add cloneFieldMarkerPattern
2021-02-24 21:54:58 -05:00
toasted-nutbread
b778974938
Improve tag styles ( #1431 )
...
* Update tag styles
* Refactor _createTag
* Update padding
2021-02-21 13:57:28 -05:00
toasted-nutbread
b9e92a2528
Improve key press to focus the search query input ( #1424 )
2021-02-19 21:20:58 -05:00
toasted-nutbread
6a6d7ba84e
Fix wanakana.unbind throwing an error ( #1422 )
2021-02-19 18:39:36 -05:00
toasted-nutbread
53d02ca3d3
Fix search tags in split and grouped display modes ( #1412 )
2021-02-16 21:19:52 -05:00
toasted-nutbread
3a86601c88
Improve primary audio assignment when audio isn't available ( #1407 )
2021-02-15 21:46:55 -05:00
toasted-nutbread
55f5182ca9
Audio popup menu primary card audio selection ( #1406 )
...
* Add card icon to audio menu items
* Update cache data format
* Create _getCacheItem
* Add _playAudioFromSource function
* Implement default card audio info
* Specify exact audio to download when an override is assigned
* Abstract using _getMenuItemSourceInfo
* Update downloadability check
* Update the main audio menu buttons to also assign the default source
2021-02-15 21:34:10 -05:00
toasted-nutbread
f2a387237b
Update audio downloading to support specifying an exact array index ( #1405 )
2021-02-15 20:47:35 -05:00
toasted-nutbread
7027d537a9
Display audio menu refactor ( #1404 )
...
* Update display and generation of the audio menu
* Wrap menu items in a div to allow for horizontal layout groupings
2021-02-15 14:31:16 -05:00