Quote:
Originally Posted by thiago.eec
Just came back to say again: Thanks for the great plugin. I use it a lot.
With it, I was able to create:
1) 'Clean-up' chain that:
- Create a folder structure;
- Remove unwanted files, embedded calibre metadata, Sigil and KindleUnpack artifacts;
- Fix all HTMLs;
- Use full page SVGs for covers;
- Convert NAV landmarks and OPF guide to pt-BR;
- Remove 'lang' and 'xml:lang' from <body> tag;
- Fix missing 'alt' attribute on <img> tags;
- Remove 'linear="no"' from OPF;
- Customizable 'Pretty print all files' (adpted from calibre code, to avoid certain things, like adding spaces between the lines);
- Run 'Check Book' at the end
2) Merge splited files automatically (thanks for the chain!)
3) Run 'Check Book' and fix all errors automatically
4) Replace invalids IDs
5) A customizable 'Upgrade to EPUB3' based on calibre orginal tool, that can keep the NCX and the <guide> element (in the OPF). This gives me maximum backward compatibility
I can't thank you enough for this plugin. Made my life a lot easier. =)
|
My pleasure. Thanks for the kind words and for taking the time to write the post. A lot of the actions in the plugin are heavily based on code written by Kovid, without whom none of this would have been possible. So a big thank you to Kovid for his work.
If it is not much trouble for you, please export your chain and post it here, so any one who might be interested can use it to his benefit.
You talked about two customized actions: 'Pretty print all files' and 'Upgrade to EPUB3'. These can be done using either the "Run python code" action, or can be done as separate modules. If it is the former, the code will be available in the exported chain, if it is the latter, please post the code of the modules. When I have the time, I will see if I can use the code to modify the plugin actions to incorporate them as configurable options. This is a busy period for me, so I am not sure when I will be able to do it. Thanks.