Adding a new import file type

Discuss setup / installation issues - Add a spell checker, Language pack?
Post Reply
_savage
Posts: 187
Joined: Sun Apr 21, 2013 12:55 am

Adding a new import file type

Post by _savage »

If I wanted to tinker with a new import file type, so that OO Writer is able to read this particular file format—where's the right way to start? Documentation? Examples? Thanks :super:
Mac 10.14 using LO 7.2.0.2, Gentoo Linux using LO 7.2.3.2 headless.
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Adding a new import file type

Post by Villeroy »

You need to know the file format. And you need to be a fairly proficient programmer. If it is some flavour of XML, you can transform it to Open Document XML via XSLT and integrate the XSLT script via Tools>XML Filters...
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
_savage
Posts: 187
Joined: Sun Apr 21, 2013 12:55 am

Re: Adding a new import file type

Post by _savage »

Villeroy wrote:You need to know the file format. And you need to be a fairly proficient programmer.
Assume both to a very proficient level 8-)
Villeroy wrote:If it is some flavour of XML, you can transform it to Open Document XML via XSLT and integrate the XSLT script via Tools>XML Filters...
Did anybody ever attempt to implement an HTML filter, maybe even with (some) CSS support?

What if it's not XML?
Mac 10.14 using LO 7.2.0.2, Gentoo Linux using LO 7.2.3.2 headless.
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Adding a new import file type

Post by Villeroy »

Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
_savage
Posts: 187
Joined: Sun Apr 21, 2013 12:55 am

Re: Adding a new import file type

Post by _savage »

Villeroy wrote:http://pandoc.org/
I know Pandoc, but what about file formats that aren't supported by it or that aren't even XML derived?
Mac 10.14 using LO 7.2.0.2, Gentoo Linux using LO 7.2.3.2 headless.
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Adding a new import file type

Post by Villeroy »

You are the programmer. Find out.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply