Skip to main content

Questions tagged [html]

HyperText Markup Language - a group of markup languages created primarily to facilitate displaying rich-formatted content on the web.

Filter by
Sorted by
Tagged with
1 vote
1 answer
37 views

Explicit empty line in epub code what is the status of the support by current editors?

I opened an epub file created exporting an odf file written with a recent version of LibreOffice (7.3.6.2). All the empty lines are rendered with a space encoded as $#160; inside a span tag inside a p ...
1 vote
1 answer
38 views

Can you typeset documents in a universal markup language?

I was recently thinking about preparing a document, and if I could structure the information of that document in the most universal way possible. Ideally, document elements should be tagged as what ...
0 votes
0 answers
15 views

How to convert documentation site to book for printing

lets say i have a typical documentation website like https://docs.kernel.org/ but locally. It may or may not consist of frames, often a frame with the table of contents and a frame with actual ...
1 vote
1 answer
161 views

How to send a long web page to a Kindle device?

What's the simplest solution to send a long web page to a Kindle device? Normally I use five filters, but it sometimes barfs. In this case I'm guessing it's simply the size of the page. I'm ...
3 votes
2 answers
5k views

How to convert a html ebook to a pdf file?

Is there some program which can convert a html ebook (consisting of many html files located under different directories and linked to each other) to a pdf file? For example, some shell scripting (e.g. ...
0 votes
0 answers
20 views

CSS modal for epub with fallback

Our revised pure CSS modal works OK in virtually all eReaders I've tested (at least on the eReaders I needed to attain good results). The page code does have a very minor "onclick" JS. The ...
0 votes
1 answer
692 views

Why are epub .xhtml files saved as .html?

Why are ePub content files, which (as I understand) are to be interpreted as XHTML, saved with a .html file extension? I realize that they are interpreted correctly by readers in accordance with their ...
0 votes
2 answers
354 views

How to translate web pages to epub?

I have a Kobo H2O Aura ebook reader. It uses the getpocket application: I send the link of a web article from my registered e-mail address to a central getpocket address, and when I turn on my ebook ...
4 votes
3 answers
2k views

Join broken paragraphs Regex Sigil

I'm trying to edit some xhtml on Sigil. With the command "<p>([a-z]) I'm able to find all paragraphs that begin with lower case. That tells me that they shouldn't be separate from the previous ...
5 votes
2 answers
298 views

How do you make paragraphs break in iBooks or Nook?

I have just finished the long and arduous task of typesetting a book using quarkXpress2015. While everything is beautiful on-screen and as a PDF, things get ugly when exporting as ePub for ebooks. I'...
1 vote
1 answer
517 views

Can I expect one chapter per html file in an Epub?

Is this the rule or can I find several chapters in an html file? Having 1 chapter helps moving back and forth chapters or set bookmarks.
0 votes
1 answer
196 views

Calibre is changing HTML content while converting

I used Calibre to convert my HTML file to EPUB3 and check it with its viewer and I notice that a lot of syles are missing !!!! so I check the created ebook's files using calibre local editor and what ...
5 votes
6 answers
4k views

How can I create an ebook from existing HTML files?

I will be writing software that allows me to select stretching exercises, put them in order, and then create an ebook, one per page, and then use it on my kindle. I was hoping that my software could ...
69 votes
7 answers
58k views

How can I convert an HTML site into an ebook?

I'd like to create a .mobi file from a website like the Python Tutorial, to read on my Kindle. Is it possible to do it on Ubuntu?
2 votes
1 answer
984 views

writing inline footnotes for html to mobi conversion using calibre

I'm generating html code that I convert to .mobi format using Calibre. I have implemented endnotes with backlinks as follows: text.html: this is some text <a id="footnote1" href='footnotes/1....
3 votes
3 answers
709 views

ePub converter that saves in HTML5?

Does anyone have an ePub converter that actually saves in HTML5? I have tried Kotobee Author and Calibre but they save in HTML 4/XHTML. An update of the Mozilla Composer/SeaMonkey IDE (Internet ...
6 votes
1 answer
105 views

CircularFLO doesn't apply styles for live text

I do conversion with CircularFLO from .indd to .epub. The problem is that live text doesn't pick up styles. I have live text in my document but it is always Times New Roman. What am I missing? See ...
0 votes
1 answer
48 views

Hash (#) in filename loses chapter information when converted with calibre

I use calibre's ebook-convert to convert HTML files into MOBI files. I have found that if the HTML filename contains a hash-sign (#), then the "chapter structure" of the generated MOBI file is broken. ...
0 votes
1 answer
457 views

how to convert a wikibook to e-pub or mobi?

Not strictly a Kindle question, e-pub would work. PDF isn't suitable. How can I get a wikibook, in full, on my Kindle? Kindle support I know it's been a bit of time, but maybe it's time to ...
1 vote
3 answers
2k views

Can I use bold and italics tags?

I'm new to epubs; I'm wading through the InDesign tutorials and will then have to learn how to work with iBooks Author (and perhaps Sigil as well). Anyway, I ran into an unexpected snag in InDesign: ...
1 vote
0 answers
232 views

Automating <a href=""> Links (EPUB, HTML)

EDIT: Disregard this question, I solved it using regular expressions (I thought they wouldn't work in this scenario but they did) I'm working on a translation of a text which is divided into short, ...
3 votes
1 answer
233 views

Move image to top of the page (like LaTeX’s \begin{figure}[t])

Before I start, let me be clear about what I’m not trying to do: I’m not trying to keep particular text on the same page as an image. I’m not trying to force a page break before an image. That said, ...
1 vote
3 answers
983 views

section numbers in epub headings

I want to display chapter and section headings in an epub file (epub version 3.0) so that the titles preceded by the corresponding section numbers. Currently I am explicitly writing the section ...
1 vote
0 answers
227 views

xpath in the calibre editor

Abstract In some search operations in calibre one can use an xpath expression to get the values for particular tags, i.e. the following expression: //h:div[re:test(@class, "figbox", "i")] selects ...
1 vote
0 answers
316 views

Return links for Table of Contents list and in-book headings

I'm using Notepad++ to format my first novel in HTML before converting it to MOBI and/or ePUB. I've done the code to make the items on my Table of Contents into live links and they all take me to ...
2 votes
0 answers
2k views

How to split an EPUB into multiple files of one chapter if each chapter consists multiple html pages?

To separate an EPUB file to multiple file, I need to find all <h2 and replace them with <hr class="sigil_split_marker" /><h2. However, each element of a chapter is consisted in its own ...
5 votes
2 answers
1k views

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

I need a clarification regarding the link creation for <ol> list in the HTML page. Here is the example code for reference. <ol> <li>test</li> <li>test</li> </...
1 vote
0 answers
112 views

Selectively Pull HTML website book with ToC Links in Frames into an Epub? excluding library links & other books

This is related, but has some issues in working. How can I convert an HTML site into an ebook? Top > Website Menu Left Frame > Table of Contents (Multi Level Nested Tree with JScript I think) ...
5 votes
1 answer
214 views

Using the same javascript library several times in an ebook

I would like to develop responsive ebooks, and lucky me I found that iBook Author allows to include javascript in the books. This works through inserting the HTML widget in a small box to the text. ...
2 votes
2 answers
758 views

Paragraph margins: CSS vs br tags

I'm formating my fiction ebook using Sigil. For clarity between scenes/POV changes/scene breaks etc, I need to have certain margins between paragraphs. I decided I need three types of margins: short-...
1 vote
2 answers
260 views

How can I highlight visited anchors in an epub?

Suppose I insert the following anchor in an epub... <span id="horse"></span>The first horses in America . . . Then I insert a link in the index... Horse, in America, <a href="..Text/...
2 votes
2 answers
285 views

How to alternate row colors of tables in ePub files

Can anyone tell me how to create tables with alternating row colors in an epub? For example, I might want the default background color to be white, but every other row would have a light blue ...
5 votes
2 answers
3k views

How can I prevent a widowed/orphaned header?

I have a chapter that has brief information for each of the 50 states. Each section begins with a state's name in a h4 tag. When I preview my book, I sometimes see a header resting on the bottom of a ...
3 votes
1 answer
493 views

Importing XHTML Files into InDesign

I just watched a series of InDesign tutorials on Lynda.com. It looks relatively simple, but one thing I'm hung up on is importing content. I created my book as a website in Dreamweaver, so I could ...
1 vote
0 answers
168 views

Internal Links Between InDesign Documents Don't Work

First, a little background: I created a series of documents, each one representing a chapter in my book. Then I created a book and imported all the documents into it. It seems to be working OK; when I ...
4 votes
1 answer
341 views

Table headings that may repeat for several "pages"

I'm writing with Sigil an ebook with several tables, different sizes and extensions. Is there a code in HTML or CSS to have table headings row to repeat thru several "pages" (depending on how big is ...
1 vote
0 answers
223 views

How can I read local html files on my 1st Edition Nook?

I know that the 1st Edition Nook (OS version 1.7) does not have the capability to read .html files via the ebook reader. However, it seems to be able to read local .html files from the browser. I know ...
7 votes
4 answers
339 views

Software recommendation for writing ebook and exporting to multiple formats

I am thinking about writing and/publishing an ebook with the following in mind: It will contain code (needs proper formatting) I should be able to publish PDF and EPUB versions I might need to have ...
9 votes
1 answer
9k views

Any opensource or free css stylesheets for books?

I am creating epub using sigil. Every book has almost (if not all) same elements: Headings, paragraphs, images, tables, quotes, boxes, notes, footnotes, references, bibliography etc. I don't have a ...
1 vote
1 answer
187 views

Resize readium document if content body has changed

I have an interactive ebook that hides answers from the learner until he/she clicks a Show button. The show function then toggles an div element between display:none and display:block. All answers ...
1 vote
1 answer
2k views

Parsing an epub file and displaying its contents on a website?

I want to show my epub files on my site, so I'm thinking of creating my own reader in PHP. First I need to know how to read this file type. Can I show the HTML files that are in the epub directly in ...
1 vote
3 answers
461 views

How to find duplicate IDs in epub?

Chapter_1.xhtml: <div id="ch1_sec1"> <h1 id="level1">Section 1</h1> <p id="p1">paragraph1, see <a href="Chapter_1.xhtml#f1">fig 1</a></p> <figure id="f1"&...
5 votes
2 answers
67 views

Efficient way to colour code text?

For the purposes of learning Chinese, I want to write every character in a short novel in a colour that corresponds to its tone (pronunciation thing). The book is an epub, and I've been doing the html ...
15 votes
1 answer
4k views

what does the v5.0 in the name of an e-book file stand for?

I have seen various e-books on the Internet that have a (v5.0) in the name e.g. Charles Darwin - On the Origin of Species (v5.0).epub Initially I thought this had to with the version 5 of the ...
8 votes
1 answer
870 views

How can I toggle text reliably across all ereaders in an epub file?

I'm trying to make a multilingual ebook where I have two different translations of the same story. I'm trying to get it so that you can toggle the language by clicking on individual paragraphs. I ...
5 votes
4 answers
2k views

How to hide/delete/ignore a specfic span type

I am generating HTML output for ePub from LaTeX source. But, am having difficulty eliminating the "Chapter " at the start of each chapter. So, wondering if there is an easy way to tell the ...
2 votes
1 answer
2k views

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

I'm trying to use the pop-up footnotes for that are now supported by iBooks see here. I can get the pop ups to work and it has the text that I want, but for some reason the text in the aside is also ...
3 votes
2 answers
2k views

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

I want to distribute the e-book content, which has some HTML5 and Jquery features, securely by converting the whole HTML package into an EXE. Does any HTML Compiling software exists which has its own ...
7 votes
1 answer
260 views

What design patterns exist for responsive web design of ebooks?

What design patterns, best practice etc. exist for responsive web design of ebooks? I am creating an ebook with HTML5/CSS3/JavaScript that should be readable well at different devices (browser, tabled,...
8 votes
3 answers
2k views

Is there a detailed guide for creating an ebook for Kindle in HTML/CSS

I want to be able to create an ebook on my own for Kindle. I want to do this in HTML, and then later use KindleGen and KindlePreviewer for generating a .mobi file and previewing. I've looked around ...