New version (still the same link) has several enhancements:
1) It should be far easier to port to Linux: All (hopefully) Windows-specific functions have been isolated into four places:
- function Execute - calls an external program and returns result code
- function GetLastErrorStr - returns message explaining why Execute failed
- function SystemTempDir - returns location of temporary directory
- function SystemTempFile - creates uniquely-named file in a given directory
When these four functions are rewritten, the application should compile under Linux (using FreePascal compiler)
2) The utility now supports any format that Calibre supports: You just provide target on the command line (-t epub) and the utility uses information in its INI file to create a valid command for conversion.
3) Target-specific parameters are now supported. Instead of the old:
Code:
<meta name="@include" content="common.inc">
<meta name="lrf:--title" content="Book title">
<meta name="lrf:--header" content="">
you can now use:
Code:
<meta name="@include" content="common.inc">
<meta name="lrf:@include" content="common-lrf.inc">
<meta name="*:--title" content="Book title">
<meta name="lrf:--header" content="">
This way all targets include common.inc and add a title, but only LRF includes common-lrf.inc and uses --header parameter (which is not supported for e.g. EPUB).