Re: Canonical Form (Re: [ANN] InstantYAML is released)

Andrey Somov <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
PyYAML is used to produce the canonical form.
When I read the specification:
"Canonical Form ... is a Unicode character string ..."

I think you are right and it should be "Über" instead of "\xDCber".

I think it is better to contact PyYAML developers to ask for clarification.

http://pyyaml.org/report/1

Andrey



>
>
> It looks nice!
>
> One concern that I have is how the service perceives "Canonical
> content" when handling characters above 128. For example:
>
> English: Over
> German: Über
>
> Becomes:
>
> %YAML 1.1
> ---
> !!map {
>     ? !!str "English"
>     : !!str "Over",
>     ? !!str "German"
>     : !!str "\xDCber",
> }
> ...
>
> Yes, it's a different way of presenting the same thing. But if I was
> pressing the "Show Canonical YAML" button, I would expect:
>
> %YAML 1.1
> ---
> !!map {
>     ? !!str "English"
>     : !!str "Over",
>     ? !!str "German"
>     : !!str "Über",
> }
> ...
>
> Best regards,
>
> Peter
>

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core
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.