From: Mohsen <mohsen1365b@yahoo.com>
To: Lars Kurth <lars.kurth.xen@gmail.com>
Cc: Juergen Gross <jgross@suse.com>,
xen-devel <xen-devel@lists.xenproject.org>,
"xen-users@lists.xenproject.org" <xen-users@lists.xenproject.org>
Subject: Re: [Xen-users] "Hello Xen Project" Book.
Date: Wed, 12 Apr 2017 18:35:28 +0000 (UTC) [thread overview]
Message-ID: <1720037778.664206.1492022128851@mail.yahoo.com> (raw)
In-Reply-To: 1720037778.664206.1492022128851.ref@mail.yahoo.com
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 <lars.kurth.xen@gmail.com> wrote:
Subject: Re: [Xen-users] [Xen-devel] "Hello Xen Project" Book.
To: "Mohsen" <mohsen1365b@yahoo.com>
Cc: "Mohsen Mostafa Jokar" <mohsenjokar@gmail.com>, "Juergen Gross" <jgross@suse.com>, "xen-devel" <xen-devel@lists.xenproject.org>, "xen-users@lists.xenproject.org" <xen-users@lists.xenproject.org>
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 <mohsen1365b@yahoo.com>
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 <lars.kurth.xen@gmail.com>
wrote:
> On 29 Mar 2017, at 05:51, Juergen
Gross <jgross@suse.com>
wrote:
>
> On 28/03/17 21:33,
Mike Wright wrote:
>> On 03/28/2017 12:11 PM,
Mohsen wrote:
>>> I'm using LibreOffice
4.3.3.2 on Debian amd64 and this version not
>>> have MediaWiki export
function!!
>>
>> There was a
deb for the libreoffice extension
>> libreoffice-wiki-publisher.
Give that a try.
>
> In the end you
need that only once for the initial conversion. So
> instead of trying to
find the correct package you could just use
> 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
Xen-users@lists.xen.org
https://lists.xen.org/xen-users
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next parent reply other threads:[~2017-04-12 18:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1720037778.664206.1492022128851.ref@mail.yahoo.com>
2017-04-12 18:35 ` Mohsen [this message]
[not found] <273314172.1243061.1492091785584.ref@mail.yahoo.com>
2017-04-13 13:56 ` [Xen-users] "Hello Xen Project" Book Jason Long
2017-04-18 11:44 ` Lars Kurth
[not found] <1158994522.440219.1490728267390.ref@mail.yahoo.com>
2017-03-28 19:11 ` Mohsen
[not found] ` <f7b4446d-1852-caf2-0340-9fe9bee8a9b1@nospam.hostisimo.com>
[not found] ` <9f591831-d0e8-ca74-3b0b-c5d311e66014@suse.com>
2017-04-03 15:35 ` Lars Kurth
2017-04-04 14:25 ` Mohsen
2017-04-12 17:36 ` Lars Kurth
[not found] <325285607.5863022.1490728082853.ref@mail.yahoo.com>
2017-03-28 19:08 ` Mohsen
[not found] <428947567.858633.1489601125709.ref@mail.yahoo.com>
2017-03-15 18:05 ` Mohsen
2017-03-16 5:00 ` Juergen Gross
2017-03-28 11:51 ` Lars Kurth
2017-03-28 11:56 ` Juergen Gross
2017-03-28 12:46 ` M A Young
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1720037778.664206.1492022128851@mail.yahoo.com \
--to=mohsen1365b@yahoo.com \
--cc=jgross@suse.com \
--cc=lars.kurth.xen@gmail.com \
--cc=xen-devel@lists.xenproject.org \
--cc=xen-users@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).