gutenbergtools / ebookmaker

The Project Gutenberg tool to generate EPUBs and other ebook formats.
GNU General Public License v3.0
84 stars 18 forks source link

Automatic transformation in epub (damn => dang) #185

Closed Khardan64 closed 1 year ago

Khardan64 commented 1 year ago
  1. Create a file with the following content:
<!DOCTYPE html>
<html>
<head><meta charset="UTF-8"><title>Mon titre</title></head>
<body><h2>condamné damné condamnation calomnie - damn demn dimn domn dumn - amn emn imn omn umn - mn</h2>
</body></html>
  1. Upload the HTML file to ebookmaker.pglaf.org.
  2. Open the epub file generated
  3. Note that the text in the epub now contains: condangé dangé condangation calomnie - dang demn dimn domn dumn - amn emn imn omn umn - mn

Note:

Khardan64 commented 1 year ago

In the same way, the word damnation is changed into condemnation.

  1. Create a file with the following content:
<!DOCTYPE html>
<html>
<head><meta charset="UTF-8"><title>My title</title></head>
<body><h2>The Damnation of Theron Ware</h2>
</body></html>
  1. Upload the HTML file to ebookmaker.pglaf.org.
  2. Open the epub file generated
  3. Note that the text in the epub now is: The Condemnation of Theron Ware

Note:

The Project Gutenberg eBook of The Condemnation of Theron Ware Title: The Condemnation of Theron Ware START OF THE PROJECT GUTENBERG EBOOK THE CONDEMNATION OF THERON WARE ... END OF THE PROJECT GUTENBERG EBOOK THE CONDEMNATION OF THERON WARE

windymilla commented 1 year ago

I just tried exactly that, and didn't get any transformation of damn into dang See this cache: https://ebookmaker.pglaf.org/cache/20230430114741/

What epub reader are you using? Maybe that is what is causing the issue?

windymilla commented 1 year ago

Similarly, book #133 has "The damnation of Theron Ware" not "condemnation" I checked ADE ebook reader and Calibre ebook viewer

srjfoo commented 1 year ago

Agreeing with @windymilla -- I didn't do multiple books, but I did try #133, and viewed in Apple's Books app on both computer and iPad, and saw no substitution.

Khardan64 commented 1 year ago

I found the problem and it comes from my own. There was an extension installed in my calibre (Language cleaner) and it affects the reader: changing all offensive language words to others. (The problem now, but only for me is that this extension modifed directly all the epub opened with the ebook reader and changed the words inside of them).

I'm really sorry for the time you may have spent on this :-<

windymilla commented 1 year ago

Thanks for the update @Khardan64 - glad you solved the mystery.