Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 12-30-2016, 01:15 PM   #1
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
ToC - Page numbers to the right



In ToC titles should appear left side, page numbers right side. How to do?

HTML
Code:
<div id="textbox">
  <p class="alignleft">Title A</p>
  <p class="alignright">10</p>
</div>
<div id="textbox">
  <p class="alignleft">Title B</p>
  <p class="alignright">20</p>
</div>
<div style="clear: both;"></div>
CSS
Code:
.alignleft {
  float: left;
}
.alignright {
  float: right;
}
Works fine in calibre file preview - but not in my e-reader.

Last edited by chaot; 01-03-2017 at 06:19 AM. Reason: remove HTML & CSS from code box
chaot is offline   Reply With Quote
Old 12-30-2016, 03:25 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
The viewer in Calibre tolerates a lot more than valid EPUB.

Complain to you e-reader creator. This is not a Calibre problem.
theducks is offline   Reply With Quote
Advert
Old 12-30-2016, 03:31 PM   #3
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,167
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
I'm not sure why you even want to include page numbers in the first place...
PeterT is offline   Reply With Quote
Old 12-30-2016, 03:38 PM   #4
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
This sort of thing isn't really a calibre editor question and would be better asked in either the Workshop or ePub forum.

Looking at your code, I think that you need add a "clear: both" after each left/right pair for this to work properly.

I agree with others that what you are trying to do is odd.

ETA: A word processor is a better tool for book authoring in general. An ePub editor is better used for tweaking after conversion from an authoring format.

Last edited by jhowell; 12-30-2016 at 03:41 PM.
jhowell is offline   Reply With Quote
Old 01-02-2017, 11:19 AM   #5
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Quote:
Originally Posted by PeterT View Post
I'm not sure why you even want to include page numbers in the first place...
In a ToC we got normally titles or subtitles and page numbers. Even if page numbers in an EPUP isn't the most important, I use them for orientation.
Anyway, the names are only "placeholders".

The question is: How to get something to right and to left side - in the same line?
chaot is offline   Reply With Quote
Advert
Old 01-02-2017, 11:31 AM   #6
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Quote:
Originally Posted by jhowell View Post
Looking at your code, I think that you need add a "clear: both" after each left/right pair for this to work properly.
I will try!

Quote:
I agree with others that what you are trying to do is odd.
Would you please explain, what you mean with that!
chaot is offline   Reply With Quote
Old 01-02-2017, 12:25 PM   #7
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,167
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Why not just make the Titles / Subtltles / entries in the TOC clickable?
PeterT is offline   Reply With Quote
Old 01-02-2017, 02:50 PM   #8
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by chaot View Post
Would you please explain, what you mean with that!
Just that it is a convention in most e-books to have the table of contents be a formatted list of chapter names, each linked to the proper place in the book without page numbers. Page numbers have very limited usefulness in e-books.
jhowell is offline   Reply With Quote
Old 01-02-2017, 03:06 PM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The problem with your putting page numbers is that they could be wrong. Changes in the font, line-height, and/or font size could cause your page number to be wrong. Incorrect page numbers just look silly and you look foolish for putting them there. Unless you know for sure that everyone reading your eBook will be using a program that supports ADE page number, putting in page numbers is a very bad idea.
JSWolf is offline   Reply With Quote
Old 01-03-2017, 07:23 AM   #10
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
To all!
Maybe we misunderstood ourselves here.

There is that quasi-automatically configured and clickable ToC from calibre.
In addition I will install here even several Indexes (List of contents). For the sake of clarity.

Calibre ToC had in Tolino before 55, now 15 pages, each with 8 entries. (55 pages with all headings, 15 only h1, h3 & h3). Also reduced 15 pages are a lot, which makes the overview difficult. Therefore several list of contents, clickable without page numbers. You convinced me!

Quote:
Originally Posted by jhowell View Post
Looking at your code, I think that you need add a "clear: both" after each left/right pair for this to work properly.
Sometimes things get mixed. Fact is that I've got some code (obviously not the above one) before in the calibre File Preview displayed correctly. Above code has an additional error: the identical id = "textbox".

HTML
Quote:
<h3>Index</h3>

<div id="textbox1">
<p class="alignleft">Subtitle A</p>
<p class="alignright">10</p>
</div>
<div style="clear: both;"></div>
<div id="textbox2">
<p class="alignleft">Subtitle B</p>
<p class="alignright">20</p>
</div>
<div style="clear: both;"></div>
CSS as above.

Now it works also in Tolino, but with 2 empty lines between each entry. Unacceptable!

Quote:
ETA: A word processor is a better tool for book authoring in general. An ePub editor is better used for tweaking after conversion from an authoring format.
I use gedit and LibreOffice. Better choice!? (Linux fan)

Last edited by chaot; 01-03-2017 at 07:26 AM.
chaot is offline   Reply With Quote
Old 01-03-2017, 10:02 AM   #11
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
IMHO gedit is the Notepad of Linux. a TEXT editor, useful for simple code (view) touchup

OO/LO is a word processor. Used properly (within the constraints e-books allow), it is more of the 'Authorial' (WYSIWYG) tool
theducks is offline   Reply With Quote
Old 01-03-2017, 02:39 PM   #12
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaot View Post
Quote:
ETA: A word processor is a better tool for book authoring in general. An ePub editor is better used for tweaking after conversion from an authoring format.
Precisely

Quote:
Originally Posted by theducks View Post
OO/LO is a word processor. Used properly . . . it is more of the 'Authorial' (WYSIWYG) tool


@chaot - if you use Libre Office as a Word Processor (rather than a typewriter)**, save it as DOCX, and import into the calibre editor or into Sigil via its DOCX Input plugin, you should be able to dramatically reduce the amount of work you'll need to do in an ePub editor.

** Conversion from DOCX to ePub (via whatever means) works best if you do the formatting via your Word Processor's Styles & Templates features.

BR
BetterRed is online now   Reply With Quote
Old 01-04-2017, 03:41 AM   #13
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Quote:
Originally Posted by BetterRed View Post
@chaot - if you use Libre Office as a Word Processor (rather than a typewriter)**, save it as DOCX, and import into the calibre editor or into Sigil via its DOCX Input plugin, you should be able to dramatically reduce the amount of work you'll need to do in an ePub editor.

** Conversion from DOCX to ePub (via whatever means) works best if you do the formatting via your Word Processor's Styles & Templates features.
Thanks! I'll try that out. Currently I am doing ¿slightly? different, LibreOffice via .odt files. Anyway, I will report about (in some time later).
chaot is offline   Reply With Quote
Old 01-04-2017, 04:53 AM   #14
faltradl
Guru
faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.
 
Posts: 602
Karma: 1712372
Join Date: Feb 2013
Location: germany
Device: PocketBook Touch
Quote:
Originally Posted by chaot View Post
In a ToC we got normally titles or subtitles and page numbers. Even if page numbers in an EPUP isn't the most important, I use them for orientation.
Anyway, the names are only "placeholders".

The question is: How to get something to right and to left side - in the same line?
The big problem is in ebooks pagenumbers aren't fix. It depends on the size of the display and the chosen font size. So the pagenumbers can't be part of the ToC.

It's part of the readersoftware to show the pagenumbers in the ToC. I don't know why most readersoftware do not show pagenumbers.

I use CoolReader, which ist showing pagenumbers in the ToC. The real pagenumbers. It is calculating them dynamic. Perhaps when opening the ebook, oder when calling the ToC.
faltradl is offline   Reply With Quote
Old 01-04-2017, 05:28 AM   #15
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
The calibre configured Table of contents shows via Edit Book no page numbers, but in the corresponding content list on my device. No matter, page numbers seem to be a small mystery, I have been trying for quite some time to come to the trick.

Quote:
the ebook, oder when calling the ToC.
Erkannt: Griaßdi!
chaot is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
autogenerated ToC and its page numbers Arkadian Conversion 3 09-15-2014 09:46 AM
Chapter Page Numbers Instead of Title Page Numbers TheArtfulDodger Devices 1 11-18-2013 01:08 PM
calibre EPUB->PDF: page numbers in printed TOC? dancal Conversion 13 06-13-2013 08:32 PM
Kindle (AZW3/MOBI) ebooks with "real page numbers" to PDF with same page numbers? abvgd Conversion 2 05-24-2013 01:24 PM
Removing TOC page numbers in MobiPocket Creator HTML Editor pstjmack Kindle Formats 0 10-29-2012 09:19 AM


All times are GMT -4. The time now is 02:10 AM.


MobileRead.com is a privately owned, operated and funded community.