Should GEML have a style layer at all? #17
xiongjy2104
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
GEML has no styling.
.classis defined as a semantic label with "no stylingimplied", and there is no raw-HTML escape hatch. But documents do get rendered —
the browser viewer already injects its own CSS — so the question is not whether
appearance exists, only whether the format has anything to say about it.
One constraint seems to come first, because it eliminates options: a style
must never change what the document says. "Fully legible as plain text without
a renderer" is constraint #1, so if a stylesheet can
display: nonea block,inject text with
content:, or reorder content, the plain text and the renderedpage are two different documents — and the
.gemlhistoryhash only covers one.Three shapes we can see:
Plain CSS beside the document. Zero new syntax, infinite ecosystem. But it
makes HTML the de-facto target backend, it can change meaning (above), and it
does nothing for a terminal, PDF or LaTeX renderer.
A
.gemlstylesidecar in GEML's own syntax, expressing intent rather thanproperties, which each renderer maps into its medium:
Backend-neutral, still one primitive, and checkable — a
for=that matches noblock is a warning, the same "references can't rot" property the rest of the
format has. The cost is inventing a vocabulary and answering "why not CSS"
forever.
Nothing. Styling stays outside the format; renderers decide, and
.classis there for whatever tool reads the document model.
A sub-question either way: which file names which?
.gemlhistoryis found byfilename convention, but a house style is shared by many documents — so probably
the document names its style (
style = "house.gemlstyle"in=== meta),reference-checked like any other pointer.
Concretely: could your document's styling be expressed in ten intent words
like
toneandemphasis, or do you need pixel control? An answer either waydecides this.
All reactions