|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Bookaholic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 11110
Join Date: Apr 2013
Location: Canada
Device: Kobo Mini
|
EPUB Formatting Challenge: Embedding blog posts in the flow of story text
Open challenge to all MobileRead ebook developers:
I'm currently designing a fiction novel in EPUB. Periodically throughout the story a blog is mentioned. I would like to actually break the story text and insert the first few paragraphs of a blog post along with a header image, and then have the story text continue below. Essentially, the effect I'm looking for is similar to books like the Shopaholic series that incorporate letters, or books that incorporate diary entries in the flow of text. To set the blog post apart from the story text, I will have to use a different typeface, margins, a background image or colour, and maybe a border. I'll also include a link at the end to take the reader directly to the blog post on their web browser. Here's the beef: How's the best way to go about this? Should I create a div.blog to create my blog posts? If I use borders or a background graphic, what will happen if the page breaks in the middle of a blog? Also, is there a way to actually "embed" an actual, live blog post in an EPUB file? I realize that the reader would need a live Internet connection, but I'm curious if it can be done. So basically, can we "embed" web pages in EPUB? I'd likely not do it this way, but I am curious, and I can't seem to find any info about it online. Bouquets in advance to anyone willing to brainstorm with me. Thank you! ![]() |
![]() |
![]() |
![]() |
#2 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
I use a monospace font called Courier for this purpose. I indent from the left but not from the right (because older Kindles don't support right indentation, and there are millions of those out there).
The image would be handled like any other image. Because books now get read on everything from an iPhone to an iPad, I use a width attribute rather than an absolute size for such images, e.g. width="10%" (you might have to experiment). |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,351
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,634
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
https://www.mobileread.com/forums/sho...37&postcount=2 and this... https://www.mobileread.com/forums/sho...66&postcount=6 ...could help. Last edited by RbnJrg; 07-14-2013 at 05:52 PM. |
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
I pulled this CSS out of a book I read that was published by Tor that had "blog posts" throughout the book.
I have attached a sample EPUB, and a sample image showing what it looks like. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Bookaholic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 11110
Join Date: Apr 2013
Location: Canada
Device: Kobo Mini
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#7 | |
Bookaholic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 11110
Join Date: Apr 2013
Location: Canada
Device: Kobo Mini
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#8 | |
Bookaholic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 11110
Join Date: Apr 2013
Location: Canada
Device: Kobo Mini
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#9 | |
Bookaholic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 11110
Join Date: Apr 2013
Location: Canada
Device: Kobo Mini
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
http://www.barnesandnoble.com/w/insi...=9781429925495 Nothing fancy happens before/after (plus you could always adjust the CSS to make it however you want). Use the CSS in my post/example and build upon it! See attached images for the Before/After in the actual book. For example, here is CSS for a gray box that I use, which looks great in color, and works GREAT on e-ink (original Nook): https://www.mobileread.com/forums/sho...25&postcount=9 All of the relevant CSS + sample pictures are given in my last two posts though. ![]() If you are still interested in seeing it in actual action, I have a WIP EPUB of that gray box in the linked post. That gray box was from the Quarterly Journal of Austrian Economics EPUBs that I am working on. Currently, they are all available as PDFs (I had the EPUBs generated from InDesign). It is a long-term backburner project that I am slowly chipping away at. Everything I do for work is not copyrighted (actually, it is a CC-BY 3.0 that is as close to Public Domain as possible, and my employer will never enforce the copyrights, and everything is free to distribute/share/whatever). So feel free to ask away, I will share everything with anyone who is interested. ![]() All the EPUBs I work on are pretty much non-fiction economics/history works, so the gray box is about as fancy as I get (the goal is to make it work on as many devices as possible, not trying to design EPUBs specifically for one device/reader). Last edited by Tex2002ans; 07-21-2013 at 07:14 PM. |
|
![]() |
![]() |
![]() |
#11 | |
Bookaholic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 11110
Join Date: Apr 2013
Location: Canada
Device: Kobo Mini
|
Quote:
![]() I also have a few ideas of my own for the blog entry sections that involve CSS3 such as multiple backgrounds, drop shadows etc. To support all devices, I'm following the programming technique of progressive enhancement, that is, to design for the lowest common denominator first, and have all the extra visual punch be icing on the cake. When I get a draft finished, I'll share it with you. But thanks for giving me the start I needed. |
|
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Just be aware that the core of ePUB2 is CSS2.1, or at least a subset.
|
![]() |
![]() |
![]() |
#13 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
If you need anything else, feel free to PM/email me. As I said, I am open to sharing anything (PDF -> EPUB conversion tips, resources, image compression, EPUBs I have worked on, Regex I use, etc. etc.) ![]() My personal philosophy with EPUBs though isn't getting them really fancy looking... the goal is to have extremely accurate conversions, plus very clean, minimalist code. This will make conversion to future formats much easier (very long-term mindset). Quote:
One of these days I really should take a break from conversion and get some coding done. I have some really good ideas which would speed up EPUB conversions. More productivity means more books, more books means more knowledge spread, more knowledge spread means.... well you get the picture! As to the "Fifty Shades of Gray".... Economics is actually useful, and not some fad which will disappear in a few months/years. ![]() Quote:
CSS3.... I personally am not one for all the fanciness (just getting the information/ideas/story across is my goal). I do not care if the border is sharp or rounded.... or if there is a shadow behind the text. Perhaps you might also be able to check out Zen Garden and gather something from the CSS there: http://www.csszengarden.com/ Although as Toxaris said, just be warned that EPUB is a subset of CSS2.1. Make sure to test everything on your actual device (Kobo Mini?), and/or ADE: https://www.adobe.com/products/digital-editions.html Another idea is... taking apart EPUBs (like how I found that box CSS). Usually these publishers also have their generic template CSS with a TON of styles they don't use. You could always apply those styles to see what they do. Definitely post whatever you come up with on the forums, there are lots of lurkers which don't post in topics, but benefit greatly from the knowledge. I have absorbed a lot since being on these forums, and even those who do searches in the future might stumble upon your topic and learn something. Also, sharing code gets people to give their own examples/input... which will make your code even better. |
|||
![]() |
![]() |
![]() |
#14 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#15 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
|
|
![]() |
![]() |
![]() |
Tags |
blogs, embedding, epub, formatting |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Text Flow for Nook for PC - wth? | dvrader | Nook Developer's Corner | 0 | 12-19-2012 12:22 PM |
fb2 to epub wrong text formatting | rulet | Conversion | 3 | 03-30-2012 02:09 PM |
Blog posts about content server and other features | anoved | Calibre | 0 | 02-01-2012 03:21 PM |
Free (Kindle) Paper Flow 28 Day Challenge by Mary Anne Bennie and Brigitte Hin | arcadata | Deals and Resources (No Self-Promotion or Affiliate Links) | 1 | 08-25-2011 06:56 PM |
PRS-350 Landscape mode text flow issue | skypilotpete | Sony Reader | 2 | 03-25-2011 03:35 AM |