[OT] Change text decorations in HTML (was Re: Automating an atypical search & replace)

Liste des GroupesRevenir à c editors 
Sujet : [OT] Change text decorations in HTML (was Re: Automating an atypical search & replace)
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.editors
Date : 13. Jul 2024, 20:18:01
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v6ujtb$3net4$1@dont-email.me>
References : 1
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 13.07.2024 18:08, Richard Owlett wrote:
I'm reformatting some HTML files containing chapters of the KJV Bible.
My source follows the practice of italicizing some words.
I find italics distracting.
 
These occurrences are consistently of the form
   <span class='add'>arbitrary_text</span>

It just occurred to me that if you say the italic text entities are
the text objects in this span clause then the italic text-decoration
is likely defined as a CSS attribute of the respective CSS class.
That would in your example mean the class "add". Since you generally
don't seem to like italics it would be easier - and also the usual
way to tackle such a text - to change the single CSS attribute of
the class. You find it in the CSS section of the header file or in
a file with the CSS definition that is referenced in the HTML file.
Look out for a line like   "font-style: italic;   and remove that.

Janis

 
I wish to delete "<span class='add'>" and *ASSOCIATED* "</span>".
Obviously it would not be wise to fully automate the action.
I wish to find all occurrences of <span
class='add'>arbitrary_text</span> an manually confirm the edit.
 
In general, is it feasible?
Can KDE's Kate do it?
 
TIA


Date Sujet#  Auteur
13 Jul 24 * Automating an atypical search & replace23Richard Owlett
13 Jul 24 +* Re: Automating an atypical search & replace4Janis Papanagnou
13 Jul 24 i`* Please ignore my previous post - Re: Automating an atypical search & replace3Janis Papanagnou
14 Jul 24 i `* Re: Please ignore my previous post - Re: Automating an atypical search & replace2Richard Owlett
14 Jul 24 i  `- Re: Please ignore my previous post - Re: Automating an atypical search & replace1Janis Papanagnou
13 Jul 24 +- [OT] Change text decorations in HTML (was Re: Automating an atypical search & replace)1Janis Papanagnou
14 Jul 24 +* Re: Automating an atypical search & replace4Lawrence D'Oliveiro
14 Jul 24 i+* Re: Automating an atypical search & replace2Stan Brown
14 Jul 24 ii`- Re: Automating an atypical search & replace1Richard Owlett
14 Jul 24 i`- Re: Automating an atypical search & replace1Richard Owlett
14 Jul 24 `* Re: Automating an atypical search & replace13Stan Brown
14 Jul 24  `* Re: Automating an atypical search & replace12Richard Owlett
14 Jul 24   `* Re: Automating an atypical search & replace11Lawrence D'Oliveiro
14 Jul 24    +* Re: Automating an atypical search & replace3Richard Owlett
15 Jul 24    i`* Re: Automating an atypical search & replace2Lawrence D'Oliveiro
15 Jul 24    i `- Re: Automating an atypical search & replace1Richard Owlett
15 Jul 24    `* Re: Automating an atypical search & replace7candycanearter07
15 Jul 24     `* Re: Automating an atypical search & replace6Lawrence D'Oliveiro
16 Jul 24      +* Re: Automating an atypical search & replace4Richard Owlett
16 Jul 24      i`* Re: Automating an atypical search & replace3Lawrence D'Oliveiro
16 Jul 24      i `* Re: Automating an atypical search & replace2Richard Owlett
17 Jul 24      i  `- Re: Automating an atypical search & replace1Lawrence D'Oliveiro
16 Jul 24      `- Re: Automating an atypical search & replace1candycanearter07

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal