View Single Post
Old 05-10-2020, 10:00 PM   #1
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
TitleCase shortcut and TOC

I had a epub with all the headings in UPPER CASE (drives me nuts)

Q1. Is there a way to convert all words in a <Hx> to Title Case using some kind of Find and Replace? The few LC exceptions ('the', 'a', etc. I can do manually)

Q2. I have Title Case on a shortcut key, but if I highlight text that has a tag in it, nothing happens. E.g. TOM<br/>DICK<br/>HARRY.

Q3. In a heading like TOM<br/>DICK<br/>HARRY, the tags are ignored when making a TOC, so that the TOC entry looks like TOMDICKHARRY

As a work-around, if I use TOM <br/>DICK <br/>HARRY (add space after) then the TOC is at least readable TOM DICK HARRY

Any workarounds?

I did try text-transform, but that didn't seem to do anything

Code:
h1 {
  font-family: sans-serif;
  page-break-before: always;
  page-break-after: avoid;
  text-indent: 0;
  text-align: center;
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 1.5em;
  font-weight: bold;
  font-style: normal;
  text-transform: capitalize;
}
phossler is offline   Reply With Quote