From bd474970728035c6286f1071162efefd6f8d63e9 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Thu, 8 Feb 2024 11:29:50 +0100 Subject: devbook.xsl: Add sub and sup elements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These were present in GuideXML: https://gitweb.gentoo.org/proj/devmanual.git/tree/appendices/contributing/devbook-guide/text.xml?id=8be0d382fb82dc4cfe73b1b85bb7fc3c923a21c7#n397 Signed-off-by: Ulrich Müller --- appendices/devbook-guide/text.xml | 7 ++++++- devbook.rnc | 6 ++++-- devbook.rng | 14 +++++++++++++- devbook.xsl | 8 ++++++++ 4 files changed, 31 insertions(+), 4 deletions(-) diff --git a/appendices/devbook-guide/text.xml b/appendices/devbook-guide/text.xml index 5015f0b..8301b0a 100644 --- a/appendices/devbook-guide/text.xml +++ b/appendices/devbook-guide/text.xml @@ -465,7 +465,7 @@ together:
Inline elements -<c>, <b>, and <e> +<c>, <b>, <e>, <sub> and <sup>

@@ -495,6 +495,11 @@ offset from the regular paragraph type for emphasis. This helps to give your prose more punch!

+

+The <sub> and <sup> elements are used to specify +subscript and superscript. +

+
diff --git a/devbook.rnc b/devbook.rnc index 158f372..22f7c09 100644 --- a/devbook.rnc +++ b/devbook.rnc @@ -1,4 +1,4 @@ -# Copyright 2022-2023 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the MIT license # or the CC-BY-SA-4.0 license (dual-licensed) @@ -7,7 +7,7 @@ block.class = p | pre | codesample | note | important | warning | todo | figure | table | ul | ol | dl -attrib.class = text | b | c | e +attrib.class = text | b | c | e | sub | sup inline.class = attrib.class | d | uri attrib = attrib.class* @@ -112,6 +112,8 @@ dd = element dd { all } b = element b { inline } c = element c { inline } e = element e { inline } +sub = element sub { inline } +sup = element sup { inline } d = element d { empty } uri = element uri { diff --git a/devbook.rng b/devbook.rng index c3c616f..3963ab1 100644 --- a/devbook.rng +++ b/devbook.rng @@ -2,7 +2,7 @@ @@ -32,6 +32,8 @@ + + @@ -382,6 +384,16 @@ + + + + + + + + + + diff --git a/devbook.xsl b/devbook.xsl index 71a74dd..6f2e4e9 100644 --- a/devbook.xsl +++ b/devbook.xsl @@ -280,6 +280,14 @@ + + + + + + + + abcdefghijklmnopqrstuvwxyz- -- cgit v1.2.3-65-gdbad