Building LO fails with autogen

2014-10-14 Thread Jens Tröger
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 Tröger http

Re: Building LO fails with autogen

2014-12-26 Thread Jens Tröger
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 and see what comes up. Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice

Re: Building LO fails with autogen

2014-12-27 Thread Jens Tröger
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-27 Thread Jens Tröger
at ./autogen.sh line 157. This is on a Gentoo Linux system. I am not sure what that error message means, and looking up m4_pattern_allow 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

Re: Building LO fails with autogen

2014-12-28 Thread Jens Tröger
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 mailing list LibreOffice@lists.freedesktop.org

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 mailing

Re: Severe performance degradation on Linux

2014-12-29 Thread Jens Tröger
. -- 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
: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 lookup that times out. -- Jens Tröger

Re: Severe performance degradation on Linux

2014-12-30 Thread Jens Tröger
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/ ___ LibreOffice mailing list

Re: Severe performance degradation on Linux

2014-12-30 Thread Jens Tröger
? 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
). 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://savage.light-speed.de

Re: Severe performance degradation on Linux

2015-01-02 Thread Jens Tröger
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.pid in KCachegrind ? - Maarten -- Jens Tröger http://savage.light-speed.de

Re: Severe performance degradation on Linux

2015-01-03 Thread Jens Tröger
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=20t=74332p=336914#p336350 Does the call profile for LO raise a flag to any of you devs? Cheers, Jens -- Jens

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
? - Maarten -- 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
to import other modules. There's some more info here: http://stackoverflow.com/questions/15223209/installing-pyuno-libreoffice-for-private-python-build/ Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice

Re: Installing a virtual env around LO Python

2015-02-18 Thread Jens Tröger
-for-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-libreoffice-for-p What

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

Installing a virtual env around LO Python

2015-02-18 Thread Jens Tröger
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

Python UNO import on Mac broken

2015-02-18 Thread Jens Tröger
...) 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: 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 packages into the venv

Re: Severe performance degradation on Linux

2015-01-10 Thread Jens Tröger
the 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-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 64b LibreOffice

Re: Severe performance degradation on Linux

2015-01-05 Thread Jens Tröger
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-07 Thread Jens Tröger
. - Maarten -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: LO server leaves pipe behind?

2015-02-20 Thread Jens Tröger
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

Re: Load files into Writer only?

2015-03-14 Thread Jens Tröger
! 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 libmagic can help? There is a list

Re: Load files into Writer only?

2015-03-15 Thread Jens Tröger
( (propVal,) ) and pass a document into the load() method? That wouldn't constrain myself to Writer? Cheers, Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman

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

2015-03-09 Thread Jens Tröger
-- 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
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: How many degrees of headlessness do we need?

2015-03-31 Thread Jens Tröger
) 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/ ___ LibreOffice mailing

Re: Load files into Writer only?

2015-04-01 Thread Jens Tröger
) 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 fail here? Cheers, 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
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 do I tear down soffice cleanly?

2015-03-03 Thread Jens Tröger
) if queryInterface in dir(document) and document.queryInterface(uno.Type(com.sun.star.util.XCloseable, INTERFACE)) : document.close(True) else : document.dispose() Cheers, Jens -- Jens Tröger http://savage.light-speed.de

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 (fail) on others

Load files into Writer only?

2015-02-26 Thread Jens Tröger
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. Thanks! Jens -- Jens Tröger http://savage.light-speed.de

How do I tear down soffice cleanly?

2015-02-20 Thread Jens Tröger
that something wasn't cleaned up correctly, or else the dialog wouldn't show?) I've asked that same questions with short code examples in the forum, to no avail. Any takers? Help would be greatly appreciated :-) https://forum.openoffice.org/en/forum/viewtopic.php?f=25t=75367 Thanks! Jens -- Jens

LO server leaves pipe behind?

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

Re: How do I tear down soffice cleanly?

2015-02-25 Thread Jens Tröger
, 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.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Closing_Documents

Re: Loading LaTeX document results in odd output

2015-04-09 Thread Jens Tröger
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.freedesktop.org/mailman/listinfo

Re: Loading LaTeX document results in odd output

2015-04-09 Thread Jens Tröger
, 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@lists.freedesktop.org http

Loading LaTeX document results in odd output

2015-04-09 Thread Jens Tröger
: 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 mailing list LibreOffice

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 mailing

Re: Loading LaTeX document results in odd output

2015-04-09 Thread Jens Tröger
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öger http://savage.light-speed.de

Re: Loading LaTeX document results in odd output

2015-04-09 Thread Jens Tröger
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
=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
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 file through the UNO API without any problems. Jens -- Jens Tröger http://savage.light-speed.de/ ___ LibreOffice mailing list

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 do

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

How to run multiple instances of Writer simultaneously?

2017-10-18 Thread Jens Tröger
) and 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 http

Re: How to run multiple instances of Writer simultaneously?

2017-10-19 Thread Jens Tröger
; > I.e., 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 be

Re: How to run multiple instances of Writer simultaneously?

2017-10-19 Thread Jens Tröger
red in your case among all open documents) > shutdown? > > -- > Best regards, > Mike Kaganski > -- 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
fileCached: > shutil.copytree(userProfile, cacheDir) > > > desktop = > context.ServiceManager.createInstanceWithContext("com.sun.star.frame.Desktop", > context) > desktop.loadComponentFromURL('private:factory/swriter', 'blank', 0, ()) > > # ... clean up temporary directory when done (omitted) > -- 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
. And you > should really 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-23 Thread Jens Tröger
ther 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
, 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 <t...@iki.fi> wrote: > > On 23 October 2017 at 11:

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

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: 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-speed.de

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: 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

Re: Association between ToC index object and its paragraph content

2017-12-07 Thread Jens Tröger
(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: Association between ToC index object and its paragraph content

2017-12-07 Thread Jens Tröger
, is 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-10 Thread Jens Tröger
gt;> Hi, >> On Fri, Dec 08, 2017 at 10:19:29AM +0100, Jens Tröger >> <jens.troe...@light-speed.de> 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 >&

Re: Association between ToC index object and its paragraph content

2017-12-11 Thread Jens Tröger
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 > <jens.troe...@light-speed.de> wrote: > > While walking all paragraphs of a Writer document and visiting their text > > conten

Re: Association between ToC index object and its paragraph content

2017-12-12 Thread Jens Tröger
is a Bookmark text portion. > 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.fr

Re: Association between ToC index object and its paragraph content

2017-12-12 Thread Jens Tröger
his is if there is a paragraph enumeration 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/ ___ Libr

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

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

Re: How to run multiple instances of Writer simultaneously?

2017-10-19 Thread Jens Tröger
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öger http://

Re: How to run multiple instances of Writer simultaneously?

2017-10-19 Thread Jens Tröger
independent LO instances 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 o

Re: How to run multiple instances of Writer simultaneously?

2017-10-22 Thread Jens Tröger
re 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: 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

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-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

Re: Looking for TextPortion, TextField clarifications

2018-03-13 Thread Jens Tröger
rks code - 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/ ___

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=92922 Thanks! Jens -- Jens Tröger http://savage.light-speed.de

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

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

Paragraphs and numbering

2018-03-25 Thread Jens Tröger
than 1 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: How do I open/populate a Writer “master document” programmatically?

2018-03-26 Thread Jens Tröger
erate over the Master Document’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-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

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

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

MacOS Python: how to install additional packages

2018-12-06 Thread Jens Tröger
/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: HTML import filter very (too) basic

2019-01-12 Thread Jens Tröger
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
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

Re: HTML import filter very (too) basic

2019-01-09 Thread Jens Tröger
K 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… Many greeting

Re: HTML import filter very (too) basic

2019-01-09 Thread Jens Tröger
, 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/