E-Teoria

  • 18 Replies
  • 654 Views
*

ivan.moony

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1358
    • e-teoria
Re: E-Teoria
« Reply #15 on: November 22, 2019, 09:01:46 PM »
E-Teoria Markup Language

ETML represents a lisp-ish alternative to HTML. It is conceived as a simple, uniform, and compact kind of structured language that allows tag nesting. In the future, it is planed to be fused with Implika metatheory language to provide a complete alternative to HTML + CSS + XSLT, which will represent a language for describing different Implika systems, as a part of bigger E-Teoria project.

ETML uses `</` and `/>` as opening and closing braces. The first word after the opening brace is considered as a tag denoting the braces content. For example, to denote bold or italic text, we write:
Code: [Select]
</Bold ... any text goes here ... />
or
Code: [Select]
</Italic ... any text goes here ... />

In some cases, tag braces can also be nested, for example when denoting text font:
Code: [Select]
</</Font </Face Sans/> </Size 12pt/>/>
    ... any text goes here ...
/> 

Nested tags allow partial sub-tag assertion.

For now, supported tags (tags are case sensitive) include:
Code: [Select]
tag        subtag    units
---------------------------
NewLine    /         /
LeftBrace  /         /
RightBrace /         /
Image      /         /
Font       Size      pt, px
Font       Face      /
Bold       /         /
Italic     /         /

All braces have to be balanced. We have to be careful with `(` and `)` symbols, as they have special meaning in Implika, which is not yet fully integrated with ETML. We use the symbols tag equivalents to insert them as a part of textual data.

The code renders ETML textual input to HTML canvas, which is needed for later planed fish-eye distortion, avoiding a need for scroll bars.

Testing editor is here
Dream big. The bigger the dream is, the more beautiful place the world becomes.

*

Korrelan

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1375
  • Look into my eyes! WOAH!
    • YouTube
Re: E-Teoria
« Reply #16 on: November 22, 2019, 11:02:18 PM »
So... if I want to render the characters </hi just to be awkward... or... how would you print/ render the above instructions?

It doesn't want to render... </Bold ... any text goes here ... />

:)
It thunk... therefore it is!...    /    Project Page    /    KorrTecx Website

*

ivan.moony

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1358
    • e-teoria
Re: E-Teoria
« Reply #17 on: November 22, 2019, 11:08:17 PM »
So... if I want to render the characters </hi just to be awkward...

 :)

It isn't awkward, the question is at its place. I'm still considering two options:
Code: [Select]
</OpenTag/> hi
"</hi"

Currently the first one is implemented, but I'm in favor of the second one right now (considering whitespace in between).
Dream big. The bigger the dream is, the more beautiful place the world becomes.

*

Korrelan

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1375
  • Look into my eyes! WOAH!
    • YouTube
Re: E-Teoria
« Reply #18 on: November 22, 2019, 11:24:07 PM »
I think I prefer the </OpenTag/> because " is used so often, and would just complicate things, or perhaps | or ' or ~ or even ¬

I've just noticed that weird key left of the 1 key... don't think I've ever used that one lol.

 ;D
It thunk... therefore it is!...    /    Project Page    /    KorrTecx Website

 


Guest Stream on the VirtualAssistant channel
by 8pla.net (AI in Film and Literature.)
February 16, 2020, 03:08:43 PM
How Lucid are your thoughts?
by infurl (General AI Discussion)
February 16, 2020, 09:27:11 AM
Now this is the dream!
by Art (General Robotics Talk)
February 15, 2020, 02:32:41 PM
XKCD Comic : Further Research is Needed
by Tyler (XKCD Comic)
February 15, 2020, 12:00:43 PM
The Heretic
by Zero (Graphics and Video Software)
February 14, 2020, 07:45:41 PM
Friday Funny
by LOCKSUIT (General Chat)
February 14, 2020, 07:43:13 PM
Chatbots DotOrg SOLD?
by squarebear (Virtual Reality)
February 14, 2020, 10:40:42 AM
XKCD Comic : Leap Smearing
by Art (XKCD Comic)
February 13, 2020, 12:03:55 PM

Users Online

7 Guests, 0 Users

Most Online Today: 18. Most Online Ever: 340 (March 26, 2019, 09:47:57 PM)

Articles