Alpaca icon indicating copy to clipboard operation
Alpaca copied to clipboard

add odf format

Open olumolu opened this issue 1 year ago • 5 comments

http://opendocumentformat.org Add odf format in alpaca

olumolu avatar Jul 01 '24 04:07 olumolu

can it be converted to plain text?

Jeffser avatar Jul 01 '24 05:07 Jeffser

Yesodt2txt does this and i find now a days in many users use libreoffice which default to use odf.

olumolu avatar Jul 01 '24 05:07 olumolu

alright I might add it

Jeffser avatar Jul 01 '24 05:07 Jeffser

odt2txt was last updated 7 years ago, I rather not use it, it isn't even in PIP

Jeffser avatar Jul 01 '24 05:07 Jeffser

odt2txt was last updated 7 years ago, I rather not use it, it isn't even in PIP

Do you think it might be possible to add else close this request is the best option left

olumolu avatar Dec 18 '24 10:12 olumolu

Alpaca is now able to attach Odt files (ODF text document, LibreOffice Writter)

https://github.com/Jeffser/Alpaca/commit/c32c2e22c91311742611dcb5db3fbecd3538a9f0

It recognizes paragraphs, headings and tables!

Jeffser avatar Dec 18 '24 20:12 Jeffser

Thanks for consideration. I think you can still consider use odfdo it is just a drop in replacement and with a updated and maintained library... I would love to know why you think odfpy is a better choice rather than odfdo.

olumolu avatar Dec 18 '24 21:12 olumolu

cause I already did it with odfpy and I don't like redoing work when it's needed, that's all

Like I said before in the commit, I will use odfdo if I ever need to do anything more complex than just extracting text from a text document

Jeffser avatar Dec 18 '24 21:12 Jeffser

cause I already did it with odfpy and I don't like redoing work when it's needed, that's all

Like I said before in the commit, I will use odfdo if I ever need to do anything more complex than just extracting text from a text document

I understand.

olumolu avatar Dec 18 '24 21:12 olumolu

Whatever, I ported it

https://github.com/Jeffser/Alpaca/commit/789157cb9437e0b1ebd6833b88056709ebd187f1

Jeffser avatar Dec 18 '24 22:12 Jeffser

just so you know, I reverted the code to odfpy

https://github.com/Jeffser/Alpaca/commit/0af492b079b8305e26245294b0329061bc2d5fdf

Should have tested it before using odfdo, it doesn't define correctly one of it's dependencies and causes an error when trying to make a Flatpak package.

Jeffser avatar Dec 19 '24 21:12 Jeffser