1213
1213

Reputation: 756

Markup language for humans

I am looking for a markup language for human, to describe a group of physical objects and their characteristics (size, position, type…). I know about YAML but I would like to know if anything else exists. It must be simple, readable and editable for non skilled users.

XML-like markup language are too complicated: users must be able to edit directly a description of physical objects such as:

Objects
    object1
        x position: 5cm
        y position: 10cm
        height: 20cm
        width: 30cm
        height: 20cm
        …

I am not even sure if that kind of user will know what an indent is. Of course I can tell them how to edit in a documentation file but I must be as close to human writing as possible.

Upvotes: 0

Views: 243

Answers (2)

Marcin
Marcin

Reputation: 49846

I disagree that xml is too complicated. It is excellent for key-value representations where you know the keys ahead of time:

<object name="Object1"
        x-position="5cm" />

You will probably have to mess around with DTDs to get your xml processor to treat the tag as self-closing.

Upvotes: 1

krystan honour
krystan honour

Reputation: 6793

Is there any reason the users need to edit the markup directly could you not write a simple application that they enter data into a form or via a number of checkboxes etc and alter it yourself programatically not entirely sure why non skilled user would be editing a file of this nature surely a user of this nature would prefer a nice application

Upvotes: 2

Related Questions