bug-texinfo
[Top][All Lists]
Advanced

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

Re: question about a class for list without mark @itemize @w


From: Gavin Smith
Subject: Re: question about a class for list without mark @itemize @w
Date: Wed, 5 Jan 2022 21:20:28 +0000
User-agent: Mutt/1.9.4 (2018-02-28)

On Wed, Jan 05, 2022 at 08:50:30PM +0100, Patrice Dumas wrote:
> Hello,
> 
> I modified the @itemize output in HTML to use CSS to set the items
> (with list-style-type).  For that classes are added corresponding to the
> commands in argument of @itemize.  For example
> 
> @itemize @minus
> 
> whill lead to
> 
>  <ul class="mark-minus">
> 
> with definition of (2212 is the unicode point for minus)
>  
>  ul.mark-minus {list-style-type: "\2212"}
> 
> In the Texinfo manual it is explicitly said that @w{} corresponds to no
> mark at all "If you don't want any mark at all, but still want logical
> items, use '@w{}'".  Right now
> 
> @itemize @w{} corresponds to the class mark-w with
> 
>  ul.mark-w {list-style-type: none}
> 
> I am not sure that it is the best as it is not seen in the class name
> that it corresponds to no mark at all.  Maybe something like no-mark
> or mark-none would be better.
> 
> Any opinion on that subject?

I think mark-none would be fine.

I saw no-bullet was being used in the current output; that would be okay
too.  (See below.)

But it doesn't matter that much as nothing uses these class names.

I don't know how hard it would be but I think it would be nice only
to output the required CSS in HTML files.  The CSS block is quite long
now and much of it would be rarely used.  It would require keeping track
of which CSS was needed and only outputing the CSS block after the rest
of the file has been generated:


a.copiable-anchor {visibility: hidden; text-decoration: none; line-height: 0em}
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
div.center-align {text-align:center}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
h1.center-align {text-align:center}
h2.center-align {text-align:center}
h3.center-align {text-align:center}
h3.right-align {text-align:right}
h4.center-align {text-align:center}
kbd {font-style: oblique}
kbd.key {font-style: normal}
p.center-align {text-align:center}
p.left-align {text-align:left}
p.right-align {text-align:right}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
span:hover a.copiable-anchor {visibility: visible}
ul.mark-atchar {list-style-type: "@"}
ul.mark-bullet {list-style-type: disc}
ul.mark-click {list-style-type: "\2192"}
ul.mark-enddots {list-style-type: "..."}
ul.mark-registeredsymbol {list-style-type: "\00AE"}
ul.mark-tie {list-style-type: " "}
ul.no-bullet {list-style: none}





reply via email to

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