[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: styling flexibility for definitions

From: Gavin Smith
Subject: Re: styling flexibility for definitions
Date: Sun, 1 Nov 2020 13:10:18 +0000
User-agent: Mutt/1.9.4 (2018-02-28)

On Thu, Oct 29, 2020 at 03:46:23PM -0700, Per Bothner wrote:
> The html output for definitions only allows for very limited css styling.
> As an example of the kind of styling it would be nice to enable, in my Kawa 
> and
> DomTerm manuals I move the "category" to the right margin,
> as you can see examples of here:
> https://www.gnu.org/software/kawa/Composable-pictures.html
> I wrote an experimental patch (see attachment) which adds some class
> and other attributes, and wraps the "CATEGORY: " in an element.

I've started work on this.  I've committed a preliminary change in
commit b851c7543.

As ever, "the devil is in the details."

> +      $category_text = $category ? $$category{text} : '';

In my change I used the $category tree instead, because there is a slight
chance it might contain Texinfo commands that need to be converted.
It also needs to be translated with gdt together with a following colon.
This is to change e.g. "Function: " into "Fonction : " in French, with
a space before the colon (although the "Function" part of it may have been
translated earlier, I didn't check).

I doubt that it is possible to hide the colon and space after the category
with CSS.  I found


but this is not enough as we don't know the width of the text.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]