Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / March 2006



Tip: Looking for answers? Try searching our database.

DeCSS aka CSS + HTML to HTML

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
robert_marquardt@gmx.de - 28 Mar 2006 07:25 GMT
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.
David Dorward - 28 Mar 2006 07:38 GMT
> 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.

Signature

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

robert_marquardt@gmx.de - 28 Mar 2006 10:11 GMT
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.
Bart Lateur - 28 Mar 2006 14:47 GMT
>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.

Signature

    Bart.

robert_marquardt@gmx.de - 28 Mar 2006 15:08 GMT
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".
Carolyn Marenger - 28 Mar 2006 15:05 GMT
> 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.
[quoted text clipped - 3 lines]
>
> 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
Signature

Carolyn Marenger

robert_marquardt@gmx.de - 29 Mar 2006 06:52 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.