Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

FIOCML

Name: Anonymous 2011-08-30 9:21

So how about an XML-like mark-up language but instead of <tag>s we use meaningful whitespace? Human-readable, easy as pie to parse and looks beautiful.

Name: Anonymous 2011-08-30 9:27

Something like this?
bbcode
  One word:
  b
    u
      i
        o
          THE FORCED INDENTATION OF TEXT!
  br
  Thread over!

Name: Anonymous 2011-08-30 9:46

PyBBCode

Name: Anonymous 2011-08-30 11:19

one word s-expr

Name: Anonymous 2011-08-30 11:20

So what about text content that spans more than a line? Gonna parse it all and insert ``meaningful whitespace'' at the right positions? But then how do you get it back to the original format once you're trying to parse the file back in?

Name: Anonymous 2011-08-30 11:30

never heard of yaml?

In a YAML character stream, structure is often determined from indentation, where indentation is defined as a line break character (or the start of the stream) followed by zero or more space characters. Note that indentation must not contain any tab characters. The amount of indentation is a presentation detail used exclusively to delineate structure and is otherwise ignored. In particular, indentation characters must never be considered part of a node's content information.

Name: Anonymous 2011-08-30 11:33

>>5
Never heard of escaping sequences?

Name: Anonymous 2011-08-30 11:42

>>7
But then it won't be easy to parse anymore.

Name: Anonymous 2011-08-30 13:30

>>5
Maybe something like this:


:library
  :book title="SICP"
    :chapter title="Building Abstractions with Procedures"
       :page
We are about to study the idea of a computational process. Computational processes are abstract beings that inhabit computers. As they evolve, processes manipulate other abstract things called data.
The evolution of a process is directed by a pattern of rules called a program.

People create programs to direct processes. In effect, we conjure the spirits of the computer with our spells.
       :page
Whitespace, linebreaks, etc. don't matter.
       :page >>>
          :maybe there could be a heredoc syntax to turn off the parser.
       <<<


of course the problem is that there is no distinction between tag and content. so you'd want some kind of delimiter.

Name: Anonymous 2011-08-30 13:32

\LaTeX is the best.

Name: Anonymous 2011-08-30 13:32

YAML is what you want.

but s-exprs are best.

Name: Anonymous 2011-08-30 13:34

>>10
Until you have to put images on your document.

Name: Anonymous 2011-08-30 14:10

>>11
kill yourself lithpfag

Name: Anonymous 2011-08-30 14:13

>>13
I summon you to be less rude, insolent construction!

Name: Anonymous 2011-08-30 14:18

Speaking of embedding images in files. Is there some sort of UUE/BASE64/etc that uses UTF8 instead of relying on subset of ASCII?

Name: Anonymous 2011-08-30 15:19

>>15
No. Guess why people called it BASE64.

Name: Anonymous 2011-08-30 16:22

>>16
Because fuck off, ``faggot"?

Name: Anonymous 2011-08-30 16:57

What's wrong with JSON?

Name: Anonymous 2011-08-30 20:18

>>18
I get tired of pressing X.

Don't change these.
Name: Email:
Entire Thread Thread List