Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-26-2022, 03:58 PM   #1
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
Suggestions for ::first-letter (:first-letter)?

I just ran across some CSS in an epub using :first-letter. Looking at w3c:

https://www.w3schools.com/cssref/sel_firstletter.asp

it talks about the :: version of that (instead of the : version) and says:

"The ::first-letter selector is used to add a style to the first letter of the specified selector."

Cool. I'm getting tired of worrying about quotation marks and other punctuation when I use a regex to bold the first letter of each non-indented paragraph. That'll work.

Looking at mozilla:

https://developer.mozilla.org/en-US/...::first-letter

it explains that ::first-letter was added to epub3:

"CSS3 introduced the ::first-letter notation (with two colons) to distinguish pseudo-classes from pseudo-elements."

OK. Since I convert to CSS3 when I edit an epub, not a problem. I'll use that.

Now for the silly bit. I'm a bit torn over how to stylistically implement this. I have a noindent class that I use on the first paragraph following chapter titles (<h1>, <h2>, ...) and thematic breaks (<hr>). I could apply that ::first-letter thing to that on my stylesheet. But, I worry about the far-less-common use of non-indented paragraphs in other parts of the text.

With your 'druthers, would you prefer using ::first-letter implicitly in the noindent class or creating a new noindentfl class to handle that? Or, is there another preferred way to handle this?
enuddleyarbl is offline   Reply With Quote
Old 07-26-2022, 04:15 PM   #2
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: 73,645
Karma: 127838196
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DaveLessnau View Post
I just ran across some CSS in an epub using :first-letter. Looking at w3c:
If you plan on reading your ePub in ePub on your Kobo, this will not work. It will work with KePub.
JSWolf is offline   Reply With Quote
Advert
Old 07-26-2022, 05:11 PM   #3
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
Quote:
Originally Posted by JSWolf View Post
If you plan on reading your ePub in ePub on your Kobo, this will not work. It will work with KePub.
Thanks for the warning. I do use KePUB, so I'm good.

Also, after working with this a bit, I decided to go with explicitly naming the first-letter class. I'm leaving my noindent class for odds and ends within the text and using noindentdc (dc for dropcap -- even though I'm just bolding the first letter) for post-<h\d>/<hr/>.
enuddleyarbl is offline   Reply With Quote
Old 07-27-2022, 08:24 AM   #4
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,528
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
I don't know if I understand you well but I think you are confusing the things a bit.

With the pseudo-element ::first-letter you can't affect the indent, because the indent is for PARAGRAPHS, while ::first-letter is for the first letter of a paragraph. So, if you want to have not indented the first paragraph after <h> tags (or <hr> tag), then you should use something like:

Code:
h1 + p, h2 + p, h3 + p, h4 + p, 
h5 + p, h6 + p, hr + p {
     text-indent: 0;
}
And, if you also want to style the first letter of the first paragraph after a <h> tag, then you should use something like:

Code:
h1 + p::first-letter, h2 + p::first-letter, 
h3 + p::first-letter, h4 + p::first-letter, 
h5 + p::first-letter, h6 + p::first-letter,
hr + p::first-letter {
     font-weight: bold;
}
RbnJrg is offline   Reply With Quote
Old 07-27-2022, 08:51 AM   #5
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
Quote:
Originally Posted by RbnJrg View Post
I don't know if I understand you well but I think you are confusing the things a bit.

With the pseudo-element ::first-letter you can't affect the indent, because the indent is for PARAGRAPHS, while ::first-letter is for the first letter of a paragraph. So, if you want to have not indented the first paragraph after <h> tags (or <hr> tag), then you should use something like:

Code:
h1 + p, h2 + p, h3 + p, h4 + p, 
h5 + p, h6 + p, hr + p {
     text-indent: 0;
}
And, if you also want to style the first letter of the first paragraph after a <h> tag, then you should use something like:

Code:
h1 + p::first-letter, h2 + p::first-letter, 
h3 + p::first-letter, h4 + p::first-letter, 
h5 + p::first-letter, h6 + p::first-letter,
hr + p::first-letter {
     font-weight: bold;
}
I was noticing that last night. I am currently using an h1 + p, h2 + p ... class and that was doing the actual nonindenting I was seeing. I was scratching my head over why a couple of my noindentdc situations weren't indenting though they were first-lettering. It turned out that the "automatic" <h2> + p wasn't kicking in because a blockquote (and in another case, just an anchor tag) was between the heading and the paragraph. As a side benefit of that research, I had turned up pretty much what you were saying. Although the explanation I found was that text-indent doesn't apply to ::first-letter. Your comment explains why.

I was thinking of trying to get it to work with the h1 + p class (similarly to what you showed), but hadn't figured out to apply the ::first-letter to <p> instead of to a different class. I was also considering some way to use it with a p + p class. I'll have to think about his some more. Right now, I'm leaning towards h1 + p::first-letter. But, I'll have to consider the ramifications.
Thanks.

Last edited by enuddleyarbl; 07-27-2022 at 09:08 AM.
enuddleyarbl is offline   Reply With Quote
Advert
Old 07-27-2022, 09:35 AM   #6
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
Quote:
Originally Posted by RbnJrg View Post
...if you want to have not indented the first paragraph after <h> tags (or <hr> tag), then you should use something like:

Code:
h1 + p, h2 + p, h3 + p, h4 + p, 
h5 + p, h6 + p, hr + p {
     text-indent: 0;
}
And, if you also want to style the first letter of the first paragraph after a <h> tag, then you should use something like:

Code:
h1 + p::first-letter, h2 + p::first-letter, 
h3 + p::first-letter, h4 + p::first-letter, 
h5 + p::first-letter, h6 + p::first-letter,
hr + p::first-letter {
     font-weight: bold;
}
Interesting. It looks like I have to have BOTH of those classes. If I add ::first-letter to the first one and add the bold font-weight, the text-indent stops working (though the ::first-letter bold works). If I add a separate second class to handle the ::first-letter bold, it all seems to work.

I'll play around some more. I was worried I'd have had to change my <p> class to be non-indented and then add a p + p class to handle indented.
enuddleyarbl is offline   Reply With Quote
Old 07-27-2022, 09:54 AM   #7
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
With these classes:
Code:
h1 + p, h2 + p, h3 + p, hr + p {
  text-indent: 0;
}
h1 + p::first-letter, h2 + p::first-letter, h3 + p::first-letter, hr + p::first-letter	{
  font-weight: bold;
}

.noindent {
  text-indent: 0;
}
.firstletter::first-letter {
  font-weight: bold;
}
That seems to handle it. The two hn + p classes pick up most situations and <p class="noindent firstletter"> picks up any troublesome cases.
enuddleyarbl is offline   Reply With Quote
Old 07-27-2022, 10:29 AM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Personally, I prefer <span class="first-letter"> instead of a pseudo-element. First, pseudo-elements are (were?) not widely supported. Second, I want more control over what is the first letter, I may want to include (or not) an opening quote mark, or a following punctuation, or two letters as a digraph (e.g. "Ch")...
Jellby is offline   Reply With Quote
Old 07-27-2022, 10:35 AM   #9
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
I'm a bit of the opposite: I tend to avoid spans when I can.

What's interesting about ::first-letter is that, so far, it's been smart enough to work correctly with starting punctuation (i.e., quotes and ellipsis, that I've noticed).
enuddleyarbl is offline   Reply With Quote
Old 07-27-2022, 11:27 AM   #10
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Well, "smart" means it makes a choice, which doesn't necessarily match the choice you want. I think the specification says it has to exclude non-letter characters, but depending on what you are doing with the style, you may want to include them.
Jellby is offline   Reply With Quote
Old 07-27-2022, 03:29 PM   #11
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: 73,645
Karma: 127838196
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Jellby View Post
Well, "smart" means it makes a choice, which doesn't necessarily match the choice you want. I think the specification says it has to exclude non-letter characters, but depending on what you are doing with the style, you may want to include them.
I've seen plenty of cases where the first character in the first paragraph was a quote and it was made lager along with the first letter. If :first-letter does not work that way, then it's not the correct way to do it.
JSWolf is offline   Reply With Quote
Old 07-29-2022, 12:04 PM   #12
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,447
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Jellby View Post
Personally, I prefer <span class="first-letter"> instead of a pseudo-element. First, pseudo-elements are (were?) not widely supported. Second, I want more control over what is the first letter, I may want to include (or not) an opening quote mark, or a following punctuation, or two letters as a digraph (e.g. "Ch")...
Yeah, I have to admit--this is how we roll, too. plain old span class first letter. I don't count on devices or firmware, etc. to support pseudos. It's just...you know.

Hitch
Hitch is offline   Reply With Quote
Old 07-31-2022, 06:16 PM   #13
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Jellby View Post
Personally, I prefer <span class="first-letter"> instead of a pseudo-element. First, pseudo-elements are (were?) not widely supported.


Quote:
Originally Posted by Jellby View Post
Second, I want more control over what is the first letter, I may want to include (or not) an opening quote mark, or a following punctuation, [...]


Yep. This is the biggest reason why I don't use it. There's also too many edge-cases like:
  • poetry in very first line
  • AuthorBio as "first paragraph"
  • Image/Chart/Caption at beginning of chapter
  • Frontmatter/Backmatter
  • [...]

so using these pseudo-selectors won't be able to catch nuanced situations.

Again, if you KISS (Keep It Simple, Stupid) + use basic CSS and <span>:

Code:
<h2>Chapter 1</h2>

<p class="noindent"><span class="dropcap">“I</span> am testing dropcaps.</p>
... it's uglier code, but those will "work" everywhere and not break. :P

Quote:
Originally Posted by Hitch View Post
Yeah, I have to admit--this is how we roll, too. plain old span class first letter. I don't count on devices or firmware, etc. to support pseudos. It's just...you know.


You also have line-spacing problems + all the other issues that come with dropcaps/raised-caps.

Side Note: If you want more info on dropcaps, type this in your favorite search engine:

Code:
dropcaps Tex2002ans site:mobileread.com
dropcaps Hitch site:mobileread.com
we have over 8 years of discussion on the topic.

Hint: Trying to replicate dropcaps in ebooks is a very poor idea. To get them working across readers in all sorts of fonts + font sizes... it just won't be happening.

Quote:
Originally Posted by DaveLessnau View Post
What's interesting about ::first-letter is that, so far, it's been smart enough to work correctly with starting punctuation (i.e., quotes and ellipsis, that I've noticed).
Which readers did you test on?

Like Jellby said, I've definitely seen it break when dealing with punctuation.

Quote:
Originally Posted by JSWolf View Post
I've seen plenty of cases where the first character in the first paragraph was a quote and it was made lager along with the first letter. If :first-letter does not work that way, then it's not the correct way to do it.
You can read about it at:

As always, it's a hell of a lot more complicated when taking into account Internationalization too (for example, MDN mentions "IJ" is considered a single "letter" in Dutch).

Last edited by Tex2002ans; 07-31-2022 at 06:19 PM.
Tex2002ans is offline   Reply With Quote
Old 08-01-2022, 05:23 AM   #14
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: 73,645
Karma: 127838196
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Plus, pseudo-classes may not work. They don't work in the version of RMSDK used on Kobo (for example).
JSWolf is offline   Reply With Quote
Old 08-01-2022, 02:38 PM   #15
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
Well, that's interesting. I swear I tested that ::first-letter and it worked in Calibre's editor/viewer as well as on my Kobo (as KEPUB). I just went back to double-check and it's not working. I have no idea what changed.

Drat. I was really happy with that.

EDIT: The problem has something to do with my using it in:
Code:
h1 + p, h2 + p, hr + p {
  text-indent: 0;
}
h1 + p::firstletter, h2 + p::first-letter, hr + p::first-letter {
    font-weight: bold;
}
I thought I'd fixed the issue earlier when I used the two h + p classes (one for indent and one for first-letter). Looks like I was wrong. If I just use p::first-letter, it works fine. I'll have to play around with it some more.

EDIT 2: Hah. A lousy typo. In my first first-letter case, I dropped a hyphen: "h1 + p::firstletter," instead of "h1 + p::first-letter,". Putting it back lets it all work again. Now I'll try testing on Kobo (it works in Calibre's stuff).

Last edited by enuddleyarbl; 08-01-2022 at 02:58 PM.
enuddleyarbl is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Letter-spacing kamanza ePub 17 02-04-2022 02:11 AM
Question about converting first letter of word into a Capital Letter TheBossz Calibre 2 07-24-2021 06:19 PM
Grouping by first letter of first name rather than last name Dopedangel Calibre Companion 7 05-18-2015 12:49 PM
Letter to McMillan gshoe News 34 02-08-2010 08:44 PM
Would it be possible to do three-letter searches? Andanzas Feedback 8 07-10-2007 09:50 PM


All times are GMT -4. The time now is 07:56 AM.


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