Re: HTML import filter very (too) basic

2019-01-12 Thread Jens Tröger
rting the HTML model to our own document model. > > Yes, and that part is handled independently between Writer and Calc. > > Kohei > > -- > Kohei Yoshida, LibreOffice Calc volunteer hacker -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: HTML import filter very (too) basic

2019-01-09 Thread Jens Tröger
t; Works OK for that, but LO definitely is not website editor... > > ciao > Christian @Chrisitian, that makes sense and I wouldn’t want LO to use as a website editor. But I think computing CSS for nested elements (e.g. a or , see the example screenshot) would make sense… Man

Re: HTML import filter very (too) basic

2019-01-09 Thread Jens Tröger
++ and Linux etc, LO seems like a magnificent beast of code and I am unable to judge whether I’d be useful tackling these issues myself. It would be great to find whoever knows the code to discuss… Many greetings, Jens -- Jens Tröger http://savage.light-speed.de/ __

Re: HTML import filter very (too) basic

2019-01-09 Thread Jens Tröger
around in that CSS resolution for nested elements (both, div and span)… 🤓 Cheers, Jens > On Jan 9, 2019, at 20:22, Noel Grandin wrote: > > On Wed, 9 Jan 2019 at 10:25, Jens Tröger wrote: > > > On Jan 9, 2019, at 16:06, Noel Grandin wrote: > > > > Nobody owns it

MacOS Python: how to install additional packages

2018-12-06 Thread Jens Tröger
p/Contents/Resources/uno.py", line 19, in import pyuno ModuleNotFoundError: No module named 'pyuno' What’s the recommended approach here? Cheers, Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Resources on writing import/export file filters for Writer

2018-09-29 Thread Jens Tröger
/blob/master/svtools/source/svhtml/parhtml.cxx#L394-L622 which are listed here: https://dev.w3.org/html5/html-author/charref I’ll take a closer look… Cheers, Jens On Thu, Sep 27, 2018 at 11:24:40AM +0200, Noel Grandin wrote: > > On 2018/09/27 11:10 AM, Jens Tröger wrote: > > I’ve

Re: Resources on writing import/export file filters for Writer

2018-09-27 Thread Jens Tröger
Thank you Miklos, I’ve been poking through the HTML reader (rather superficially, I admit) in search for the code that expands HTML entities to Unicode. I did that to address this bug: https://bugs.documentfoundation.org/show_bug.cgi?id=119944 Didn’t find much, so could you please point me i

Re: Resources on writing import/export file filters for Writer

2018-05-22 Thread Jens Tröger
Thank you Miklos! I've spent some time trying to figure out how to use XSLT to define export to an XML format, e.g. here: https://wiki.openoffice.org/wiki/Export_filter_framework That too seems to require writing a native-code wrapper, but most of the documentation here is way outdated (earl

Re: Resources on writing import/export file filters for Writer

2018-05-19 Thread Jens Tröger
Hello, I haven’t yet had the time to dive into the topic yet—unfortunately. So perhaps my question is somewhat of a guess: compared to using the Python UNO interface to load and traverse a document, can I expect a performance improvement when I use a filter to save the information that I currentl

Re: How do I open/populate a Writer “master document” programmatically?

2018-03-26 Thread Jens Tröger
cument’s content as if it were a single document. Cheers, Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Resources on writing import/export file filters for Writer

2018-03-26 Thread Jens Tröger
Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice

How do I open/populate a Writer “master document” programmatically?

2018-03-26 Thread Jens Tröger
though: is it a predefined URL argument to loadComponentFromURL() like e.g. private:factory/swriter? There’s a bit more detail here: https://forum.openoffice.org/en/forum/viewtopic.php?f=45&t=92922 Thanks! Jens -- Jens Tröger http://savage.light-spee

Paragraphs and numbering

2018-03-25 Thread Jens Tröger
if the paragraph is a heading of sorts. By default, “Title” and “Heading 1” are both 1. So checking whether a paragraph is a heading depends on the `OutlineLevel` rather than the `NumberingIsOutline` boolean. Is that about right? What did I miss with respect to document hierarchy? Cheers! Jens -

Re: Resources on writing import/export file filters for Writer

2018-03-21 Thread Jens Tröger
Thank you David. That's a start but still assumes a lot of implicit knowledge about the surrounding infrastructure. Is there a minimal export plugin to start from? I do have quite some experience with the object model from the Python/UNO view. Also, it appears that LO6+ imports (x)html files to so

Re: Looking for TextPortion, TextField clarifications

2018-03-13 Thread Jens Tröger
de - this implementation > detail should never be visible in the API. Is this bug going to be fixed at some point? Will the fix make reference information to the target available? Thanks! Jens -- Jens Tröger http://savage.light-speed.de/ ___

Re: Resources on writing import/export file filters for Writer

2018-03-01 Thread Jens Tröger
Thank you Miklos! Fridrich's blog was interesting, and mentions export filters on occasion. It hasn't given much detail though on how to actually write a XFilter based implementation which is what seems most sensible. Perhaps somebody can point me at the source code of existing (simple) export fi

Re: Render differences of DOCX between Word and LO/AOO

2018-02-22 Thread Jens Tröger
Chris, thank you, and done: https://bugs.documentfoundation.org/show_bug.cgi?id=115944 -- Sent from: http://nabble.documentfoundation.org/Dev-f1639786.html ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mai

Resources on writing import/export file filters for Writer

2018-02-18 Thread Jens Tröger
for that same documentation. Thanks! Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Render differences of DOCX between Word and LO/AOO

2018-01-31 Thread Jens Tröger
Thank you Jonathon for the char/word count explanation. However, I’m more concerned about the differences in rendering (which in turn accounts for the large difference in page count) and the loss of font use (see the heading). If need be I can provide a test document that demonstrates these issues

Re: Association between ToC index object and its paragraph content

2017-12-12 Thread Jens Tröger
On Tue, Dec 12, 2017 at 03:53:41PM +0100, Michael Stahl wrote: > On 12.12.2017 14:22, Jens Tröger wrote: > > Michael, I the case you describe would I not see the same UNO object > > address for the same paragraph in the document? But iterating over the > > ToC’s pa

Re: Association between ToC index object and its paragraph content

2017-12-12 Thread Jens Tröger
umeration that > partially selects a paragraph - those are never cached. > > (also, not every UNO document model service in Writer implements such > caching.) -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mail

Re: Association between ToC index object and its paragraph content

2017-12-12 Thread Jens Tröger
gt; There is no closer connection between these two, I think. > > Regards, > Miklos -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Association between ToC index object and its paragraph content

2017-12-11 Thread Jens Tröger
sely exist? Cheers, Jens On Thu, Dec 07, 2017 at 09:58:24AM +0100, Miklos Vajna wrote: > Hi Jens, > > On Thu, Dec 07, 2017 at 06:04:08AM +0100, Jens Tröger > wrote: > > While walking all paragraphs of a Writer document and visiting their text > > content, I com

Re: Association between ToC index object and its paragraph content

2017-12-10 Thread Jens Tröger
8, 2017 at 10:19:29AM +0100, Jens Tröger >> wrote: >>> Same happens for 5.4.3.2 and 6.0 (dev) as well. I've got a tiny test >>> DOCX here which demonstrates the problem, should I file a bug? Also, it >>> seems to happen only for top-level entries (i.e. Headi

Re: Association between ToC index object and its paragraph content

2017-12-08 Thread Jens Tröger
> contain Heading 1 paragraphs? Or also Heading 2? etc), then just > querying the outline numbering property ("OutlineLevel" is the UNO > property name) of the paragraph should work. Or check if it has a > RefHeading bookmark (see my previous mail) if that works bett

Re: Association between ToC index object and its paragraph content

2017-12-07 Thread Jens Tröger
there any other indication than the par’s name that the par is in fact part of the ToC index object? Cheers, Jens On Thu, Dec 07, 2017 at 07:40:35PM +1000, Jens Tröger wrote: > Thanks Miklos, > > Actually, what I find odd is that I don’t see any `text.HyperLinkURL` > attributes w

Re: Association between ToC index object and its paragraph content

2017-12-07 Thread Jens Tröger
gt; always read (most of) the ODT filter in xmloff/ to see what exact UNO > API is used to write a given ODT markup. > > Regards, > Miklos -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice

Association between ToC index object and its paragraph content

2017-12-06 Thread Jens Tröger
://forum.openoffice.org/en/forum/viewtopic.php?t=91448 Is there an association between the XDocumentIndex object (the ToC index of the document) and the XTextContent objects (paragraphs that make the actual ToC content) and how can I find it? Thanks! Jens -- Jens Tröger http://savage.light

Re: Looking for TextPortion, TextField clarifications

2017-11-17 Thread Jens Tröger
Some clarification: > It seems that reference strings have somewhat different spaces: > “_Ref498096146 “ and “ _Ref498096146” are the same reference (space after, > space before) I assume? The spacing seems to be inserted by calling getPresentation(). Using the SourceName and CurrentPresentati

Trying to avoid oosplash

2017-11-15 Thread Jens Tröger
/lib64/libreoffice/program/soffice.bin I thought that --nologo avoids the splash? How can I avoid that splash, and what exactly does it do? Cheers, Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice

Looking for TextPortion, TextField clarifications

2017-11-12 Thread Jens Tröger
a field’s “code” can be something like { PAGEREF _Ref498098146\h} (or NOTEREF, or REF). How are these reference kinds represented in the OO object model? Thanks! Jens -- Jens Tröger http://savage.light-speed.de/ <http://savage.light-speed.de/> _

Re: How to run multiple instances of Writer simultaneously?

2017-11-10 Thread Jens Tröger
Hello again, Just wanted to mention that I also added the --nologo command line option when spawning a new soffice process. I assumed it's implicit with --headless --invisible but apparently not… Cheers, Jens -- Jens Tröger http://savage.light-spe

Re: How to run multiple instances of Writer simultaneously?

2017-10-23 Thread Jens Tröger
o whether multiple >document windows are open, or just one, or none at all. > >--tml -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: How to run multiple instances of Writer simultaneously?

2017-10-23 Thread Jens Tröger
might be quite hard.) >--tml Yes, I know, I'm quite aware of the funk of multi-threaded code ;) Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: How to run multiple instances of Writer simultaneously?

2017-10-23 Thread Jens Tröger
ment. Tor, I have a feeling that the LO/AOO community has discussed multi-threading before? To complex to change? Or not necessary? Do you have more information on this topic? Thanks! Jens > On Oct 23, 2017, at 18:56, Tor Lillqvist wrote: > > On 23 October 2017 at 11:31, Jens T

Re: How to run multiple instances of Writer simultaneously?

2017-10-22 Thread Jens Tröger
ny more details on that? Thanks! Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: How to run multiple instances of Writer simultaneously?

2017-10-19 Thread Jens Tröger
ances of an appropriate size for your number of CPU > threads, then feed them jobs one at a time each. There is definitely no > canned answer for this, so you would have to do your own benchmarking and > tuning to find the optimum pool size for the resources of your local machine

Re: How to run multiple instances of Writer simultaneously?

2017-10-19 Thread Jens Tröger
that others can not open documents anymore. However, it doesn't seem to terminate the soffice process itself. Also, I have performance concerns for this approach: loading and running through just two documents simultaneously seemed to be unproportionally slow!? Thank you! Jens -- Jens Tröge

Re: How to run multiple instances of Writer simultaneously?

2017-10-19 Thread Jens Tröger
://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=75523 What about scalability as per this question: https://forum.openoffice.org/en/forum/viewtopic.php?f=6&t=74002 Thank you, Jens > On Oct 19, 2017, at 18:26, Matthew Francis wrote: > > On 19 October 2017 at 15:05, Jens Trög

Re: How to run multiple instances of Writer simultaneously?

2017-10-19 Thread Jens Tröger
tion=/tmp/random-dir but that just prolongs the process creation noticeably! Thanks! Jens > On Oct 19, 2017, at 16:48, Kaganski Mike wrote: > Hi, > > Maybe the real question is how to close a document without forcing > soffice process (which is shared in your case amo

Re: How to run multiple instances of Writer simultaneously?

2017-10-18 Thread Jens Tröger
use a different UserInstallation for each instance as well. > > D. -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: How to run multiple instances of Writer simultaneously?

2017-10-18 Thread Jens Tröger
, are you asking how to spawn multiple soffice.bin processes, or how to > open multiple Writer documents, at the same time? > > For the first case, you need to spawn the processes with separate "user > installation" directories. For the second case, that should b

How to run multiple instances of Writer simultaneously?

2017-10-18 Thread Jens Tröger
then shutting one process down kills the other as well. What vital resources are being shared here, and what is the recommended way of spawning multiple Writers (i.e. opening multiple documents) simultaneously? There’s more information in the forum’s post. Thanks! Jens -- Jens Tröger

Re: Where is Python on Mac

2017-05-16 Thread Jens Tröger
Oh it's moved from Contents/MacOS/python to Contents/Resources/python. And it's 3.5 now, too. Thanks! Jens On Mon, May 15, 2017 at 10:07:28AM +0200, Stephan Bergmann wrote: > On 05/12/2017 03:44 PM, Jens Tröger wrote: > > I have noticed that the past few drops of LO for Mac

Where is Python on Mac

2017-05-12 Thread Jens Tröger
Hi, I have noticed that the past few drops of LO for Mac do not ship with a Python 3 interpreter anymore, but seem to contain Uno related resources. What’s the plan wrt PyUno support on Mac? Cheers, Jens -- Jens Tröger http://savage.light-speed.de

Re: Loading LaTeX document results in odd output

2015-04-09 Thread Jens Tröger
tps://bugs.documentfoundation.org/show_bug.cgi?id=90528 Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Loading LaTeX document results in odd output

2015-04-09 Thread Jens Tröger
o a root cause, and that output contradicts what LO eventually does. The output also indicates that something goes awry during the load of a plain-text document which happens to contain LaTeX commands. IMO this is an issue that needs resolution. (Which is why I started this thread.) Jens -- Jens Tr

Re: Loading LaTeX document results in odd output

2015-04-09 Thread Jens Tröger
nded for the user (in the GUI) does it display? It does open the file as plain text, and LO does not give any further GUI warnings. Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Loading LaTeX document results in odd output

2015-04-09 Thread Jens Tröger
, whichever build you can download from the website. Same happens with the latest 4.4.2, just downloaded from the website. Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.fr

Re: Loading LaTeX document results in odd output

2015-04-09 Thread Jens Tröger
On Thu, Apr 09, 2015 at 06:54:11AM -0400, Andrew Pitonyak wrote: > What happens of you rename the file to have a .txt file extension? Then it works fine without any output. Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mail

Re: Loading LaTeX document results in odd output

2015-04-09 Thread Jens Tröger
s to load a plain text file. A LaTeX file is plain text. I would expect LO to be able to handle a plain text file. On OS X it was simple: load the file with the normal "Open File" dialog. On OS X and Linux, I could also load that same f

Re: Loading LaTeX document results in odd output

2015-04-09 Thread Jens Tröger
o significance, then why is that output there? Jens On Thu, Apr 09, 2015 at 10:53:13AM +0300, Tor Lillqvist wrote: >What did you expect to happen? >--tml -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@

Loading LaTeX document results in odd output

2015-04-09 Thread Jens Tröger
ce :1: parser error : Document is empty \documentclass{article} ^ I have noticed similar and more on Linux LO. What's that about? Can and should I ignore this? Cheers, Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice

Re: Load files into Writer only?

2015-04-01 Thread Jens Tröger
textdoc.close(True) While I couldn't use this due to a crash of createInstance(), it looks to me as if this code would be an alternative to what we've discussed in this thread. I assume that loading, say, a Calc or an image would

Re: How many degrees of headlessness do we need?

2015-03-31 Thread Jens Tröger
it down, is --quickstart >(coincidentally) how you should start it, not --invisible? >--tml Oh how I would like to run a persistent LO server that scales well with the number of connections... :) (Off topic though.) Jens -- Jens Tröger http://savage.light-speed.de/

Re: How many degrees of headlessness do we need?

2015-03-31 Thread Jens Tröger
us > defeats XDesktop.terminate, unlike --invisible. Sounds like --quickstart is more of a persistent server mode then? -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: How many degrees of headlessness do we need?

2015-03-30 Thread Jens Tröger
p to define use cases and use scenarios; then adjust and fix the switches accordingly. Cheers, Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Load files into Writer only?

2015-03-15 Thread Jens Tröger
can use # Create an empty Writer document. document = desktop.loadComponentFromURL("private:factory/swriter", "_blank", 0, ()) document.load( (propVal,) ) and pass a document into the load() method? That wouldn't constrain myself to Writer? Cheers, Jens --

Re: Load files into Writer only?

2015-03-14 Thread Jens Tröger
greatly appreciated :-) Thanks! On Thu, Mar 05, 2015 at 05:53:35AM +0100, Jens Tröger wrote: > One way of approaching the problem below is by checking the file type of > the document, before handing it off to the soffice instance. Checking > the extension only might be too flimsy, perhaps libmag

Re: System python on Mac (was: Re: LibreOffice 4 and Python on Yosemite)

2015-03-09 Thread Jens Tröger
breoffice-for-private-python-build/28593413#28593413 Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Load files into Writer only?

2015-03-04 Thread Jens Tröger
/LibreOffice#Supported_file_formats but it seems rather tedious to me to check manually for Writer document files. Is there a better way? Cheers. On Thu, Feb 26, 2015 at 05:36:18PM +0100, Jens Tröger wrote: > Hi, > > Is there a way to load Writer supported documents only, and dismiss &g

Re: How do I tear down soffice cleanly?

2015-03-03 Thread Jens Tröger
or the discussion. I have adjusted my code to the following, which seems to work: from com.sun.star.uno.TypeClass import INTERFACE # or use: hasattr(document, "queryInterface") if "queryInterface" in dir(document) and document.queryInterface(uno.Type("com.su

Load files into Writer only?

2015-02-26 Thread Jens Tröger
text but can't figure out if that's the right way to go. Or should I check if the file is of a certain type before I pass it on to office? In that case though, I might reject some funky format which Writer supports, just because I didn't know about it. Tha

Re: How do I tear down soffice cleanly?

2015-02-25 Thread Jens Tröger
eb 25, 2015 at 09:18:38PM +0100, Michael Stahl wrote: > On 24.02.2015 18:41, Jens Tröger wrote: > > Supporting documentation: > > > > > > http://www.openoffice.org/api/docs/common/ref/com/sun/star/util/XCloseable.html > > > > https://wiki.openoffi

Re: LO server leaves pipe behind?

2015-02-20 Thread Jens Tröger
ic.php?f=25&t=75367 Perhaps I'm going about this incorrectly which leads these files behind. Thanks! Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

LO server leaves pipe behind?

2015-02-20 Thread Jens Tröger
soffice remove its allocated resources? Cheers, Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

How do I tear down soffice cleanly?

2015-02-20 Thread Jens Tröger
viewtopic.php?f=25&t=75367 Thanks! Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Installing a virtual env around LO Python

2015-02-19 Thread Jens Tröger
On Thu, Feb 19, 2015 at 05:45:58AM +0100, Jens Tröger wrote: > What is the proper and recommended way of building a Python virtual > environment around the LO Python? I'd like to ensure that uno is > available and functioning, while at the same time I can install > additional

Re: Installing a virtual env around LO Python

2015-02-18 Thread Jens Tröger
-python-3-in-ubuntu-12-04-lts On Thu, Feb 19, 2015 at 05:45:58AM +0100, Jens Tröger wrote: > Hello, > > The question in this email arose from Stephan Bergman's answer to a > stackoverflow thread: > > > http://stackoverflow.com/questions/15223209/installing-pyuno-libr

Installing a virtual env around LO Python

2015-02-18 Thread Jens Tröger
miss something? I'm somewhat unclear on this whole issue... Cheers :) Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Python UNO import on Mac broken

2015-02-18 Thread Jens Tröger
about building a Python venv around the LibreOffice Python? Perhaps that belongs in its own thread though. Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org

Re: Python UNO import on Mac broken

2015-02-18 Thread Jens Tröger
thon and will not work with any other version that may be > installed on the system because it will most likely not have the same C ABI. Correct, you can import uno only in a Python 3.3.x environment. AFAIK you can build your own LO for Python 2.7, that worked fin

Python UNO import on Mac broken

2015-02-18 Thread Jens Tröger
it doesn't on the latest Ubuntu, but pip/venv is broken there too...) Cheers, Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Severe performance degradation on Linux

2015-01-10 Thread Jens Tröger
Office instance and the client side, the test document ran for about 0.9 seconds (instead of 45s) at almost the speed of the named pipe. More info about this is here: https://superuser.com/questions/860321/linux-localhost-sockets-painfully-slower-than-on-mac/862303 Cheers, Jens -- Jens Tröger

Re: Severe performance degradation on Linux

2015-01-07 Thread Jens Tröger
ntu 14.04), LibreOffice 4.3.4.1 (Fedora 21), >and master. >- Maarten > -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Severe performance degradation on Linux

2015-01-05 Thread Jens Tröger
PRIVATE'), though im not sure how relevant that may be. I >attached the strace output. >- Maarten -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Severe performance degradation on Linux

2015-01-03 Thread Jens Tröger
The following is interesting: On Sat, Jan 03, 2015 at 05:22:42PM +0100, Jens Tröger wrote: > > 32b LibreOffice on Mac (py 3.3.5) > Elapsed time: 1.8361830711364746 with 550 pars > > 64b LibreOffice on Mac (py 3.3.5) > Elapsed time: 0.8173670768737793 with 550 pars >

Re: Severe performance degradation on Linux

2015-01-03 Thread Jens Tröger
iles that 'valgrind --tool=callgrind' >produced to the list ? >- Maarten -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Severe performance degradation on Linux

2015-01-03 Thread Jens Tröger
that make sense? Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Severe performance degradation on Linux

2015-01-03 Thread Jens Tröger
profiles the Python run itself. What troubles me with the current scenario is that running LO inside of an IPy Notebook seems to have run for the expected 2 sec, see this answer to my thread: https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=74332&p=336914#p336350 Does the ca

Re: Severe performance degradation on Linux

2015-01-02 Thread Jens Tröger
Maarten Hoes wrote: >Hrm. >Perhaps a wiki page may not be needed after all; it doesnt seem to get >more complicated than this ? : >valgrind --tool=callgrind instdir/program/soffice >And then load the contents of callgrind.out. in KCachegri

Re: Severe performance degradation on Linux

2014-12-31 Thread Jens Tröger
Wed, Dec 31, 2014 at 07:42:37AM +, jonathon wrote: > > On 30/12/14 12:50, Jens Tröger wrote: > > Unless office attempts to connect "somewhere" (where to, anyway?) > > Where are you getting the builds from? > > On at least one distro, the version in their re

Re: Severe performance degradation on Linux

2014-12-30 Thread Jens Tröger
Is there a strong preference >for a tool to use ? (gprof vs. vallgrind/callgrind vs.). >I could take a sec. to write up a (tested) page with the procedure if >people can describe the basic preferred way to do it on list. >;) >- Maarten -- Jens Tröger http

Re: Severe performance degradation on Linux

2014-12-30 Thread Jens Tröger
h running it under strace >and see if that already turns up something useful ? > http://linux.die.net/man/1/strace >Regards, >Maarten -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Severe performance degradation on Linux

2014-12-30 Thread Jens Tröger
et a symbols build and run it with >callgrind. You can interpret the results with kcachegrind which will >hopefully show what took so much time and allow you to work on a fix. > Regards, >Markus -- Jens Tröger http://savage.light-speed.de/ ___

Re: Severe performance degradation on Linux

2014-12-30 Thread Jens Tröger
, Dec 30, 2014 at 08:34:03AM +0200, Noel Grandin wrote: > when connecting to something on the local machine, if the machine name > or the localhosts entry is /etc/hosts > is incorrectly setup, the connection process can take an extra 30 > seconds while the socket library performs a DNS loo

Re: Severe performance degradation on Linux

2014-12-29 Thread Jens Tröger
roblem. > -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Severe performance degradation on Linux

2014-12-29 Thread Jens Tröger
Could you elaborate, please? On Mon, Dec 29, 2014 at 01:44:51PM +0200, Noel Grandin wrote: > That smells like a DNS timeout. I suspect that you have some kind of > network problem. -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice m

Re: Building LO fails with autogen

2014-12-28 Thread Jens Tröger
use 4.3 or newer you may want to > give a try to pylokit, a python wrapper for LibreOfficeKit. > > https://github.com/xrmx/pylokit > > thanks, > riccardo -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mai

Re: Building LO fails with autogen

2014-12-27 Thread Jens Tröger
llow" I found this note: http://lists.gnu.org/archive/html/autoconf/2010-01/msg00050.html Do you know what's happening here? Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Building LO fails with autogen

2014-12-27 Thread Jens Tröger
you more troubles, as almost nobody uses that option, so > you will start using some code path that gets very little testing. -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Building LO fails with autogen

2014-12-26 Thread Jens Tröger
nf documentation. Failed to run autoconf at ./autogen.sh line 176. > Please ask the Gentoo guys, the same autoconf version is fine here e.g. > on openSUSE, so it seems your problem is somewhat Gentoo-specific. Ok, I'll post in their forums

Building LO fails with autogen

2014-10-14 Thread Jens Tröger
r: possibly undefined macro: AC_LANG_PUSH configure.ac:3698: error: possibly undefined macro: AC_LANG_POP configure.ac:4885: error: possibly undefined macro: AC_RUN_IFELSE Failed to run autoconf at ./autogen.sh line 158. How can I fix this? What are the tools dependencies here? Jens -- Jens