ó
ęBľ\c           @  s)  d  d l  m Z e Z Z e Z Z e Z	 Z
 e Z Z e Z d  d l m Z e Z d  d l m Z e Z d  d l m Z e Z e Z d  d l m Z d  d l m Z d  d l m Z d  d l j Z d  d l j  Z! d  d	 l" m# Z$ d  d
 l m% Z& d  d l' m( Z( e) Z* d   Z) d   Z+ d   Z, d S(   i˙˙˙˙(   t   print_function(   t   RevertableList(   t   RevertableDict(   t   RevertableSet(   t   RevertableObject(   t   revertable_range(   t   revertable_sortedN(   t   translate_string(   t
   store_eval(   t   absolutec          O  s#   t  t j j   _ t |  |   d S(   s§   
    :undocumented:

    This is a variant of the print function that forces a checkpoint
    at the start of the next statement, so that it can't be rolled past.
    N(   t   Truet   renpyt   gamet   contextt   force_checkpointt   _print(   t   argst   kwargs(    (    s   renpy/minstore.pyt   print9   s    c         C  s   |  S(   sÄ   
    :undocumented: Documented directly in the .rst.

    Flags a string as translatable, and returns it immediately. The string
    will be translated when displayed by the text displayable.
    (    (   t   s(    (    s   renpy/minstore.pyt   _E   s    c         C  s  d d l  } g  |  j d  D] } | j   ^ q } | rU | d rU | j d  n  | rs | d rs | j   n  d } g  } x| | D]t } | s˛ | d j |  d 7} g  } q | j d |  rí | j |  | d j |  7} g  } q | j |  q W| d j |  7} | S(	   sW  
    :doc: underscore_p
    :name: _p

    Reformats a string and flags it as translatable. The string will be
    translated when displayed by the text displayable. This is intended
    to define multi-line for use in strings, of the form::

        define config.about = _p("""
            These two lines will be combined together
            to form a long line.

            This line will be separate.
            """)

    The reformatting is done by breaking the text up into lines,
    removing whitespace from the start and end of each line. Blank lines
    are removed at the end. When there is a blank line, a blank line is
    inserted to separate paragraphs. The {p} tag breaks a line, but
    doesn't add a blank one.

    This can be used in a string translation, using the construct::

        old "These two lines will be combined together to form a long line.\n\nThis line will be separate."
        new _p("""
            These two lines will be combined together
            to form a long line. Bork bork bork.

            This line will be separate. Bork bork bork.
            """)
    i˙˙˙˙Ns   
i    t    t    s   

s   \{p[^}]*\}$(   t   ret   splitt   stript   popt   joint   searcht   append(   R   R   t   it   linest   rvt   parat   l(    (    s   renpy/minstore.pyt   _pP   s&    !(		(-   t
   __future__R    t   listt   python_listt   _listt   dictt   python_dictt   _dictt   objectt   python_objectt   _objectt   sett
   python_sett   _sett   typet   _typet   renpy.pythonR   t   __renpy__list__R   t   __renpy__dict__R   t   __renpy__set__t   SetR   R   t   rangeR   t   sortedt   renpy.uit   uit   renpy.exportst   exportsR   t   renpy.translationR   t   __R   t   evalt   renpy.display.coreR	   R   R   R   R#   (    (    (    s   renpy/minstore.pyt   <module>   s0   



		