View Single Post
Old 01-20-2020, 05:05 PM   #46
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 495
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
Quote:
Originally Posted by geek1011 View Post
Yes, that should work, but note that you can repeat the CSS argument multiple times with a single string each, like "--css 'css1' --css 'css2'".
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"
I noticed that kepubify ate the " characters in my previous question (i.e. "kern" and "liga" became kern and liga in the output) so how do I preserve the " characters?

Last edited by rtiangha; 01-20-2020 at 05:21 PM.
rtiangha is offline   Reply With Quote