From: Guenter M. <mi...@us...> - 2024-04-05 22:54:52
|
Hi Anton, thank you for the feedback. On 2024-03-24, Anton Hvornum wrote: > It appears there's some units missing from: > https://github.com/docutils/docutils/blob/b768e2626088711dec257b0847b563d02700a712/docutils/docutils/parsers/rst/directives/__init__.py#L240 > Namely: vh, vw, vmin, vmax, lvh, dvh, svw, lvw, dvw, svmin, lvmin, > dvmin, svmax, lvmax, dvmax, vi, svi, lvi, dvi, vb, svb, lvb and dvb > These are part of the new HTML/CSS viewport units and are are/will be > part of CSS templates: > https://web.archive.org/web/20240114171725/https://www.terluinwebdesign.nl/en/css/incoming-20-new-css-viewport-units-svh-lvh-dvh-svw-lvw-dvw/ > If these are not compatible for some reason, perhaps they could be given > as a complementary argument to > https://github.com/docutils/docutils/blob/b768e2626088711dec257b0847b563d02700a712/docutils/docutils/parsers/rst/directives/__init__.py#L262C5-L262C23 > for instance? > I'm coming from a sphinx usage, where rendering HTML with CSS is the > base concept. Did you see https://sourceforge.net/p/docutils/feature-requests/57/ "add vh and vw as allowable length units"? In Docutils, we must take care to properly implement this for all supported output formats (HTML, HTML4.1 + CSS1, LaTeX, ODT, manpages, XML) This means we need to figure out what these units will be, e.g., on a printed output or how to give adequate feedback if an output format does not support the respective unit. Suggestions welcome. Günter |