HighDots Forums  

DeCSS aka CSS + HTML to HTML

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss DeCSS aka CSS + HTML to HTML in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
robert_marquardt@gmx.de
 
Posts: n/a

Default DeCSS aka CSS + HTML to HTML - 03-28-2006 , 12:25 AM






Is there am Open Source tool available for that?
I may need such a tool to create HTML files for eBooks.
eBook renderers may not understand CSS at all or at least have not
access to the CSS file because it is simply not included in the eBook.


Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: DeCSS aka CSS + HTML to HTML - 03-28-2006 , 12:38 AM






robert_marquardt (AT) gmx (DOT) de wrote:

Quote:
Is there am Open Source tool available for that?
I may need such a tool to create HTML files for eBooks.
eBook renderers may not understand CSS at all or at least have not
access to the CSS file because it is simply not included in the eBook.
CSS is an *optional* presentation layer. Take it out (or have a browser
ignore it) and you get the browser default rendering of the (hopefully)
semantic markup that was used.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #3  
Old   
robert_marquardt@gmx.de
 
Posts: n/a

Default Re: DeCSS aka CSS + HTML to HTML - 03-28-2006 , 03:11 AM



The problem is that the HTML renderer used for ebooks often do not
handle CSS or the CSS file is not part of the eBook.
I have for example a bible with <span class="Verse">GENESIS 7:10</SPAN>
"Verse" is not available (and the renderer does not know the attribute
class) so the eBook renders normal text.

What i want is DeCSS the HTML so i can create a good-looking eBook.


Reply With Quote
  #4  
Old   
Bart Lateur
 
Posts: n/a

Default Re: DeCSS aka CSS + HTML to HTML - 03-28-2006 , 07:47 AM



robert_marquardt (AT) gmx (DOT) de wrote:

Quote:
I have for example a bible with <span class="Verse">GENESIS 7:10</SPAN
"Verse" is not available (and the renderer does not know the attribute
class) so the eBook renders normal text.

What i want is DeCSS the HTML so i can create a good-looking eBook.
You could try embedding the CSS file in the HTML page, instead of
linking to it.

--
Bart.


Reply With Quote
  #5  
Old   
Carolyn Marenger
 
Posts: n/a

Default Re: DeCSS aka CSS + HTML to HTML - 03-28-2006 , 08:05 AM



robert_marquardt (AT) gmx (DOT) de wrote:

Quote:
The problem is that the HTML renderer used for ebooks often do not
handle CSS or the CSS file is not part of the eBook.
I have for example a bible with <span class="Verse">GENESIS 7:10</SPAN
"Verse" is not available (and the renderer does not know the attribute
class) so the eBook renders normal text.

What i want is DeCSS the HTML so i can create a good-looking eBook.
The best I can think of would be to create a set of scripts to go through
and convert every instance of <span class="Verse"> to <strong> and the
related </span> to </strong>. A search and replace would not match the
</span> to the related <span> and may end up mixing up your assorted
styles.

If you use Linux, then your default scripting language, mixed with grep
would probably do the trick, even to the extent of changing all occurrences
within any file within a directory tree. There has got to be something
similar in a windows or mac environment, but I am not the one to talk to
about those systems.

Carolyn
--
Carolyn Marenger



Reply With Quote
  #6  
Old   
robert_marquardt@gmx.de
 
Posts: n/a

Default Re: DeCSS aka CSS + HTML to HTML - 03-28-2006 , 08:08 AM



This still does not help. The HTML renderer simply does not support the
"class" attribute for most tags.
This is a problem of "barely any CSS support in the HTML renderer".


Reply With Quote
  #7  
Old   
robert_marquardt@gmx.de
 
Posts: n/a

Default Re: DeCSS aka CSS + HTML to HTML - 03-28-2006 , 11:52 PM



The idea is to use the CSS file and the HTML file to render a HTML file
only.
I do not know how webbrowsers handle this. Is there a way to get the
info from the DOM tree? That is load it into the webbrowser (probably
IE) and traverse the tree.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.