![]() |
#106 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#107 | |
Samurai Lizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,943
Karma: 69500000
Join Date: Nov 2009
Device: NookColor, Nook Glowlight 4
|
Quote:
But I must admit that the code you included above is very simple indeed, and if all CSS coding is that easy then it should be the way to go...as long as it works consistently. I wonder if an option could be offered in ereaders where you make a CSS in your ereader and all ebooks are formatted in accordance with that CSS, overriding any CSS elements in the ebook itself. |
|
![]() |
![]() |
![]() |
#108 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
There's generally a huge difference in terms of complexity between hand-written CSS and machine-generated CSS, such as would be output from a program like Word or Adobe InDesign: in the latter case you'd get dozens of styles and attributes output which would ensure that your finished book looked as close as possible to the way you'd designed it.
But if (as I am) you're happy to use device defaults for font selections, text size, etc, CSS can be simple and clean. There really are immense benefits to separating the formatting from the semantic content of the book, because it puts all the formatting specification together in one place, rather than having to go through the entire book and change things in multiple places. |
![]() |
![]() |
![]() |
#109 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 631
Karma: 7544528
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
That's part of what is discussed here. Since there are no definitions and no rules how to declare what things are, what you ask for is only possible in a disruptive way. Since you don't know how classes are named, you could only overwrite the basic things, like p, h etc. Of course a little more is possible with p+p, p+h etc. In fact many readers do it this way. Changing for example font-size in the body.
|
![]() |
![]() |
![]() |
#110 | ||
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
What word processor or...? are you using, when you are styling your book? Vis-a-vis overrides: I can tell you that this is a massive headache for folks like me. For example, consider the Drop cap, which isn't hard to do in print. It's not hard to do if you have sufficient control in eBooks. But it's heavily dependent upon you having control over the font, and the vertical height of the element (or drop) and the line-height. The MOMENT that a reader puts that book into a software reader that allows them to override any of that, even merely the font, the (appearance of the) book goes to hell. So, I don't object to the idea in principle, at all, but I surely do in practice. If eReaders would all allow media-queries, that could respond to that type of overriding, that would be great; but on the other hand, nobody could EVER figure out, in advance, all the possible permutations of the possible overrides, so...I'm blowing smoke out of my keister. <rant on...> And really, it's kind of...wish-list-y. After all, it's not like folks are running around making changes to their print books, are they? This is akin to the obsession with reporting typos in books now and expecting them to be fixed damn skippy--an idea that didn't even EXIST even 10 years ago. It would be a cold day in hell before some reader would send Random House an email or letter saying "oh, I found this typo in print Book X," and actually expect Random House to REISSUE the damn book, fixing the typo. But now? Now they expect authors and publishers to "hop to." I think it's outrageous behavior, myself. In a way, while some of it is people being genuinely helpful, a larger part of it is people showing off what they perceive as their superior knowledge, and expecting the publisher to jump on it, to acknowledge how valuable their contribution was, by fixing it immediately. It's a form of self-validation and self/instant gratification. Don't say it isn't--I, for one, have seen far too many of their love notes to Amazon, sending in, for example, two typos--one a Brit spelling, mind you, so not a typo--in a 250K word (yes, two hundred and fifty thousand words) novel that was previously trade-pubbed. That's not helpful--that's being insufferably precious. </rant off> Hitch |
||
![]() |
![]() |
![]() |
#111 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,820
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
In Word, don't use the toolbar to format. use styles. Then once you save as filtered HTML, you will find it's a lot neater to clean up than it would be otherwise.
|
![]() |
![]() |
![]() |
#112 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 631
Karma: 7544528
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
There is one thing I wished that could be as easily changed as font sizes: The margin and indentation of the main paragraph. In fiction I hate that style which has blank space between paragraphs. It is seldom used in fiction, but I stumble over it often enough. Nearly as irritating are those publishers who insert a tiny margin between paragraphs. And then there are the people who love this style. So changing between them would be quite nice. Oh, and strangly I prefer no indentation and a margin sometimes in non-fiction. That's a feature I would like. But of course using calibre or sigil can fix this, it is just tedious to do.
|
![]() |
![]() |
![]() |
#113 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Assuming you had something like that--3 styles, or even 5-6, all you have to do is modify them, and you should have what you want. Of course--that assumes that the builder made it correctly. If it's a badly-crafted book, of course...yeah, that would be beyond tedious.Like making a book from a crappy source file the first-time through. (posted mostly for the benefit of the noobs who may come along and read this rather lengthy thread!) Hitch |
|
![]() |
![]() |
![]() |
#114 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
For the typical text enhancement--bold, italic, underline (oy, oy, oy!!), using the toolbar will insert the html commands of b, i and u. As discussed on another thread, those may need to be regexed into conforming code for ePUBcheck. But they don't create that "crap" that we're all bitching about. What most people do that causes issues is using the tab and other keyboard keys, that causes those infamous crap spans. When they highlight a section of text, and then apply direct formatting for font sizes, colors, and font. THAT will always cause issues. Using the tab key to try to force a blockquote, ditto. For those, abalooley, Styles should be created and used appropriately. Hitch |
|
![]() |
![]() |
![]() |
#115 | |||||
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 518
Karma: 2268308
Join Date: Nov 2015
Device: none
|
Quote:
Quote:
Quote:
It seems there is a conflict of interest between you and readers, that makes you somewhat deaf to the voice of reason. Quote:
Quote:
|
|||||
![]() |
![]() |
![]() |
#116 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,556
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Since the standard cannot define everything (or else it would only be a standard for a subset of books), it must provide some placeholder elements for custom use, the equivalent the XHTML's <div> and <span>. Once you have them, the hell's gates are open and you can count on users and publishers indiscriminately using <div> and <span> to suit their needs, rather than all the carefully and meaningfully defined semantic markup.
|
![]() |
![]() |
![]() |
#117 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
![]() |
![]() |
![]() |
#118 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 518
Karma: 2268308
Join Date: Nov 2015
Device: none
|
Quote:
I wonder what kind of formatting, which a simple XML schema cannot describe is used by local bookmakers. |
|
![]() |
![]() |
![]() |
#119 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,556
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
So your "ideal" format is only for that 95%? Anything out of the ordinary doesn't fit in your format?
|
![]() |
![]() |
![]() |
#120 |
Unicycle Daredevil
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A New Epub Creator: txt to epub, word to epub | oxen | ePub | 120 | 07-22-2019 02:28 PM |
redo epub to epub - don't use original-epub | cybmole | Conversion | 8 | 02-20-2014 05:21 AM |
koboish: Script that convert your epub to a kepub.epub with the correct bookcover !! | the_m | Kobo Reader | 4 | 01-24-2013 10:01 PM |
epub to epub conversion problem with regex spanning multiple input files | ctop | Conversion | 2 | 02-12-2012 01:56 AM |
epub, ePub, EPUB, warum blos ePub? | flowoeB | Lounge | 5 | 11-27-2009 09:37 AM |