| Deutsch English Français Italiano |
|
<v6ujtb$3net4$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.editors Subject: [OT] Change text decorations in HTML (was Re: Automating an atypical search & replace) Date: Sat, 13 Jul 2024 21:18:01 +0200 Organization: A noiseless patient Spider Lines: 31 Message-ID: <v6ujtb$3net4$1@dont-email.me> References: <v6u8qi$3lh0j$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 13 Jul 2024 21:18:03 +0200 (CEST) Injection-Info: dont-email.me; posting-host="191f3edbd1dbc2a61e53d48bf2efbc5d"; logging-data="3914660"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18piFqtaFfSMpG7VLcN3Lkz" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:6kGS3ErLEEHbfAej4HekbDwc/h4= In-Reply-To: <v6u8qi$3lh0j$1@dont-email.me> X-Enigmail-Draft-Status: N1110 Bytes: 2387 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