View Single Post
Old 01-20-2020, 05:15 PM   #47
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,760
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by rtiangha View Post
Ah, that's more readable. Thanks!

One last dumb question about --replace. Say I want to replace every instance of 'monospace' in the css with something like '"Courier Prime", monospace' instead (to work around the monospace font issue in kepubs). I know the argument is a string, but how do I escape the " characters in the string? Should I be using \ characters? Or something else?

Is this correct?

Code:
--replace "monospace|\"Courier Prime\", monospace"
Yes, that's correct, but note that replace only replaces inside the documents, not any external stylesheets.
geek1011 is offline   Reply With Quote