summaryrefslogtreecommitdiff
path: root/ext/js/display/display-generator.js
Commit message (Collapse)AuthorAge
* Add data-is-primary attribute to headwords (#1946)toasted-nutbread2021-09-11
|
* Rename pitchAccent in source code (#1852)toasted-nutbread2021-07-26
| | | | | | | | | | | * Rename pitchAccentPosition to pitchAccentDownstepPosition * Rename function * Rename * Rename * pitches => pronunciations
* Rename CSS class names "pitch-accent" to "pronunciation" (#1850)toasted-nutbread2021-07-25
| | | | | | | | | | | | | * pitch-accents => pronunciations * Update dataset property names * pitch-accent-dictionary => pronunciation-dictionary * Update styles * Update template name * Update attributes
* Pronunciation template helper (#1840)toasted-nutbread2021-07-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Rename field * Set up pronunication components * Fix documentation * Rename function * Update test dependencies * Fix constructor * Log errors * Add pronunciation helper * Add styleApplier argument to _getHtml/_normalizeHtml * Use getAttribute for 'class' to support namespaced elements (e.g. svg) * Update format name * Add optional tag * Update docs
* Display pronunciation refactor (#1835)toasted-nutbread2021-07-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Simplify svg and container styles * Rename pitch-accent-details to pitch-accent-graph-container * Rename pitch-accent-graph* to pronunciation-graph* * Remove unused template * Omit quotes * Rename pitch-accent-character to pronunciation-mora * Simplify names * Replace pronunciation-mora-inner with pronunciation-character * Improve grouping of nasal characters * Simplify character replacement * Replace pseudo-elements with real elements * Use an element rather than a fragment * Rename functions * Add wrapper * Rename pitch-accent-characters to pronunciation-text-container * Update test data * Update downstep notation generation * Rename pitch-accent-position to pronunciation-downstep-notation-container * Space * Wrap pronunciations in a container node * Update preview * Embed pitch accent styles directly
* Display pronunciation separation (#1833)toasted-nutbread2021-07-17
| | | | | | | | | | | * Create PronunciationGenerator * Update DisplayGenerator * Update templates * Move pronunciation styles to a separate file * Simplify pitch-accents-preview.html
* Devoice and nasal pronunciation info (#1832)toasted-nutbread2021-07-15
| | | | | | | | | | | | | * Update schema to support information about nasal and devoiced mora * Expose nasalPositions and devoicePositions in dictionary entry data * Expose nasalPositions, devoicePositions in grouped pitch info * Update display generator * Update test dictionary data * Update test data
* Structured content generation updates (#1760)toasted-nutbread2021-06-26
| | | | | | | * Simplify _createElement, fix misuse of classList * Don't use templates to generate image content * Omit templates
* Move structured-content generation code into a separate file (#1757)toasted-nutbread2021-06-26
|
* Structured content updates (#1753)toasted-nutbread2021-06-25
| | | | | | | | | | | * Update schema * Update content generation * Update styles * Update test data * Update style names
* Structured content updates (#1733)toasted-nutbread2021-06-06
| | | | | | | | | | | | | | | | | | | | | * Add support for imageRendering * Make crisp-edges appearance on Firefox more similar to Chrome * Refactor * Add background option * Move data-image-rendering attribute * Restructure * Organize * Add support for appearance * Update test dictionary * Update tests
* Structured content image size units (#1692)toasted-nutbread2021-05-20
| | | | | * Add support for sizeUnits on image content * Update test data
* Add support for definitions with structured content (#1689)toasted-nutbread2021-05-19
| | | | | | | | | | | * Add structured content to schema * Add support for generating custom content * Update importer * Update test data * Add verticalAlign property
* Dictionary image display refactoring (#1687)toasted-nutbread2021-05-18
| | | | | | | | | | | | | | | * Generalize image definition generation * Enable optional aspect ratio * Move styles * Update styles * Add more options for collapsing images * Add image options for collapsing * Improve layout for images that are collapsed
* Revert "Add support for custom text type generation (#1683)" (#1684)toasted-nutbread2021-05-16
| | | This reverts commit 39cabc4db61047923712edcca6bedfd001d5d151.
* Add support for custom text type generation (#1683)toasted-nutbread2021-05-16
|
* Update search tags to always be displayed in a consistent manner (#1645)toasted-nutbread2021-05-01
|
* Remove the mouseover tags that are shown in merge mode (#1644)toasted-nutbread2021-05-01
|
* Add pitch categories template helper (#1636)toasted-nutbread2021-04-28
| | | | | | | * Move utility function * Expose dictionary entry as a hidden property for internal use * Add pitchCategories helper
* Improve kifuku detection to not include suru nouns (#1621)toasted-nutbread2021-04-26
|
* Replace furigana with reading (#1614)toasted-nutbread2021-04-13
| | | | | * Use "reading" instead of "furigana" for reading distribution * Update tests
* More terminology updates (#1600)toasted-nutbread2021-04-08
| | | | | | | | | | | | | | | | | | | * 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
* Update dictionary entry terminology (#1592)toasted-nutbread2021-04-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add part of speech info (#1561)toasted-nutbread2021-03-26
| | | | | | | | | | | | | | | | | | | * 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
* Fix tag disambiguation (#1556)toasted-nutbread2021-03-25
| | | | | * Update display generator to use new data format for tag disambiguation * Add separator for multiple disambiguations
* Refactor Translator and dictionary entry format (#1553)toasted-nutbread2021-03-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Refactor term frequency data (#1503)toasted-nutbread2021-03-07
| | | | | | | | | | | * Add getTermFrequency * Update DisplayGenerator to use getTermFrequency * Remove termFrequency from Translator data * Backwards compatibility * Update tests
* Refactor furigana segment data (#1502)toasted-nutbread2021-03-07
| | | | | | | | | | | * Remove redundant language assignment * Segment furigana from DisplayGenerator * Remove furiganaSegments from translator data * Add backwards compatibility for furiganaSegments * Update tests
* Improve empty reading handling (#1497)toasted-nutbread2021-03-06
| | | | | | | * Handle empty readings earlier in the definition creation process * Remove empty reading check * Remove special handling of empty readings
* Fix multiline copying (#1493)toasted-nutbread2021-03-06
| | | | | * Change order * Update multiline text assignment
* Fix missing details causing frequency tags to not be clickable (#1467)toasted-nutbread2021-02-28
|
* Use a Set instead of an array (#1463)toasted-nutbread2021-02-28
|
* Get categorization of pitch accents (#1462)toasted-nutbread2021-02-28
|
* Organize display styles (#1452)toasted-nutbread2021-02-27
| | | | | | | | | | | | | * 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
* Refactor display styles (#1451)toasted-nutbread2021-02-27
| | | | | | | | | | | | | | | * 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
* Add standalone reading (#1448)toasted-nutbread2021-02-27
| | | | | | | | | * Add option * Update display * Hide redundant readings * Improve label and description
* Header lint (#1444)toasted-nutbread2021-02-25
| | | | | | | | | * Add eslint-plugin-header * Add rule for header format * Add missing header * Fix header issues
* Improve frequency display (#1438)toasted-nutbread2021-02-25
| | | | | | | | | | | * Add frequencyDisplayMode option * Update tests * Add setting * Update frequency display styles * Improve wrapping
* Improve tag styles (#1431)toasted-nutbread2021-02-21
| | | | | | | * Update tag styles * Refactor _createTag * Update padding
* Fix search tags in split and grouped display modes (#1412)toasted-nutbread2021-02-16
|
* Display audio menu refactor (#1404)toasted-nutbread2021-02-15
| | | | | * Update display and generation of the audio menu * Wrap menu items in a div to allow for horizontal layout groupings
* Move api to yomichan object (#1392)toasted-nutbread2021-02-14
| | | | | | | | | | | * Move cross frame API from API to Yomichan * Add API instance to Yomichan * Move api global to yomichan.api * Pass yomichan to API * Remove IIFE
* Move mixed/js (#1383)toasted-nutbread2021-02-13
* Move mixed/js/core.js to js/core.js * Move mixed/js/yomichan.js to js/yomichan.js * Move mixed/js/timer.js to js/debug/timer.js * Move mixed/js/hotkey-handler.js to js/input/hotkey-handler.js * Move mixed/js/hotkey-help-controller.js to js/input/hotkey-help-controller.js * Move mixed/js/hotkey-util.js to js/input/hotkey-util.js * Move mixed/js/audio-system.js to js/input/audio-system.js * Move mixed/js/media-loader.js to js/input/media-loader.js * Move mixed/js/text-to-speech-audio.js to js/input/text-to-speech-audio.js * Move mixed/js/comm.js to js/comm/cross-frame-api.js * Move mixed/js/api.js to js/comm/api.js * Move mixed/js/frame-client.js to js/comm/frame-client.js * Move mixed/js/frame-endpoint.js to js/comm/frame-endpoint.js * Move mixed/js/display.js to js/display/display.js * Move mixed/js/display-audio.js to js/display/display-audio.js * Move mixed/js/display-generator.js to js/display/display-generator.js * Move mixed/js/display-history.js to js/display/display-history.js * Move mixed/js/display-notification.js to js/display/display-notification.js * Move mixed/js/display-profile-selection.js to js/display/display-profile-selection.js * Move mixed/js/japanese.js to js/language/japanese-util.js * Move mixed/js/dictionary-data-util.js to js/language/dictionary-data-util.js * Move mixed/js/document-focus-controller.js to js/dom/document-focus-controller.js * Move mixed/js/document-util.js to js/dom/document-util.js * Move mixed/js/dom-data-binder.js to js/dom/dom-data-binder.js * Move mixed/js/html-template-collection.js to js/dom/html-template-collection.js * Move mixed/js/panel-element.js to js/dom/panel-element.js * Move mixed/js/popup-menu.js to js/dom/popup-menu.js * Move mixed/js/selector-observer.js to js/dom/selector-observer.js * Move mixed/js/scroll.js to js/dom/window-scroll.js * Move mixed/js/text-scanner.js to js/language/text-scanner.js * Move mixed/js/cache-map.js to js/general/cache-map.js * Move mixed/js/object-property-accessor.js to js/general/object-property-accessor.js * Move mixed/js/task-accumulator.js to js/general/task-accumulator.js * Move mixed/js/environment.js to js/background/environment.js * Move mixed/js/dynamic-loader.js to js/scripting/dynamic-loader.js * Move mixed/js/dynamic-loader-sentinel.js to js/scripting/dynamic-loader-sentinel.js