AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
On macOS, the command line tools are inside the calibre bundle, for example, The folder in which you created _init_.py: To add this code to calibre as a plugin, simply run the following in publisher = 'Hello World' set_metadata ( file, mi, ext ) return path_to_ebook lower () mi = get_metadata ( file, ext ) mi. Project Syndicate, Scroll.in and Newslaundry by unkn0wnÄownload: Calibre 6.29.0 | Portable | ~100.0 MB (Open Source)Äownload: Calibre 6.29.0 for MacOS | 285.From calibre.customize import FileTypePlugin class HelloWorld ( FileTypePlugin ): name = 'Hello World Plugin' # Name of the plugin description = 'Set the publisher to Hello World for all new conversions' supported_platforms = # Platforms this plugin will run on author = 'Acme Inc.' # The author of this plugin version = ( 1, 0, 0 ) # The version number of this plugin file_types = # The file types that this plugin will be applied to on_postprocess = True # Run this plugin after conversion is complete minimum_calibre_version = ( 0, 7, 53 ) def run ( self, path_to_ebook ): from import get_metadata, set_metadata with open ( path_to_ebook, 'r+b' ) as file : ext = os.Fix a regression that broke reading of covers from HTMLZ and TXTZ files.Fix sort order of similarly-named hierarchical categories.Linux: Content server: Do not call listen on pre-activated sockets.FB2 Input: Fix the "Annotations" section not showing up in the Table of Contents.TXTZ Output: Fix cover not being properly identified in the generated TXTZ metadata.TXTZ Output plugin: Only keep images if the text format is one that can reference images.E-book viewer: Fix the occasional search result being marked as not found even though it is found.E-book viewer: Fix a regression that could cause the viewer to enter an infinite loop when displaying the result of a search that has only one match that is not found.Annotations browser: Fix exporting highlights in markdown not including all chapter titles for books with only a single highlight per chapter or a multi level ToC.E-book viewer: Image popup: Add a checkbox to remember the last used zoom level.E-book viewer: Add a command line flag -new-instance to force the viewer to open a new window even if the option to always use a single viewer window is set.
0 Comments
Read More
Leave a Reply. |