Comments (6)
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.
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.
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.
Doesn't evolve-hub require some kind of information for that splitting, which in this case is missing in the Flat hub?
from docx2hub.
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
div
s (section-like elements without document hierarchy semantics, as opposed to regular DocBook elements such assection
) - attach the column properties as CSSa attributes to these
div
s - test whether this does not break existing test sets and maybe adapt the evolve-hub postprocessing so that it supports
div
s (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 div
s 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.
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)
- Unable to checkout 'd71a11f6cd39649f0c633eb7099869ad0aa78899' in submodule path 'docx2hub' HOT 1
- Convey information when a footnote label rendered in the text differs from the label in the note HOT 3
- broken conversion??? HOT 4
- ! LaTeX Error: There's no line here to end. HOT 1
- Quoted colons should not split indexterms HOT 1
- "Getting started" not working HOT 1
- WMF equations are not Converted HOT 7
- Treat built-in Word styles consistently no matter the locale HOT 1
- Mapping an empty line to a new section HOT 14
- keep inline styles in index terms HOT 5
- empty index terms HOT 2
- 51 times nested INCLUDEPICTURE causes docx2hub:nest-field-functions may be looping HOT 1
- Need strict docx → transitional docx conversion step
- Processing error HOT 4
- restore mapping of (for example) Wingdings char 00E0 HOT 2
- possibly problematic mapping changes, for ex. Wingdings F0E0→U+1F86A HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docx2hub.