bugGrammatica - Bugs: bug #7874, Unicode character references

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #7874: Unicode character references

Submitted by:  None
Submitted on:  Tue 24 Feb 2004 04:01:53 PM UTC  
 
Severity: 5 - MajorItem Group: Documentation
Status: NoneAssigned to: Per Cederberg <cederberg>
Open/Closed: Open

Thu 26 Feb 2004 11:07:16 AM UTC, comment #2:

This seems to be a documentation bug, more than anything. The Grammatica RE:s support unicode character references in the following way:

\uFFFF (where FFFF is the Unicode hexadecimal code)

So the example above would be expressed in the following way (untested):

Char = <<\x09|\x0A|\x0D|[\u0020-\uD7FF]|[\uE000-\uFFFD]>>

Note the use of \x for two-character hexadecimal encoding and \u for four-character encoding. Also note that the character sequence [#x10000-#x10FFFF] has been omitted, see bug #7916 for more information.

Per Cederberg <cederberg>
Project AdministratorIn charge of this item.
Tue 24 Feb 2004 04:12:27 PM UTC, comment #1:

BTW, I submitted it (dcazzulino, that is).

Daniel Cazzulino <dcazzulino>
Tue 24 Feb 2004 04:01:53 PM UTC, original submission:

One consequence of not using SDK built-in regular expression support is that unicode support is not available. For example, the XML grammar defines Char as follows:

Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]

How could that be expressed with grammatica? If it supported built-in regex engine, this would be no problem (in .NET at least :o)

BTW: I'm seeking for an XML/RelaxNG parser.

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 26 Feb 2004 11:07:16 AM UTCcederbergItem GroupSoftware=>Documentation
  Assigned toNone=>cederberg

Back to the top


Powered by Savane 3.1-cleanup1