Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-10-2013, 03:29 PM   #1
net-buoy
Enthusiast
net-buoy began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Feb 2011
Device: none
No pop-up with reference mode

with calibre 0.9.43, OSX 10.8.4 if I open a book with calibre's reader and turn on Reference Mode I don't get a reference pop-up. What am I missing?
net-buoy is offline   Reply With Quote
Old 08-10-2013, 11:15 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Works for me, is it a particular book or all books that it isn;t working for?
kovidgoyal is offline   Reply With Quote
Old 08-10-2013, 11:23 PM   #3
net-buoy
Enthusiast
net-buoy began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Feb 2011
Device: none
looks like some do work, and some don't.......
net-buoy is offline   Reply With Quote
Old 08-10-2013, 11:43 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Reference mode only works if the book has actual paragraphs in it. If no paragraphs can be found, then it wont work. Some badly made books fake the look of paragraphs using other methods, which can break reference mode.

Impossible to say more without access to one of these books.
kovidgoyal is offline   Reply With Quote
Old 08-11-2013, 12:10 AM   #5
net-buoy
Enthusiast
net-buoy began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Feb 2011
Device: none
aha!

I opened the offending book in Sigil and yes indeed, the book uses

<div class="tx">
paragraph text
</div>

instead of a

<p>
text
</p>

and depending on section of the book there are several different classes for the paragraphs..... (which vary the leading bewteen 0 and 1 em)

is there a special tweak to address this, or is it just too variable to address?
net-buoy is offline   Reply With Quote
Old 08-11-2013, 12:25 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Reference mode only works with <p> tags, it doesn't care about classes. This is because <div> tags can be nested, so there is no good way of getting a single useful number out of them, the same visual position in the book could correspond to several different nested <div>s. And you would get weird jumps in numbering, for example, if the visually first para is numbered 1, the visually second one may or may not be numbered 2 depedning on the presence of nested divs.

Last edited by kovidgoyal; 08-11-2013 at 12:28 AM.
kovidgoyal is offline   Reply With Quote
Old 08-11-2013, 12:44 AM   #7
net-buoy
Enthusiast
net-buoy began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Feb 2011
Device: none
thanks
net-buoy is offline   Reply With Quote
Old 08-11-2013, 02:39 AM   #8
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,792
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by net-buoy View Post
thanks
Use Sigil REGEX to replace those
<div class=(.+?)\s+</div>
with
<p class=\1</p>

just check the your stylesheet does not have an entry for

p { or div.<any of the classes used>
a simple
.<any of the classes used> is ok
theducks is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Paper mode/Two column mode in new PDF reader Fourier Onyx Boox 3 10-15-2012 10:48 AM
USB Host Mode (Master Mode) on K3 ericepe Kindle Developer's Corner 1 01-24-2012 04:59 AM
Request Safe mode or recovery mode for Pocket Edge? felixblackcat enTourage eDGe 25 01-08-2012 05:07 PM
Reference Mode in calibre Viewer Lady Fitzgerald Calibre 2 10-12-2010 10:19 AM
funny ebook pop culture reference Nate the great Amazon Kindle 10 03-21-2009 07:12 PM


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


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