Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Android Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 07-07-2014, 09:11 PM   #16
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,825
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by jackie_w View Post
Really? My Kobo for Android only offers 'Droid Sans Serif', 'Droid Serif' or 'Publisher Default' (which I'm assuming means embedded fonts). IMO life is too short to be embedding fonts so I only have a choice of 2. Have I missed something?
That's right. In Kobo for Android you only can select 'Droid Sans Serif', 'Droid Serif' or 'Publisher Default'. But as you had told me that by adding

Code:
body {font-family: serif}
ruined your kobo collections, I wanted to tell you that you still could use that property without danger.

Quote:
On the eink Kobos, my experience has been that if you code css as body {font-family: serif} then the Kobo is able to override with the user-selectable font-of-choice stored on the device. However, if instead the font-family is in a css class (e.g. .calibren {font-family: serif; ...} after a calibre conversion) then the eink Kobo can't override and uses its default serif font (Georgia) instead of the user-selected one.
Yes again. Regrettably Calibre has that drawback. I use it very little, I prefer to work with Sigil since allows me a cleaner css stylesheet. In the last case you indicated, you could open the epub in Sigil and by mean of S&R to erase in classes {font-family: serif; ...} and to add it in the body selector. Of that way you could have serif font in Kobo and also in Moon+ with "Preview with publisher formatting" enabled But all that with the only end of reading an ebook in Moon+ A lot of work Better let's use PocketBook or Mantano

Regards
Rubén
RbnJrg is offline   Reply With Quote
Old 07-07-2014, 11:52 PM   #17
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by RbnJrg View Post
Yes again. Regrettably Calibre has that drawback. I use it very little, I prefer to work with Sigil since allows me a cleaner css stylesheet.
Sigil is not an ebook converter, calibre is. When calibre converts books it changes the css. When you use the editor component of calibre, it acts just like Sigil -- it doesn't mess with your css.
eschwartz is offline   Reply With Quote
Advert
Old 07-08-2014, 08:46 AM   #18
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,825
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by eschwartz View Post
Sigil is not an ebook converter, calibre is. When calibre converts books it changes the css. When you use the editor component of calibre, it acts just like Sigil -- it doesn't mess with your css.
Yes, I know what Calibre is. But I use Sigil as an epub editor and -sometimes- to "convert" books (for example, to convert .txt to epub, to convert .html files to epub). To convert .doc and .rtf to epub I use Atlantis and after that I use Sigil to tweak the css stylesheet. As I said, Calibre as converter, made the css stylesheet not very clean.
RbnJrg is offline   Reply With Quote
Old 07-08-2014, 09:03 AM   #19
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
The point I was trying to make is that Sigil cannot convert book formats, and trying to compare the Sigil editor to the calibre converter is an apples-to-oranges comparison.

All Sigil can do is import html as a new book, and calibre's Edit Book can do that too. calibre will NOT convert when you do that, so the classes remain whole.

(Also, slightly , calibre editor can "import DOCX as a new book" and will convert without rewriting styles. Very nice.)

If you prefer Sigil because of the featureset and way of doing things, . If you are avoiding calibre editor because you're afraid it will munge the styles, that's a shame, because it doesn't.

Last edited by eschwartz; 07-08-2014 at 09:06 AM.
eschwartz is offline   Reply With Quote
Old 07-08-2014, 01:22 PM   #20
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,825
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by eschwartz View Post
If you prefer Sigil because of the featureset and way of doing things, . If you are avoiding calibre editor because you're afraid it will munge the styles, that's a shame, because it doesn't.
Maybe I don't know how to use it. Watch the .mobi file I attach; with it, I used the following css stylesheet:

Spoiler:

h1.title {
display: table;
text-align: center;
text-indent: 0;
font-size: 1.8em;
padding: 0.5em;
margin: 35% auto 0;
border-top: 3px solid black;
border-bottom: 3px solid black;
}

h2 {
font-size: 1em;
font-weight: bold;
text-align: right;
padding-top: 0;
margin: 0 0 3.5em;
}

.chapterHeader {
display: block;
position: relative;
height: 2.3em; /*2.25*/
border-bottom: 3px solid black;
margin: 0 0 1em;
background: white;
}

.chapterHeader .translation {
float: left;
padding: 0 0 0 5px;
margin: 0em 0 0 -0.2em;
font-size: 1.4em;
background: white;
}

.chapterHeader .count {
font-size: 1.8em; /*1.6* 1.4 */
padding-right: 0.2em;
position: relative;
top: 0.125em; /*0.14*/;
}

h2 + p {
text-indent: 0;
}

h3.section_title {
text-align: center;
}

p {
margin-top: 0;
margin-bottom: 0;
text-indent: 1em;
text-align: justify;
}

p.noindent {
text-indent: 0em;
}

sup {
font-size: 60%;
line-height: 50%;
}

div.verse {
padding: 1.0em;
}

span.dropcap {
font-size: 4em;
font-weight: bold;
float: left;
margin: -0.2em 0.125em -0.2em 0em;
text-indent: 0em;
}

.gap {
margin-bottom: 1em;
}

hr.sep {
margin: 2em 0 0.75em 0;
text-indent: 0;
width: 30%;
background-color: black;
color: black;
}

.note {
margin-left: 1.5em;
text-indent: -1.5em;
}

.asterism:after {
display: block;
text-indent: 0;
text-align: center;
font-size: 1.6em;
margin-top: 2.5em;
-webkit-transform: rotate(180deg);
content: "⁂"; /* ∴ ※ */;
}

div.aboutauthor {
text-align: left;
margin: 0 0 1em;
}

div.also {
text-align: left;
padding-top: 5%;
}

.author {
font-size: 1.3em;
font-weight: bold;
text-indent: 0;
text-align: center;
padding: 5% 0 0; margin: 0;
}

div.sgc-toc-title {
font-size: 1.6em;
font-weight: bold;
margin-bottom: 1em;
text-align: center;
}

div.sgc-toc-level-1 {
margin-left: 0em;
text-align: left;
}


And this is how it looks in my Kindle:

Click image for larger version

Name:	screen_shot-31557.gif
Views:	311
Size:	35.4 KB
ID:	125097

After loading that .mobi in the last version of Calibre and after converting it to .epub, I got the following css stylesheet:

Spoiler:
.aboutauthor {
display: block;
text-align: left;
margin: 0 0 1em
}
.aboutauthor1 {
display: block
}
.author {
display: block;
font-size: 1.25em;
font-weight: bold;
line-height: 1.2;
text-align: center;
text-indent: 0;
padding: 5% 0 0;
margin: 0
}
.calibre {
display: block;
font-size: 1em;
line-height: 1.2;
padding-left: 0;
padding-right: 0;
margin: 0 5pt
}
.calibre1 {
font-weight: bold
}
.calibre2 {
display: block;
text-align: justify;
text-indent: 1em;
margin: 0
}
.calibre3 {
font-style: italic
}
.calibre4 {
display: block;
list-style-type: disc;
margin-bottom: 1em;
margin-right: 0;
margin-top: 1em
}
.calibre5 {
display: list-item
}
.calibre6 {
display: block;
font-size: 1em;
font-weight: bold;
line-height: 1.2;
padding-top: 0;
text-align: right;
margin: 0 0 3.5em
}
.calibre7 {
font-size: 0.75em;
line-height: 1.2;
vertical-align: super
}
.calibre8 {
line-height: 1.2
}
.chapterHeader {
background: white;
display: block;
height: 2.3em;
position: relative;
border-bottom: black solid 3px;
margin: 0 0 1em
}
.count {
font-size: 1.2em;
line-height: 1.2;
padding-right: 0.2em;
position: relative;
top: 0.125em
}
.dropcap {
float: left;
font-size: 4em;
font-weight: bold;
text-indent: 0;
margin: -0.2em 0.125em -0.2em 0
}
.gap {
display: block;
text-align: justify;
text-indent: 1em;
margin: 0 0 1em
}
.noindent {
display: block;
text-align: justify;
text-indent: 0;
margin: 0
}
.note {
display: block;
text-align: justify;
text-indent: -1.5em;
margin: 0 0 0 1.5em
}
.note1 {
display: block;
text-align: justify;
text-indent: -1.5em;
margin: 0 0 1em 1.5em
}
.sep {
background-color: black;
color: black;
display: block;
height: 2px;
text-indent: 0;
width: 30%;
border: currentColor inset 1px;
margin: 2em 0 0.75em
}
.sgc-toc-level {
display: block;
margin-left: 0;
text-align: left
}
.sgc-toc-title {
display: block;
font-size: 1.375em;
font-weight: bold;
line-height: 1.2;
margin-bottom: 1em;
text-align: center
}
.title {
display: table;
font-size: 1.5em;
font-weight: bold;
line-height: 1.2;
text-align: center;
text-indent: 0;
padding: 0.5em;
border-top: black solid 3px;
border-bottom: black solid 3px;
margin: 35% auto 0
}
.translation {
background: white;
float: left;
font-size: 1.25em;
line-height: 1.2;
padding: 0 0 0 5px;
margin: 0 0 0 -0.2em
}
.verse {
display: block;
padding: 1em
}
.pcalibre:after {
-webkit-transform: rotate(180deg);
content: "⁂";
display: block;
font-size: 1.6em;
margin-top: 2.5em;
text-align: center;
text-indent: 0
}


And it looks in ADE of the following way:

Click image for larger version

Name:	Image2.png
Views:	309
Size:	91.1 KB
ID:	125096

As you can see, not only the Calibre css stylesheet is much complicated (and also the html files, all of them have more classes and <span> tags than the original files) but also the results are different from the original ebook.

BUT, if you unpack the .mobi I attach with KindleUnpack (MobiUnpack) you'll have an .epub with exactly the same original css stylesheet and the resulting epub looks as:

Click image for larger version

Name:	Image1.png
Views:	297
Size:	90.3 KB
ID:	125095

Of course, as I said before, maybe I get those results because I don't know how to use Calibre to get a perfect conversion with clean .html and .css files.

Regards
Rubén
Attached Files
File Type: mobi El signo de los cuatro - Arthur Conan Doyle.mobi (1.12 MB, 212 views)
RbnJrg is offline   Reply With Quote
Advert
Old 07-08-2014, 04:26 PM   #21
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by RbnJrg View Post
Of course, as I said before, maybe I get those results because I don't know how to use Calibre to get a perfect conversion with clean .html and .css files.

Regards
Rubén
I did not say you can convert with calibre and get clean html+css. I said if you take the clean EPUB that you got from KindleUnpack and open in calibre editor (Edit Book), it serves the same functionality as Sigil. And Edit Book, when fed an EPUB, does not munge the css any moe than its equivalent, Sigil, does.

calibre != Sigil
calibre editor = Sigil

When you said:

Quote:
Originally Posted by RbnJrg View Post
Yes again. Regrettably Calibre has that drawback. I use it very little, I prefer to work with Sigil since allows me a cleaner css stylesheet.
I got the (mistaken?) impression you were comparing calibre-convert to Sigil editor. (Whereas convert is an entirely different matter that can be done through several means before editing.)

The only valid comparison to make is between Sigil and Edit Book
eschwartz is offline   Reply With Quote
Old 07-08-2014, 10:27 PM   #22
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: 79,864
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
When you use KindleUnpack to shift the code to an ePub, you need to then validate it with epuncheck 3.0.1 and fix any errors. Then one the errors are fixed, you'll have an ePub as close the the AZW3 as possible. Then you can do whatever you want once the code validates.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MOON+, "list by import time" not working iakovl Android Devices 3 06-15-2014 11:58 PM
Mystery and Crime McFadden, Tony "October Moon" V1 February 2012 tonymcfadden ePub Books 0 02-24-2012 02:44 PM
New "E-Book Devices" "Bookeen Opus" forum desired ericch Bookeen 3 08-06-2009 06:31 PM


All times are GMT -4. The time now is 01:19 PM.


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