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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-26-2011, 12:13 AM   #16
theducks
Grand Sorcerer
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: 14,630
Karma: 5628865
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by qxlooper View Post
I am getting nothing! I get a TOC with a start page. Nothing else. that is why I am lost as to what I should do. The first is from calibre, the second from sigil. I tried the default in calibre and it bookmarked everything except what I wanted it to and created over 2000+ bookmarks because anything that had an h in it was book marked.

I guess I just need an idiots guide to making a toc from a pdf/epub. If anyone wants the challenge, I would be willing to pay to have it done!

Keith
Quit bouncing back and forth , you probably are undoing any Sigil work, if you convert Again in Calibre.
(because this belongs in Sigil)

Sigil makesEPUB TOC easy. Place the cursor on the line (in book view) you want to appear in the TOC. Set the Heading Level using the pull-down box provided.
Repeat on the next location.

Press F7 (the TOC editor) to see what you have. remove the Tics' from the lines you DO NOT want in the TOC. OK

Finish up. Save
theducks is online now   Reply With Quote
Old 02-26-2011, 05:01 PM   #17
qxlooper
Member
qxlooper began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2011
Thanks for the help. Got the TOC in sigil that i wanted. Took out all that I didn't. Saved it, opened in calibre, it was there, converted to mobi, GONE. How can I keep it in the conversion to mobi?

Thanks for all the help!

Keith
qxlooper is offline   Reply With Quote
Old 02-26-2011, 09:09 PM   #18
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,838
Karma: 12535517
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by qxlooper View Post
Got the TOC in sigil that i wanted. Took out all that I didn't. Saved it, opened in calibre, it was there, converted to mobi, GONE. How can I keep it in the conversion to mobi?
A better question is what are you setting that caused it disappear?

I just tried a ePub to Mobi conversion. I ensured everything in the TOC area of conversion was blank or unchecked and left the Number of links at 50 and chapter threashold at 6. I did not check anything in the mobi output. I kept hueristic processing off. The TOC ended up fine in the Mobi.

If your ePub has a properly formatted TOC then when converting to Mobi it should have a good TOC, unless you attempted to adjust things under the TOC or Mobi settings area during conversion.

I don't use Mobi, maybe others can jump in with a plausible reason for what you're experiencing.
DoctorOhh is offline   Reply With Quote
Old 02-26-2011, 09:41 PM   #19
theducks
Grand Sorcerer
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: 14,630
Karma: 5628865
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
(NB I don't use Mobi)

It almost sounds like qxlooper is not converting the Sigil edited version of the EPUB (or is converting a different format to Mobi. Calibre remembers the LAST convert IN and OUT settings ) Be sure to drop the 'fixed' EPUB into the meta-data edit window, then pay close attention to the Source format setting, before clicking 'Convert'
theducks is online now   Reply With Quote
Old 02-26-2011, 09:47 PM   #20
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,838
Karma: 12535517
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by theducks View Post
It almost sounds like qxlooper is not converting the Sigil edited version of the EPUB (or is converting a different format to Mobi. Calibre remembers the LAST convert IN and OUT settings ) Be sure to drop the 'fixed' EPUB into the meta-data edit window, then pay close attention to the Source format setting, before clicking 'Convert'
You may be right. I always use the Open With GUI plugin and right click to open the epub in Sigil. Doing this ensures I always save to my existing ePub in the calibre folder and never have to worry about a separate version of the ePub.
DoctorOhh is offline   Reply With Quote
Old 02-27-2011, 04:57 AM   #21
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,793
Karma: 1089170
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
it can be very frustrating when the TOC fails to show in mobi but it's usually ( in my case anyway) a user error.

my standard sequence is fix header tags with calibre heuristics, open + save in sigil to force a new , header based, toc creation ( and I delete any hardcoded one at the same time), then epub to mobi on default settings. check with calibre viewer at each stage.
cybmole is offline   Reply With Quote
Old 02-28-2011, 02:55 PM   #22
qxlooper
Member
qxlooper began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2011
I will try again!

Thanks for the replies!
qxlooper is offline   Reply With Quote
Old 03-01-2011, 01:56 PM   #23
qxlooper
Member
qxlooper began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2011
Still no luck! I get all the chapters in the toc, save as a new epub(sigil), open in calibre, see that it is there, then without changing any settings click convert. It does it thing, reopen the mobi, toc, gone. Guess I am doing something wrong. Is doing it in word easier?

Keith
qxlooper is offline   Reply With Quote
Old 03-02-2011, 02:00 AM   #24
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,793
Karma: 1089170
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
do it again - this type click reset defaults on convert screen. check / post all of your epub to mobi conversion settings if it still does not work
cybmole is offline   Reply With Quote
Old 03-02-2011, 03:37 AM   #25
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Reset defaults, and also import the fixed epub from Sigil to a new book record just to make sure none of your customized conversion options for that book aren't getting in the way.
ldolse is offline   Reply With Quote
Old 03-02-2011, 10:45 AM   #26
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,793
Karma: 1089170
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
any suggestions on handling/tweaking an img alt tag please e.g.
Code:
<h2 class="calibre1 sgc-2" id="heading_id_2"><img alt="[Chapter 1]" class="calibre9" src="../Images/001.jpg" /></h2>
i see nothing in TOC, in viewer
cybmole is offline   Reply With Quote
Old 03-02-2011, 11:09 AM   #27
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
I suspect that there is a way to do it with XPATH, but you could just use search and replace:
Search:
Code:
(?P<hopen><h2[^>]*)><img alt="(?P<title>.*?)"
Replace:
Code:
\g<hopen> title="\g<title>"><img
After that just open it in Sigil and it will create a TOC, save and your done.
ldolse is offline   Reply With Quote
Old 03-02-2011, 11:30 AM   #28
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,793
Karma: 1089170
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
i'm struggling to follow that code. as both hopen & \g are new to me.

but you are replacing the img alt tag with a title tag, I think ?

i picked out the chapter number with a regex and inserted it as text, in a small font, before the image. toc was OK then. not ideal but I can live with it.
so my code became
Code:
<h2 class="calibre10" id="heading_id_2">1 &nbsp; &nbsp; &nbsp;<img alt="[Chapter 1]" class="calibre11" src="../Images/001.jpg" /></h2>
and I set font size in calibre10 style to 0.5em

is img alt not supported in epub ?
cybmole is offline   Reply With Quote
Old 03-02-2011, 11:55 AM   #29
theducks
Grand Sorcerer
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: 14,630
Karma: 5628865
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by cybmole View Post
i'm struggling to follow that code. as both hopen & \g are new to me.

but you are replacing the img alt tag with a title tag, I think ?

i picked out the chapter number with a regex and inserted it as text, in a small font, before the image. toc was OK then. not ideal but I can live with it.
so my code became
Code:
<h2 class="calibre10" id="heading_id_2">1 &nbsp; &nbsp; &nbsp;<img alt="[Chapter 1]" class="calibre11" src="../Images/001.jpg" /></h2>
and I set font size in calibre10 style to 0.5em

is img alt not supported in epub ?
Image Alt is for non-visual displays (TTS)
<H2 title="[Chapter 1]" ...
gets that label into the TOC that uses headings (Sigil )
theducks is online now   Reply With Quote
Old 03-02-2011, 11:56 AM   #30
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Quote:
Originally Posted by cybmole View Post
i'm struggling to follow that code. as both hopen & \g are new to me.

but you are replacing the img alt tag with a title tag, I think ?

i picked out the chapter number with a regex and inserted it as text, in a small font, before the image. toc was OK then. not ideal but I can live with it.
so my code became
Code:
<h2 class="calibre10" id="heading_id_2">1 &nbsp; &nbsp; &nbsp;<img alt="[Chapter 1]" class="calibre11" src="../Images/001.jpg" /></h2>
and I set font size in calibre10 style to 0.5em

is img alt not supported in epub ?
?P<stuff> at just after an open parentheses lets you use names instead of \1 \2 or whatever syntax numeric backreferences use - I don't use them much as names are more readable and don't require counting parentheses.

<hopen> was a name I just made up, as was <title>. \g<groupname> is how you refer to the variables in the replacement expression.

As alt tags have no purpose on an ebook the search and replace just deleted the alt tag and moved it's contents into the title tag in the header. Sigil reads title tags when it creates a TOC, they have priority over any text that may be inside the <h2> tags (which is none in this case).

Last edited by ldolse; 03-02-2011 at 12:01 PM.
ldolse 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
Help with Chapter detection ubergeeksov Calibre 0 09-02-2010 04:56 AM
xpath for chapter detection romnempire Calibre 7 07-26-2010 05:34 PM
chapter detection in any book yuki86 Calibre 9 05-06-2009 06:54 AM
Chapter detection for LRF HenryP Calibre 12 04-03-2009 08:22 AM
Calibre chapter detection AKninja04 Calibre 5 09-14-2008 12:09 PM


All times are GMT -4. The time now is 12:24 PM.


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