Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 05-23-2014, 07:46 PM   #1
jocampo
Layback feline
jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.
 
jocampo's Avatar
 
Posts: 3,034
Karma: 6980745
Join Date: Nov 2010
Location: USA
Device: Oasis 2nd gen, Sony DPTS1, iPad Pro 10.5"
Does Amazon do some extra formatting on their books?

I buy most of my computer books from Amazon. Today, I didn't. I bought the same book from Microsoft Press just because it comes with PDF as well.

Boy! The MS press, which technically speaking is the same book, looks like crap, especially the TSQL code. Here's an example:

Click image for larger version

Name:	ImageUploadedByTapatalk1400888648.859505.jpg
Views:	324
Size:	180.0 KB
ID:	123279

And this is Amazon's sample:

Click image for larger version

Name:	ImageUploadedByTapatalk1400888687.361270.jpg
Views:	338
Size:	152.3 KB
ID:	123280

The MS version has italic and the font is "busy". The SQL code is in ugly pink.

To me, it seems Amazon is doing extra coding?

How I can fix this, via Calibre? The book is DRM free.
jocampo is offline   Reply With Quote
Old 05-24-2014, 09:49 AM   #2
elemenoP
Wizard
elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.
 
Posts: 1,717
Karma: 3790058
Join Date: Oct 2010
Location: NYC
Device: Kindle Paperwhite, Sony 650
In the example you posted, it looks to me like the first version (is it epub?) has LESS formatting than the Amazon version, not more. Both use a different font for the code, and the MS version ALSO changes the color. It's just that you don't like the aesthetic choices they made. (The pink makes the code stand out more, but I have to agree with you that I have never seen italic used to represent code, that's weird).

In order to change it, open in a text editor and see what the tags around the code samples are. Then you can try to set up a new CSS definition for that tag. That's the general idea.

eP
elemenoP is offline   Reply With Quote
Advert
Old 05-24-2014, 10:38 AM   #3
jocampo
Layback feline
jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.
 
jocampo's Avatar
 
Posts: 3,034
Karma: 6980745
Join Date: Nov 2010
Location: USA
Device: Oasis 2nd gen, Sony DPTS1, iPad Pro 10.5"
Does Amazon do some extra formatting on their books?

Quote:
Originally Posted by elemenoP View Post
In the example you posted, it looks to me like the first version (is it epub?) has LESS formatting than the Amazon version, not more. Both use a different font for the code, and the MS version ALSO changes the color. It's just that you don't like the aesthetic choices they made. (The pink makes the code stand out more, but I have to agree with you that I have never seen italic used to represent code, that's weird).

In order to change it, open in a text editor and see what the tags around the code samples are. Then you can try to set up a new CSS definition for that tag. That's the general idea.

eP

It's MOBI, no ePub. As a matter of fact, I've not seen yet an online store (not Amazon) selling computer books in ePub, but that's another story.

Anyway, so I need to change the CSS definition? Is that on one place?

You're right, is due aesthetic. I've never seen code in italic and pink. It's hard to read, at least for me.
jocampo is offline   Reply With Quote
Old 05-24-2014, 01:12 PM   #4
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Amazon doesn't format any books; the formatting is done by the publisher.
HarryT is offline   Reply With Quote
Old 05-24-2014, 05:04 PM   #5
jswinden
Nameless Being
 
Quote:
Originally Posted by jocampo View Post
It's MOBI, no ePub. As a matter of fact, I've not seen yet an online store (not Amazon) selling computer books in ePub, but that's another story.

Anyway, so I need to change the CSS definition? Is that on one place?

You're right, is due aesthetic. I've never seen code in italic and pink. It's hard to read, at least for me.
If the formatting was done in a manner which a sane person would have done it, then there might be a single CSS class definition for all code in the book, and each paragraph tag that contains code will have class="something" where something represents the class name. But if the creator of the mobi used an application like MS Word to create the book then had it generate HTML for the eBook, it will likely be a mess to correct. Even some of the large publishing houses turn out total garbage for eBooks by simply converting Word docs to HTML.

Personally I still prefer to see code represented in a monotype font.

ETA: I don't know about mobi7, but Amazon's KF8 format recognizes the HTML [CODE] tag. Seems to me it would be smart to use that tag for code in eBooks. The eBook creator could easily modify the results of the CODE tag via CSS. However, looking at your sample I doubt the eBook creator used the CODE tag.

Last edited by jswinden; 05-24-2014 at 05:11 PM.
  Reply With Quote
Advert
Old 05-24-2014, 05:25 PM   #6
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
O'Reilly books sells in every format, including ePub, .mobi, and pdf.
susan_cassidy is offline   Reply With Quote
Old 05-27-2014, 12:24 PM   #7
jocampo
Layback feline
jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.
 
jocampo's Avatar
 
Posts: 3,034
Karma: 6980745
Join Date: Nov 2010
Location: USA
Device: Oasis 2nd gen, Sony DPTS1, iPad Pro 10.5"
Quote:
Originally Posted by jocampo View Post
It's MOBI, no ePub. As a matter of fact, I've not seen yet an online store (not Amazon) selling computer books in ePub, but that's another story.

Anyway, so I need to change the CSS definition? Is that on one place?

You're right, is due aesthetic. I've never seen code in italic and pink. It's hard to read, at least for me.

So... Did the publisher create two formats? One for MS and other one for Amazon? That doesn't make sense.

By the way, MS press contacted me (I'm surprised, I wasn't expecting any follow up) they asked for screenshots and ISBN. They will investigate.
jocampo is offline   Reply With Quote
Old 05-27-2014, 12:27 PM   #8
jocampo
Layback feline
jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.
 
jocampo's Avatar
 
Posts: 3,034
Karma: 6980745
Join Date: Nov 2010
Location: USA
Device: Oasis 2nd gen, Sony DPTS1, iPad Pro 10.5"
Quote:
Originally Posted by susan_cassidy View Post
O'Reilly books sells in every format, including ePub, .mobi, and pdf.

True, but I they stopped selling MS press like one month ago; they even notified on front page. I'm guessing, but I think is because MS press will sell them by themselves now and they don't want competition.

The only other place where I can find MS books (ebook format) is Amazon. But I like the PDF as well. With the PDF I can work on my Mac and do exercises , using copy paste for the code, then execute on SQL 2012. That's hard to do with Kindle for Mac.
jocampo is offline   Reply With Quote
Old 07-20-2014, 07:49 AM   #9
Cady Heron
Junior Member
Cady Heron began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2014
Device: kindle
I know this is a slightly old thread but I figured I'd chime in. I'd be really interested in knowing if you ever got a reply back for them.

I think the second example looks like the typical display of one of the more basic kindles. They don't/didn't display pink text, just black and white. That is also the default font they used.

Maybe the publisher made a version that would display better on those kindles or simply used that example from one of the older kindles.
Cady Heron is offline   Reply With Quote
Old 07-20-2014, 02:14 PM   #10
rem736
purpose priority passion
rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.rem736 ought to be getting tired of karma fortunes by now.
 
Posts: 645
Karma: 9002000
Join Date: Jan 2010
Location: socal, usa
Device: sony prs-350, b&n ngp, rM2, kindle scribe, boox poke5
Quote:
Originally Posted by susan_cassidy View Post
O'Reilly books sells in every format, including ePub, .mobi, and pdf.
and once you buy the book, you can download in all formats, all drm-free.
rem736 is offline   Reply With Quote
Old 07-23-2014, 07:45 PM   #11
jocampo
Layback feline
jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.jocampo ought to be getting tired of karma fortunes by now.
 
jocampo's Avatar
 
Posts: 3,034
Karma: 6980745
Join Date: Nov 2010
Location: USA
Device: Oasis 2nd gen, Sony DPTS1, iPad Pro 10.5"
Quote:
Originally Posted by Cady Heron View Post
I know this is a slightly old thread but I figured I'd chime in. I'd be really interested in knowing if you ever got a reply back for them.



I think the second example looks like the typical display of one of the more basic kindles. They don't/didn't display pink text, just black and white. That is also the default font they used.



Maybe the publisher made a version that would display better on those kindles or simply used that example from one of the older kindles.

Yes. They even asked for screenshots, but nothing happens after that.
jocampo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cleaning up extra returns formatting mess momtodogs Workshop 5 05-20-2014 08:23 AM
Why define a paragraph as a span with no different or extra formatting? bfollowell ePub 7 03-16-2011 10:30 PM
Amazon no longer charges an extra $2 lene1949 General Discussions 24 10-29-2010 05:20 AM
[KOBO] Strip existing formatting to apply my own default formatting to all books digital_steve Calibre 2 08-10-2010 06:34 PM


All times are GMT -4. The time now is 05:40 AM.


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