-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
¦îNc @@ sŒ d d l m Z d d l Z d d l Z d d l m Z d d l m Z d d d g Z d e j
f d „ ƒ YZ d d „ Z
d d
„ Z d S( i ( t absolute_importN( t east_asian_width( t osutilst UTextWrappert fillt wrapc B@ sb e Z d Z d
d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d „ Z RS( sŸ
Extend TextWrapper for Unicode.
This textwrapper handles east asian double width and split word
even if !break_long_words when word contains double width
characters.
:param ambiguous_width: (keyword argument) width for character when
unicodedata.east_asian_width(c) == 'A'
(default: 1)
Limitations:
* expand_tabs doesn't fixed. It uses len() for calculating width
of string on left of TAB.
* Handles one codeunit as a single character having 1 or 2 width.
This is not correct when there are surrogate pairs, combined
characters or zero-width characters.
* Treats all asian character are line breakable. But it is not
true because line breaking is prohibited around some characters.
(For example, breaking before punctation mark is prohibited.)
See UAX # 14 "UNICODE LINE BREAKING ALGORITHM"
c K@ sÏ | d k r( t j ƒ p t j d } n | j d d ƒ } | d k rR d | _ n$ | d k rj d | _ n t d ƒ ‚ t j d
k rµ | j d t ƒ | _
| j
sµ t d ƒ ‚ qµ n t j j
| | | d S( Ni t ambiguous_widtht FWi t FWAs ambiguous_width should be 1 or 2i t drop_whitespaces( TextWrapper version must drop whitespace( i i ( t NoneR t terminal_widtht default_terminal_widtht popt _east_asian_doublewidtht
ValueErrort syst version_infot TrueR t textwrapt TextWrappert __init__( t selft widtht kwargst
ambi_width( ( s4 /usr/lib/python2.7/dist-packages/bzrlib/utextwrap.pyR <