Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-20-2022, 08:23 PM   #1
GregTheGrate
Connoisseur
GregTheGrate began at the beginning.
 
Posts: 62
Karma: 10
Join Date: Jun 2012
Device: Kindle, iPad
Right-Click in editor window to search stylesheet for selected style

It would be great if one could highlight a style in the editor window, right-click and the selected style would be located in the stylesheet for the book. Understand there may be many - perhaps a dialogue for next occurrence as well.
GregTheGrate is offline   Reply With Quote
Old 09-21-2022, 10:03 AM   #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: 44,265
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What does highlight a style mean? You can already ctrl+click on a class name and the editor will jump to it
kovidgoyal is online now   Reply With Quote
Old 09-21-2022, 06:24 PM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,856
Karma: 27620684
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I suspect the OP means something like this:

Click image for larger version

Name:	Screenshot 2022-09-22 081641.jpg
Views:	672
Size:	99.5 KB
ID:	196712

BR

Last edited by BetterRed; 09-21-2022 at 06:27 PM. Reason: wrong screenshot
BetterRed is offline   Reply With Quote
Old 09-21-2022, 09:52 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: 44,265
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
ctrl+click seems a lot easier thean highlight + right click + choose option in menu.
kovidgoyal is online now   Reply With Quote
Old 09-23-2022, 03:13 AM   #5
GregTheGrate
Connoisseur
GregTheGrate began at the beginning.
 
Posts: 62
Karma: 10
Join Date: Jun 2012
Device: Kindle, iPad
In the text <p class="msonormal">This is a sentence.</p>, I want to be able to highlight msonormal, right-click on it and have to option to jump to msonormal in the stylesheet
GregTheGrate is offline   Reply With Quote
Old 09-23-2022, 06:48 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: 44,265
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hold down the ctrl key and click on msonormal instead.
kovidgoyal is online now   Reply With Quote
Old 09-23-2022, 06:57 AM   #7
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,284
Karma: 6700678
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
Hold down the ctrl key and click on msonormal instead.
Hmm, that does not seem to work for me.
It does jump to the stylesheet.css, but just seems to land on a random class or at the top of the page.
Win10 Calibre v6.4
Karellen is offline   Reply With Quote
Old 09-23-2022, 07:41 AM   #8
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: 44,265
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There will be something weird with your book in that case. Open a bug report and attach the book. Most likely it is using some kind of special CSS @ rule.
kovidgoyal is online now   Reply With Quote
Old 09-23-2022, 09:43 AM   #9
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,856
Karma: 27620684
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Karellen View Post
Hmm, that does not seem to work for me.
It does jump to the stylesheet.css, but just seems to land on a random class or at the top of the page.
Win10 Calibre v6.4
I've had similar problems with ctrl+left-click in the calibre Editor, but not in Sigil (version 1.7.0), on the same text in the same EPUBs.

That said, in Sigil I would normally use the Go to Link or Style keyboard shortcut, or if I forget that, then the CV context menu via the keyboard.

I've put my calibre problem down to my chronic neurological disability.

BR

Last edited by BetterRed; 09-23-2022 at 09:49 AM. Reason: Sigil version
BetterRed is offline   Reply With Quote
Old 09-23-2022, 11:30 AM   #10
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: 30,281
Karma: 57979022
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Make sure the file contains Valid links to the Style sheet(s).

I had this happen and Calibre just jumped to the (top) first listed Stylesheet even tho there were no linked sheets
theducks is offline   Reply With Quote
Old 09-23-2022, 04:15 PM   #11
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,284
Karma: 6700678
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Here is a scrambled book. Just to first ensure it's not an issue with my edits...
Attached Files
File Type: epub Ill Wind - Kevin J. Anderson_scrambled.epub (836.1 KB, 77 views)
Karellen is offline   Reply With Quote
Old 09-23-2022, 04:52 PM   #12
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: 30,281
Karma: 57979022
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 Karellen View Post
Here is a scrambled book. Just to first ensure it's not an issue with my edits...
calibre 6.5 W10 x64

Weird, It looks fine. Debug did not squawk

Ctrl-click a <p> does nothing instead of jumping to the p{...}
Did not find the style .scene , but it did bring up the correct CSS
Sigil 1.9.20 on the same machine worked as expected
theducks is offline   Reply With Quote
Old 09-23-2022, 06:33 PM   #13
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: 75,690
Karma: 134319572
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I have found the solution to the problem. In the CSS, the first two lines are...
Code:
@charset "utf-8";
@namespace h "http://www.w3.org/1999/xhtml";
Remove them both and ctrl-click will once again work.
JSWolf is offline   Reply With Quote
Old 09-23-2022, 07:29 PM   #14
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: 30,281
Karma: 57979022
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 JSWolf View Post
I have found the solution to the problem. In the CSS, the first two lines are...
Code:
@charset "utf-8";
@namespace h "http://www.w3.org/1999/xhtml";
Remove them both and ctrl-click will once again work.

Now that is odd. I coulda sworn I have used that feature on books with the second line
theducks is offline   Reply With Quote
Old 09-23-2022, 08:11 PM   #15
GregTheGrate
Connoisseur
GregTheGrate began at the beginning.
 
Posts: 62
Karma: 10
Join Date: Jun 2012
Device: Kindle, iPad
Quote:
Originally Posted by kovidgoyal View Post
Hold down the ctrl key and click on msonormal instead.
This is what I get when I do that
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2022-09-24 at 10.07.36 am.png
Views:	94
Size:	182.8 KB
ID:	196739  
GregTheGrate is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Feature? Embed search term as a tag into Search Results with one click? mikhail_fil Library Management 1 04-02-2022 10:18 PM
Problems editing Stylesheet - no stylesheet window-appaer Divi filius Sigil 2 07-26-2019 03:30 PM
Spell Checker window on top of Editor window Calibre-Fan Editor 3 01-30-2016 11:48 AM
[Viewer Plugin] Get selected text on right click. jverrone3 Development 1 03-27-2015 10:57 PM
In search of the Original stylesheet... colinsky ePub 2 03-23-2012 03:18 PM


All times are GMT -4. The time now is 09:52 AM.


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