yomichan/ext/data
Stephen Kraus 6a74746113
Add new structured content features: lists and the HTML lang attribute (#2129)
* Add support for structured content lists and `list-style-type` style

A full list of supported style types is documented here:
https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type

There's nothing in this code preventing a term bank from assigning,
for example, a `list-style-type` style to a `div` element, but it
doesn't seem like browsers will complain about things like that.

* Add support for `lang` attribute in structured content

Support added for the following node types:

"ruby", "rt", "rp", "table", "thead", "tbody", "tfoot", "tr", "td",
"th", "span", "div", "ol", "ul", "li", "a"

I couldn't get it to work for the alt-hover text on "img" tags.

Tests are included in the file
"test/data/dictionaries/valid-dictionary/term_bank_1.json"

* Add styles for structured content lists

* Add override rules for new structured-content list styles

see: https://github.com/FooSoft/yomichan/pull/2129

Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
2022-05-14 09:59:38 -04:00
..
audio Move more data files (#1373) 2021-02-12 20:37:43 -05:00
fonts Move more data files (#1373) 2021-02-12 20:37:43 -05:00
schemas Add new structured content features: lists and the HTML lang attribute (#2129) 2022-05-14 09:59:38 -04:00
templates Update pronunciation anki templates (#1842) 2021-07-18 16:01:42 -04:00
deinflect.json Shimau inflection (#1569) 2021-03-28 00:19:47 -04:00
pronunciation-style.json CSS JSON styles generalization (#1838) 2021-07-17 22:39:25 -04:00
structured-content-style.json Structured content links (#2089) 2022-03-17 19:01:59 -04:00