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: Jean-Christophe Helary
Subject: Re: question about a class for list without mark @itemize @w
Date: Thu, 6 Jan 2022 09:17:51 +0900


> On Jan 6, 2022, at 6:20, Gavin Smith <gavinsmith0123@gmail.com> wrote:
> 
> 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.)

It would be nice to have explicit class names that don't require to check the 
Texinfo documentation.

> 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:

Since the CSS block appears in all the files, wouldn't it be better to output 
it in an individual CSS file and link to that file from the HTML, like 
--css-ref does ?


-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/




reply via email to

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