bookfere / Ebook-Translator-Calibre-Plugin

A Calibre plugin to translate ebook into a specified language.
https://translator.bookfere.com
GNU General Public License v3.0
1.68k stars 111 forks source link

Enhancement for extension to allow excluding specific HTML tags and CSS classes in .epub files #231

Closed llkiriell closed 7 months ago

llkiriell commented 7 months ago

Currently, the extension does not offer the ability to exclude certain HTML tags or CSS classes during the translation process. I propose to improve the translation interface to allow users to specify which HTML tags or CSS classes should not be considered for text scanning and therefore should not be translated.

This functionality would be particularly useful for books that contain code examples in programming languages, since these examples are often encapsulated within tags such as <pre> or <code>, which must remain untranslated to preserve the integrity of the code.

Additionally, I suggest the option to exclude specific elements based on CSS classes or selectors, allowing users to further customize which parts of the content they want to exclude from translation.

This improvement would significantly expand the versatility of the extension and improve the user experience for those working with eBooks that contain source code or other technical content.

I hope you will consider this proposal and integrate it into future versions of the extension. Thank you for your time!

bookfere commented 7 months ago

Thank you for your feedback.

However, it seems that these issues have been resolved for a while. If your installed plugin is from Calibre and its version is 2.2.0, it may be outdated as this plugin has not been updated for a long time (a new version will be released soon). I recommend manually downloading and installing the latest version (Rolling Version) from https://translator.bookfere.com.

Once you have installed the latest version, please check the [Ignore Paragraph] and [Ignore Element] options in the settings to see if they meet your needs.

If you encounter any problems with the latest version, please feel free to provide further feedback.