

Here's a zip attachment, but it's really better to just go to the github page. I use WinMerge and that works well.īy the way, there is a strong layer of irony here - if vulgar language offends you, you'll probably want to avoid actually looking in the cleaner.py file, as it is chock full of it If you'd like to see how it was changed, compare the two files. Sometimes it does two copies and only one has useful changes.

Secret debug tip: If there is a "c:/Scratch/calibre" folder on your Winodws machine (change logdir in _init_.py if you want), the plugin will write before and after versions of the book as plain text files.

So I was aggressively cutting the asm down to just the base instruction, order, and any new lines from where labels were.

Wait until longer than usual job completes, due the very inefficient way this plugin works Winmerge plugin Author: David Zimmer Date: 01.24.14 - 6:18am I got thinking a little more about using the winmerge plugin for disasm diffing again last night and had a few simple ideas that panned out really well.Now do "Convert book" and choose to convert from Epub to Epub (or whatever destination format you want).Choose the book you'd like and make sure you have an epub format (so convert to epub if you don't already have that format).plugin-import-name-language_clean_plugin.txtĬode: zip Language_Cleaner cleaner.py _init_.py plugin-import-name-language_clean_plugin.txtIn calibre choose Preference -> Plugins -> Load plugin from fileĬhoose the zip you just created, and the plugin should show up under "File type plugins".It only works on books that are being converted from epub, and only works during the conversion process.Ĭreate a zip file with the three files called Language_Cleaner.zip I am no expert at calibre, and I could not drum up much help on the support forums, so the integration is pretty weak. To remove, just delete the lines that you don't want. You'll probably need a pretty good mastery of regular expressions to write new ones unless there is a similar one existing already that you can tweak. If you'd like to customize it to meet your preferences, you just need to go through the lines of cleaner.py and add or remove filters as needed. Obviously it is a personal set of filters, but I've done my best to make the changes sound as natural as possible, and after using it for years, I think it's pretty good. Personally I find books much more enjoyable after being processed with this script. I wrote this plugin because I don't like reading vulgar language, but I like reading books with vulgar language in it. WinMerge can be used as an external differencing/merging tool or as a standalone application.Attachment 173203Lengthy list of regexes to "clean up" language in books. WinMerge is highly useful for determining what has changed between project versions, and then merging changes between versions. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle. WinMerge is an Open Source differencing and merging tool for Windows.
