![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 254
Karma: 49504
Join Date: May 2014
Device: Kobo Libra 2
|
Searching within stylesheet.css?
Is there a way to search through the stylesheet for certain elements? For instance, I have a book where the author decided that everything needed lots of space between the lines. So I want to search stylesheet.css for 'line-height' and delete those lines. But the Calibre Editor says that "No matches were found".
Anyone know how to accomplish this? |
![]() |
![]() |
![]() |
#2 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
|
Tools -> Filter style
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,743
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 254
Karma: 49504
Join Date: May 2014
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#5 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 254
Karma: 49504
Join Date: May 2014
Device: Kobo Libra 2
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 2024
Join Date: Apr 2011
Location: Southern Idaho
Device: Samsung Galaxy Tabs
|
I just had a book that had a <p class> with a hidden space between each normal paragraph. Which then changed every few chapters.
So, you might have this problem too. You have to search for these code(s) and leave the replace with a blank. |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
For future reference, all you need to do is change the search mode to "All style files".
See image... |
![]() |
![]() |
![]() |
#8 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 254
Karma: 49504
Join Date: May 2014
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#10 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 254
Karma: 49504
Join Date: May 2014
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#11 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() The majority of my REGEX is basic level with a few intermediate ![]() My Kobo hates letter spacing (OK I hate the results) This is the simple REGEX I use to find book I have not fixed. Code:
\s\s\sletter-spacing Code:
\* letterspacing: the value; *\ |
|
![]() |
![]() |
![]() |
#12 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
Quote:
See the attached picture |
|
![]() |
![]() |
![]() |
#13 |
Zealot
![]() ![]() ![]() ![]() Posts: 143
Karma: 338
Join Date: Nov 2004
Device: Ebookwise 1150, Jetbook Lite, Slick Er-701
|
Sometimes the Calibre Editor doesn’t search the way you’d expect. You might try opening your stylesheet in a different text editor like Notepad++ or Sublime Text.
|
![]() |
![]() |
![]() |
#14 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 254
Karma: 49504
Join Date: May 2014
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Linking to CSS stylesheet | mossman26 | Sigil | 2 | 07-16-2020 02:38 PM |
pagestyle.css extra / integrated in stylesheet.css / or not at all? | chaot | Workshop | 14 | 02-24-2017 11:10 PM |
stylesheet.CSS anyone? | ProDigit | ePub | 81 | 12-26-2015 01:43 PM |
Converting cm to em in css stylesheet | roger64 | ePub | 41 | 06-13-2014 01:00 PM |
Where is the stylesheet.css? | roger64 | Sigil | 4 | 03-23-2010 02:12 PM |