Comments (3)
When I support the style tag I want to add support for arbitrary markup that just gets passed directly into the properties file. This will allow me to transparently handle lists by defining an attribute such as
numPr="ilvl: #{@builder.ilvl}; numId: #{@definition.numid}"
that would get dropped straight into the <pPr>
tag after w:
's are added.
Ideally I could use a mapping to get from CSS tag to wordML tag but anything that isn't predefined would end up being passed straight through using the format
"<w:%s w:val="%s" />"
Everything defined on the node as attributes will go in <pPr>
or <rPr>
. Nested attributes will be handled if the value has been put in double quotes generating a proper opening and closing tag.
from sablon.
Allowing the use of CSS classes would be SWEET!
But how? is the real question, since that is a whole other can of worms.
from sablon.
This is all covered on my live branch. Hopefully some of these fixes will make it into upstream since it is a good expansion of functionality but I doubt it.
from sablon.
Related Issues (16)
- Use a basic WordML xml file as partial
- Add processing of endnotes and footnotes HOT 3
- Implement a way to add footnotes, table and figure references HOT 2
- Implement MS word comments in HTML?
- Implement equations
- Make Sablon use live XML instead of strings until files are written HOT 2
- Refactor template.rb so processors can be "registered" HOT 2
- Implement a simple DOM to use with a template HOT 2
- Refactor how footnotes are handled HOT 1
- Use a regular docx file as a partial, only for simple text HOT 2
- Allow headers and footer text content to be filled by a partial
- Allow images to be imported with a partial HOT 1
- Implement code coverage HOT 1
- Change Numbering class from a singleton into being registered on the Context object
- Current issues when using partials 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 sablon.