403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.60
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/inkscape/extensions/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/inkscape/extensions/__pycache__/text_split.cpython-310.pyc
o

0�a��@sTddlZddlmZmZmZmZmZmZGdd�dej�Ze	dkr(e��
�dSdS)�N)�TextElement�FlowRoot�FlowPara�Tspan�TextPath�	Rectanglec@s8eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
�	TextSplitzSplit text up.cCs:|jddd�|jddddd�|jd	d
tjddd
�dS)Nz--tabz'The selected UI-tab when OK was pressed)�helpz-sz--splittype�wordz
type of split)�defaultr	z-pz
--preserveTzPreserve original)�typerr	)�add_argument�inkex�Boolean)�self�pars�r�,/usr/share/inkscape/extensions/text_split.py�
add_argumentss

�zTextSplit.add_argumentsc
	Csdg}d}|D]�}t|t�rt�d�|St|ttf�sqtdi|j��}t|t�r}|j	�
dd�}|j�|�}|�
d�d}t|t�rb|�d|�
d��|�dtt|�
d��||��|d7}nt�d	�|St�}	|	�d
d�|j|	_|�|	�n-ddlm}
|�
d�p�|�
d�}|�
d�p�|�
d�}|�d|�|�d|�|�|
|��|�|�q|S)zReturns a list of lines�z:Text on path isn't supported. First remove text from path.�	font-size�12pxzsvg:flowRegionr�x�yz=This type of text element isn't supported. First unflow text.�
sodipodi:role�line)�copyNr)�
isinstancerr�errormsgrrr�attribr�style�get�svg�unittouu�findoner�set�str�float�debug�text�appendr)
r�node�lines�count�elemr)�fontsize�fs�flowref�tspanrrrrrr�split_lines"sB

'�

"

�zTextSplit.split_linescs�g}�fdd��|�|�}|s|S|D]c}t|�d��}|�d�}|j�dd�}|j�|�}d��|����}	d}
|	D]:}t�}||_	t
di|j��}
|�d	d
�||
|}t
|�}
|
�dt|��|
�dt|��|
�|�|�|
�q;q|S)
zReturns a list of wordscsDg}|jr|�|j�|D]}|��|��|jr|�|j�q
|S)N)r)r*�extend�tail)r.�words�n��	plain_strrrr9Xs�z(TextSplit.split_words.<locals>.plain_strrrrr�rrrNr)r3r'r!r r"r#�join�splitrr)rrr%�lenr&r*)rr+r6r,rrrr/r0�
words_list�prev_lenr
r2r)rr8r�split_wordsSs2


�zTextSplit.split_wordscCs�g}|�|�}|s|S|D]O}t|�d��}|�d�}|j�dd�}|j�|�}|djD].}	t�}
|	|
_tdi|j	��}|�
dt|��|�
dt|��||7}|�|
�|�|�q-q
|S)zReturns a list of lettersrrrrrNr)
r@r'r!r r"r#r)rrrr%r&r*)rr+�lettersr6r
rrr/r0�letterr2r)rrr�
split_letters�s(


�zTextSplit.split_letterscCs�|jj}|jj}|jj�tt�D]8}|dkr|�|�}n|dkr&|�	|�}n	|dkr/|�
|�}|D]	}|���|�q1|sH|rH|��}|�
|�qdS)zApplies the effectrr
rBN)�options�	splittype�preserver"�	selectionr!rrr3r@rC�	getparentr*�remove)r�
split_typerFr.�nodes�child�parentrrr�effect�s 

��zTextSplit.effectN)	�__name__�
__module__�__qualname__�__doc__rr3r@rCrNrrrrrs14 r�__main__)rrrrrrr�EffectExtensionrrO�runrrrr�<module>s %�

Youez - 2016 - github.com/yon3zu
LinuXploit