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

Using bullet point image in EPUB

$
0
0
I am using bullet point images and used
<img src="../Images/Bullet_point_blue.png" width="20" height="20" align="text-top" style="font-size: 1em; text-indent: 0em;"/>

But Sigil does not like the align, how can I wrap the text after the bullet image so that is is centered properly?

epub popup footnote background color

$
0
0
Can the popup have a different background color?

underline links removed i sigil but showing in kindle previewer

$
0
0
Tried all ways to remove hyperlink underlines, I am using
a:link {color:#D2691E; text-decoration:none;}\na:visited {text-decoration:none;}\na:hover {text-decoration:none;}

Looks fine in sigil but reverts to underline links in kindle previewer

epub3 smil stop playing automatically

$
0
0
<smil version="3.0" xmlns="http://www.w3.org/ns/SMIL" xmlns:epub="http://www.idpf.org/2007/ops">
<body>
<seq epub:textref="../Text/Section0001.xhtml" epub:type="bodymatter chapter" id="ptm1">
<par id="a1"><text src="../Text/Section0001.xhtml#a001" />
<audio clipBegin="00:00:00.00" clipEnd="00:00:16.36" src="../Audio/QPD.mp3" />
</par>
<par id="a2"><text src="../Text/Section0001.xhtml#a002" />
<audio clipBegin="00:00:16.36" clipEnd="00:00:33.11" src="../Audio/QPD.mp3" />
</par>
<par id="a3"><text src="../Text/Section0001.xhtml#a003" />
<audio clipBegin="00:00:33.11" clipEnd="00:00:39.51" src="../Audio/QPD.mp3" />
</par>

</seq>
</body>
</smil>

How can I stop automatically after each segment, and click to start the next segment?

thank

How can I decode or decrypt an ePUB file?

$
0
0
Hi everyone.

I've got some ePUB ebooks which I really like to read on my kindle. But they are DRMed and encrypted and I couldn't manage to decrypt or deDRM them with none of the solutions found online.

Can someone help me with it? I'd really appreciate it.

Here's one of the books:

https://easyupload.io/2lweky

html img tag versus svg wrapped image tag

$
0
0
1) Why do some books use an html img tag for the cover page while Calibre's cover page generator, Calibre's Generate Cover plugin, and Sigil all use the svg wrapped image tag? (With an img tag Calibre's editor's preview window shows it full size with scroll bars when the image is too big for the window while Sigil's preview window and Calibre's reader resize it to fit the window.)

2) In the body of a book what are the advantages or disadvantages to using an svg wrapped image tag versus an html img tag? Complexity of the svg method is probably one disadvantage with it. I've never seen this done so I'm assuming that the advantages aren't there.

Span tag displays inconsistently on iBooks

$
0
0
This is a really strange inconsistency. I have produced an ePub file with 21 XHTML files (1 per chapter). There are numbered headers in each chapter (1-5). Every header uses the same HTML structure and the same CSS (please see below). Amazingly the number in the header only displays in the correct san-serif style in chapters 1-13. In the last 8 chapters the number in the header displays as a serif font (please see attached screenshots).

In ADE it displays correctly throughout the book. I've combed through the HTML and CSS but can't find any reason for this and its baffling. Has anyone else had this experience with in iBooks or and iPad???

CSS for all chapters
section.chapter section.section div.titlepage h2.title span.num {
font-size: 1.2em;
font-family: Arial, Trebuchet, Verdana, Lucida, Helvetica, sans-serif !important;
font-style: normal;
font-weight: bold;
color: gray;
}

Chapter 13 HTML
<section xmlns="http://www.w3.org/1999/xhtml" class="section" title="1**READING" xmlns:epub="http://www.idpf.org/2007/ops" epub:type="subchapter" id="ch13">
<div class="titlepage">
<h2 class="title"><span class="num">1</span> READING</h2>
</div>
<p>...</p>
<p>...</p>
</section>

Chapter 14 HTML
<section xmlns="http://www.w3.org/1999/xhtml" class="section" title="1**READING" xmlns:epub="http://www.idpf.org/2007/ops" epub:type="subchapter" id="ch14">
<div class="titlepage">
<h2 class="title"><span class="num">1</span>**READING</h2></div>
<p>...</p>
<p>...</p>
</section>

Attached Thumbnails
Click image for larger version

Name:	Chapter 13 headers.JPG
Views:	N/A
Size:	987.4 KB
ID:	177375   Click image for larger version

Name:	Chapter 14 headers.JPG
Views:	N/A
Size:	1.16 MB
ID:	177376  

background image with text and footnnotes

$
0
0
Hi there, I'm working on this epub in Sigil, epub 2.0.

I'm looking for a way to append a footnote to a text that overlays a background image (a footnote referring to another file in the epub).

Text over an image was nicely managed in this thread, but the footnote wasn't discussed:

https://www.mobileread.com/forums/sh...=227739&page=6

So (working on the file kindly provided by RbnJrg in the thread above) I was hoping to get the footnote to work like this:

Quote:

<body>
<div>
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 800 1222" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
<image height="1222" width="800" xlink:href="../Images/ch-template.jpg"/>

<text fill="black" style="font-size: 40px; font-family:'Fontin'; font-style: bold" text-anchor="middle" x="400" y="200">Chapter title</text>

<text fill="black" style="font-size: 25px; font-family: Fontin" text-anchor="middle" x="400" y="400">"...so that at least I may come to rest<br/>
in death in the tranquil resting places"<a href="../Text/ftn.html#ftn1" id="ftn1"><sup>[1]</sup></a></text>

<text fill="black" style="font-size: 20px; font-family: 'Fontin'" text-anchor="right" x="550" y="430">Vergil</text>

</svg>

</div>
</body>
But when a footnote is added, the reference link doesn't work as the footnote is moved to the bottom of the page instead of pointing to another file in the epub. In adtion [<br/>] doesn't work and the text is displayed as a single line.

The idea for this exercise is to have a separate chapter page.

I'd be super greateful if someone can give a helping hand out of this corner. Thanks!

Attached Files
File Type: epub background_image_text_and _footnote.epub (156.4 KB)

Using Font family gets ignored in Sigil

$
0
0
I am using <span class="first-letter">F</span>

as a drop case in epub3 with css as

.first-letter {
display:block;
float:left;
font-size: 5em;
line-height:0.8em;
color:#bf253c;
font-weight:normal;
padding-right: 8px
}

When I use font-family:SerpentisBlack; or any other font that I have loaded into the Fonts folder, it gets ignored in the text.

If I use a standard font i.e. font-family: "Comic Sans MS"; it works

.first-letter {
font-family: "Comic Sans MS";
display:block;
float:left;
font-size: 5em;
line-height:0.8em;
color:#bf253c;
font-weight:normal;
padding-right: 8px
}

Non-breaking spaces in ePUB

$
0
0
Hello, I am giving a first shot at creating an ePUB, and am struggling with non-breaking spaces.

I am on macOS (Catalina), primarily using Pages to generate my ePUB. All is fine except the non-breaking spaces (present in my Pages document) but disappearing from my ePUB. After browsing the Internet, I tried different ways:
- I tried generating ePUB from Pages and from Vellum*.
- I tried checking the generated XHML, and can't find any non-breaking space tag where they should be.
- I tried updating the XHTML with non-breaking space tags (& nbsp, & #160 ...) and re-zipping the ePUB.
- I tried opening the ePUB in macOS Library and in Adobe Digital Editions.

Inevitably, the non-breaking spaces appear as normal spaces when I eventually display the ePUB. Am I doing something wrong here?

Thanks in advance for your help.

(*) fun fact: the left part of Vellum shows non-breaking spaces (View -> Invisible Characters) but at the same time the right part of the application (ePUB preview) shows normal spaces.

epub creation software list

$
0
0
Hi to all

I'm an old time lurker, a writer and a writing coach

I'm looking for a list of epub creation software
Not software to read epub but to make epub

I know there' s some forum for some of them but not what I'm searching for
I know some software like

Writer's café
ywriter
jutoh
Mobipocket Creator
ePUBee Maker
TreePad Exe-eBook Creator
Scrivener
eBook Maestro
ultimate ebook creator
E-Book Compiler

What I'm searching is, in first a list of software like the one before and, second, experiences about them
I know and used Writer's café and it's a really good one.
I've used Jutoh and it's good but too limiting
I know scrivener and I can't recommend it due to it's working limitation

At now I'm using libreoffice with writer2epub extension and Sigil but I need somethign I can use from the beginning of the process so also for researching, outlining and notes
At now I'm using also Zim for notes, freemind for mindmap and writer's café for timeline. They are too much different software to be really efficient

Thanks to all

No errors found in calibre, but epub check found errors

$
0
0
Hello,

My name is Jennifer, and I am new to this forum. please forgive me if this has been addressed elsewhere, but I could not find a corresponding thread.

I am resubmitting a revised book to lulu.com for publishing. I am using version 4.11.2 of Calibre. The program finds no errors, but lulu and epubcheck are coming up with:

Error while parsing file 'element "p" not allowed here; expected the element end-tag, text or element "a", "abbr", "acronym", "applet", "b", "bdo", "big", "br", "cite", "code", "del", "dfn", "em", "i", "iframe", "img", "ins", "kbd", "map", "noscript", "ns:svg", "object", "q", "samp", "script", "small", "span", "strong", "sub", "sup", "tt" or "var" (with xmlns:ns="http://www.w3.org/2000/svg")'.

I get this several times. here is an example of some of the lines referenced:


<h2>

<p class="block_21" id="calibre_pb_8">6</p>

<p class="block_24">The Real Enterprise</p>

</h2>

Perhaps I am doing my headings wrong?

Any advice would be greatly appreciated.

Thanks in advance,

Jen L.

To Embed Fonts or Not to Embed Fonts

$
0
0
I've seen articles cautioning against embedding fonts -- articles eight years old. I'm trying to get a feel for what the current wisdom is. I was excited to learn that epub simply uses HTML and CSS. I've been writing both pretty much on a daily basis since 1999. I have a novel written in ms word. I used Kindle to make an ebook, but now I want to use epub. It seems to be offering much better creative control of my material.

I converted the .docx to HTML and then spent FAR too much time taking out all that crappy ms word code. I'll look at a better converter in the future. Any suggestions? I want everything gone except all italics, bolding, links, etc. All those things I'd have to read the whole thing word-for-word to rebuild.

The print version of the book is using two fonts I really like. They're both from Google fonts (TTF fonts). I did all the embedding. It looks great in Sigil and Chrome epub reader. I even got some drop caps to display perfectly with just a minimum of CSS styling.

Then I tried viewing it in Adobe Digital Editions. I'm very disappointed. It's rendering fonts in funky ways. I have a slight variant for the first paragraph in a chapter. It just has no initial indent. And there's a span styling a Drop Cap. In Adobe, that whole paragraph is rendered as bold. No drop cap is displayed. I thought maybe it was getting the 'bold' idea from the drop cap, but that doesn't use a bold, so it makes no sense. It seems Adobe can't handle a simple 'span.'

I don't get it. I'm using very basic, solid CSS tags. All weird MS Word stuff is gone. Why can't Adobe read basic CSS?

Attached Files
File Type: epub tudjina.epub (3.43 MB)

Epub validation error uuid in opf

$
0
0
Attached is the error i am receiving

"EPUB Validator (beta)Results

Detected version:*EPUB 2.0.1

Results:*The following problems were found in*1583543656246_Existence Hollowed_ Our Origins - ePUBator.epub:

TypeFileLinePositionMessageWARNINGOEBPS/content.opf7129'dc:identifier' value '1583543656246 Existence Hollowed Our Origins - -1299154564' is marked as a UUID, but is an invalid UUID.

Validated using*EPUBCheck*version 4.1.1."


From http://validator.idpf.org

I am trying to get entered into premium status on smashwords. Com

I tried to edit the uuid in the opf file and i caused 3 new errors


Ill attach the epub only having the uuid error

Can you please help me pass all tests at
http://validator.idpf.org

I am using a android smart phone

If you will fix the error for me much love

If youd prefer to tell me how to fix it much love

Thank you fameily :)

Attached Thumbnails
Click image for larger version

Name:	Screenshot_20200306-175529.png
Views:	N/A
Size:	94.2 KB
ID:	177547  
Attached Files
File Type: epub 1583543656246_Existence Hollowed_ Our Origins - ePUBator.epub (25.6 KB)

Mimetype file first help

$
0
0
I am getting a error that mimetype file needs to be first, i feel like ive been trying to fix that all day and ive been failing

Im using a android smartphone, i dont have pc

If you can take the attached zip and put the mimetype file first for me, much love

If you know how to do it from a android smartphone and would prefer to tell me much love

Thank you tech geniuses :)

Attached Files
File Type: zip Existence Hollowed Our Origins.zip (32.6 KB)

Font behavior of different e-readers

$
0
0
Since embedding fonts (especially for running text) is highly controversial I came up with the idea of just using some of the built-in fonts of different e-readers.
I saw that my Kindle Paperwhite comes with Bookerly, Baskerville, Amazon Ember, Caecilia etc. and my Tolino Page has built-in Bitter, Fira Sans, SourceSans etc.
So the idea was instead of embedding fonts or assigning just generic font names like "sans-serif", I could use some of the existing font names:
Code:

font-family: "Bitter"; "Caecilia"; serif;
When opened on a Tolino reader, the font "Bitter" should be used. When opened on a Kindle reader (where Bitter isn't available) it would be "Caecilia" instead. And as a fallback for other readers there still is the generic "serif".

Nice plan. Just doesn't work.

In Sigil I created a test epub file containing short texts formatted with different font names, just to see which ones would be displayed correctly on what reader. (I also made a mobi version using the KindleGen plugin.)
In addition to the e-reader's built-in font names I also used common Windows font names like Arial and Times New Roman, and I also embedded three less common fonts to see how they are displayed.

My Kindle Paperwhite seem to show most of it as intended. The built-in fonts like Caecilia or OpenDyslexic are used correctly. The missing fonts are replaced by a sans-serif font (I assume it's Helvetica). The embedded fonts are also shown correctly.
Arial ist replaced by Helvetica - but since every unknown font is replaced by Helvetica it doesn't mean that Kindle really recognizes Arial. (Times New Roman and Courier New are also replaced by Helvetica.)

My Tolino Page shows almost everything in it's own standard font (which is an extra serif font that doesn's show up among the fonts I can select manually). That means, on Tolino you cannot use the built-in fonts by assigning their font names via css (which makes my initial idea obsolete). The only way to use these fonts is manually selecting one of them at a time in the settings.
Only the generic names "monospace" and "sans-serif" lead to different fonts, and also the three embedded fonts are shown correctly.

Now I wanted to know what happens when I change the standard font settings of each reader.

Tolino is first set at "Publisher's font". When I select one of the alternative fonts, the whole text is shown in this newly selected font. Neither the embedded fonts nor the generic font names are used any more.

Kindle is also set to "Publisher Font" as a default and behaves just like Tolino: When I select any new font, all the existing fonts get replaced by the new one.

But then I wanted to know if it can make a difference if the ebook files contains embedded fonts or not. So I created an extra "nef" Version (No Embedded Fonts) of my test file.
For Tolino it doesn't make a difference. As soon as I switch off "Publisher's font" and select any other font in the list, no css font definition is respected any more. So there is no way to just select a different "running text font" and leave all the assigned fonts untouched.
Kindle on the other hand shows a Difference. When I open the version without the embedded fonts, there isn't even a "Publisher Font" option any more, and the pre-selected choice is now Bookerly. All the other fonts are shown with the css assigned typeface, just like the other version when "Publisher Font" is enabled. The difference is that I can now choose which font to use as a replacement for missing font files - a choice that Kindle doesn's give me any more as soon as the ebook file also contains some embedded fonts. Strange.

----------------------

I hope this wasn't too confusing.
Maybe people who own some other e-readers can try out my test files as well and post their experiences here.

Attached Files
File Type: epub fonttest.epub (175.5 KB)
File Type: mobi fonttest.mobi (218.2 KB)
File Type: epub fonttest_nef.epub (2.8 KB)
File Type: mobi fonttest_nef.mobi (41.4 KB)

Comments? server-side book-like html?

$
0
0
A year or so ago I posted something about some experimental software that displays epub3 on an Apache web server. If you unzipped the epub in the DOCUMENT_ROOT
and edited one line of a config file the epub displayed on the server in book-like fashion.

I gave up on that project for various reasons. I got it to work with epub3 produced by Sigil and Jutoh but free sample epubs from github often broke. I also didn't like being dependent on a desktop editor like Sigil or Jutoh for making changes, always followed by scp copying.

So now, basically since the old people stay home virus scare from a week ago, I've rewritten last year's epub3 stuff as server-side php that displays simple web pages--enhanced by page sequencing with Next Page and Previous Page buttons, plus a slideshow and a gallery mode. It isn't in any way epub. It's web pages that act like a book./index.php?robopage=Flies/Library/Sandy-Pittendrigh/Dryflies/

Lots of stuff still missing, like javascript display:none button to collapse the TOC and then back again, and a cookie set mechanism so the codes remember the last page you visited, so if you come back next week you'll automatically jump back to where you were last time. Perhaps in a few more days.

This is a book about Montana Trout Flies, which probably isn't interesting to anyone here. But it is a good demo I think.


https://montana-riverboats.com/index...drigh/Dryflies

....the codes are on github.com but not pushed out to the master yet. It will be a few more days before I do that.

page border

$
0
0
Stuck inside and bored. Nothing important or needed, just curious about this.

Is it possible to make a page border to, for example, put it around a title page, one made by the calibre Generate Cover plugin?

Simplest example would be a solid line. I tried this in the CSS:
Code:

.broider {
    border-width:  28px;
    border-style:  solid;
 }

With the html having 'body class="broider"'. On the Kobo that gave me a black border on the left, right, and top, but not the bottom.

This is what made me wonder if I could do it:
https://maxbittker.github.io/broider/

Which is referenced from:
https://css-tricks.com/how-to-make-r...border-images/

body font-size > 1em, then p font-size < 1em

$
0
0
This is in books I've gotten from places; I can't remember where.

More likely in the book's CSS the body font-size is > 100% and then p font-size is less than 100%. So it's close to 100% after those gyrations.

Anybody know why they do this? Maybe it's from converting the book from kindle format to epub in Calibre? If so, would checking the "Disable font size rescaling" stop that?

Zipping files into an epub

$
0
0
I am writing a bash script to build an epub from a file folder. The focus of the script are the following lines of code:

Code:

zip -X0 ${FILENAME}.epub mimetype
zip -Xr9 ${FILENAME}.epub META-INF/
zip -Xr9 ${FILENAME}.epub oebps/

I would like to compare that code with a possible "standard". Where can I find a document that describes the standard of internal structure and file compression levels within an epub?
Viewing all 1881 articles
Browse latest View live