Dear libreoffice-dev,

Thank you for listening to my ideas at the ESC meeting, and I appreciate
the feedback.

I figured out how to trim WriterAgent to extract just the files needed for
=PY() and related code, OCR and the analysis tools, color syntax
highlighting, and TeX import. WriterAgent has prototype code that tries to
convert Calc formulas to =PY() syntax for users more familiar with Python
than Calc. However, this requires many helper functions and has only
partial coverage, so it is not included.

Also there are some questions. Ideally, LO would like compatibility with
Microsoft’s Excel implementation, but theirs IMO has a big flaw with the
xl() function so I’m not sure it’s worth doing. I'm worried there aren't
Calc experts to give feedback on difficult topics like this.

There's a build (called LibrePy.oxt) people can try out:
https://github.com/KeithCu/writeragent/releases/

LibrePy creates the =PY() function in the same (WriterAgent) namespace.
That way ODS files are compatible with each other. However both extensions
try to register it which will cause an error. For now install only one at a
time.

The Python support is 2 months old, and there hasn't been any user feedback
yet. LibrePy.oxt is 27k loc + 7k loc of vendored code so it would be very
helpful to get input before considering further steps.

P.S. WriterAgent also has MCP support, which many apps are adding to enable
AIs to use them. Some might not want to talk to AIs, but AIs want to be
able to talk to LibreOffice. The implementation is extensive but incomplete
and is not included. I would consider including it as a core feature one
day.

Regards,

-Keith

Reply via email to