yomichan/ext/js
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
..
accessibility Workaround for Google Docs canvas rendering updates (#2096) 2022-04-02 09:38:40 -04:00
app Hide popup on cursor exit (#2109) 2022-04-03 22:52:53 -04:00
background Improve Anki storeMediaFile (#2084) 2022-03-13 21:17:41 -04:00
comm Update ClipboardReader.getImage implementation (#2085) 2022-03-13 21:17:48 -04:00
data Hide popup on cursor exit (#2109) 2022-04-03 22:52:53 -04:00
debug Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
display Add new structured content features: lists and the HTML lang attribute (#2129) 2022-05-14 09:59:38 -04:00
dom Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
general Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
input Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
language Text scanner event capture (#2101) 2022-04-02 13:10:39 -04:00
media Rename MediaLoader to DisplayContentManager (#2087) 2022-03-14 21:42:33 -04:00
pages Add additional Anki card marker aliases (#2083) 2022-03-13 21:17:35 -04:00
script Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
templates Structured content links (#2089) 2022-03-17 19:01:59 -04:00
core.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
yomichan.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00