View Single Post
Old 03-06-2022, 01:33 AM   #17
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,445
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by KevinH View Post
That is strange.

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
I'm attaching a scrambled and simplified epub. A search for first-letter-h when a xhtml file has the focus and I am searching in all CSS files, count all still shows 2 matches but find shows none. If i simplify the search to first-letter, count all shows 8 matches and find finds them in turn.

The CSS is a bit of a mess in the original with such lovely items as:

Code:
.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-h,.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-j,.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-w {
  line-height: 1  !important;
  margin-top: -0.07em;
}

.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-a,.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-c,.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-e,.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-f,.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-r,.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-w {
  margin-right: 0.12em;
}
Removing much of the xhtml files and deleting unused CSS did simplify this quite a bit.
Attached Files
File Type: epub scrambled.epub (144.5 KB, 119 views)
DNSB is offline   Reply With Quote