Comments (2)
Thanks, my intention is to support HTML content in a few stages:
[1] To store the imported HTML as a zero-width annotation (this has now been written but not yet pushed). This allows HTML to be viewed in the document but does not allow the user to annotate the textual content of the imported HTML block
[2] To convert the imported HTML elements to matching stylistic annotations. The sanitize-html library would help establish the correctness and security of the HTML for this operation. The limitations of the approach would be that managing complex layout structures like DIVs, TABLEs, etc., could be complicated in standoff, as sibling order is crucial to the rendering, and this needs work in SPEEDy
[3] Another approach I am thinking through is to combine standoff annotation with embedded HTML ... should be fairly easy to import, but the export process will need to be carefully considered.
from standoff-properties-editor.
Thanks for feedback! Embedded HTML is another issue, I was looking for a way to convert existing documents to standoff-properties data format. I mostly use Markdown but HTML is more common and Markdown can be converted to HTML. The pandoc document converter gives a good summary of most common layout types among document formats (with pandoc you get import from dozens of document formats). Support of this would be enough:
- Inline elements
- bold (
b
,strong
), italic (i
,em
) - external links (
a
)
- bold (
- Block elements
- headings (
h1
,h2
...) - paragraphs (
p
) - quotations (
blockquote
)
- headings (
Support of more block elements (horizontal rule, lists, code blocks, tables) might be added later.
from standoff-properties-editor.
Related Issues (20)
- For Regesta Imperii a "spaced"-Button in the format-section would be great
- the-codex
- background color for paragraphs HOT 2
- Add feature to load JSON files
- On Mac the CMD-Key and on Linux the CRTL-Key is not bound HOT 6
- Bug: navigation with ZPAs
- Change: disable (or hide) expand/contract buttons for ZPAs
- Bug: overwriting a single character leads to over-eager deletion
- Add Expansion-Button for Emendations in Hildegard Texts
- Monitor: annotation label ordering
- Monitor: compress annotation label space HOT 1
- Add 'text' modal for TEI demo
- Support for Arabic text HOT 27
- Support for combining characters HOT 2
- Firefox: style annotations not shown in editor window HOT 1
- Add TEI annotation layer
- selection detection / handling issues
- Does JSON have the same problem of overlapping than XML??
- Feature: Make characters ignored by speedy configurable
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 standoff-properties-editor.