deangelisdf / write2audiobook

A powerful tool designed to convert text-based documents into engaging audiobooks. Perfect for anyone looking to make reading more accessible, whether for people with visual impairments or for those who simply prefer listening on the go.
MIT License
2 stars 4 forks source link

Improve table reading (docx) #12

Open deangelisdf opened 2 months ago

deangelisdf commented 2 months ago

This table reading is already in place, but for the reader is not clear when it start and the iteration with them.

Desiderable: add a parameter to add verbosity reading of table

Krishn1412 commented 2 months ago

hey @deangelisdf, can I pick this up? Also it would be great if you could add some more details about the already existing reader. TIA

deangelisdf commented 2 months ago

Hi @Krishn1412 right now this part is handled in this piece of code: https://github.com/deangelisdf/write2audiobook/blob/main/docx2audio.py#L107

It shall be refactored. The code extract the text for each cell and concat each one to have a final row as final text. The "sugar text" are defined as global dictionary in the first lines of script.

Krishn1412 commented 2 months ago

Hey @deangelisdf, can you check this PR? https://github.com/deangelisdf/write2audiobook/pull/19

deangelisdf commented 1 month ago

@Krishn1412 could you please check the comments in code review?

Krishn1412 commented 1 month ago

@deangelisdf, can you check the changes now