![]() |
#16 | |
Samurai Lizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,924
Karma: 69500000
Join Date: Nov 2009
Device: NookColor, Nook Glowlight 4
|
Quote:
One of the reasons I tend to prefer direct formatting is based on my experience with styles in word processing. Although styles do make some formatting tasks easier (such as changing the font for certain parts of the ebooks), my experience has been that sometimes it takes more work to achieve a simple effect with indirect formatting. I think that a good ebook format should allow the user the option of both direct and indirect formatting as well as a mixture of the two depending on the user's preference. To me, the key is to have consistent rules when tagging text. |
|
![]() |
![]() |
![]() |
#17 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,635
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Well, my problem is: I don't write the ePub, I only edit the ePub Calibre creates for making look better at Stanza.
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Quote:
I was designing websites long before I got into ebooks, and when designing websites settled happily into the habit of always checking that my XHTML and CSS were consistent with World Wide Web Consortium (W3C) standards - doing so very much increased the chances that my websites would display consistently on different browsers. ePub is based on XHTML version 1.1 - it's right there in the specs. How can one expect to get consistent presentations if one does not live up to the basic fundamental standards of XHTML? I know there are fudges and work arounds, and I know that they work sometimes. But in my opinion the first step in getting ePubs to appear consistently well in a range of readers is to get the original XHTML to meet standards. I also accept without hesitation that it would be good to set up other standards - margin width etc - and that it would be good to find out how many people prefer serif rather than non-serif fonts, how many people prefer justified rather than ragged right margins, how many people prefer margins separated by an empty line and how many by paragraph indent, and so on. But let's start from the basics. In my opinion the basic tool for writing a good, consistent ePub book is a good HTML editor and to get that XHTML to meet W3C standards. Finally, and a little off topic, for website designers CSS is your friend, and external CSS is your best friend. It is dead simple to remove the empty line between paragraphs with CSS, set it once, and do it consistently. Regards, Alex |
|
![]() |
![]() |
![]() |
#19 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() Posts: 35
Karma: 501
Join Date: Jul 2007
Device: PRS-500
|
I see some value in both perspectives here. Certainly Word (for example), generates css and html with a lot of boilerplate code. For purposes of conversion to ePub, one could eliminate most of that. And if you are trying to edit the raw code, it is arguably simpler to use the deprecated tags, and the result is much clearer at the local code level. However, if an ePub document uses well-chosen CSS boilerplate, it becomes much easier to globally modify important settings across the scope of the entire book. I think this is the direction we'd like the industry to take (and the direction we should take in authoring ePub books ourselves.)
Here's why I say that: as I'm reading this and some similar threads on other forums, there is a lot of interest in being able to personalize ebooks. Some people prefer wide margins (like physical books); others want little or no margin (minimize page turns). Some people like serif fonts; others not. Indented paragraphs versus space-separated paragraphs. Left justification versus full justification. Running page headers versus none. For these features to be easily configured by a savvy reader, they need to be set in a standardized way in the CSS code so that we can quickly unpackage, tweak, and repackage an ePub (assuming this is not DRM-blocked.) Let's call this re-authoring personalization. To be easily configured by a mainstream reader, they also need to be set in a standardized way in the CSS code so that the reader software/firmware knows exactly what to override at reading time. Let's call this runtime personalization. Personalization may only be an "enthusiast" issue, however, the new B&N PC reader software actually exposes several of these choices as Settings-->Reading Preferences, and this suggests that there is broader interest in personalizing the reading experience (well beyond, say, the Sony software's size option): Font Text Size Line Spacing Margin (Slider) Full Justification (Checkbox) Underline Links (Checkbox) Text Color Selection Color This raises two questions: 1) Can any nook owners say which if any of these personalization features are exposed on the reader device? 2) Has anyone experimented with how these settings interact with CSS and HTML settings? I suspect they simply override the book content, and while this will work for a lot of content, it may break some cases (e.g., if a user's chosen font is proportional and some of the content requires a non-proportional font.) To provide a better experience, the runtime personalization should be defined to only impact some set of identifiable styles. Having a great cross-platform personalization story is going to require another full round of standardization around how to use CSS. The reading platforms (both hardware and software) will have to synch up on what features should be configurable, and the publishers will have to agree on how those features are driven by CSS, and then author conformant content. In the interim I can well imagine different vendors offering a variety of personalization options that are implemented by overriding book content. Some of the folks on these forums are involved in both implementing reader software and authoring content. Would it make sense for them to come up with a strawman personalization proposal that developers and publishers could opt into using? Steve |
![]() |
![]() |
![]() |
#20 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,943
Karma: 70766125
Join Date: Feb 2009
Device: Kobo Clara 2E
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,187
Karma: 25133758
Join Date: Nov 2008
Location: SF Bay Area, California, USA
Device: Pocketbook Touch HD3 (Past: Kobo Mini, PEZ, PRS-505, Clié)
|
EPubs look different for the same reason that websites look different: no two people, companies, or programs assigns HTML the same way.
And we're at the equivalent of 1998 for ePubs. Remember what the web looked like about ten years ago? Blinky backgrounds; all-left-justified text on pages, "back to top" links scattered around at random; accidental unclosed tags so the entire second half of a page was bold? Followed by "edgy" pages with black backgrounds and red text that scrolled over the background? And pages that tried hard to match how printed books work--200-400 words on a page with a "next" button? We're seeing the equivalent with epubs. No standards, lots of tags but no control over the browsers, many companies insisting "you should read our books on our software & hardware, and if it sucks on other devices, you're reading it wrong." |
![]() |
![]() |
![]() |
#22 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 787
Karma: 1575310
Join Date: Jul 2009
Device: Moon+ Pro
|
Quote:
But programmers not only work in teams, but programs are also passed along from one programmer to the next. (That is, if I leave this job the programs I wrote will remain-and it'll be up to the next programmer to make any changes that are needed.) So something I've also learned is that rules are only applied consistently when there's only one person applying them. Introduce more people into the process and you get inconsistent application of rules. Converting to objects was hard, but worthwhile. The rules are now embedded in the objects & it no longer matters who uses the objects-the rules are now applied consistently. I suspect the same would be true of tagging. For a single-person operation, rules can be applied consistently & don't require the effort needed to properly develop styles. But if the process has different people applying the tags, then I suspect styles would give the best results. |
|
![]() |
![]() |
![]() |
#23 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,635
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
![]() ![]() ![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
#24 | |||||||
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
|
Quote:
![]() My argument is that <em> and <strong> are both valid XHTML, and are "direct" and easily comprehensible -- unlike a lot of the <span...> tags containing redundant and difficult to understand styles that are exported by programs like Word. Quote:
Quote:
Quote:
Quote:
The replacement tags can be as simple as adding <em>, <strong>, class="center", and class="justify". It's similar for images. Basic, (very basic) layout is not terrifically more complicated than it was -- I'd like to see us help folks understand it, and for folks to not be shy to ask about it. (Money at my mouth: feel free to PM me with any questions about this stuff -- I'm no expert, but the basics are not too hard. I was intimidated when I started, too.) Quote:
I actually put a bunch of work into such a set of standards for my own formatting. It's highly unlikely that anyone else will ever use it, but it does make changing the display ridiculously easy. What this means, though, is that you are creating an archive format -- the one source that you use when you convert for the limitations of your reading device. Consider Calibre; Calibre is an awesome tool that can make your life simpler and keep you happy -- but the ePubs that it creates, even from a well-tagged XHTML source, are not easily editable and comprehensible. It does what it does for good reason (flow sizes, automation, etc.) and it makes good-enough ebooks. If there were an industry-wide set of CSS and XHTML standards, I bet that Calibre (or other tools) would ultimately try to abide by it. And manually changing ePubs would be less challenging. CSS has always had a sort of override: CSS is trumped by a <style> header, a <style> header is trumped by directly applied styles, and directly applied styles are trumped by display engine personal settings. It's just a matter of the software/readers behaving to standards. Quote:
m a r |
|||||||
![]() |
![]() |
![]() |
#25 | |
friendly lurker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 896
Karma: 2436026
Join Date: Apr 2007
Location: US
Device: Kindle, nook, Apple and Kobo
|
Quote:
![]() Apologies. |
|
![]() |
![]() |
![]() |
#26 | |
Samurai Lizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,924
Karma: 69500000
Join Date: Nov 2009
Device: NookColor, Nook Glowlight 4
|
Quote:
An ebook style guide that everyone agrees to follow would help to make this a reality. Once it becomes a firmly established tradition, that will provide an incentive for ebook formatters to follow that tradition since ebooks that don't follow that format will seem to look odd (nothing actually wrong, but it looks different that what has come to be expected). It is much like form that printed books currently take is the result of centuries of experience in formatting books. One of the things that I like about HTML as an ebook format is that it is long established and can be easily mastered after only a small amount of study. The addition of CSS provides formatting control that HTML lacks. A combination of the two should be able to provide all of the formatting needed for an ebook. |
|
![]() |
![]() |
![]() |
#27 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 787
Karma: 1575310
Join Date: Jul 2009
Device: Moon+ Pro
|
Quote:
I hadn't actually thought about having industry-wide consistency. Programming is, pretty much, company-specific so I just hadn't thought in those terms. I suspect you're right-centuries of experience will be needed for that. |
|
![]() |
![]() |
![]() |
#28 | ||
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
|
Quote:
Quote:
As long as they're not designed to work around the flaws of currently dominant software/firmware, they would be welcome. On another topic: could you flesh out your ideas about style? From my reading of your words, it looks to me that 'objects' in your analogy are closer to 'structure'. ie: a clear element naming-scheme in the XHTML that is then manipulated by CSS. m a r |
||
![]() |
![]() |
![]() |
#29 | |
curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,487
Karma: 5748190
Join Date: Jun 2006
Location: Redwood City, CA USA
Device: Kobo Aura HD, (ex)nook, (ex)PRS-700, (ex)PRS-500
|
Quote:
![]() Xenophon (speaking in my professional capacity, for once) |
|
![]() |
![]() |
![]() |
#30 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,337
Karma: 4000000
Join Date: Oct 2008
Location: Paris
Device: Cybooks; Sony PRS-T1
|
Every p-book is diffrent, i like ePub presisly because book can have differants formating, fonts and all.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need some help from a professional... | Clemenseken | Sony Reader Dev Corner | 5 | 03-21-2008 11:30 AM |
FontCreator Professional for 80% off today only | Bob Russell | Workshop | 2 | 11-02-2007 04:13 PM |