관리-도구
편집 파일: Text.cpython-37.pyc
B �]�| � @ s� G d d� d�Z G dd� d�ZG dd� d�ZG dd� d�ZG dd � d �ZG d d� d�ZG dd � d �ZG dd� d�ZG dd� d�Zddd�Z dd� Z dS )c @ s� e Zd Zdwdd�Zdd� Zdd� Zdd � Zdxdd�Zdyd d�Zdzdd�Z d{dd�Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zd+d,� Zd-d.� Zd/d0� Zd1d2� Zd3d4� Zd5d6� Zd7d8� Zd9d:� Zd;d<� Zd=d>� Z d?d@� Z!dAdB� Z"dCdD� Z#dEdF� Z$dGdH� Z%dIdJ� Z&dKdL� Z'dMdN� Z(dOdP� Z)dQdR� Z*dSdT� Z+dUdV� Z,dWdX� Z-dYdZ� Z.d[d\� Z/d]d^� Z0d_d`� Z1dadb� Z2dcdd� Z3dedf� Z4dgdh� Z5didj� Z6dkdl� Z7dmdn� Z8dodp� Z9dqdr� Z:dsdt� Z;dudv� Z<dS )|� Node2InterNc C s\ || _ || _|| _|| _g | _i g| _d| _d| _d| _d| _ |j | _ |d k rX| �|� d S )N� � )�mod�out�cnf�width� span_stack�attrs_stack� atparbegin�inpre�ul_level�prev_margin_bottom� sizescale�_visit_outer_node)�selfr �noder r r � r �A/opt/alt/python37/lib64/python3.7/site-packages/guppy/gsl/Text.py�__init__0 s zNode2Inter.__init__c C sn | j }| j|j|jd� |�� \}}x2|D ]*\}}|�� }|�� }t| jd| |� q*W |�| � | � � d S )N)�font_family� font_sizez_gsl_%s) r � span_begin� textfamily� sizeindex�split_attrs�strip�setattrr �accept�span_end)r r r �attrs�k�vr r r r B s zNode2Inter._visit_outer_nodec C s |� � \}}|r| j d S )N)r r )r r r r r r �_visit_nodeM s zNode2Inter._visit_nodec C s | j �d|| j� d S )N�end)r �insert�tags)r �xr r r �appendR s zNode2Inter.appendr c K s$ | j f |� |�| � | �|� d S )N)� div_begin� arg_accept�div_end)r r � margin_bottom�kwdsr r r �divU s zNode2Inter.divc K s� | j rB| j d }d|krB| jr,t||d �}| j| jf|� |d= t|| j�}d| _| jsh| �� d| _|rt||d<