View Single Post
Old 07-17-2018, 05:38 PM   #19
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
The purpose of ENF is explained at the beginning of the Initial Post.

You did not attach any images or a job log, so I assume that is no longer a question. Instead, you have a new question.


If you want to delete the obscenities it changes to '****', you can manually edit the .zip file.

"C:\Users\rellwood\AppData\Roaming\calibre\plugins \English Noun Frequency.zip"

Inside it is file: english_obscenities.py

Inside that file is a function: def return_english_obscenities_set():

Inside that function is the set of obscenities. Empty out the words in that list so it looks like this:

english_obscenities_set = set(list([]))

instead of english_obscenities_set = set(list(['xxx','yyy',.........]))

Do not change indentation, etc.

Back-up the original .zip, and then the revised .zip. Future versions will overwrite your personal version.

Copy your revised version into "C:\Users\rellwood\AppData\Roaming\calibre\plugins \" so it replaces the stock version.


I will put on my to-do list to add a checkbox on the first Tab to allow you to decide whether to use the words and phrases in english_obscenities_set or not. In the meantime, do the above for now.


DaltonST

Last edited by DaltonST; 07-18-2018 at 08:49 AM. Reason: typos
DaltonST is offline   Reply With Quote