E-Teoria

  • 21 Replies
  • 796 Views
*

ivan.moony

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1377
    • 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
There exist some rules interwoven within this world. As much as it is a blessing, so much it is a curse.

*

Korrelan

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1389
  • 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
  • *
  • 1377
    • 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).
There exist some rules interwoven within this world. As much as it is a blessing, so much it is a curse.

*

Korrelan

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1389
  • 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

*

Zero

  • Trusty Member
  • *********
  • Terminator
  • *
  • 939
  • Ready?
    • Thinkbots are free
Re: E-Teoria
« Reply #19 on: February 28, 2020, 11:57:45 AM »
Hi Ivan :)

Do you plan to offer the possibility to create DSLs, like Racket for example? Or is "having a unified language" a distinctive feature of the project?

*

ivan.moony

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1377
    • e-teoria
Re: E-Teoria
« Reply #20 on: February 28, 2020, 02:06:18 PM »
Hi Ivan :)

Do you plan to offer the possibility to create DSLs, like Racket for example? Or is "having a unified language" a distinctive feature of the project?

ETML (being a user interface language) is planed to be just a DSL residing inside a more serious Turing complete metalanguage engine. Scripting features like functions, formatting blocks and even procedural structure builders are not supposed to be a part of ETML, but to be handled from the outside metalanguage. Consider metalanguage as analog to php, and ETML as analog to HTML to get a picture of what's going on with me. In that spirit, we will be able to replace HTML with any DSL of our interest.
There exist some rules interwoven within this world. As much as it is a blessing, so much it is a curse.

*

Zero

  • Trusty Member
  • *********
  • Terminator
  • *
  • 939
  • Ready?
    • Thinkbots are free
Re: E-Teoria
« Reply #21 on: February 28, 2020, 02:48:21 PM »
That's a good thing, because you said:
Quote
Finally, it would be a web site that would unite all the scientific fields and open a possibility to upload different science theory fields that could mutually interact to derive a new, yet undiscovered knowledge.
Scientists from different fields would desire a platform that adapts to their particular needs, in terms of UI, language, and tools. Bridges with existing tools, as well as interviews with potential users, could be considered useful in the design process. You know, at least picking a few people who might be future users, and have a few mails with them, about how they see it... what tools they already use, what E-Teoria could bring on the table, ...etc. Talking with people is an interesting part of the process.