Re: Is it YAML?

Peter Murphy <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <CANZ_uBg2_L7yjwKOyUQ7XkQrXhpX-dsJ557N7NGrHWrEmLc9Og@mail.gmail.com>
All,

Thank you all for the positive feedback! I'd just like to add a few things.

There are going to be issues with "Is it YAML?" Some of them are
usability issues. For example, Brad Baxter asked:

"I assume you know about http://yaml.org/ypaste/?

One suggestion for your tool: leave the yaml I entered in the result input box."

Excellent idea. I might make that optional. (As for ypaste, I created
"Is it YAML" because I wanted a YAML tester that didn't escape Unicode
characters. However, some people may prefer escape sequences, so I'll
add that as an option in the next release.)

Other issues may be connected to PyYAML, as my app is a Django wrapper
around it. For example, Osamu Takeuchi reported:
	
"I tried it and found that it does not accept the following input.

{ abc:: }
"

Good on him for reporting that! I think that's a PyYAML issue. Another
issue I discovered was inputting Sumerian Cuneiform (I kid ye not!)
causes the following error.

"unacceptable character #x12174: special characters are not allowed
  in "<unicode string>", position 0"

So what can be done? There seems to be three types of problems.

(a) Usability / UI problems. Adding more options. That will be fairly
easy to add.

(b) Parsing / scanning problems. PyYAML is great in that you can
create derivations of the parser and scanner classes, and overload
whatever functions that bug you. See "scan_anchor" in the following.

https://github.com/peterkmurphy/isityaml/blob/master/isityaml/views.py

(c) Deeper problems related to Python. The language needs to handle
Unicode characters beyond '\uffff' a lot more consistently - both on
Windows and Unix.

As for (a) and (b), well...

Ingy asked:


> Is the code in a repo anywhere?
> It would be nice to include it in our github organization.
>

It is. I just added it.

https://github.com/peterkmurphy/isityaml

So if folk feel like getting their code fingers tapping - feel free to
modify to their heart's content.

Cheers,
Peter


-- 
Email: [email protected]
WWW: http://www.pkmurphy.com.au/

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.