Quantcast
Channel: MobileRead Forums - ePub
Viewing all 1881 articles
Browse latest View live

how to check if a legit epub exists for a given title

$
0
0
apologies if this is not the best forum for the question

is there any simple way to find out of a given title exists as an legitimate, available to buy epub ( i.e. to exclude pirated scans etc from the search results)
googling " book title epub" gives mostly dodgy site hits

my proxy search is to see if amazon sell a Kindle version but is there a better way ?

if a title does not exist in any e-book format, what is the legality / ethics of owning both a paper version and a downloaded scan. as I'm not willing to scan & compile several hundred individual pages myself ?

an example test case: Julian Jay Savarin: Waiters on the Dance. I have the hardback in the attic somewhere. There is no Kindle version. google search results look well dodgy.

image scaling problems: due to PNG format

$
0
0
i have an epub ( was epub 3 but I converted to epub 2 ) which has many large PNG images
the authors intent, I believe is to display each image as a single "page" - that is how they are in the matching paperback version.
sigil reports the properties for a randomly selected one as
1236 x 1900 colour 24bpp

these are problematic in almost all apps and viewers. ADE does not scale them to screen, moon+ reader renders them as tiny little squares ( but will expand then if double clicked ). only Bookari seems to handle them well

I am not sure of the root cause or of the simplest fix.
is it because thay are .PNG or simply because they are large, or because they are coded with div, not with SVG ?
the relevant code for each display is div class="image-full"...<img....
defined as
.image_full {
clear: both;
display: block;
height: 98vh;
margin-bottom: 0;
margin-left: auto;
margin-right: auto;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
page-break-inside: avoid;
text-align: center;
width: 100%
}
can I improve the rendering via code or CSS tweaks , or must I remove, shrink,replace each image ?

ADE expiration date - where can I find it

$
0
0
I'm looking for a way to view the ADE expiration date of an EPUB in the EPUB itself.
Afaik the only unencrypted files in a protected EPUB are:
mimetype
content.opf
and some files in \META-INF\
but not encryption.xml and rights.xml
Is there a metadata tag somewhere containing the expiration date?

Locating Epub Files

$
0
0
If I purchase an epub from Amazon, iBooks or whoever, there should be a new file in my computer. But where is it located?

I discovered the path to epubs I buy from Apple:

~/Library/Containers/com.apple.BKAgentService/Data/Documents/iBooks/Books

But when I navigate to that folder, I'm able to open the files in iBooks but not in Sigil. Are epubs simply designed to "lock out" people who buy them, so they can't accidentally mess up the html?

There's one file I want to locate in particular - an epub I'm working on. I accidentally messed up one file that isn't in my backup. So the only way to retrieve the correct XHTML is to access the copy that I can view in iBooks.

To put it another way, I can preview this book in iBooks. But if I delete THIS BOOK from iBooks, then double-click THIS BOOK on my desktop, it will load the epub back in iBooks, but with the flawed file, not the original.

So, if the correct version is presently viewable in iBooks, is there a way to 1) view the XHTML, 2) copy or export it or 3) locate a copy that can be opened with Sigil, BBEdit, or some other program?

Thanks.

Viewer with Annotations and Highlights

$
0
0
Hello everyone,

I am new here, I use Caliber 2.79 with its viewer on pc win7 / 64 exclusively.

Someone would know a viewer that could recognize Caliber and that would have the possibility to Highlight in different colors and to make textual annotation in the books. -all of that remaining saved of course and saved under caliber-

Thank you for your advice in advance

mathematics equations, technical mechanics and all kind of diagrams

$
0
0
I'm sorry for openin new thread if one is already there. I searched on google and all what i found is to old. Date is 2012 or 2009. And I gess a lot have change since then.

I need to put some books in my eReader. It is kindle paperwhite. But if mobi or azw3 can not suport that i'm ready to buy some epub reader.

The books I need to put is for civil engineering. So there is a lot of math trigonometry, equations, integrals, lots of diagrams, tables.
Here are some examples










Any sugestions how to resolve this..

Not Hjacking- Two Fonts, No Breaks

$
0
0
So based on what I read in this thread, I can use span tags in words to make small caps. Does it also work with two different embedded fonts?

For example, if I want to do a title where the capital letters are a variant of the same font with extra ruffles and flourishes.

Making a new thread because I don't want to hijack, and my HTML skills are still about where they were the last time I posted.

Downloading epub from webpage

$
0
0
I have my epubs available on my website for download from a public dropbox folder for anyone who visits my site (as well as through Apple iBooks). This will end on 3/15. If I just make the files a shared file, the browser doesn't know how to handle them properly to download them like a .zip file or to offer to open in iBooks from the tablet. I tried to alter my web.config file based on an old previous thread I found.
mimeMap fileExtension=".epub" mimeType="application/epub+zip
But it didn't change anything. Anyone have a suggestion?

ADE Help?

$
0
0
If this is not the right place to post this, I apologize. I had to reinstall windows, and therefore reinstall Calibre. ADE 2.0.1 installed ok, and it authorized ok, but when I try and download a book, it says it is not activated. Can someone tell me what that is?

Detect when font changes in EPUB

$
0
0
I am trying to use or create and event listener when the user changes the font size of the EPUB in an ereader with Javascript but I haven't find the way.

What I have tried without success:

* A `resize` event listener.
* A timing event that measures the font size.
* A listener that measures the scale of the `viewport`.

In `ebook-viewer` (aka Calibre viewer) I can see in the inspector that every time I change the font size the console prints `Viewport cfi: /2/4/2/2/1:1`. I see that when `1:1` changes, it's some sort of scale in int numbers.

That is why I tried to detect the viewport scale with [this](https://tombigel.github.io/detect-zoom/) or [this](http://menacingcloud.com/source/js/F...ewportScale.js).

So I suppose it is possible only because I can see trough the inspector of `ebook-viewer`...

All the tries didn't work on iOS either.

docx to epub: sans-serif recognised, then not recognised

$
0
0
I'm working on a book that's mostly set in serif font (Book Antiqua, 10pt), with some passages set in sans-serif (Helvetica, 9.5pt) to spotlight them.

When I view the epub it in Calibre's reader, all looks as it should; but in iBooks, the sans-serif falls over half way through; i.e. it's fine in the first half, but later on, identically formatted (sans-serif) text is rendered as serif!

Any one know why this is happening? Or how I can fix this?!

ePubCheck: nav is not bound

$
0
0
Hi!

I'm facing with the problem.
I made some PHP script to generate ebooks (ePub), and then convert it to Kindle's mobi.
After creating epub (zip) it checks it with ePubCheck. Here's what i got:

Code:

FATAL(RSC-016): ./San_Zamoyski-Testbook-170403162142.epub/OEBPS/toc.xhtml(10,33): Fatal Error while parsing file 'The prefix "epub" for attribute "epub:type" associated with an element type "nav" is not bound.'.

ERROR(RSC-005): ./San_Zamoyski-Testbook-170403162142.epub/OEBPS/toc.xhtml(-1,-1): Error while parsing file 'The prefix "epub" for attribute "epub:type" associated with an element type "nav" is not bound.'.

FATAL(RSC-016): ./San_Zamoyski-Testbook-170403162142.epub/OEBPS/12.xhtml(22,2): Fatal Error while parsing file 'The element type "body" must be terminated by the matching end-tag "</body>".'.

ERROR(RSC-005): ./San_Zamoyski-Testbook-170403162142.epub/OEBPS/12.xhtml(-1,-1): Error while parsing file 'The element type "body" must be terminated by the matching end-tag "</body>".'.

And some according files:

book.opf
Code:

<?xml version="1.0" encoding="UTF-8"?>
<package xmlns:xx="http://saxon.sf.net/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/metadata/dublin_core"
    unique-identifier="BookId" version="3.0" xmlns="http://www.idpf.org/2007/opf">
                       
        <metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
                <meta name="generator" content="Zabałaganionemiejsce.pl" />
                <dc:identifier id="BookId">http://xn--zabaaganionemiejsce-8fd.pl/San_Zamoyski-Testbook-170403155631</dc:identifier>
                <dc:title>Testbook</dc:title>
                <dc:language>pl</dc:language>
                <dc:creator>San Zamoyski</dc:creator>
                <dc:publisher>zabałaganionemiejsce.pl</dc:publisher>
                <dc:format>application/ePUB</dc:format>
                <dc:date>2017-04-03</dc:date>
                <dc:rights>
                        Niniejsza publikacja została utworzona przy użyciu skryptów dostępnych na zabałaganionemiejsce.pl. Serwis nie odpowiada za przetwarzanie nielegalnych materiałów.
                </dc:rights>
                <meta name="cover" content="cover-image" />
                <meta property="dcterms:modified">2017-04-03T15:56:31Z</meta>
        </metadata>
                           
        <manifest>
                <item href="title.xhtml" id="title" media-type="application/xhtml+xml"/>
                <item id="toc" properties="nav" href="toc.xhtml" media-type="application/xhtml+xml"/>
                                <item id="p1" href="1.xhtml" media-type="application/xhtml+xml"/>
                <item id="p2" href="2.xhtml" media-type="application/xhtml+xml"/>
                <item id="p3" href="3.xhtml" media-type="application/xhtml+xml"/>
                <item id="p4" href="4.xhtml" media-type="application/xhtml+xml"/>
                <item id="p5" href="5.xhtml" media-type="application/xhtml+xml"/>
                <item id="p6" href="6.xhtml" media-type="application/xhtml+xml"/>
                <item id="p7" href="7.xhtml" media-type="application/xhtml+xml"/>
                <item id="p8" href="8.xhtml" media-type="application/xhtml+xml"/>
                <item id="p9" href="9.xhtml" media-type="application/xhtml+xml"/>
                <item id="p10" href="10.xhtml" media-type="application/xhtml+xml"/>
                <item id="p11" href="11.xhtml" media-type="application/xhtml+xml"/>
                <item id="p12" href="12.xhtml" media-type="application/xhtml+xml"/>

                <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml" />
                <item id="cover-image" href="cover.png" media-type="image/png" />
                <item id="Style" href="style.css" media-type="text/css" />
                <item id="Heuristica-regular" href="Heuristica-Regular.ttf" media-type="application/vnd.ms-opentype" />
        </manifest>
       
        <spine toc="ncx">
                <itemref idref="title" />
                <itemref idref="toc" />
               
                <itemref idref="p1" />
                <itemref idref="p2" />
                <itemref idref="p3" />
                <itemref idref="p4" />
                <itemref idref="p5" />
                <itemref idref="p6" />
                <itemref idref="p7" />
                <itemref idref="p8" />
                <itemref idref="p9" />
                <itemref idref="p10" />
                <itemref idref="p11" />
                <itemref idref="p12" />
        </spine>
       
        <guide>
                <reference href="title.xhtml" type="text" title="Strona Tytułowa"></reference>
                <reference href="toc.xhtml" type="toc" title="Spis treści"></reference>
        </guide>
</package>

toc.ncx
Code:

<?xml version="1.0" encoding="UTF-8"?>
    <ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1" xml:lang="en" dir="ltr">
                <head>
                        <meta name="dtb:uid" content="zabałaganionemiejsce.pl" />
                        <meta name="dtb:depth" content="2" />                     
                        <meta name="dtb:totalPageCount" content="0" />
                        <meta name="dtb:maxPageNumber" content="0" />
                </head>
                               
                <docTitle>
                        <text>Testbook</text>
                </docTitle>
                               
                <docAuthor>
                        <text>San Zamoyski</text>
                </docAuthor>
                                       
                <navMap>
                        <navPoint playOrder="1" id="title">
                                <navLabel><text>Spis treści</text></navLabel>
                                <content src="title.xhtml" />
                        </navPoint>
                        <navPoint class="toc" playOrder="2" id="toc">
                                <navLabel><text>Spis treści</text></navLabel>
                                <content src="toc.xhtml" />
                        </navPoint>
                       
            <navPoint class="chapter" id="p1" playOrder="3">
                <navLabel><text>Notka</text></navLabel>
                <content src="1.xhtml" />
            </navPoint>
            <navPoint class="chapter" id="p2" playOrder="4">
                <navLabel><text>Podstawowe fonty:</text></navLabel>
                <content src="2.xhtml" />
            </navPoint>
                <navPoint class="chapter" id="p2_1" playOrder="5">
                    <navLabel><text>Italic:</text></navLabel>
                    <content src="2.xhtml#p2_1" />
                </navPoint>
                <navPoint class="chapter" id="p2_2" playOrder="6">
                    <navLabel><text>Bold:</text></navLabel>
                    <content src="2.xhtml#p2_2" />
                </navPoint>
                <navPoint class="chapter" id="p2_3" playOrder="7">
                    <navLabel><text>Bold-Italic</text></navLabel>
                    <content src="2.xhtml#p2_3" />
                </navPoint>
            <navPoint class="chapter" id="p3" playOrder="8">
                <navLabel><text>Wyrównanie</text></navLabel>
                <content src="3.xhtml" />
            </navPoint>
                <navPoint class="chapter" id="p3_1" playOrder="9">
                    <navLabel><text>Domyślne (justify):</text></navLabel>
                    <content src="3.xhtml#p3_1" />
                </navPoint>
                <navPoint class="chapter" id="p3_2" playOrder="10">
                    <navLabel><text>Do lewej:</text></navLabel>
                    <content src="3.xhtml#p3_2" />
                </navPoint>
                <navPoint class="chapter" id="p3_3" playOrder="11">
                    <navLabel><text>Do środka:</text></navLabel>
                    <content src="3.xhtml#p3_3" />
                </navPoint>
                <navPoint class="chapter" id="p3_4" playOrder="12">
                    <navLabel><text>Do prawej:</text></navLabel>
                    <content src="3.xhtml#p3_4" />
                </navPoint>
            <navPoint class="chapter" id="p4" playOrder="13">
                <navLabel><text>Ręczny podział na strony</text></navLabel>
                <content src="4.xhtml" />
            </navPoint>
            <navPoint class="chapter" id="p5" playOrder="14">
                <navLabel><text>Tabela</text></navLabel>
                <content src="5.xhtml" />
            </navPoint>
            <navPoint class="chapter" id="p6" playOrder="15">
                <navLabel><text>Wypunktowania</text></navLabel>
                <content src="6.xhtml" />
            </navPoint>
                <navPoint class="chapter" id="p6_1" playOrder="16">
                    <navLabel><text>Kółko:</text></navLabel>
                    <content src="6.xhtml#p6_1" />
                </navPoint>
                <navPoint class="chapter" id="p6_2" playOrder="17">
                    <navLabel><text>Liczbowe:</text></navLabel>
                    <content src="6.xhtml#p6_2" />
                </navPoint>
            <navPoint class="chapter" id="p7" playOrder="18">
                <navLabel><text>Łamanie w podrozdziałach</text></navLabel>
                <content src="7.xhtml" />
            </navPoint>
                <navPoint class="chapter" id="p7_1" playOrder="19">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_1" />
                </navPoint>
                <navPoint class="chapter" id="p7_2" playOrder="20">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_2" />
                </navPoint>
                <navPoint class="chapter" id="p7_3" playOrder="21">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_3" />
                </navPoint>
                <navPoint class="chapter" id="p7_4" playOrder="22">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_4" />
                </navPoint>
                <navPoint class="chapter" id="p7_5" playOrder="23">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_5" />
                </navPoint>
                <navPoint class="chapter" id="p7_6" playOrder="24">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_6" />
                </navPoint>
                <navPoint class="chapter" id="p7_7" playOrder="25">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_7" />
                </navPoint>
                <navPoint class="chapter" id="p7_8" playOrder="26">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_8" />
                </navPoint>
                <navPoint class="chapter" id="p7_9" playOrder="27">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_9" />
                </navPoint>
                <navPoint class="chapter" id="p7_10" playOrder="28">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_10" />
                </navPoint>
                <navPoint class="chapter" id="p7_11" playOrder="29">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_11" />
                </navPoint>
                <navPoint class="chapter" id="p7_12" playOrder="30">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_12" />
                </navPoint>
                <navPoint class="chapter" id="p7_13" playOrder="31">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_13" />
                </navPoint>
                <navPoint class="chapter" id="p7_14" playOrder="32">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_14" />
                </navPoint>
                <navPoint class="chapter" id="p7_15" playOrder="33">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_15" />
                </navPoint>
                <navPoint class="chapter" id="p7_16" playOrder="34">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_16" />
                </navPoint>
            <navPoint class="chapter" id="p8" playOrder="35">
                <navLabel><text>Krzaczki</text></navLabel>
                <content src="8.xhtml" />
            </navPoint>
            <navPoint class="chapter" id="p9" playOrder="36">
                <navLabel><text>Testowanie słownika</text></navLabel>
                <content src="9.xhtml" />
            </navPoint>
            <navPoint class="chapter" id="p10" playOrder="37">
                <navLabel><text>Break (***)</text></navLabel>
                <content src="10.xhtml" />
            </navPoint>
                <navPoint class="chapter" id="b1" playOrder="38">
                        <navLabel><text></text></navLabel>
                    <content src="10.xhtml#b1" />
                </navPoint>
            <navPoint class="chapter" id="p11" playOrder="39">
                <navLabel><text>Cudzysłowy i automagiczna poprawa</text></navLabel>
                <content src="11.xhtml" />
            </navPoint>
            <navPoint class="chapter" id="p12" playOrder="40">
                <navLabel><text>Obrazek</text></navLabel>
                <content src="12.xhtml" />
            </navPoint>
                <navPoint class="chapter" id="p12_1" playOrder="41">
                    <navLabel><text>Wklejka</text></navLabel>
                    <content src="12.xhtml#p12_1" />
                </navPoint>
                </navMap>
        </ncx>

toc.xhtml
Code:

<!DOCTYPE HTML>
<html lang="pl" xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
                <link rel="stylesheet" type="text/css" href="style.css" />
                <title>Testbook</title>
        </head>
        <body>
               
                <nav epub:type="toc">
                <h1 class="section">Spis treści</h1>
                        <ol>
                <li class="toc-section"><a href="1.xhtml">Notka</a></li>
                <li class="toc-section"><a href="2.xhtml">Podstawowe fonty:</a>
                            <ol>
                        <li class="toc-subsection"><a href="2.xhtml#p2_1">Italic:</a></li>
                        <li class="toc-subsection"><a href="2.xhtml#p2_2">Bold:</a></li>
                        <li class="toc-subsection"><a href="2.xhtml#p2_3">Bold-Italic</a></li>
                            </ol>
                    </li>
                <li class="toc-section"><a href="3.xhtml">Wyrównanie</a>
                            <ol>
                        <li class="toc-subsection"><a href="3.xhtml#p3_1">Domyślne (justify):</a></li>
                        <li class="toc-subsection"><a href="3.xhtml#p3_2">Do lewej:</a></li>
                        <li class="toc-subsection"><a href="3.xhtml#p3_3">Do środka:</a></li>
                        <li class="toc-subsection"><a href="3.xhtml#p3_4">Do prawej:</a></li>
                            </ol>
                    </li>
                <li class="toc-section"><a href="4.xhtml">Ręczny podział na strony</a></li>
                <li class="toc-section"><a href="5.xhtml">Tabela</a></li>
                <li class="toc-section"><a href="6.xhtml">Wypunktowania</a>
                            <ol>
                        <li class="toc-subsection"><a href="6.xhtml#p6_1">Kółko:</a></li>
                        <li class="toc-subsection"><a href="6.xhtml#p6_2">Liczbowe:</a></li>
                            </ol>
                    </li>
                <li class="toc-section"><a href="7.xhtml">Łamanie w podrozdziałach</a>
                            <ol>
                        <li class="toc-subsection"><a href="7.xhtml#p7_1">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_2">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_3">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_4">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_5">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_6">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_7">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_8">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_9">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_10">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_11">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_12">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_13">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_14">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_15">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_16">Podrozdział</a></li>
                            </ol>
                    </li>
                <li class="toc-section"><a href="8.xhtml">Krzaczki</a></li>
                <li class="toc-section"><a href="9.xhtml">Testowanie słownika</a></li>
                <li class="toc-section"><a href="10.xhtml">Break (***)</a></li>
                <li class="toc-section"><a href="11.xhtml">Cudzysłowy i automagiczna poprawa</a></li>
                <li class="toc-section"><a href="12.xhtml">Obrazek</a>
                            <ol>
                        <li class="toc-subsection"><a href="12.xhtml#p12_1">Wklejka</a></li>
                            </ol>
                    </li>
            </ol>
                </nav>
               
        </body>
</html>

12.xhtml
Code:

<!DOCTYPE HTML>
<html lang="pl" xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
                <link rel="stylesheet" type="text/css" href="style.css" />
                <title>Testbook</title>
        </head>
        <body>
               
<p class="section">Obrazek</p>
<h1 >*</h1>
<p id="p12_1" class="subsection">Wklejka</p>
<p></p>

*<img src="data:image/jpeg;base64,[image data]" alt="" />
</p>
<p style="page-break-after:always;"></p>
        </body>
</html>

And i can not fix it.
Thanks in advance.

Add empty spaces between characters (Calibre)?

$
0
0
In my ebook, I have a line of text that includes empty spaces, like:

"asdfkl sdfkjsdfl"

But the spaces disappeared in the conversion from InDesign to Calibre.

So I was wondering if there's a way to add empty spaces between characters in Calibre?

As a work-around, I tried to make some 'invisible' characters; e.g. change the text color to white, but then I realized I would obviously need two styles within one line, because some characters would still need to be black, and I couldn't figure out how to do that...

Readers to target

$
0
0
Hi the bulk of the work of my epub3 book is done but i'm finding quite different results in different readers. It has a lot of photographs.

The nicest reader seems to be google play books, which seems to work with the layout (reflowable) as intended. Adobe Digital Editions seems to be relatively good. Readium is making a mess splitting images between pages.

Then there is some odd alignment issues with pages with just photo's sometimes dropping a line on opposite pages.

I would like to get things perfect but it seems i'm having to fight the different readers to get my layouts looking as I intended.

With dual pages I want to start fresh on the left side usually.

Then i want to do things like centre an image on the left page and have a centred paragraph on the right page. Sometimes this mostly works other times it's not so good.

e.g

<body class="bodystyle" lang="en-UK">
<div class="inthemiddle">
<figure>
<img class="photo" src="../Images/image165.png"/>
</figure>
</div>
<div class="inthemiddle">
<p class="calibre56" id="id24">We are blinded by our eyes,<br/>which give us more illusion<br/>than sight.</p>
</div>
</body>

.calibre56 {
background: transparent;
border-bottom-color: currentColor;
border-bottom-style: none;
border-bottom-width: 0;
border-top-color: currentColor;
border-top-style: none;
border-top-width: 0;
color: #374f6c;

display: block;
font-family: Arno Pro;
font-size: 1.41667em;
font-style: normal;
font-variant: normal;
font-weight: light;
letter-spacing: normal;
line-height: 0.33in;
margin-bottom: 0.5em;
margin-left: 0.01in;
margin-right: 0;
margin-top: 0.5em;
orphans: 2;
padding-bottom: 0;
padding-top: 0;
page-break-after: auto;
page-break-before: auto;
page-break-inside: auto;
text-align: center;
text-decoration: none;
widows: 2
}

.inthemiddle{
margin: 50vh 0 0 0; /* vh stands for viewport height*/
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
color:#222222;
orphans:1;
page-break-after:auto;
page-break-before:auto;
text-align:center;
text-decoration:none;
text-indent:0;
text-transform:none;
widows:1;
}

figure {
border:0px;
text-align: center;
border-color: red;
display: block;
margin-top: .5em;
margin-bottom: .5em;
margin-left: 1%;
margin-right: 1%;
max-width: 100%;
max-height: 100%;
padding: 0;
background-color: #ffffff;
page-break-inside: avoid;
}

.photo {
display: block;
height: auto;
line-height: 1.2;
margin-bottom: auto;
margin-left: auto;
margin-right: auto;
margin-top: auto;
max-width: 99%;
width: auto
}
.bodystyle {
display: block;
font-size: 1em;
height: 98%;
line-height: 1.2;
margin-bottom: 1em;
margin-left: 1em;
margin-right: 1em;
margin-top: 1em;
padding-left: 0;
padding-right: 0
direction: ltr;
background-color: #ffffff;
}


Any suggestions please.

HTML files with split window

$
0
0
Hello,

I'm trying to import into Calibre an html book that has a split window (frames?) with an index on the left side, and the content on the right side - this: http://john114.org/Docs/SB_Brv_Page.htm

The whole book is contained in three html files, which I downloaded. Importing the main html file into Calibre creates a zip file with the three files (and a content.opf file and some other files). But if I try to open the book, Calibre just opens the folder with all the files. Trying to open the opf file then either opens a blank browser window, or produces a message "failed to read book."

I looked at several help pages about merging html files, but was not able to resolve the problem. Is Calibre able to handle such a file/book?

Thanks,

About Word, letter-spacing and EPUB

$
0
0
Hi

About Word, letter-spacing and EPUB.

Some months ago, I found something unusual - and for me unexplained. Take an odt file made under LO. Save, open the odt with Word 2013. Make some trifle changes. Save as an odt. Everything loooks normal (the style of your titles may have changed).

Now with this odt;, convert to EPUB3 using ODTImport (or writer2xhtml). You'll find in the body of the EPUB stylesheet a letter-spacing property (values of 1px or 1.33px). There is only one explanation: this property has been unilaterally added by Word...

With odt files coming straight from LO, you'll never find this letter-spacing property (except of course if you deliberately put it inside).

Epub formatting, keep text, padding and borders from getting cut between screens

$
0
0
I'm auto generating the epub(in calibre, from odf, with the intended reader being google play books, and yes i know they do a bunch of crazy stuff to it in the backend) so there is not much if anything i can do with the html format since there will be thousands of occurrences between a few hundred different files through out the book, the intended look is a video-game popup box, but iv'e been stuck keeping the text, padding, border and fill from splitting between pages, this is for personal use only so the fix doesn't have to be elegant or cross-platform just work in google play books, and be a css only edit.

anyone have a clue? thanks for any help that can be given.

things iv'e tried
page-break-inline:avoid;
break-inline:avoid;

html
Code:

<p class="p-pb">some text</p>
css

Code:

.p-pb {
background-color: #113166;
display: block;
font-family: "Liberation Serif", serif;
font-size: 1em;
font-weight: bold;
line-height: 120%;
text-align: center;
color: white;
margin: auto;
padding: 0.4in;
border: #0986ed solid 4pt;
border-radius: 7px;
}

Series problem

$
0
0
I am having trouble getting a series of books to show up in Aldiko as a Collection. I have added the following metadata to each book (with the appropriate series number).

<meta name="calibre:series" content="Brother Cadfael"/>
<meta name="calibre:series_index" content="1"/>

At first, I used EPubMetadataEditor, but it didn't handle one book correctly. I finally opened each epub with 7Zip and edited each "content.opf" file.

No matter what I do, when I import the books into Aldiko, they do not show as a Collection. I have the latest version of Aldiko, which is supposed to support the "calibre:series" metadata.

Any ideas why this isn't working?

Landscape Format

$
0
0
Im new at E-publishing and my existing paper book is wider than it is tall. This is because a continuous diagram (timeline) runs along the bottom of the pages. The diagrams are sequential so I dont want them divided into lots of little ones on numerous portrait pages.

I would like to create the e-book in landscape with 2 columns for the text and a single long diagram traversing the columns at the bottom. Every page would follow this basic format. I hope to create it using HTML.

Will my idea work in an epub environment? Comments please.

My first EPUB! Need advice on best practices

$
0
0
Hi. I'm new here. :p

I'm in the process of creating my first EPUB using Sigil, and I have to say that I am thoroughly enjoying the process! :2thumbsup

I used to construct XHTML 1.0 Strict and CSS2 websites, so constructing an EPUB is coming quite naturally to me.

I just conducted a Web search for a CSS template to use in my EPUB. I found one that recommends this statement:

Code:

@page {margin: 10px;}
Apparently, this statement adds margins around every page to stop Adobe Digital Editions' line numbers from being superimposed over the content.

In other words, this is a fix for a known problem with Adobe Digital Editions.

Questions
  1. Is this statement still necessary?
  2. Are there any other "fixes" or best practices that I should be following to ensure maximal compatibility?
Viewing all 1881 articles
Browse latest View live