[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160308123921.6f2248ab@recife.lan>
Date: Tue, 8 Mar 2016 12:39:21 -0300
From: Mauro Carvalho Chehab <mchehab@....samsung.com>
To: Dan Allen <dan@...ndevise.io>
Cc: Jani Nikula <jani.nikula@...el.com>,
Russel Winder <russel@...der.org.uk>,
Keith Packard <keithp@...thp.com>,
Jonathan Corbet <corbet@....net>,
LKML <linux-kernel@...r.kernel.org>, linux-doc@...r.kernel.org,
Daniel Vetter <daniel.vetter@...ll.ch>,
Hans Verkuil <hverkuil@...all.nl>, linux-media@...r.kernel.org,
Graham Whaley <graham.whaley@...ux.intel.com>
Subject: Re: Kernel docs: muddying the waters a bit
Em Tue, 8 Mar 2016 10:39:22 -0300
Mauro Carvalho Chehab <mchehab@....samsung.com> escreveu:
> Em Tue, 08 Mar 2016 05:13:13 -0700
> Dan Allen <dan@...ndevise.io> escreveu:
>
> > On Tue, Mar 8, 2016 at 4:29 AM, Mauro Carvalho Chehab <
> > mchehab@....samsung.com> wrote:
> >
> > > pandoc did a really crap job on the conversion. To convert this
> > > into something useful, we'll need to spend a lot of time, as it lost
> > > most of the cross-references, as they were defined via DocBook macros.
> > >
> >
> > I agree pandoc creates crappy AsciiDoc. We have a much better converter in
> > the works called DocBookRx.
> >
> > https://github.com/opendevise/docbookrx
> >
> > It has converted several very serious DocBook documents and we're
> > continuing to improve it. It's also a lot easier to hack than pandoc.
>
> Didn't work:
>
> $ ./bin/docbookrx ~/devel/docbook_test/v4l2.xml
> No visitor defined for <part>! Skipping.
> No visitor defined for <part>! Skipping.
> No visitor defined for <part>! Skipping.
> No visitor defined for <part>! Skipping.
> No visitor defined for <appendixinfo>! Skipping.
I tried to use docbookrx for the bits that were not properly converted,
like the manpage-like pages:
$ ../docbookrx/bin/docbookrx Documentation/DocBook/media/v4l/func-ioctl.xml
No visitor defined for <refentry>! Skipping.
Dan, if you want to take a look on what's going wrong here,
the XML I'm trying to convert is:
https://git.linuxtv.org/media_tree.git/tree/Documentation/DocBook/media/v4l/func-ioctl.xml
If this would work, it should be generating something like:
https://git.linuxtv.org/mchehab/asciidoc-poc.git/tree/func-ioctl.adoc
Pandoc failed to fully convert it, but at least it left all the texts,
with prevented rewriting it from scratch. This is the manual fix
I applied to it:
https://git.linuxtv.org/mchehab/asciidoc-poc.git/commit/func-ioctl.adoc?id=801d336c3742f26731e08c284290c32c0b4632fc
FYI, we have 133 xml files at the media uAPI doc with refmeta.
--
Thanks,
Mauro
Powered by blists - more mailing lists