epub-translate
epub-translate copied to clipboard
Provide option to include text within spans and formatting tags when translating paragraphs
Your code is really awesome. I'm amazed you translate the whole book with so few lines of code. Thanks.
I have an ebook that is mostly encoded in <p>
tags. But within are <span>
tags and some style tags like <i>
and <b>
, as well. It looks like the code is translating each tag, but this messes up the translation.
It would be nice to have an option where all text within a single <p>
is translated, including text within spans and style tags. I understand this would mean losing those tags when copying the translated text back into the paragraph tags.
An advanced feature would be to translate the embedded tags (span, style) separately and see which text matches up. If it does, then the span or style tag could be placed back in!
Hello, yes, this is an issue with the method chosen to separate the text and the HTML tags.
Can you send me the book, so I can check?