View Single Post
Old 04-10-2015, 03:47 AM   #1
Francois_C
Zealot
Francois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipse
 
Francois_C's Avatar
 
Posts: 106
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
Using ebook-editor in command line

As I already told once, like several ebook makers I still use Amanuensis for building ebooks, but my Kobo does not properly read "vertical-align:top", so I need to convert it to "vertical-align:super", Amanuensis is no longer maintained and the sources are not available anywhere.

I wanted to make an sh or bat file (or small compiled binary with only the command), using the editor in command line that is:
Code:
ebook-edit [opts] [path_to_ebook] [name_of_file_inside_book ...]
I need no options, the ebook file name is easy to set, the file inside ebook is style.css, but I don't know how to tell "replace vertical-align:top with vertical-align:super"

PS. And, when I try a command line that does not work, like:
Code:
ebook-edit "my_epub.epub" replace "style.css" "vertical-align:top" "vertical-align:super"
, I see that I also would need an option in order to avoid opening the GUI (that tells me that "replace" does not exist, style.css is not found…)
…now (after some more trials-and-errors) I can access style.css:
Code:
ebook-edit "my_epub.epub" OPS/style.css
Just lack the replace command

Last edited by Francois_C; 04-10-2015 at 06:08 AM.
Francois_C is offline   Reply With Quote