"Hello Xen Project" Book.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Thank you so much Lars.
I like to see the first chapter and I must say that LibreOffice on Windows OS has the MediaWiki plug in and working very well.
--------------------------------------------
On Wed, 4/12/17, Lars Kurth <[email protected]> wrote:
Subject: Re: [Xen-users] [Xen-devel] "Hello Xen Project" Book.
To: "Mohsen" <[email protected]>
Cc: "Mohsen Mostafa Jokar" <[email protected]>, "Juergen Gross" <[email protected]>, "xen-devel" <[email protected]>, "[email protected]" <[email protected]>
Date: Wednesday, April 12, 2017, 5:36 PM
Hi all,
I had
a go at converting the first chapter* See https://wiki.xenproject.org/wiki/Category:HelloXenProjectBook (and https://wiki.xenproject.org/wiki/Book/HelloXenProject/Instructions_for_Conversion)* And https://wiki.xenproject.org/wiki/Book/HelloXenProject/0-Contents
All
relevant information for people to help out is there. If
anyone wants to help and needs some advice, feel free to do
so
Best
RegardsLars
On 4 Apr 2017, at 15:25, Mohsen <[email protected]>
wrote:
Thank you for openSUSE VM and the libreoffice-wiki-publisher but
you must split the .odt file?
On Monday, April 3, 2017 8:38 AM,
Lars Kurth <[email protected]>
Quoted 1 line · wrote:
On 29 Mar 2017, at 05:51, Juergen
Gross <[email protected]>
Quoted 2 lines · wrote:
On 28/03/17 21:33,
Quoted 1 line · Mike Wright
Quoted 1 line
On 03/28/2017 12:11 PM,
Quoted 1 line · Mohsen
Quoted 1 line
Quoted 1 line
I'm using LibreOffice
4.3.3.2 on Debian amd64 and this version not
Quoted 1 line
Quoted 1 line
Quoted 1 line
have MediaWiki export
function!!
Quoted 3 lines
Quoted 3 lines
There was a
deb for the libreoffice extension
Quoted 1 line
Quoted 1 line
libreoffice-wiki-publisher.
Give that a try.
Quoted 3 lines
In the end you
need that only once for the initial conversion. So
Quoted 1 line
instead of trying to
find the correct package you could just use
Quoted 1 line
your Xen skills to create an
openSUSE VM and do it there. :-)
Juergen, thanks for the tip. I
installed an openSUSE VM and the libreoffice-wiki-publisher came as default, which is good. So I ran a few tests.
First, what I couldn't get to
work: I tried Send > MediaWiki in the hope that this would allow transferring of images, but could not get it to work. There seems to be an issue with authentication on the XenProject wiki side. But File > Export [MediaWiki (.txt)] works.
Also, I couldn't find
any docs for the converter: the help links to pages which do not exist. But hey, we can live with that.
Here is what I learned:
=======================
* The export granularity
is 1 LibreOffice document to 1 Wiki Page
* Most of the basic formatting such as
lists and tables get correctly converted, but the converter
introduces an awful lot of <span
style"...">...</span> and <div
style"...">...</div> attributes.
Basically it does this every time, something slightly out of
the ordinary has been done with text. These may have to be
stripped with on-line tools such as http://www.unit-conversion.info/texttools/strip-tags/
or similar, otherwise the wiki pages become a nightmare
to edit in future.
*
URLs are correctly converted
* Headlines (aka text marked as
"Heading 1", "Heading 2", etc. are not
converted) to = ... =, == ... ==, etc.
* Images are not converted: when an
image is found, "[[image:|top]]" is inserted
* I don't know how
code snippets will come across in terms of formatting, as I
don't have the ODT source of the book
What does this mean:
====================
In principle, this means that should
be doable with 1-2 days worth of work. However it's not
going to be entirely trivial. What we would need to do is
to:
* Break the
original book ODT file into smaller sections (probably along
the chapter structure as exposed in the Contents)
* Then take each of the
ODT files and do the following
** Save as MediaWiki (.txt) [1]. If
appropriate remove tags using http://www.unit-conversion.info/texttools/strip-tags/
** Save as html [2] - to
get the images. The bad news is that the images are saved
using some hash names and not in the order they are in the
document
** Create the
wiki page from [1]
**
Fix up bad formatting (such as missing = ... =, == ... ==,
etc.)
** Manually
upload the images from [2]
** Add appropriate [[Category:...]]
tags at the bottom of each page. At least one for the
wiki-book, e.g. [[Category:HelloXenProjectBook]] or
something similar. But of course further categories per
topic can be added as needed.
Once we have all the content, create
the common pages such as contents, credits, etc. - and we should have a good starting point.
Best Regards
Lars
_______________________________________________
Xen-users mailing list
[email protected]
https://lists.xen.org/xen-users
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel