[FM Discuss] Best way to migrate DocBook book [was: Is it possible to use CC by-sa license?]

adam hyde adam at flossmanuals.net
Tue Oct 18 04:36:12 PDT 2011


hey

yes thats  exactly what i was meaning :) actually the timing couldnt be 
more perfect....we are meeting with several projects at the moment that 
have needs for importing of docbook and/or html 
(http://google-opensource.blogspot.com/2011/09/sprinting-for-open-source.html)

the code needing work would be objavi
http://booki-dev.flossmanuals.net/git?p=objavi2.git

objavi is the importer for booki, it acts as a hub for import/export

objavi and booki work with booki.zip which is a file format we designed 
for this purpose, its pretty simple (description below) so essentially 
what needs to happen is that you need to take the content and convert 
into that file format:
http://booki-dev.flossmanuals.net/git?p=objavi2.git;a=blob_plain;f=htdocs/booki-zip-standard.txt;hb=HEAD

the importer code page to start looking at would be :
http://booki-dev.flossmanuals.net/git?p=objavi2.git;a=blob_plain;f=htdocs/espri.cgi;hb=HEAD

as far as an importer, html would be more generically useful - perhaps 
something that can take a single url and split the content on h1 into 
chapters OR something that could take multiple URLS and assemble a book. 
in either case a simple form would need to be made in booki to send this 
info to objavi but thats pretty easy to deal with (we can make this if 
you have the importer done)

the important thing to keep in mind is that there should be one h1 per 
chapter (first element)

my feeling is that this is pretty simple to write

I have ccéd the booki geek squad :) incase they can offer some better advice


adam







On 18/10/11 10:59, Jesus M. Gonzalez-Barahona wrote:
> On Tue, 2011-10-18 at 02:42 +0200, adam hyde wrote:
>> hmmm....you could cut and paste...if you know python you could build a
>> doc book importer...
>
> Yes, I speak some Python. Do you mean writing an importer for booki? I
> could consider writing one, either for DocBook or for HTML... Any
> similar piece of code to look at? (I mean, any other importer)
>
> Saludos,
>
> 	Jesus.
>
>> adam
>>
>>
>>
>> On 18/10/11 02:28, Jesus M. Gonzalez-Barahona wrote:
>>> Well, if there are no licensing issues, now a technical question. The
>>> book is written using DocBook/XML. Which one would be the best way to
>>> migrate it to FLOSSManuals? Maybe copying&pasting the HTML that I can
>>> produce from it? Anything better than that? (I can write scripts and the
>>> like, so if there is anything that could help to automate the task
>>> instead of manually c&p, that would be great)
>>>
>>> Saludos,
>>>
>>> 	Jesus.
>>>
>>> On Tue, 2011-10-18 at 01:50 +0200, adam hyde wrote:
>>>> if migrating content thats ok...migrate the content and then ping the
>>>> list and we will change the license :)
>>>>
>>>> adam
>>>>
>>>>
>>>>
>>>> On 18/10/11 01:47, Jesus M. Gonzalez-Barahona wrote:
>>>>> Hi all,
>>>>>
>>>>> I'm new to this mailing list (and to flossmanuals). I was planning to
>>>>> move a book on free software that I (with others) had on Berlios [1] to
>>>>> FLOSSManuals, but when opening a new book, I'm given only CC0 and GPL as
>>>>> options for the license. In this case, we should be using CC by-sa. Is
>>>>> that possible somehow?
>>>>>
>>>>> [I've browsed the site and mailing list a bit, and didn't found an
>>>>> answer to this, except for some references that "license must be GPL".
>>>>> But just in case this were old policy, I prefered to ask...]
>>>>>
>>>>> Saludos,
>>>>>
>>>>> 	Jesus.
>>>>>
>>>>> [1] http://curso-sobre.berlios.de/introsobre/
>>>>>
>>>> _______________________________________________
>>>> Discuss mailing list
>>>> Discuss at lists.flossmanuals.net
>>>> http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net
>>>
>> _______________________________________________
>> Discuss mailing list
>> Discuss at lists.flossmanuals.net
>> http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net
>



More information about the Discuss mailing list