|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Connoisseur
![]() 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.
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
![]() |
![]() |
![]() |
#3 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,856
Karma: 27620684
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Last edited by BetterRed; 09-21-2022 at 06:27 PM. Reason: wrong screenshot |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() 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
|
![]() |
![]() |
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,265
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hold down the ctrl key and click on msonormal instead.
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,284
Karma: 6700678
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#9 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,856
Karma: 27620684
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
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 |
|
![]() |
![]() |
![]() |
#10 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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...
|
![]() |
![]() |
![]() |
#12 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
![]() 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 |
|
![]() |
![]() |
![]() |
#13 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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"; |
![]() |
![]() |
![]() |
#14 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
![]() Now that is odd. I coulda sworn I have used that feature on books with the second line ![]() |
|
![]() |
![]() |
![]() |
#15 |
Connoisseur
![]() Posts: 62
Karma: 10
Join Date: Jun 2012
Device: Kindle, iPad
|
This is what I get when I do that
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |