docbook-apps

  • 1.  round tripped

    Posted 12-26-2006 14:02
    Hi,

    I tried the wordml2docbook style sheets and came up empty.

    I did the conversion and found 2 problems:
    1. all my content was in <nomatch> tags, ouch
    2. All my original pics are embedded and they convert to show the
    embedded graphics (just like in wordml) which is a real mess.

    I use styles in the original document isn't that enough? or must I
    somehow manually map my styles to docbook tags?


    Or did I miss something in my attempt to convert.

    As far as the pics are concerned I wouldn't mind a placeholder with the
    picture caption in the correct place and I will just add pics in word
    later.

    Right now this doesn't work for me.

    Thanks,
    Aaron




  • 2.  Re: [docbook-apps] round tripped

    Posted 12-27-2006 00:17
    Hi Aaron,

    Firstly regarding images; the round-tripping stylesheets do not
    currently support embedded images, though I am planning on adding
    this support. There are two problems with embedded images, both of
    which require an extension to XSLT to solve. Problem 1 is writing
    the image data into a separate file (needs exsl:document). Problem 2
    is decoding the base64 encoding of the image data.

    Secondly regarding styles; the round-tripping stylesheets, as
    supplied, only understand the styles given in the template document.
    It is possible to support any styles, but that would require some
    kind of customisation layer. I am planning on providing a
    customisation abstraction, but no schedule on that at this stage.

    HTHs,
    Steve Ball

    On 27/12/2006, at 1:01 AM, aamehl wrote:

    > Hi,
    >
    > I tried the wordml2docbook style sheets and came up empty.
    >
    > I did the conversion and found 2 problems:
    > 1. all my content was in <nomatch> tags, ouch
    > 2. All my original pics are embedded and they convert to show the
    > embedded graphics (just like in wordml) which is a real mess.
    >
    > I use styles in the original document isn't that enough? or must I
    > somehow manually map my styles to docbook tags?
    >
    >
    > Or did I miss something in my attempt to convert.
    >
    > As far as the pics are concerned I wouldn't mind a placeholder with
    > the
    > picture caption in the correct place and I will just add pics in word
    > later.
    >
    > Right now this doesn't work for me.
    >
    > Thanks,
    > Aaron
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-
    > open.org
    >
    >




  • 3.  Re: [docbook-apps] round tripped

    Posted 12-28-2006 15:30

    Further comments:

    1. I used the template and it worked but I saw no para style in the word
    template is normal the correct style?
    2. I didn't see and equivelent for entry in the word template. My
    company has a table text style
    3. in the word side I didn't see a style for graphic or example.
    4. On the word side how do I add a table so that it translates correctly
    into docbook?

    Thanks
    Aaron


    On Wed, 2006-12-27 at 11:17 +1100, Steve Ball wrote:
    > Hi Aaron,
    >
    > Firstly regarding images; the round-tripping stylesheets do not
    > currently support embedded images, though I am planning on adding
    > this support. There are two problems with embedded images, both of
    > which require an extension to XSLT to solve. Problem 1 is writing
    > the image data into a separate file (needs exsl:document). Problem 2
    > is decoding the base64 encoding of the image data.
    >
    > Secondly regarding styles; the round-tripping stylesheets, as
    > supplied, only understand the styles given in the template document.
    > It is possible to support any styles, but that would require some
    > kind of customisation layer. I am planning on providing a
    > customisation abstraction, but no schedule on that at this stage.
    >
    > HTHs,
    > Steve Ball
    >
    > On 27/12/2006, at 1:01 AM, aamehl wrote:
    >
    > > Hi,
    > >
    > > I tried the wordml2docbook style sheets and came up empty.
    > >
    > > I did the conversion and found 2 problems:
    > > 1. all my content was in <nomatch> tags, ouch
    > > 2. All my original pics are embedded and they convert to show the
    > > embedded graphics (just like in wordml) which is a real mess.
    > >
    > > I use styles in the original document isn't that enough? or must I
    > > somehow manually map my styles to docbook tags?
    > >
    > >
    > > Or did I miss something in my attempt to convert.
    > >
    > > As far as the pics are concerned I wouldn't mind a placeholder with
    > > the
    > > picture caption in the correct place and I will just add pics in word
    > > later.
    > >
    > > Right now this doesn't work for me.
    > >
    > > Thanks,
    > > Aaron
    > >
    > >
    > > ---------------------------------------------------------------------
    > > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > > For additional commands, e-mail: docbook-apps-help@lists.oasis-
    > > open.org
    > >
    > >
    >




  • 4.  Re: [docbook-apps] round tripped

    Posted 12-29-2006 00:38
    Hi Aaron,

    Answers:

    1. Yes, use Normal style. I should probably add in a "para" style
    just for completeness.

    2. Table cells are implicitly translated into entry elements (and
    table rows into "row" elements).

    3. Graphics are supported by imageobject-imagedata and informalfigure-
    imagedata.

    In DocBook, the "example" element can contain a lot of different
    elements. For this reason, examples are identified by an "example-
    title" style paragraph. Whatever immediately follows that paragraph
    is included in the example element, along with the title. As a
    corollary, you can not have an example without a title.

    4. You should be able to just use normal Word tables.

    For any of the above, if things do not seem to be working correctly
    then please raise a bug report on the DocBook SourceForge site so
    that I can track the problem. Include an example Word document and
    what you expect the DocBook to look like.

    HTHs,
    Steve Ball

    On 29/12/2006, at 2:29 AM, aamehl wrote:

    >
    > Further comments:
    >
    > 1. I used the template and it worked but I saw no para style in the
    > word
    > template is normal the correct style?
    > 2. I didn't see and equivelent for entry in the word template. My
    > company has a table text style
    > 3. in the word side I didn't see a style for graphic or example.
    > 4. On the word side how do I add a table so that it translates
    > correctly
    > into docbook?
    >
    > Thanks
    > Aaron
    >
    >
    > On Wed, 2006-12-27 at 11:17 +1100, Steve Ball wrote:
    >> Hi Aaron,
    >>
    >> Firstly regarding images; the round-tripping stylesheets do not
    >> currently support embedded images, though I am planning on adding
    >> this support. There are two problems with embedded images, both of
    >> which require an extension to XSLT to solve. Problem 1 is writing
    >> the image data into a separate file (needs exsl:document). Problem 2
    >> is decoding the base64 encoding of the image data.
    >>
    >> Secondly regarding styles; the round-tripping stylesheets, as
    >> supplied, only understand the styles given in the template document.
    >> It is possible to support any styles, but that would require some
    >> kind of customisation layer. I am planning on providing a
    >> customisation abstraction, but no schedule on that at this stage.
    >>
    >> HTHs,
    >> Steve Ball
    >>
    >> On 27/12/2006, at 1:01 AM, aamehl wrote:
    >>
    >>> Hi,
    >>>
    >>> I tried the wordml2docbook style sheets and came up empty.
    >>>
    >>> I did the conversion and found 2 problems:
    >>> 1. all my content was in <nomatch> tags, ouch
    >>> 2. All my original pics are embedded and they convert to show the
    >>> embedded graphics (just like in wordml) which is a real mess.
    >>>
    >>> I use styles in the original document isn't that enough? or must I
    >>> somehow manually map my styles to docbook tags?
    >>>
    >>>
    >>> Or did I miss something in my attempt to convert.
    >>>
    >>> As far as the pics are concerned I wouldn't mind a placeholder with
    >>> the
    >>> picture caption in the correct place and I will just add pics in
    >>> word
    >>> later.
    >>>
    >>> Right now this doesn't work for me.
    >>>
    >>> Thanks,
    >>> Aaron
    >>>
    >>>
    >>> --------------------------------------------------------------------
    >>> -
    >>> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-
    >>> open.org
    >>> For additional commands, e-mail: docbook-apps-help@lists.oasis-
    >>> open.org
    >>>
    >>>
    >>
    >
    >




  • 5.  Re: [docbook-apps] round tripped

    Posted 12-29-2006 08:00
    Thanks,
    What I am trying to do is make a mirror:

    My companies template one one side
    docbook stylesheets on the other

    in the middle the template.dot template. I have redefined to look of the
    template that comes with the docbook-xsl wordml template to look like
    the company template. (As much as possible)


    Now I am working on the docbook stylesheets.
    This isn't as easy as I hoped


    In word I have this for heading 1

    font: Arial Narrow 11pt bold italics
    expanded by 0.2pt indent left 0.71"
    Hanging 0.35"
    align left
    line spacing exactly 14 pt
    space before 14pt
    keep with next
    tab 1.02" left


    what is the equivelent of expand 0.2pt in docbook xsl?
    What is the equivelent of hanging in docbook xsl?
    how do I make line spacing exacly 14pts

    I also have to find the bullet used in their bulleted list which is a
    big black square and then I am very close to running tests.

    my final task will be converting their template to/from the one in
    docbook xsl.


    I wonder if anyone out there is really using these style sheets?

    If so I would like to hear their comments.

    Aaron

    On Fri, 2006-12-29 at 11:38 +1100, Steve Ball wrote:
    > Hi Aaron,
    >
    > Answers:
    >
    > 1. Yes, use Normal style. I should probably add in a "para" style
    > just for completeness.
    >
    > 2. Table cells are implicitly translated into entry elements (and
    > table rows into "row" elements).
    >
    > 3. Graphics are supported by imageobject-imagedata and informalfigure-
    > imagedata.
    >
    > In DocBook, the "example" element can contain a lot of different
    > elements. For this reason, examples are identified by an "example-
    > title" style paragraph. Whatever immediately follows that paragraph
    > is included in the example element, along with the title. As a
    > corollary, you can not have an example without a title.
    >
    > 4. You should be able to just use normal Word tables.
    >
    > For any of the above, if things do not seem to be working correctly
    > then please raise a bug report on the DocBook SourceForge site so
    > that I can track the problem. Include an example Word document and
    > what you expect the DocBook to look like.
    >
    > HTHs,
    > Steve Ball
    >
    > On 29/12/2006, at 2:29 AM, aamehl wrote:
    >
    > >
    > > Further comments:
    > >
    > > 1. I used the template and it worked but I saw no para style in the
    > > word
    > > template is normal the correct style?
    > > 2. I didn't see and equivelent for entry in the word template. My
    > > company has a table text style
    > > 3. in the word side I didn't see a style for graphic or example.
    > > 4. On the word side how do I add a table so that it translates
    > > correctly
    > > into docbook?
    > >
    > > Thanks
    > > Aaron
    > >
    > >
    > > On Wed, 2006-12-27 at 11:17 +1100, Steve Ball wrote:
    > >> Hi Aaron,
    > >>
    > >> Firstly regarding images; the round-tripping stylesheets do not
    > >> currently support embedded images, though I am planning on adding
    > >> this support. There are two problems with embedded images, both of
    > >> which require an extension to XSLT to solve. Problem 1 is writing
    > >> the image data into a separate file (needs exsl:document). Problem 2
    > >> is decoding the base64 encoding of the image data.
    > >>
    > >> Secondly regarding styles; the round-tripping stylesheets, as
    > >> supplied, only understand the styles given in the template document.
    > >> It is possible to support any styles, but that would require some
    > >> kind of customisation layer. I am planning on providing a
    > >> customisation abstraction, but no schedule on that at this stage.
    > >>
    > >> HTHs,
    > >> Steve Ball
    > >>
    > >> On 27/12/2006, at 1:01 AM, aamehl wrote:
    > >>
    > >>> Hi,
    > >>>
    > >>> I tried the wordml2docbook style sheets and came up empty.
    > >>>
    > >>> I did the conversion and found 2 problems:
    > >>> 1. all my content was in <nomatch> tags, ouch
    > >>> 2. All my original pics are embedded and they convert to show the
    > >>> embedded graphics (just like in wordml) which is a real mess.
    > >>>
    > >>> I use styles in the original document isn't that enough? or must I
    > >>> somehow manually map my styles to docbook tags?
    > >>>
    > >>>
    > >>> Or did I miss something in my attempt to convert.
    > >>>
    > >>> As far as the pics are concerned I wouldn't mind a placeholder with
    > >>> the
    > >>> picture caption in the correct place and I will just add pics in
    > >>> word
    > >>> later.
    > >>>
    > >>> Right now this doesn't work for me.
    > >>>
    > >>> Thanks,
    > >>> Aaron
    > >>>
    > >>>
    > >>> --------------------------------------------------------------------
    > >>> -
    > >>> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-
    > >>> open.org
    > >>> For additional commands, e-mail: docbook-apps-help@lists.oasis-
    > >>> open.org
    > >>>
    > >>>
    > >>
    > >
    > >
    >




  • 6.  Re: [docbook-apps] round tripped

    Posted 12-29-2006 08:08

    > 3. Graphics are supported by imageobject-imagedata and informalfigure-
    > imagedata.
    I don't see any in the template.dot stylesheet.
    What version of the stylesheets should I be using?

    Thanks
    Aaron