home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.comp.software.seamonkey      Not a bad little Mozilla fork      9,710 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,686 of 9,710   
   Richard Owlett to Paul B. Gallagher   
   Re: Purge *ALL* CSS from an HTML documen   
   11 Feb 26 09:27:41   
   
   From: rowlett@access.net   
      
   On 2/10/26 10:07 PM, Paul B. Gallagher wrote:   
   > Richard Owlett wrote:   
   >    
   >> On 2/10/26 2:10 AM, Mike Spencer wrote:   
   >>> Richard Owlett  writes:   
   >>>   
   >>>> As I replied to David. I'm not sure my goal was clear in my   
   >>>> original post. I rewrote it as:   
   >>>>   
   >>>>> I'm looking for a procedure that will accept an HTML file WITH   
   >>>>>  CSS and then output an "equivalent" HTML4 file with NO CSS.   
   >>>   
   >>> This is for a file you have on your own machine?   
   >>   
   >> Yes.   
   >>   
   >>> Load it in an editor (emacs my choice) and create a macro that    
   >>> replaces an instance of "" with "" and    
   >>> execute it as many times as needed.   
   >>   
   >> Wont work in my case.   
   >> The whole Bible is stored as >1400 HTML files and one CSS file in a    
   >> single directory [there is a sub-directory handling fonts].   
   > The simplest solution is to rename the css file(s), preferably in a    
   > recoverable way such as "styles.css" => "styles1.css." Then when you   
   > open one of the HTML files, SM will fail to find the css files and apply    
   > the styles. You'll get plain text, plus any table formatting and ad hoc    
   > formatting such as boldface, emphasis, etc. You need not    
   > edit all 1400 HTML files.   
   >    
   > If you don't like the results, you can rename the css files back to    
   > their original names and try something else.   
   >    
      
   ROFL   
   You misunderstood my goals/problem.   
   My browser has no problem displaying/processing/whatever the CSS.   
      
   I have ANOTHER project for which I want a CSS free HTML file.   
   I was thinking that there might be an editor [macro based] which could    
   "nicely" remove the CSS. Back in the 70's, when an electronics tech at    
   DEC, I was surrounded by TECO fanatics who enjoyed making it do    
   impressive tasks.   
      
   Recently I've begun wondering if there was was a "CSS Processor" which    
   could accept my HTML file and the companion filea.css and emit a legal    
   HTML4 document.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca