comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Tiny error in ARM 2012 ? (about characters)
Date: Mon, 24 Jan 2011 00:43:26 +0100
Date: 2011-01-24T00:43:26+01:00	[thread overview]
Message-ID: <op.vpsb6ofsule2fv@garhos> (raw)

Hillo,

I do not know if I've missed something. I am currently adding an Ada  
colorizer to an editor, and I decided to use the ARM 2012 instead of ARM  
2005 (for fun). It appears the wording in 2.1 are not exactly the same any  
more as in ARM 2005 (didn't suspected this section could be updated).

Unless I've missed something, is appears to exclude the space in source  
text.

2.1 is here:
http://www.ada-auth.org/standards/12rm/html/RM-2-1.html

2.1(4/3) says
> The only characters allowed outside of comments are those in
> categories other_format, format_effector, and graphic_character.

Other,Format:
http://www.fileformat.info/info/unicode/category/Cf/list.htm
No space

Format_Effector, defined by 2.1(13/2) to be
U+09..U+0D,U+85, and Separator,Line and Separator,Paragraph.

Separator,Line
http://www.fileformat.info/info/unicode/category/Zl/list.htm
is U+2028
Separator,Paragraph
http://www.fileformat.info/info/unicode/category/Zp/list.htm
is U+2029

 From a strict interpretation (in my possibly erroneous interpretation) of  
the ARM 2012, the character U+20 is not allowed outside of comments.

Seem the category Separator,Space
http://www.fileformat.info/info/unicode/category/Zs/list.htm
is missing from Format_Effector. It is safe, as luckily this does not  
include the zero-width space (U=200B) nor the zero-width no-break space  
(U+FEFF), which would be both unsafe. Separator,Space is defined in  
2.1(11/2), but not referred to.

Guess if I missed something, I am really foolish here :D (oops)


-- 
Si les chats miaulent et font autant de vocalises bizarres, c’est pas pour  
les chiens.

“I am fluent in ASCII” [Warren 2010]



             reply	other threads:[~2011-01-23 23:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-23 23:43 Yannick Duchêne (Hibou57) [this message]
2011-01-24  0:08 ` Tiny error in ARM 2012 ? (about characters) Yannick Duchêne (Hibou57)
  -- strict thread matches above, loose matches on Subject: below --
2011-01-23 23:43 Yannick Duchêne (Hibou57)
2011-01-24  2:16 ` Jeffrey Carter
2011-01-24  2:32   ` Yannick Duchêne (Hibou57)
2011-01-24  8:17 ` Yannick Duchêne (Hibou57)
2011-01-24  8:36   ` Yannick Duchêne (Hibou57)
2011-01-24  9:00     ` AdaMagica
2011-01-24  9:37       ` Yannick Duchêne (Hibou57)
2011-01-25  1:48     ` Randy Brukardt
2011-01-25  1:52 ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox