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

epubcheck ERROR: Links points to a location not present in target file

$
0
0
Hi: I am very new to epub creation. New to Sigil. New to forum posting.

Please let me know, if I have not posted in correct place.

I ran the epubchecker on my new epub and receive many many errors. Very disheartening given I thought it was wonderful before running this epub checker.

The problem is now, I dont understand how to fix. Lets take the most common one "Links points to a location not present in the target file" Given I created this epub by taking the html from web page, I did expect errors, but not many many.

By word Link, I am assuming epubchecker mean a HTML is not correct sytax (?ill formed) rather than an actual URL link (hyperlink) not working.

for example
Code:

<div class="div1  "><a name="subj-ISBN-chapter-6-div1-1"></a>

<h2 class="titleHeading2"><p class="  " id="subj-isbn-chapter-6-p-892">Introduction</p></h2>

What of the above is the "link"?
How do I manually test a "link"? I am much better seeing things real live to understand mechanics.

If you think you can help me become less muddled -- I would value it very much. Thankyou.

Horrendous formatting...

$
0
0
Bought a new book the other day, and it seems to be some weird fixed layout which makes it impossible to read...

Every word has it's own set up spans etc...


Maybe some of you regex masters can salvage this, I'm actually thinking converting it to pdf and run it through Finereader... :rolleyes:



Code:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
        <head>
                <meta charset="utf-8"/>
                <meta content="width=420,height=595" name="viewport"/>
                <title>9789137154060-147</title>
                <link href="css/idGeneratedStyles.css" rel="stylesheet" type="text/css"/>
<meta content="urn:uuid:d6736828-9029-46f0-8f4e-838ca7e0a36b" name="Adept.expected.resource"/>
        </head>
        <body id="x9789137154060-147" lang="sv-SE" style="width:420px;height:595px" xml:lang="sv-SE">
                <div id="_idContainer466">
                        <img alt="" class="_idGenObjectAttribute-1 _idGenObjectAttribute-2" src="image/1.png"/>
                </div>
                <div class="Enkel-textram" id="_idContainer467">
                        <div style="width:5782.68px;height:589.61px;position:absolute;top:0px;left:0px;-webkit-transform-origin: 0% 0%; -webkit-transform: translate(0px,1px) rotate(0deg) scale(0.05);transform-origin: 0% 0%; transform: translate(0px,1px) rotate(0deg) scale(0.05);">
                                <p class="Allm-nt-styckeformat ParaOverride-1"><span class="CharOverride-15" id="_idTextSpan32802" style="position:absolute;top:146.54px;left:5516.68px;letter-spacing:-0.63px;">147</span></p>
                        </div>
                </div>
                <div id="_idContainer468">
                        <div style="width:5782.68px;height:9070.87px;position:absolute;top:0px;left:0px;-webkit-transform-origin: 0% 0%; -webkit-transform: translate(0px,1px) rotate(0deg) scale(0.05);transform-origin: 0% 0%; transform: translate(0px,1px) rotate(0deg) scale(0.05);">
                                <p class="Kapitelnummer ParaOverride-1"><span class="CharOverride-16" id="_idTextSpan32803" style="position:absolute;top:608.94px;left:2380.64px;letter-spacing:0.53px;">KEPITEL 6</span></p>
                                <p class="Kapitelrubrik ParaOverride-1"><span class="CharOverride-17" id="_idTextSpan32804" style="position:absolute;top:1146.1px;left:1647.97px;letter-spacing:-1.61px;">Hoor </span><span class="CharOverride-17" id="_idTextSpan32805" style="position:absolute;top:1146.1px;left:2433.83px;letter-spacing:-1.3px;">möter </span><span class="CharOverride-17" id="_idTextSpan32806" style="position:absolute;top:1146.1px;left:3651.52px;letter-spacing:-2.8px;">doo</span><span class="CharOverride-17" id="_idTextSpan32807" style="position:absolute;top:1606.1px;left:1239.79px;letter-spacing:-3.86px;">oomfärldens </span><span class="CharOverride-17" id="_idTextSpan32808" style="position:absolute;top:1606.1px;left:3504.02px;letter-spacing:-2.54px;">kref?</span></p>
                                <p class="Underrubrik-kapitel ParaOverride-1"><span class="CharOverride-19" id="_idTextSpan32809" style="position:absolute;top:2214.14px;left:1514.99px;letter-spacing:0.68px;">Tre-a </span><span class="CharOverride-19" id="_idTextSpan32810" style="position:absolute;top:2214.14px;left:1870.41px;letter-spacing:5.58px;">sätt </span><span class="CharOverride-19" id="_idTextSpan32811" style="position:absolute;top:2214.14px;left:2287.82px;letter-spacing:5.34px;">itt </span><span class="CharOverride-19" id="_idTextSpan32812" style="position:absolute;top:2214.14px;left:2608.28px;letter-spacing:5.12px;">hoontera </span><span class="CharOverride-19" id="_idTextSpan32813" style="position:absolute;top:2214.14px;left:3388.53px;letter-spacing:5.27px;">ferdegee-a</span></p>
                                <p class="noindent ParaOverride-1"><span class="CharOverride-11" id="_idTextSpan32814" style="position:absolute;top:3420.12px;left:0px;letter-spacing:-0.5px;">Kommer </span><span class="CharOverride-11" id="_idTextSpan32815" style="position:absolute;top:3420.12px;left:839.93px;letter-spacing:-0.39px;">doo </span><span class="CharOverride-11" id="_idTextSpan32816" style="position:absolute;top:3420.12px;left:1122.98px;letter-spacing:-0.47px;">ihåg </span><span class="CharOverride-11" id="_idTextSpan32817" style="position:absolute;top:3420.12px;left:1556.48px;letter-spacing:-0.5px;">testet </span><span class="CharOverride-11" id="_idTextSpan32818" style="position:absolute;top:

Code:

#_idContainer002 {
        -webkit-transform:translate(-14.174px,-64.257px) rotate(0.000deg) skew(0.000deg) scale(1.000,1.000);
        -webkit-transform-origin:0% 0%;
        height:793.47px;
        left:0px;
        position:absolute;
        top:0px;
        transform:translate(-14.174px,-64.257px) rotate(0.000deg) skew(0.000deg) scale(1.000,1.000);
        transform-origin:0% 0%;
        width:499.95px;
}

span.CharOverride-22 {
        color:#ffffff;
        font-family:"Circular Std Black", sans-serif;
        font-size:220px;
        font-style:normal;
        font-weight:900;
}

div._idGenObjectStyleOverride-1 {
        border-bottom-left-radius:12px;
        border-bottom-right-radius:12px;
        border-style:dotted;
        border-top-left-radius:12px;
        border-top-right-radius:12px;
}

The image is how Calibre shows the ebook. As a epub on my Kobo is shows words sprinkled about on the page. Absolutly worthless.

What monstrous program makes this?

Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	N/A
Size:	30.1 KB
ID:	182004  

My own eBook in Moon Reader: Missing Chapters in Moon Reader

$
0
0
Hi,

i've created some eBooks in epub format and have some problems when reading the files in Moon Reader. There is a function in Moon Reader where i can see the chapters and bookmarks (if created). When i go to the "chapter view" in Moon Reader there are some chapters but they have all the same name and the name is the file name of the epub file. Some of them are linking to the beginning of a chapter some not. Is there a file in the epub thats used by Moon Reader to get the chapter information?

Thankx,
abraum

pinch/zoom for epub

$
0
0
Am I able to set a page so that pinch/zoom works on mobiles?

Reader support of EPUB3, :target, popups

$
0
0
I've just finished the body of my book in Sigil in Epub3. It passes epubcheck with no errors and only a couple of trivial warnings. It looks great in several readers I've tried.

I'm now experimenting with a few features I'd like to add, and these include (1) use of :target for highlighting citations in the References section, (2) Tooltips, and (3) popup notes.

I haven't tried the popup notes yet, but I have the :target stuff and the tooltips working in my Sigil version (and displaying as expected in Sigil's Preview window). However, when I move the book into either Calibre or Adobe Digital Editions, the tooltips work, but the :target code fails (all it attempts to do is to highlight by setting the background color). It does jump to the link target, but the background isn't changed.

What's going on here? Do these readers just not support :target?

I'm doing these simple "pre-tests" before I invest time in coding up a lot of this stuff for my intended Kindle edition. But now I'm concerned about support. I know that Kindle at least supports popup notes (I have a Kindle book in which those work fine -- so I know it can be done).

But what's the problem I'm running into with :target in Adobe Digital Editions (4.5) and Calibre?

epub3 / Apple Books Issue

$
0
0
Hi everyone. Building an epub3 with Sigil. The epub opens well with Digital Editions (everything works perfectly). The file also converts and looks great on Kindle Preview (and passes Pagina's epubcheck).

BUT: When I test it with Apple Books, it opens great on the mac version but has a serious problem on the iPad/iPhone: The TOC that Books generates sends every link (chapter 1, 2, 3, etc) straight to the book cover.

Pulling my hair out and wondering if anyone has any advice?

Thanks so much.

XHTML img shrinked in tables only on ereader

$
0
0
I have this basic XHTML file, with a table that displays images in the first column (images size is roughly 64x64 pix) and some text in the second column.

Code:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <link href="../Styles/style.css" rel="stylesheet"/>
</head>
<body>
  <table>
    <tbody>
      <tr>
        <td><img src="../Images/A.png"/></td>
        <td><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sapien tortor, malesuada convallis mi quis, mattis porta eros. Integer sed massa et felis aliquam interdum eget sed massa. Vestibulum luctus, lacus in posuere consectetur, neque orci maximus lectus, tristique aliquam tortor nulla id lacus. Sed tempor auctor felis at vulputate.</p></td>
      </tr>
      <tr>
        <td><img src="../Images/D.png"/></td>
        <td><p>Donec pretium dapibus felis at vestibulum. Morbi posuere mauris ac facilisis sollicitudin. Praesent iaculis mauris molestie ante cursus, sit amet ornare velit viverra. Cras dictum sollicitudin erat, mollis tempus orci hendrerit sit amet.</p></td>
      </tr>
    </tbody>
  </table>
</body>
</html>

Opening the file in a browser, images in the first column are displayed full size. If I shrink the window, or force tablet/smartphone view in the browser, images are still displayed full size.

I added the file to an epub. Opening it with an ebook reader (Calibre default one) I see everything like in the browser (i.e. full size images).

I've uploaded the epub on my erader device (an old Kobo Touch). Here images are shrinked to a very small size.

Why is this happening?

Could it be an ereader problem? Likely. Any HTML/css trick to force full size?

I've tried to add this to the css file

Code:

table img {
  height: 100%! important;
}

Still no luck, the images are shrinked.

Declaring Different Versions of One Font

$
0
0
I'm making an ePub using the Vollkorn font, and I wound up deciding to use the semi-bold version instead of the bold version for my <strong> text, so I made my @font-face declarations as usual.

Code:

@font-face {
  src: url(../Vollkorn-Regular.ttf);
  font-family: "Vollkorn";
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
}
@font-face {
  src: url(../Vollkorn-Italic.ttf);
  font-family: "Vollkorn";
  font-weight: normal;
  font-style: italic;
  font-stretch: normal;
}
@font-face {
  src: url(../Vollkorn-SemiBold.ttf);
  font-family: "Vollkorn";
  font-weight: bold;
  font-style: normal;
  font-stretch: normal;
}
@font-face {
  src: url(../Vollkorn-SemiBoldItalic.ttf);
  font-family: "Vollkorn";
  font-weight: bold;
  font-style: italic;
  font-stretch: normal;
}

However, Calibre is throwing up an error because the proper font-family name for the semi-bold fonts is "Vollkorn Semi-Bold".

This is probably a very minor problem but I do want to get it cleared up.

What's the best practices way to declare all these fonts and tell the <body> to use them to get rid of the error?

Broken EPUB (missing files): JPEG Image not listed in manifest

$
0
0
General Problem
I keep getting an error message when I try to upload my EPUB file on Smashwords:

"File 'Illirium_Map_There_was_Music.jpg' in EPUB not listed in manifest! Your .epub file is missing one or more elements in its manifest. . . ."

After extensive review, and scouring the internet for troubleshooting solutions, I cannot figure out how to resolve this. I have run the EPUB through another EPUB Validator, which finds no errors (see attached screenshot), and reviewed the manifest manually using Calibre (via the content.opf listing - see attached screenshot), which shows the image in question as part of the manifest - with consistent naming. Moreover, the files are clearly listed in the directory, and no other aggregator site has raised this problem with the exact same EPUB file.

Smashword Response, Part 1
I contacted the Smashword Service Team, and using my actual EPUB file, a member reviewed it with their tech team. He responded:

"I had our techies take a look at the EPUB and they suspect it's due to the formatting of the underlying HTML for that particular file in your EPUB manifest. Specifically, they suspect it's due to the "../" in the HTML for the file in question:

<item id="id1" href="../Illirium_Map_There_was_Music.jpg" media-type="image/jpeg"/>

By contrast, your other elements include the exact directories, e.g.:

<item id="image_cover" href="Images/d84614660b3bc605c904b4cb49ac72bc55c6934e_smallRaw. jpg" media-type="image/jpeg"/>

<item id="content_8_part-2-wilderness" href="Text/8_part-2-wilderness.xhtml" media-type="application/xhtml+xml"/>

Updating the href attribute to explicitly include the entire directory will likely fix the issue.

Question about Calibre
I originally entered that image using Calibre, while the rest of the EPUB was generated by Reedsy, the former took the complete file name "Illirium_Map_There_was_Music" and added the ".../" preceding it for some reason. I've tried removing and re-adding the image file a couple times, but the same result occurs.

Trying to edit the ePUB manually, I do not appear to be able to change the registry listing (i.e. removing the ".../") without creating a link error within the EPUB, which removes the image.

Smashword Response, Part 2
Inquiring further about this, the representative responded:

You'll need to move the image out of the root directory into the oebps directory, and update the link to the image everywhere it's used through out the book as well as the manifest.

Lingering Question
Does anyone know how to do this, if that is indeed the problem? Or is there something else I am missing? Again, this error has not come up with any other eBook aggregator.

Thank you very much for your time and help.

Attached Thumbnails
Click image for larger version

Name:	Smashwords Error (9-29-20).jpg
Views:	N/A
Size:	179.7 KB
ID:	182359   Click image for larger version

Name:	EPUB Validator Results (9-39-20).jpg
Views:	N/A
Size:	93.2 KB
ID:	182360   Click image for larger version

Name:	Manifest Validation (9-29-20).jpg
Views:	N/A
Size:	393.5 KB
ID:	182361  

wrong order in epub

$
0
0
I generated epub file from big collection of htmls. (via calibre)
Toc.ncx was manually generated in Calibre's editor and correct order.
Files themselves are not in correct order.
spine in metadata.ofx is also not in correct order.

Calibre's epub reader doesn't read book in correct order but shows toc.

Moon+ ignores toc.ncx


how to re-order book's files and spine according to order in toc.ncx? (it's difficult to move around approx 100 files with names like index-<3 random digits>.html )

Replacing All Tags Of One Kind With Another

$
0
0
I've gotten into the habit of using <span class="bold"> for bold text because someone told me a long time ago that <b> was deprecated. It's lately become clear to me that this was incorrect and I should probably be using <strong>.

Is there a way to replace every instance of that particular <span> tag in an ePub, including the closing tag with a <strong> tag, other than doing it all manually?

Lines split in half in e-book reader

$
0
0
After editing epub books in Sigil I usually read them in Calibre on my computer. Some books will show at the bottom of the page only the upper part of the line with the bottom part cut off, while the bottom part of the same line will be shown on the top of the next page with the top part cut off. I would very much like to know if there is a method to avoid such awkward behavior from happening. I've tried a few tricks, like adding margins to the css @page rule or to the body section, but to no avail. The funny thing is that the vast majority of epubs never show this problem, while some do and when they do they usually show them in copious amounts. I've added two sample images to clarify the problem. It's a nuisance that has irked me for years. I hope there is a solution. Thank you.

Attached Thumbnails
Click image for larger version

Name:	Sample78.jpg
Views:	N/A
Size:	22.6 KB
ID:	182415   Click image for larger version

Name:	Sample79.jpg
Views:	N/A
Size:	13.8 KB
ID:	182416  

Error when uploading to vendor platforms, and a question about editing the OPF file

$
0
0
Kia ora,

I am new to ePub. I'm a graphic designer with some rudimentary html skills, but definitely flying blind in terms of fiddling with code. So much so that I don't really know where to put this question, so sorry if it's in the wrong place.

I have been working on a fixed layout ePub for a design journal. (I should note here that yes, it does need to be fixed not reflowable as it contains several visual essays where the authors have specific requirements around layout – my preference would have been for it to be web-based or in a native app, but that isn't my call :)).

It was produced in InDesign and is generally working well. I ended up finding Calibre as I needed a way to resize a heap of pngs that InDesign generated for visual elements like text underlines and overrules – these were causing a problem with vendor platforms as though they are tiny in kb terms, the dimensions of some of them exceeded 4 million pixels. What a headache.

Anyway I worked through that, and now have a single error:

ERROR ITMS-9000: Invalid prefix attribute in root (package) element of the OPF file. Please supply a prefix attribute with valid rendition value in root <package> element of the OPF file

I found the OPF file in 'edit file' and the package bit reads:

<package xmlns="http://www.idpf.org/2007/opf" version="3.0" unique-identifier="bookid" prefix="ibooks: http://vocabulary.itunes.apple.com/r...xtensions-1.0/ calibre: https://calibre-ebook.com">

I tried to swap this out for content from an OPF file where this error was not occurring (but the image issue persisted), and saving it:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<package version="3.0" xmlns="http://www.idpf.org/2007/opf" unique-identifier="bookid" prefix="rendition: http://www.idpf.org/vocab/rendition/# ibooks: http://vocabulary.itunes.apple.com/rdf/ibooks/vocabulary-extensions-1.0/">

But when I reopen the editor, it looks like Calibre strips that out and reverts it to the original.

Any suggestions about what's wrong with that package element? (I have no idea what a prefix attribute is or what is should look like!) And how can I maintain the changes that Calibre seems to want to remove?

Any advice appreciated, especially if it's basic enough for my non-expert skills!

:thanks:

How To Get H1 Chapter Titles To Show Like This?

$
0
0
EXAMPLE: https://imgur.com/uVySKKY

Hi everyone, I am using Jutoh Plus to create my book and I would like my Chapter Headings to look like the one above. Jutoh Plus allows near complete control over HTML and CSS so I am wondering if I can add a bit of CSS code to H1 section to get them to look like this?

Can anyone help please?

It will be much appreciated. :)

Customized Navigation within ePub eBook

$
0
0
Hello Guys,

Looking for expert advice for having customized navigation. It goes like that; I have a complex book in which chapters are interlinked and I want to direct readers from one specific page to another and then back to another specific page. All such pages have a reference for each other and I want the reader to be able to go to specific reference and if there's another reference on that page, then go there as well. These references are not like footnotes or endnotes, instead, they refer to the entire chapter.

What I want is some custom solution to embed without relying on the reading system's own navigation (i.e. Table of Contents).

Any suggestions or advice will be greatly appreciated.

Problem with Apple Books Default View (EPUB 3)

$
0
0
I am a freelance graphic designer and a long term client of mine decided he wanted to release a series of ebooks for his business so i have taken it upon myself to teach myself sigil, css, html, and so forth over the last couple weeks to put together his first book.

He loves ALMOST everything about it. The only real problem he has is how apple books (his prefered standard) views the image by default. So I went in and forced some things in the code such as using his font of choice and some control over things like spread to try to make him happy. The only thing left is his complaint that when the file is openned for the first time it appears in two-page-view with two columns (which is a problem due to some heirarchial coding examples he has in the book not being legible.

I know that the user end solution is to just boost the font size up one time in the app and we're good, but I've spent several days now trying everything I can think of to alter that value by default. for such a simple thing I have fallen all the way to considering pre-paginaiton, but that would require a full rebuild of the book and if we're not going to enjoy the customization of reflowable media we should just build the thing in pdf if we want control.

I've been altering meta data and odf pages for three nights straight and i'm losing my mind. please please please, does anyone have any idea how to just have it open up in single-page-view on first open? I looked into center-column and everything I can think of and he's started to get impatient.

Thank you,
Shane Klink

Where do displayed chapter titles come from?

$
0
0
I have some text file renderings of books that I'm running through a python script to break up into chapters and generate epubs. I'm just getting started, but so far, I break it up and format the content into chapter html files, generate container.xml and content.opf, then zip it up along with a standard css file. Still to do is to generate a table of contents and add a cover image.

When I load the epub (using calibre, which is converting to kepub) onto my Kobo Libra, it looks great, except that the chapter titles shown are the actual html filenames. In each hmtl file I have a <title> tag in the header (with "Chapter One", "Chapter Two", etc.), which is where I assumed it would get this data, but apparently not.

My content.opf is pretty simple, along with headers and metadata, it looks like:
Code:

  <manifest>
    <item href="chapter00.html" id="chapter00" media-type="application/xhtml+xml"/>
    <item href="chapter01.html" id="chapter01" media-type="application/xhtml+xml"/>
  </manifest>
  <spine>
    <itemref idref="chapter00"/>
    <itemref idref="chapter01"/>
  </spine

Does it require a toc? Or is there something additional I can add to the manifest items?

Bottom of Page

$
0
0
If I am dealing with some front matter and I wish to 'bottom-justify' a few lines of text, is there html, which will do that, or do I add blank lines until I think I may possibly, maybe be at the bottom of the page?
.
.
.
.
Like this stuff here
Assume it's at the bottom of a page
.
And this
Here :cool:

Description often trimmed

$
0
0
I am not sure this is the right subforum but could not find any better, moderators, feel free to move or delete.

Frequently, when I get ebooks from sources that do not really respect copyright much (mobilism forums, libgen), I notice the ebooks have trimmed description at around 1000 characters (looks like a word below 1024) when it stops in mid-sentence by three dots. In practise, it is this tag:
Code:

<description xmlns="http://purl.org/dc/elements/1.1/"
Is there any tool that routinely trims this field? Or is there indeed a limit on the length of this tag?

Trying to add space in EPUB document

$
0
0
Hi

I think what I'm trying to do is probably quite simple but I can't for the life of me figure it out. In InDesign CC 2020 I need to add space above the text on an ebook title page, and also I need to add some space above each of the chapter headings.

For the title page, I've tried Object Export Options > Custom Layouts > Space Before but no matter what value I input it has no effect - the text still appears at the top of the page on the exported EPUB.

For the space at the start of each chapter, I've tried adding things in the paragraph style but it seems lots of information gets discarded on export to EPUB.

Hopefully someone has a solution!
Viewing all 1882 articles
Browse latest View live