On 29/04/2020 16:24, Carsten Haitzler (The Rasterman) wrote:
[...]
this is not html. this is textblock markup. it is html-like but it is not html.

OK, thanks. I thought it might be some other markup language.

ps literally maps to:

https://www.fileformat.info/info/unicode/char/2029/index.htm

which is a unicode standard for defining a paragraph separation where
2 paragraphs may even be in different languages - one left to right
and one right to left. it's not silly.

Indeed it's not. Boustrophedon is still used, although not usually in writing.

it's how the code and feature and thing works.
textblock actually understands very few tags. you teach it with custom tag ->
format command mappings. so literally you have:

A bit like TeX: very little built in, but limitless in what you can compose.

base: "font=Sans font_size=10 align=left color=#eee";
tag: "br" "\n";
tag: "em" "+ font_style=Oblique";
tag: "hilight" "+ font_weight=Bold color=#3399ff";
tag: "link" "+ color=#607080 underline=on underline_color=#3399ff";

Not transformable to other formats, though, unless you have a parser which understands the syntax above\

ps is a built-in it knows about to map to the unicode paragraph separator. a
newline ascii char is a special format command to just add a newline in. it
doesn't understand em - you teach it with that tag mapping. a + at the start
pushes the new formatting onto the stack "overlaying" what was already there. a
-  pops what was last there. so a tag:

</>

is literally a pop. so you can do

hello <em>world</em> blah ...

or shorthand:

hello <em>world</> blah ...

That's SGML. It's one of the features we removed when creating XML.

like json or c/c++  } closes the matching { so it saves you having to remember
what tag.

Yep, that's what is was invented for. In the days when this was all written by hand, or punched onto cards :-) Seems so long ago now.

it's not silly. it's how efl actually works. it's html-like ... it's not html.

I never said it was silly, I just suggested it should not be done if this was HTML. But the OP was not informed that it wasn't HTML, so he (and I) made an understandable mistake.

Documenting the documentation...

P


_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to