Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You are in the right way. #18

Open
fvbatistoni opened this issue Dec 14, 2023 · 0 comments
Open

You are in the right way. #18

fvbatistoni opened this issue Dec 14, 2023 · 0 comments

Comments

@fvbatistoni
Copy link

I have add some lines after line 112 to generate a TXT file with html code. After that, I open the html. Unfortunetly, the html is messed up, with excess of classes and it is impossible to convert to EPUB... But I believe you are in the right way. If you change my lines, you can generate a good and clean html file and with Calibre it will be possible to convert to EPUB.
# render page content = f'<style>{style}{font_style}</style>{html}' render_page.set_content(content) arquivo = open('musica.txt', 'r', encoding='utf-8') conteudo = arquivo.readlines() conteudo.append(content) arquivo = open('musica.txt', 'w', encoding='utf-8') arquivo.writelines(conteudo) arquivo.close()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant