Re: [gutvol-d] Re: aspects of a well-done e-book

Well, I use CSS to allow the user to switch between showing page numbers and not showing page numbers on the fly. In fact, both CSS style sheets are embedded within the main HTML file so that extra files are unnecessary. Here is a link to a Bay State Monthly issue that uses this feature... http://www.gutenberg.org/dirs/1/3/7/6/13761/13761-h/13761-h.htm In Mozilla-based browsers, you can switch between the style sheets very easily by clicking the icon in the lower left corner of the browser window. The default setting is NOT to show the page numbers, since the majority of people could care less how the original paper version was numbered. But for those that WANT to know, clicking the Original Page Numbers style will have all the original page numbers appear in the margin. Now Internet Explorer doesn't seem to have a way to switch styles on the fly, which is a shame, but it just defaults to not showing the page numbers. The page numbers are still in the HTML source, though, so someone that needs it can still get to the information is they absolutely had to. I am *hoping* that when the switch to XML/TEI happens in the future, this markup will transition fairly easily, too. Josh ----- Original Message ----- From: "D. Starner" <shalesller@writeme.com> To: "Project Gutenberg Volunteer Discussion" <gutvol-d@lists.pglaf.org> Subject: Re: [gutvol-d] Re: aspects of a well-done e-book Date: Tue, 19 Oct 2004 18:58:44 -0800
Karl Eichwalder writes:
It is easy to solve this issue using different CSS stylesheets.
I have three problems with using CSS. First, and most fundamental, if you want to turn page numbers and line numbers on and off, and offer a choice of 5 different background colors, you need 20 different CSS options. Another feature will at least double the number of files.
Secondly, it doesn't work on many web browsers, and I don't think that lynx and friends have any intent of ever supporting CSS.
Lastly, it's never struck me as particularly user-friendly. If you can point me to a place where it's actually used and it's easy to change without being a computer science major, I'd appreciate it. -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm
_______________________________________________ gutvol-d mailing list gutvol-d@lists.pglaf.org http://lists.pglaf.org/listinfo.cgi/gutvol-d

In fact, both CSS style sheets are embedded within the main HTML file so that extra files are unnecessary.
If you have a lot of texts, putting the stylesheet directly inside the HTML unnecessarily bloats the content, and removes one of the main benefits of CSS.. being able to separate content from presentation. This means that if you have 1,500 works all formatted with an internal stylesheet, and you want to change the fonts for one class and add some borders around another, and add a selector for a new text class... you have to modify 1,500 stylesheets, insteasd of one. Yes, you could do all of that with a single perl one-liner, but why should you?
In Mozilla-based browsers, you can switch between the style sheets very easily by clicking the icon in the lower left corner of the browser window.
Or, more correctly, by going to View -> Use Style, because there is no such selector in Mozilla or "Mozilla-based browsers" in the lower left-hand corner. At least not on my Unix, Linux and Windows versions of Mozilla (all current).
But for those that WANT to know, clicking the Original Page Numbers style will have all the original page numbers appear in the margin.
Why not also break up the pages with border-bottom on the bottom of each respective div, so they look like _actual_ pages.
Now Internet Explorer doesn't seem to have a way to switch styles on the fly, which is a shame, but it just defaults to not showing the page numbers.
Well, that is mostly because MSIE is not a browser, at least not according to the standards body which defines how a web browser should function, from the socket level all the way on up to the presentation level. MSIE is a file manager, based on an ActiveX control that tries to render HTML. It supports HTML3.2 fully, "most" of HTML4, "some" of CSS1, hardly any CSS2, and CSS3... whats that? David A. Desrosiers desrod@gnu-designs.com http://gnu-designs.com

Hello David! Wednesday, October 20, 2004, 3:27:08 PM, you wrote:
Or, more correctly, by going to View -> Use Style, because there is no such selector in Mozilla or "Mozilla-based browsers" in the lower left-hand corner. At least not on my Unix, Linux and Windows versions of Mozilla (all current).
It works perfectly on Firefox. The icon in the lower left corner is not instant, appears only when proper file is loaded. -- Skippi

David A. Desrosiers wrote:
Or, more correctly, by going to View -> Use Style, because there is no such selector in Mozilla or "Mozilla-based browsers" in the lower left-hand corner. At least not on my Unix, Linux and Windows versions of Mozilla (all current).
Firefox has an icon as JHutch describes. Curtis.
participants (4)
-
Curtis A. Weyant
-
David A. Desrosiers
-
Joshua Hutchinson
-
Skippi