Adding a new import file type

Discuss setup / installation issues - Add a spell checker, Language pack?

Adding a new import file type

Postby _savage » Wed Jun 15, 2016 8:57 pm

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.11 using LO 5.3.6.1, Gentoo Linux using LO 5.3.4.2 headless.
_savage
 
Posts: 162
Joined: Sun Apr 21, 2013 12:55 am

Re: Adding a new import file type

Postby Villeroy » Thu Jun 16, 2016 12:13 am

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 16.04, OpenOffice 4.x & LibreOffice 5.x
User avatar
Villeroy
Volunteer
 
Posts: 25570
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Adding a new import file type

Postby _savage » Thu Jun 16, 2016 12:22 am

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.11 using LO 5.3.6.1, Gentoo Linux using LO 5.3.4.2 headless.
_savage
 
Posts: 162
Joined: Sun Apr 21, 2013 12:55 am

Re: Adding a new import file type

Postby Villeroy » Thu Jun 16, 2016 12:25 am

Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 16.04, OpenOffice 4.x & LibreOffice 5.x
User avatar
Villeroy
Volunteer
 
Posts: 25570
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Adding a new import file type

Postby _savage » Thu Jun 16, 2016 4:19 pm

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.11 using LO 5.3.6.1, Gentoo Linux using LO 5.3.4.2 headless.
_savage
 
Posts: 162
Joined: Sun Apr 21, 2013 12:55 am

Re: Adding a new import file type

Postby Villeroy » Thu Jun 16, 2016 8:44 pm

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 16.04, OpenOffice 4.x & LibreOffice 5.x
User avatar
Villeroy
Volunteer
 
Posts: 25570
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany


Return to Install, Setup and Troubleshooting

Who is online

Users browsing this forum: No registered users and 3 guests