comp.lang.ada
 help / color / mirror / Atom feed
* Tiny error in ARM 2012 ? (about characters)
@ 2011-01-23 23:43 Yannick Duchêne (Hibou57)
  2011-01-24  2:16 ` Jeffrey Carter
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Yannick Duchêne (Hibou57) @ 2011-01-23 23:43 UTC (permalink / 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]



^ permalink raw reply	[flat|nested] 11+ messages in thread
* Tiny error in ARM 2012 ? (about characters)
@ 2011-01-23 23:43 Yannick Duchêne (Hibou57)
  2011-01-24  0:08 ` Yannick Duchêne (Hibou57)
  0 siblings, 1 reply; 11+ messages in thread
From: Yannick Duchêne (Hibou57) @ 2011-01-23 23:43 UTC (permalink / 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]



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-01-25  1:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-23 23:43 Tiny error in ARM 2012 ? (about characters) 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
  -- strict thread matches above, loose matches on Subject: below --
2011-01-23 23:43 Yannick Duchêne (Hibou57)
2011-01-24  0:08 ` Yannick Duchêne (Hibou57)

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