Thread: Regex question
View Single Post
Old 01-05-2016, 08:10 PM   #10
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,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Hendrixxxxxxxx View Post
Thanks all. I had seen the \U\E somewhere, but couldn't work out how to get it to work in the "replace" box.

That works perfectly - and Doitsu, thanks for the link to your earlier post. I DID search, but I didn't see that one. Appreciate all your help.

Wombat. Appreciate your thoughts. I am capitalising the first word (unless it is a name, in which case it is the whole name), with the first letter full size and the subsequent ones about 80% small-caps. The content, and hence the "feel" I am trying to create, of the book is of one which could have been published at the turn of the last century....to my mind, this achieves this relatively simply and "unfussily". I agree with you though that drop caps (although I have used them) are often a bit much.....

Phil
DANGER! DANGER, WILL ROBINSON!!!

Phil, if you are planning on selling that ePUB on B&N, or your client is, I can absolutely promise you that trying to do a full-size cap with smallcaps follow-on lettering will cause you all sorts of agita on a B&N device.

If you use several spans (IOW, more than one) on the first line of a paragraph, in a B&N ePUB, it will either: a) break bizarrely, with strange world hyphenation, mid-word (think...D-og), or b) the first letter will stay where it is supposed to, and the smallcaps remainder will, I kid thee not, align, one letter at a time, vertically on the page, against the left-margin edge. The double-span use breaks the hyphenation rendering engine, and you get weird, weird, WEIRD results. Not one of them works worth a damn.

The Nook rendering engine purely HATES what you are trying to do. If you searched hard enough, you'll find a really old post of mine--what, guys, anyone remember? 2010 or 11? Maybe even 09?--on this very topic.

It's remotely possible that they've fixed it, but whatever you do, test test and test again, if you are planning on Nook distro.

Offered FWIW.

ETA: That thread was here, and I repeated the same issue in 2014, so, as of 2014, it was not fixed: https://www.mobileread.com/forums/sho...d.php?t=232395

Hitch

Last edited by Hitch; 01-05-2016 at 08:18 PM. Reason: Added the thread link and comment.
Hitch is offline   Reply With Quote