Code Monkey home page Code Monkey logo

Comments (6)

gimsieke avatar gimsieke commented on May 19, 2024

I think we do process some of the page-related sectPr properties, namely the page dimensions, orientation, breaks, and footnote properties. In which properties are you particularly interested?

from docx2hub.

gimsieke avatar gimsieke commented on May 19, 2024

In terms of converting them into DocBook sections or the like, we are unlikely to support it in this docx2hub library. Splitting a document into sections will be done by another library, evolve-hub. You will find a sample setup in the docx2jats demo.

from docx2hub.

diakovidis avatar diakovidis commented on May 19, 2024

I am working with a document which has 3 sections. The 2nd one has a 2 column layout. <w:cols w:num="2" w:sep="1" w:space="284"/> . Trying to pass it through docx2hub and then into hub2docx, the resulting new docx contains one section for the whole document.

from docx2hub.

diakovidis avatar diakovidis commented on May 19, 2024

Doesn't evolve-hub require some kind of information for that splitting, which in this case is missing in the Flat hub?

from docx2hub.

gimsieke avatar gimsieke commented on May 19, 2024

I see. If we were to support columns, we need to change a couple of things:

  • add CSS column properties to the Hub XML schema (via CSSa)
  • actually wrap the content with different column settings in divs (section-like elements without document hierarchy semantics, as opposed to regular DocBook elements such as section)
  • attach the column properties as CSSa attributes to these divs
  • test whether this does not break existing test sets and maybe adapt the evolve-hub postprocessing so that it supports divs (it probably does already)

If page sizes change within the document and if we need to convey the page size information to the Hub XML format, we need to apply divs to the resulting document anyway.

So yes, I acknowledge it’s a legitimate feature request if you need to convey the column information. In most of our workflows, we treat Word as a manuscript editing tool, where column counts and dimensions are negligible.

I think implementing this is a matter of a person day or so. But we wouldn’t prioritize it because we didn’t ever need to know the column count.

Of course if you need it urgently you can pay us for implementing it earlier, or set up some crowdfunding.

from docx2hub.

gimsieke avatar gimsieke commented on May 19, 2024

Doesn't evolve-hub require some kind of information for that splitting, which in this case is missing in the Flat hub?

Yes, that’s exactly the point: evolve-hub expects some configuration for hierarchization, while docx2hub is a step that is mostly configuration-free.
As I said, we never saw any significant document-structuring information in column-count specifications, therefore we discarded it.

from docx2hub.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.