I’m trying to simultaneously avoid both of two problems when pasting a table (that I produce in javascript code) into libreoffice calc:
- The font is changed to Liberation Serif in all methods that don’t display the text import dialog.
- I don’t want to need to answer the text import dialog.
There should be many ways to skin this cat, but I can’t get any of them to work:
A) I thought there used to be an option somewhere to paste unformatted text without bringing up the text import dialog. But I can’t find that now. I’m using version 25.8.6.2 on Fedora 43.
B) It must be getting its choice of Liberation Serif from somewhere. If I could change that setting, that would deal with the problem. But I can’t find that setting.
C) If have copied a table from calc itself and examined the mime details on the clipboard, and changed my javascript to come as close to matching that as I can. But calc still ignores all formatting in the clipboard object I create, while obeying the formatting in the object it created itself. Is there any way for an external program to put a table on the clipboard with formatting calc will obey? Or does calc bypass the clipboard when pasting something it copied, and lack the ability to paste the same thing correctly from the clipboard?
Liberation Sans works well for me in everything else. I don’t know where that default is coming from, but for new sheets and paste of unformatted text, I get Liberation Sans, which I like. Pasting a table from html ignores that table’s formatting and changes all the fonts to Liberation Serif, which I’m trying to avoid.