05-09-2016, 04:47 PM | #46 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
05-12-2016, 12:18 AM | #47 | |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
But in order to do that, I had to find a way to get content out of AppleWorks. So obviously I used its HTML export. Here's a snippet of actual output (edited only to wrap the lines and replace carriage returns with usable line breaks): Code:
<P ALIGN=CENTER><I><BLOCKQUOTE>Chief engineer’s log for April 6, 2333<BR> </P> <P><BR> It has been three days since I upgraded the OS on the core machines to the latest version. Critical systems are still being handled by my machine in engineering, while non-critical systems have been transitioned gradually back to the primary cores.<BR> We have recently begun to experience new failures similar to those encountered previously. Trivial investigation suggests that, while many of the attacks may have occurred through known mechanisms, other forces may be at work.</I><BR> </BLOCKQUOTE><BR> </P> Note that the software in question wasn't discontinued until 2007.... |
|
Advert | |
|
05-25-2016, 04:05 PM | #48 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
05-30-2016, 09:47 PM | #49 | |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
You missed the big problem, which is: Code:
<p><i><blockquote>...</p> <p>...</i></blockquote></p> The content in question doesn't even parse, much less render sanely. I have a script whose sole purpose is to fix the tag matching problems so that I can feed it into another script that turns that mess into sane DocBook XML, which I then emit as proper XHTML. My publishing toolchain is utterly insane, and a decent chunk of that insanity is Apple's fault. (The rest is mostly LaTeX's fault.) Last edited by dgatwood; 05-30-2016 at 09:54 PM. |
|
03-22-2019, 10:44 PM | #50 |
Fanatic
Posts: 514
Karma: 2954711
Join Date: May 2006
|
So, I'm curious. Since I started this thread, and wrote these articles—
http://www.teleread.com/how-epubs-re...eak-standards/ http://www.teleread.com/blank-line-i...pub-standards/ —has anything changed? Is there a better way to indicate section breaks that is honored by the majority of e-readers yet? |
Advert | |
|
03-23-2019, 12:01 PM | #51 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
The best way is usually to use CSS to make the separation. It is smart enough to not have a space line as the top line in a new page. Honoring a CR or CR/LF causing wrapping problems as well as spacing problems. In the interest of easy reading an indented first line in a paragraph (done with CSS) is a better option than a blank line to separate paragraphs. It places more text on a page so less page turns. A blank line is good for additional separation and the nbsp paragraph is fine for this. Readers should support both but CSS is always best if it suits. ePub 3 depends even more on CSS that 2 does.
Dale |
03-24-2019, 08:48 AM | #52 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
body { widows: 1; orphans: 1; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; text-align: justify; } p { margin-top: 0; margin-bottom: 0; text-indent: 1.2em; } .spacebreak { padding-top: 2em; text-indent: 0; } Code:
<p>Some random line.,/p> <p class="spacebreak">This is another section.</p> |
|
03-25-2019, 09:30 PM | #53 | |||||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
If they're intended for spacing, then I agree with JSWolf, use CSS with padding-top: Spoiler:
padding-top doesn't get gobbled up if it occurs at the top of a screen, where margin-top typically does. Quote:
Spoiler:
Using symbols for a scenebreak ensures maximum compatibility, and the advantages are numerous:
I've discussed scenebreaks (and why you should use asterisks) in these Reddit posts: "How to Format Scene Breaks?" "Any tips on adding ornamental art in Sigil or Scrivener?" I'll reproduce a lot of the reasoning here: Works With/Without CSS A blank gap + no-indent based purely on CSS fails in readers that:
Asterisks can survive and make sense with/without CSS: Test1 (Asterisks) Test2 (No Asterisks) You can see Test2Without (the example in the bottom right). The new scene looks no different than any other paragraph. Also see below (many alternate formats don't use CSS). Works In Any Format Remember, ebooks can be converted into many different formats (NOT just EPUB/MOBI). Asterisks can survive EPUB->TXT conversion + can even survive "non-standard" formats such as forum posts. This allows you to easily copy/paste a chapter from your book onto MobileRead for example. Works With Any Font Why use asterisks over other many other symbols? I'll quote one of my Reddit posts above: Quote:
Top/Bottom of Screen I somewhat touched on this with the padding-top/margin-top discussion. Also see this article on EPUB Secrets: "User Experience: What Works, and How?", heading "Section Breaks": Quote:
If typographers use a blank gap, they must be very careful that new scenes don't fall at the very bottom/top of a page. Print has full control over the final layout... ebooks... no. Fleurons handle that problem completely. Accessibility Blank paragraphs or "visual only" clues are absolutely awful for Accessibility or Text-to-Speech (TTS) reasons as well. TTS will continue reading the next paragraph no different from the previous one. No pause, no nothing. Have you ever read a book in Moon+ Reader with TTS that relied on blank gaps? I have... and the characters teleport around. One paragraph they're eating a chicken sandwich in their kitchen, and next you're on a spaceship flying towards the moon. Last edited by Tex2002ans; 03-25-2019 at 09:53 PM. |
|||||
03-26-2019, 11:36 AM | #54 |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Agreed with Tex. The easiest way--which is the gist of your archived posts on Teleread, as opposed to the right way, taken all in--is to use a symbol or fleuron or asterisms. That will work with all systems--I've yet to find one where it didn't--and avoid the issues of the nine-bajillion free "eReading apps" that all recognize whatever they want, and ignore pesky things like the IDPF Standards. (And yeah, Apple, I'm lookin' at you, too!).
{shrug}. Plus to speak to your other point, this way authors don't have to learn to code their books "properly." They can hit enter, center, type 3 asterisks, hit enter and bob's-yer-uncle. Personally, I prefer top-margins created with CSS, but it's true that in the less-well-known readers and many reading apps, this method can be/might be/could be ignored. (This is why we tell our clients we'll warranty our work on the major devices, but not software eReaders--too many variables, too many obscure pieces, etc. It'll be a cold day in hell before I contort myself or my company and bookmakers to make a book work on Obscure eBook Reader #1,911, you know, just because someone found it on their apps store and it was FREE. I can't tell you how many times we get complaints about a book that looks fantastic on the biggies, but doesn't display EXACTLY the way that the author wanted on some dingbat reading app. And of course, it's never the simpler books that have this issue; it's always the publishers that have had us jump through all sorts of fiddly hoops, that seem to find the least-used eReading apps in existence...) Even using Scrivener, that should be fairly simple, I'd think? Hitch |
03-27-2019, 07:17 AM | #55 |
Well trained by Cats
Posts: 29,802
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Tex
If you use a Image break, it should have an alt="meanwhile, later, scene break...." <select for the least jaring The reader is supposed to say the Alt phrase |
03-27-2019, 09:06 AM | #56 |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
03-27-2019, 09:25 AM | #57 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
"Supposed" being the operative word I haven't yet seen a reading app with TTS which uses the <img> alt text - and I have tried a lot of them.
Even if/when app developers do get around to implementing this feature my guess is that users will immediately ask for a "disable" option because, if the ebook creators have set non-blank alt text, it's text to help themselves, not the user, e.g. a page number or the image's filename. I have a vague memory that some Brandon Sanderson books did try to use alt wisely. As an aside, if everything worked as it should, I wonder what a good "TTS scenebreak phrase" might be. Anything longer than a couple of words might get very irritating if it occurs often. Personally I think some kind of sound might be better, but we're a long way from that in your average reading app |
03-27-2019, 03:44 PM | #58 | |||||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Quote:
But remember, these ebooks won't necessarily could be read in ereaders only... they could be read using full-blown Screen Readers (and those DO support reading alt text, even if most ereader apps don't). Side Note: We discussed this more in-depth in the Accessibility question: TTS and ligatures topic. This also discussed dropcap images with alt text. * * * But IF you're using images, definitely use meaningful alt text: WebAIM article on Alternative Text Quote:
But yes, many programs output even worse than useless garbage like filenames. InDesign is notorious for this crap (but they're getting better. I think latest versions now let you more easily see alt tags.). It would be better to have a blank alt="" than to have absolute gibberish in there. Note: A similar issue with <title>. See my discussion on the topic (and more Accessibility links) here. Note #2: For help in catching/generating/fixing some of this stuff... see Accessibility plugins like Access-Aide Plugin for Sigil. Note #3: Also see this speech at ebookcraft 2017: In the Trenches with Accessible EPUB (Slides here.) This was a technical talk behind one of the checking tools, and discusses many of the things automated tools can't handle, but should still be kept in mind when designing/checking ebooks. Quote:
"Scene Break" "Subchapter" I personally don't mind the TTS saying: "asterisk asterisk asterisk" OR "... (Pause)" I currently get in Gitden Reader. What would a real person do while reading? Take a long breath, take a longer pause, and continue reading the next scene. Note: In the future, reading apps may also take more advantage of HTML5's <section>. Each scene/subchapter could be treated slightly differently. * * * And back to "Why Not Use Images for ChapterTitles/Scenebreaks"... I already answered in the Reddit posts too (because one of the users was using images for his chapter titles), but I'll reproduce some of my reasoning here. :P Here's the code example the user gave: Quote:
The disadvantages are numerous: Images typically:
You also have to recall that users can:
Ebooks that have horribly low resolution images around their headings or scenebreaks. They may have "looked nice" when the book first came out, but as devices became higher resolution, or you mess with settings, they look awful. Images With Text Have Accessibility Issues For example, readers may be using:
Even "normal readers" may be using:
These also don't work on "text in images". Text in Images Doesn't Follow CSS Style the chapter title with CSS if you want (large, bold, embed fancier font for headings, fancier CSS3 boxes/shadows, etc.), but the worst choice you can make is embed the entire chapter name/number into an image. Similar to embedding captions within an image... you're going to be shooting yourself in the foot when later on you decide to now make captions italic+right-aligned instead of bold+centered. Last edited by Tex2002ans; 03-27-2019 at 03:47 PM. |
|||||
03-29-2019, 11:05 AM | #59 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The way I see it, if an eBook is made properly (no paragraph spaces & proper indents), then a section break of 2em of just space works because you get the space and then the next paragraph has no indent. So you can see the space followed by no indent.
What I've seen used that works is an <hr> of some width. 45% works pretty well. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
blank lines between paragraphs | franklekens | Kobo Reader | 71 | 01-26-2015 12:52 PM |
Blank Lines In Code | SeaCanary | Sigil | 3 | 01-22-2014 08:51 PM |
Blank Lines | jreidu | Workshop | 2 | 07-20-2011 05:11 AM |
Blank lines between paragraphs? | ascherjim | OpenInkpot | 30 | 12-03-2009 12:19 AM |
Blank Lines | vivaldirules | Upload Help | 55 | 03-02-2009 03:17 PM |