Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 05-14-2015, 03:50 PM   #1
miz sue
Member
miz sue began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2011
Device: Sony PRS650
EPUB to MOBI - 2 errors: links and div tags

Hello!
I've been trying to search for an answer without a lot of success. If anyone can advise/help me, I'd so appreciate it. I received a cookbook in epub to fix up and then convert to mobi. I cracked open the epub and have been editing the css in dreamweaver.
Problem 1:
Each recipe is linked to the Content page. The headings were all blue, underlined links. I was able to change the css for the link to color:inherit and text-decorations:none. From there, I went to each subheading in the css and added color. This all worked great for epub. In the mobi, the links are still underlined but black (from the inherit). Can I get the headings to change color in the mobi same as I did in epub? Also, is there an easy way to remove the underline? There are 400 pages in this ebook set up in multiple files.
Problem 2:
There are TIP boxes created with div tags. There were splitting in the epub and I fixed it using display:inline-block and width:auto. So this keep it together and made each box the width of the screen. This approach did not continue into the mobi file. How can I correct the splitting and ensure each box is the width of the screen?
Thank you for any feeback!
Sue
miz sue is offline   Reply With Quote
Old 05-14-2015, 06:34 PM   #2
eschwartz
Suspended
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.
 
Posts: 12,028
Karma: 26723054
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Why are you converting to MOBI? Kindles will usually support the newer and more featureful AZW3, and any other device will read EPUB better than MOBI anyway.
eschwartz is offline   Reply With Quote
Old 05-14-2015, 09:32 PM   #3
miz sue
Member
miz sue began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2011
Device: Sony PRS650
Maybe mobi is too generic? Basically I take the ePub and run it through kindlegen then preview it. I'm trying to get it to look as close to the ePub as possible.
miz sue is offline   Reply With Quote
Old 05-15-2015, 06:23 AM   #4
Notjohn
Evangelist
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 460
Karma: 246998
Join Date: Dec 2012
Device: Kindle
Well, I don't use KindleGen, but upload my epub to the KDP and let it convert there. Though the file is called a "mobi" it actually contains two or three books: a Mobi 7 file for the older Kindles, a KF8 file for the newer ones, and sometimes the file you originally uploaded (depending I think on what that file was). The correct file will be delivered to the purchaser, depending on the device he's downloading to.

Unless altered somehow by your CSS, a hyperlink will show as blue in a Fire tablet but black in the grayscale Kindles.
Notjohn is offline   Reply With Quote
Old 05-15-2015, 02:11 PM   #5
mattmc
Member
mattmc has never been to obedience school.mattmc has never been to obedience school.mattmc has never been to obedience school.mattmc has never been to obedience school.mattmc has never been to obedience school.mattmc has never been to obedience school.mattmc has never been to obedience school.mattmc has never been to obedience school.mattmc has never been to obedience school.mattmc has never been to obedience school.mattmc has never been to obedience school.
 
Posts: 12
Karma: 44444
Join Date: May 2015
Device: All
Quote:
Originally Posted by miz sue View Post
Problem 1:
Each recipe is linked to the Content page. The headings were all blue, underlined links. I was able to change the css for the link to color:inherit and text-decorations:none. From there, I went to each subheading in the css and added color. This all worked great for epub. In the mobi, the links are still underlined but black (from the inherit). Can I get the headings to change color in the mobi same as I did in epub? Also, is there an easy way to remove the underline?
So the headings were blue and underlined, so you CSS'd them to be color:inherit and text-decoration:none. Then you went and re-CSS'd them to be color:blue or something? I don't totally get what you mean.

"In the mobi, the links are underlined, but black." Don't you want them to be black? I'm confused. Sorry

In any case, removing underlines from MOBI files is something I'd looked into quite a bit. You'll notice that KF8 doesn't really respect CSS like a{text-decoration:none}. I had to inline it and mark it important, like <a href="..." style="text-decoration:none !important">Link</a>.

Also, I know that readers that use KF7 are fast waning, but the way to remove underlines in that older format is with a special tag <mpb:nu>, like <a href="..."><mbp:nu>Link</mbp:nu></a>.

I ended up writing a script that processes my ePub to add this stuff in, before I send it to KindleGen.

EDIT: If you're Javascript-savvy, I can give you the script and you could bend it to your needs.

Last edited by mattmc; 05-15-2015 at 02:19 PM.
mattmc is offline   Reply With Quote
Old 05-16-2015, 11:23 AM   #6
miz sue
Member
miz sue began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2011
Device: Sony PRS650
Hi Notjohn!
That's exactly how I interpret mobi files. I'm just using kindlegen to test my file but I leave it to the publisher to do the final uploading.

I'm good with the links not being blue but I wish they'd be the red colour from the subheading preference.
miz sue is offline   Reply With Quote
Old 05-16-2015, 11:36 AM   #7
miz sue
Member
miz sue began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2011
Device: Sony PRS650
Hi Mattmc!
Thanks for your reply. The original links in the mobi were blue which looked horrible because there were 400 recipes. I was able to change it in CSS to black which was much better. However, what I really wanted was for the links to have their original subheading colours instead.

Thank you for the offer of the script - I struggle with the CSS and can't even think of JavaScript- lol!

However, if you have any ideas on the tip boxes going full width I'd appreciate it.
Thanks Sue
miz sue is offline   Reply With Quote
Old 05-17-2015, 07:18 AM   #8
Notjohn
Evangelist
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 460
Karma: 246998
Join Date: Dec 2012
Device: Kindle
Quote:
Originally Posted by miz sue View Post
Hi Mattmc!
However, what I really wanted was for the links to have their original subheading colours instead.
But Miz, Kindle devices (as opposed to Fire tablets and the apps) are grayscale.
Notjohn is offline   Reply With Quote
Old 05-17-2015, 09:40 PM   #9
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 3,123
Karma: 22277911
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by miz sue View Post
Hi Mattmc!
Thanks for your reply. The original links in the mobi were blue which looked horrible because there were 400 recipes. I was able to change it in CSS to black which was much better. However, what I really wanted was for the links to have their original subheading colours instead.

Thank you for the offer of the script - I struggle with the CSS and can't even think of JavaScript- lol!

However, if you have any ideas on the tip boxes going full width I'd appreciate it.
Thanks Sue
As a professional formatter, I probably ought to point out that a) setting a color for the links that is black, is against the Amazon guidelines, because b) if anyone tries to read that book with "night mode," they won't be able to see the text. "Inherit" doesn't work on KF7 or 8 at this moment in time, AFAIK. And trust me when I tell you that not allowing for Night Mode in reading is a near surefire way to get a KQN.

Quote:
Originally Posted by Notjohn View Post
But Miz, Kindle devices (as opposed to Fire tablets and the apps) are grayscale.
Yes, they are, and they're not going away anytime soon. Nor is KF7 necessarily being "phased out," either. The DX is KF7 and so is at least 1 or 2 other of the still-selling Kindle devices. To top it off, the K4iPad reader is KF7, and I doubt that's going to change quickly.

Red links, by the way, are a VERY pale grey on the K2's, 3's, PPW's, Voyages, etc.

FWIW, but you'll come to regret those black TOC links, later if not sooner.

Hitch
Hitch is offline   Reply With Quote
Old 05-22-2015, 11:48 AM   #10
miz sue
Member
miz sue began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2011
Device: Sony PRS650
Hi NotJohn,

Thanks for your reply. I understand about the grayscale for some Kindle apps but I was trying to make the one-epub-fits-all as best as possible : ) As a follow up, I think the publisher is going to re-work this piece - it is really unmanageable.
miz sue is offline   Reply With Quote
Old 05-22-2015, 11:51 AM   #11
miz sue
Member
miz sue began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2011
Device: Sony PRS650
Hi Hitch,

Thanks for your feedback. I totally forgot about the night-mode feature! I'll make sure any future links are left alone. As I mentioned to NotJohn, the publisher plans to redo this book because it was created in a very unmanageable fashion.
miz sue is offline   Reply With Quote
Old 05-22-2015, 01:06 PM   #12
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: 40,387
Karma: 21911957
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
First problem is Dreamweaver. It has to go. Use Calibre or Sigil.
JSWolf is online now   Reply With Quote
Old 05-22-2015, 07:38 PM   #13
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 3,123
Karma: 22277911
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by miz sue View Post
Hi Hitch,

Thanks for your feedback. I totally forgot about the night-mode feature! I'll make sure any future links are left alone. As I mentioned to NotJohn, the publisher plans to redo this book because it was created in a very unmanageable fashion.
Cookbooks are very difficult to do well, if the source material is heavily-laden with spreads. Tables are required for the recipe content (lists of ingredients/amounts) and lists are needed for steps. If you have images that illustrate the steps, it gets ever-worse. I've had an inquiry from someone who created a cookbook, using (gods help us all) the ubiquitous iAuthor, which of course put out a perfectly lovely cookbook that was worthless on anything other than an iPad. I made several samples of what could be done for real e-readers, but...visual folks can't switch over to the realities of actual e-reading devices, in my experience. It's never fun.

Quote:
Originally Posted by JSWolf View Post
First problem is Dreamweaver. It has to go. Use Calibre or Sigil.
Agreed, That's courting disaster.

Hitch
Hitch is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing <div> tags to <p> tags townsend Sigil 23 04-07-2013 08:07 AM
Multiple Div Tags in Fixed Layout Epub verydeepwater ePub 4 01-24-2013 07:11 AM
Conversion from mobi (to mobi, or epub) breaks internal links bounder Conversion 1 10-09-2012 11:56 AM
ePub validation error - not liking div tags Kratos ePub 19 07-23-2012 11:14 AM
Conversion to Mobi to ePub errors erik_reader Conversion 5 08-07-2010 02:03 AM


All times are GMT -4. The time now is 05:54 PM.


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