Hot answers tagged

30 votes

How can I convert an HTML site into an ebook?

I prefer Calibre solution. Debian Calibre package come with ebook-convert utility. Grab HTML files from site by: $ wget -r -np -nc -k -c http://.../.../.. Locate your main HTML file (usually book....
user avatar
  • 401
16 votes

How can I convert an HTML site into an ebook?

I had the exact same problem for a long time. You can produce good results with Calibre, but I found the process was a bit involved. Instead I created a way to do this much more easily. It's a ...
user avatar
  • 161
7 votes

Any opensource or free css stylesheets for books?

Paul Salvette wrote an ebook formatting guide which I recommend. He wrote boilerplate css which you can view/download here: http://bbebooksthailand.com/bb-CSS-boilerplate.html His company has ...
user avatar
4 votes
Accepted

How to alternate row colors of tables in ePub files

You can use the following CSS rules to style respectively even or odd table rows (See the Example on W3schools): tr:nth-child(even) { background-color: #f2f2f2 } tr:nth-child(odd) { ...
user avatar
  • 6,066
3 votes

How can I convert an HTML site into an ebook?

I went nuts figuring this out. Developed mile long Xpath strings and what not. Then it turned out to be ridiculously simple. I am ignoring op systems in this answer... (a) for the conversion to epub ...
user avatar
  • 31
3 votes
Accepted

Software recommendation for writing ebook and exporting to multiple formats

Pandoc is your friend here. Pandoc can take your input file (LaTeX, markdown, other) and transform it to PDF, EPUB, HTML (and many more). Pandoc is cross-platform and free under the GPL, although ...
user avatar
3 votes

How to hide/delete/ignore a specfic span type

You can try to suppress both those tags using CSS in an included .css file (or inserting in the HTML code between <style> and </style>): span.titlemark, span.titlemark + br { ...
user avatar
  • 7,631
3 votes

How to hide/delete/ignore a specfic span type

If you have an html editor which supports wild card or RegEx search and replace like Adobe Dreamweaver you could delete these out of the source code very quickly. See image below- Also you can go to ...
user avatar
  • 742
3 votes
Accepted

Using the same javascript library several times in an ebook

The best practice is to store your .js script in a folder labelled JavaScript inside the .oebps folder, then have your HTML point to that script / directory whenever you need to employ it. I have to ...
user avatar
  • 742
3 votes
Accepted

How can I prevent a widowed/orphaned header?

According to this blog article, you should use the display: inline-block property on a div selector that encloses your header and paragraph. Here is an excerpt from the said article: If you set ...
user avatar
  • 6,066
3 votes

How can I prevent a widowed/orphaned header?

I would use h4 {page-break-after: avoid;} p { widows: 2; orphans: 2; } I think this works for Kindles as well as epubs. This is just example code. My guess is that this is structured content ...
user avatar
2 votes

Why does the text in my aside display in my ebook?

First of all, note that iBooks for OS X is very very buggy, and its behavior differs from iBooks on iOS with respect to many functions. Said that, note that "iBooks hiding <aside> elements" is ...
user avatar
2 votes

How to convert an HTML5 and JQuery featured E-book to an Executable file(exe), having inbuilt browser?

You actually want to build HTML5-based standalone desktop apps. You should try: App.js (http://appjs.com/) Tide SDK (http://www.tidesdk.org/) Node webkit (https://github.com/rogerwang/node-webkit) I ...
user avatar
  • 225
2 votes
Accepted

writing inline footnotes for html to mobi conversion using calibre

I've figured it out. To make the inline footnote works, must put the footnotes in the "Footnotes" section. Here is the example: I have the file: "HDN is the best.html" <html> ...
user avatar
2 votes

Software recommendation for writing ebook and exporting to multiple formats

I say this as something who doesn't normally use the product, but Adobe InDesign allows for an easy export into PDF and epub. I don't know about formatting code blocks though. Adobe ID has a monthly ...
user avatar
2 votes

Software recommendation for writing ebook and exporting to multiple formats

If you don't want the hassle of setting up the full LaTeX stack, as needed with the, in this respect, unfriendly pandoc, you can have a look at reStructured text and Sphinx. For these tools exists to ...
user avatar
  • 7,631
2 votes

Is it possible to create anchors in the numbers of an <ol> list?

Earlier in text: <a name="header1">Header 1</a> <a name="header2">Header 2</a> further down... <ol> <li><a href="#header1">item one</a></li> &...
user avatar
  • 367
2 votes

Can I use bold and italics tags?

I have never used Adobe Indesign, but I'm guessing that when they spit out html they use the italic and bold html tags. My guess is that in Adobe Indesign you are not seeing a separate font at all but ...
user avatar
2 votes

section numbers in epub headings

EPUB3 defines a profile for CSS which is pretty much a superset of CSS 2.1 and a subset of CSS 3. I haven't checked to see whether the CSS facilities mentioned are covered in the profile, but if they ...
user avatar
  • 21
2 votes

How can I create an ebook from existing HTML files?

You could also use Pandoc in conjunction with the kindlegen command-line tool. Converting your HTML files to Markdown files is not necessary but if done will allow (easier) conversion to other ...
user avatar
1 vote

section numbers in epub headings

First, that tutorial was interesting and useful. But I don't think that CSS is supported in kindle https://www.amazon.com/gp/feature.html?docId=1000729901 or epub. I could not even find that css in ...
user avatar
1 vote
Accepted

Importing XHTML Files into InDesign

After doing some more research, it appears that X/HTML files can NOT be imported into InDesign. The best you can do is use InDesign to create a framework for your epub, export it as an epub, then use ...
user avatar
  • 647
1 vote
Accepted

Table headings that may repeat for several "pages"

Great question. First, you should be making epub3 files because generally epub3 files work on epub2 reading systems. All epub2 readers can view epub3 files -- though perhaps not optimally. My ...
user avatar
1 vote

section numbers in epub headings

You should do it either as you do now, manually, or automated as part of the writing process using markdown, docbook etc, the reason being that most hardware readers are rarely up-to-date. Readers ...
user avatar
  • 11
1 vote

Resize readium document if content body has changed

I don't have much ability to answer your question (especially without seeing your code or knowing the required space in the viewport to hide or display). I'm aware of and have occasionally tested ...
user avatar
1 vote

Software recommendation for writing ebook and exporting to multiple formats

Some time ago I created a GitHub repository of eBook Writing Resources. Specifically, this is the current list (as of the time of writing this answer - visit the link above for an up-to-date list as ...
user avatar
1 vote

How to find duplicate IDs in epub?

Your best bet is to validate with EPUBCheck. That will catch dupe @ids and other errors. I use a command in Linux similar to: java -jar /home/epubcheck.jar book.epub -out errors.xml The errors.xml ...
user avatar
  • 185
1 vote

Efficient way to colour code text?

If you want to stick with EPUB, you can save space by giving each tone a class with a short name and defining the class's color in the CSS. So the example you gave would look something like this: <...
user avatar
  • 406

Only top scored, non community-wiki answers of a minimum length are eligible