On Wed, 29 Apr 2020 16:53:54 +0100 Peter Flynn <pe...@silmaril.ie> said:

> 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.

that's what the translation strings are for... :)

> > 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\

that was takedn from an edje edc file - so yes. there is a parser. it's
actually set up by api's where you set up the base format (you can never pop
it) and then a list of tag -> format commands one at a time. edje just does
this for you when the object is instantiated and a style is needed the first
time.

> > 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.

either way it's something textblock just does to be convenient as it's
basically how the the format system works - it's a stack of "modify this
property this way" to build a "current format properties" and so it's exposed
that way too as it's convenient.

> > 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.

he knew it wasn't html - you already said its a "proprietary addon" :) it's
actually really a custom html-like string formatting system. that's it. pretty
simple. :)

> Documenting the documentation...
> 
> P
> 
> 
> _______________________________________________
> enlightenment-users mailing list
> enlightenment-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-users
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
Carsten Haitzler - ras...@rasterman.com



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

Reply via email to