Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

Recommended Posts

OHML is a markup language based on XML, it is a simpler, OC-graphics adapted version of HTML.Par

Part 1: Why i got that idea?
It all started when i noticed that most network programs/libraries were either DNS system, or Website system.
I tought it was very important to maintain an universal language for webpages. It is the first step of having
a stable and universal "OCnet", which will follow with server and client implementations. Protocols, etc..
To finally have it united. It would mostly be useful with GERT since it allow for one, global, routing technology.

Part 2: OHML versions

OHML patch versions (1.0.1, 1.0.5, etc.) minor changes (more understandable descriptions, new optional arguments) can be asked in comments section, might get accepted, and when features are froze, set as a new minor version of OHML specifications.

OHML minor versions (1.2, 1.1, 1.42) will accept features (new tags, deprecations, rename of tags/arguments, etc.) can also be asked in comments, they will get a seperate title from their major version, and have the space feature-freeze process than patch versions.

OHML major versions (2, 4, 5) can start from a little draft based on a major feature (removal fo  tags, minor/medium changes in way how code is wrote, etc.), and then should be put in another OETF thread, to add new features, validate them, and polish them.

OHML v1.0 tags:

Table about all tags and their (XML) arguments is available in png format, attached to this topic.

table.png.93325a59752b4c5eac0a710cc9b75c6d.png

Examples:

Image: <image file="blabla.pic"></image> = "blabla.pic" showen as PIC (MineOS image) format

Text: <text>Hello!</text> <text>World</text>

Script: <script lang="some_script_language">Some multi-line script</script>
Hyperlink: <a href="/superdupernews.ohm">Show super duper news</a>

OHML v1.0.1 revision:

Tags can now have optional arguments "x", "y", "width", "height" and "relative"

The "relative" argument is for using relative positions, vertical at first, and horizontal at last, we can use "up" (default) or "bottom", put a ";" for splitting, and add the horizental value that can be "left" or "right".
Relative positions works that if for example the value is "bottom;right", and if x = -5 and y = -5, the element Y will be at the most bottom point of the page (meaning that bottom for a page with elements not going after 10 for y, the bottom would be 10), added -5, which is equivalent of minus 5, and the element X will be at most-right point (generally viewport width) and will have minus 5.

Meaning that for a viewport with size of 80, 25, it would go at 75, 20

Part 3: HREF format
An HREF format defined in <a> tag can be relative or absolute.
If a href starts with any supported protocol name followed by "://" (ex: ohtp://), the link is fully absolute and should be coutned as the same than if the user
inputed it as a website. It's a normal URL
Then, if a href starts with "/", it is relative to the website host (can be ohtp://test.com), so, the full path is: {WEBSITE HOST} + {HREF}
Finally, starts with nothing above, it is relative and should be appended to the actual URL

URL are in the same format than real ones (protocol://host://webpage)

OHML, being a markup language, will not support any kind of dynamic coding like <if> statements, <print> statements, etc., dynamic coding is handled by <script> tags and scripts languages supported by the browser. (Currently no script language has been made, it's coming).

 

Anyway thanks for reading that long document about OHML, feel free to ask me things. I am actually making a protocol for it (OHTP) and then a basic server + client implementation.

A OHML decoder hasn't been done yet, but since OHML is based on XML, any XML parser will do the job, then just show tags appropriate content and here it is!

OHML is ready for any people making a script format and a web protocol. Community will choose by itself which one is used.

 

 

Edited by Zen1th
add ohml 1.0.1 revision for positions

Share this post


Link to post
Share on other sites

Yes i have discord, anyways if i mentionned GERT it's because i find interesting the idea of connecting minecraft servers each other. It allows for a OC "internet", since oc servers can now technically be acessed from any minecraft server having a GERT address. Which allows for endless possibilities in oc web.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.