view · edit · sidebar · attach · print · history

20120502-update-ydocx

<< | Index | >>


Summary

  • Updated ydocx
    • added docx2xml executable.
    • added command options.
    • refactored lib structure.
    • Improved some character(white space, sign) handling.

Commits

Index


added to_xml

Added simple xml format output into ydocx

  • document
    • chapters
      • chapter
        • heading
        • paragraph
        • italic
        • bold
        • underline
<document>
  <chapters>
    <chapter>
      <heading>Reyataz</heading>
    </chapter>
    <chapter>
      <heading>Zusammensetzung</heading>
      <paragraph><italic>Wirkstoff: </italic>Atazanavir als Sulfat.</paragraph>
      <paragraph><italic>Hilfsstoffe:</italic><underline>Kapselinhalt:</underline> Crospovidon; Lactose-Monohydrat; Magnesiumstearat. </paragraph>
      <paragraph>...
...

Refs


Added command options

current usage
$ docx2html --help
Usage: bin/docx2html file [options]
  -f, --format    Format of style and chapter {(fi|fachinfo)|(pl|plain)}, default none.
  -h, --help      Display this help message.


Extract image

document.xml

    <w:pict>
    <v:shape id="_x0000_s1086" type="#_x0000_t75" style="position:absolute;margin-left:248.15pt;margin-top:7.4pt;width:33.65pt;height:35.2pt;z-index:-251658752" wrapcoords="-491 0 -491 21130 21600 21130 21600 0 -491 0">
      <v:imagedata r:id="rId8" o:title=""/>
      <w10:wrap type="tight"/>
    </v:shape>
    </w:pict>

__rels/document.xml.rels

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
<Relationship Id="rId8" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="media/image2.png"/>
<Relationship Id="rId7" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="media/image1.png"/>
...
view · edit · sidebar · attach · print · history
Page last modified on May 02, 2012, at 07:11 PM