View Single Post
Old 03-05-2022, 07:21 PM   #16
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,901
Karma: 6120478
Join Date: Nov 2009
Device: many
That is strange.

I can not recreate this with the Mac build from post #11. I added the following to two different css files:

Code:
.first-letter-h {
    /* huh 3*/
    margin-top: 1em; /* huh4 */
    margin-bottom: 1em;
    /* huh5 */
}
Then closed the tabs for those files. Then I changed to an .xhtml tab and matched your Find and Replace settings from the images and hit Find and it happily found both cases in the CSS files.

In case opening the css tabs before closing them matters in some way, I saved that epub. Closed completely out of Sigil.

Fired up Sigil, loaded my test epub and with only the xhtml file open I told it to search ALL CSS Files, for first-letter-h and clicked find and it happily worked correctly.

So I can not recreate this at all with my admittedly simplistic test case.

Could one of the hyphens in the class name be an en dash or em dash somehow?

A stripped down test case epub might help if you can post one.

Thanks.

KevinH



Quote:
Originally Posted by DNSB View Post
Using the version from message #11, I'm finding one oddity. In an eub I was editing, I wanted to search in both CSS files for 'first-letter-h'. So I entered 'first-letter-h' in the find box, set the file selection to All CSS files, and clicked find. No Matches found was returned. Now I clicked on Count All and it returned 2. This was with the focus on a .xhtml files. I then opened one of the CSS files and Find and Count All both found two instances. On the other hand, if I have a CSS file open and select search in All HTML files, the search works as expected.

Edit: Even weirder. If I change the find box to 'first-letter', it works even if I start the search with the focus on a xhtml file.

Last edited by KevinH; 03-05-2022 at 10:54 PM.
KevinH is offline   Reply With Quote