[jboss-cvs] jboss-seam ...

Christian Bauer christian.bauer at jboss.com
Fri Feb 2 02:49:34 EST 2007


  User: cbauer  
  Date: 07/02/02 02:49:34

  Modified:    jboss-seam  seam-text.g
  Log:
  Added support for unicode letters in WORDs
  
  Revision  Changes    Path
  1.28      +17 -5     jboss-seam/seam-text.g
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: seam-text.g
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/seam-text.g,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -b -r1.27 -r1.28
  --- seam-text.g	30 Jan 2007 13:25:16 -0000	1.27
  +++ seam-text.g	2 Feb 2007 07:49:34 -0000	1.28
  @@ -132,7 +132,7 @@
         EQ GT 
         { beginCapture(); }
         attributeValue 
  -      { String link = endCapture(); append("<a class=\""); append( linkClass(link) ); append("\" href=\""); append( linkUrl(link) ); append("\">"); append( linkDescription(text, link) ); append("</a>"); }
  +      { String link = endCapture(); append("<a href=\""); append( linkUrl(link) ); append("\" class=\""); append( linkClass(link) ); append("\">"); append( linkDescription(text, link) ); append("</a>"); }
         CLOSE
       ;
       
  @@ -249,9 +249,21 @@
   options
   {
   	k=2;
  +
  +   // Allow any char but \uFFFF (16 bit -1)
  +   charVocabulary='\u0000'..'\uFFFE';
   }
   
  -WORD: ('a'..'z'|'A'..'Z'|'0'..'9')+
  +WORD: ('a'..'z'|'A'..'Z'|'0'..'9'|
  +      '\u00c0'..'\u00d6' |
  +      '\u00d8'..'\u00f6' |
  +      '\u00f8'..'\u00ff' |
  +      '\u0100'..'\u1fff' |
  +      '\u3040'..'\u318f' |
  +      '\u3300'..'\u337f' |
  +      '\u3400'..'\u3d2d' |
  +      '\u4e00'..'\u9fff' |
  +      '\uf900'..'\ufaff')+
       ;
       
   PUNCTUATION: ':' | '(' | ')' | '?' | '!' | '@' | '%' | '.' | ',' | '\''
  
  
  



More information about the jboss-cvs-commits mailing list