File: //usr/lib64/libreoffice/share/Scripts/python/Capitalise.pyo
�
Ʌ`c @ s d � Z d � Z e f Z d S( c C s� | s t | � d k r d S| d j � rs t | � d k rs | d j � rs | d d !j � | d j � } n+ | d j � r� | j � } n | j � } | S( Ni t i i ( t lent isuppert uppert lower( t theStringt newString( ( s9 /usr/lib64/libreoffice/share/Scripts/python/Capitalise.pyt getNewString s 2$c C sP d d l } t j � } | j � } | j � } | j � } | d k rQ d } n x� | | k rK| j | � } | j � } t | � d k r| j � } | j
| � } | j � s� | j t
� n | j t � | j � } t | � }
|
r>| j |
� | j | � q>n/ t | � }
|
r>| j |
� | j | � n | d 7} qT Wd S( s} Change the case of a selection, or current word from upper case, to first char upper case, to all lower case to upper case...i����Ni i ( t stringt XSCRIPTCONTEXTt getDocumentt getCurrentControllert getSelectiont getCountt
getByIndext getStringR t getTextt createTextCursorByRanget
isStartOfWordt gotoStartOfWordt Falset gotoNextWordt TrueR t setStringt select( R t xModelt xSelectionSuppliert xIndexAccesst countt it
xTextRangeR t xTextt xWordCursorR ( ( s9 /usr/lib64/libreoffice/share/Scripts/python/Capitalise.pyt capitalisePython"