Remix.run Logo
rubyfan 6 hours ago

I haven’t looked under the hood here but to make simple text replacement via command line is an LLM even required? A human driven command line tool to do basic substitution on batches of files reliably would be amazing.

BorisMelnik 6 hours ago | parent | next [-]

there is a python library for docx handling. my thinking was the use case for this was for larger scale automations / document processing.

asdff 5 hours ago | parent | prev | next [-]

sed, awk. docx is just zipped xml.

kirillklimuk 4 hours ago | parent | prev | next [-]

Not really - if you wanna do a text replacement you can extract it yourself and do some work (or just use this CLI). The library is designed for longer workloads.

cyanydeez 5 hours ago | parent | prev [-]

you've never dealt with ooxml.

rubyfan 3 hours ago | parent [-]

Sadly I have spent lots of time with ooxml and pdf and my experience suggests there really aren’t reliable means for dealing with seemingly simple changes.