#2394: broken messages on trac-admin
---------------------------------+------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  jonas
     Type:  defect               |       Status:  new  
 Priority:  high                 |    Milestone:  0.11 
Component:  trac-admin           |      Version:  0.9  
 Severity:  normal               |   Resolution:       
 Keywords:  unicode              |  
---------------------------------+------------------------------------------
Comment (by [EMAIL PROTECTED]):

 Excuse me that the answer is delayed.

 I think, this problem has three faces:
  1. '''Character'''-based wrap/cut.
  2. '''Byte'''-based wrap/cut escaping multi-byte charcter's
     border, for RSS output. (<description> element allows lines
     shorter than 80 bytes.)
  3. '''Griph'''-based wrap/cut, for ``trac-admin``'s display
     and other monospace displays.

 '''1''' resolves by unicode branch.

 '''2''' is not pointed out, yet.

 '''3''' is pointed by cmlenz on this ticket.

 Python's string object knows ''number of characters'' (by length
 of unicode string) and ''number of bytes'' (by length of utf-8 or
 other encoded string), but doesn't know ''colums by griph-size''.

 Later version-2.4, Python has ``unicodedata.east_asian_width()``
 method implements [http://www.unicode.org/reports/tr11/ East Asian Width]
 that is Unicode's Specification. It's not impletemted Python-2.3
 before.  However, we can use that to resolve this problem
 (w/ dismissing Python-2.3 environments... ).

 (Note: docutils-0.4 uses above.)


 I will try to write patches, but I need time to think/write,
 because these are very large and difficult features.  Do you know
 more simple methods? (I don't know Python very much.)

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2394>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to