o
    @@ia                     @   s2   d Z ddlZddlZddlmZ G dd dZdS )aX  
    Lorem Ipsum is simply dummy text of the printing and typesetting industry.
    Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
    when an unknown printer took a galley of type and scrambled it to make a type specimen book.
    It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
    It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,
    and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
    N)TextGeneratorc                   @   s   e Zd ZdZeddedefddZeddedefddZeddedefd	d
Z	eddedefddZ
eddedefddZeddedefddZeddedefddZeddedefddZdS )Lipsuma\  
    Lorem Ipsum is simply dummy text of the printing and typesetting industry.
    Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
    when an unknown printer took a galley of type and scrambled it to make a type specimen book.
    It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
    It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,
    and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
       number_of_sentencesreturnc                    N   | dksJ dt tjd }t |d  d fddtd| D S )	z
        This function produces Agatha Christie styled lorem ipsum text
        :param number_of_sentences:         the number of sentences to be produced
        :return:                            lorem ipsum text
           8number_of_sentences must be a positive non-zero quantity	resourceszmm_agatha_christie.json c                    "   g | ]}  td dd qS         generaterandomrandint.0_tg [/home/ubuntu/transcripts/venv/lib/python3.10/site-packages/borb/pdf/canvas/lipsum/lipsum.py
<listcomp>7       z8Lipsum.generate_agatha_christie_text.<locals>.<listcomp>r   pathlibPath__file__parentr   loadjoinranger   resources_dirr   r   r   generate_agatha_christie_text(      

z$Lipsum.generate_agatha_christie_textc                    r   )	z
        This function produces A.A. Milne styled lorem ipsum text
        :param number_of_sentences:         the number of sentences to be produced
        :return:                            lorem ipsum text
        r   r	   r
   zmm_alan_alexander_milne.jsonr   c                    r   r   r   r   r   r   r   r   L   r   z=Lipsum.generate_alan_alexander_milne_text.<locals>.<listcomp>r   r   r&   r   r   r   "generate_alan_alexander_milne_text=   r)   z)Lipsum.generate_alan_alexander_milne_textc                    r   )	z
        This function produces Arthur Conan Doyle styled lorem ipsum text
        :param number_of_sentences:         the number of sentences to be produced
        :return:                            lorem ipsum text
        r   r	   r
   zmm_arthur_conan_doyle.jsonr   c                    r   r   r   r   r   r   r   r   a   r   z;Lipsum.generate_arthur_conan_doyle_text.<locals>.<listcomp>r   r   r&   r   r   r    generate_arthur_conan_doyle_textR   r)   z'Lipsum.generate_arthur_conan_doyle_textc                    r   )	u   
        This function produces Emily Brontë styled lorem ipsum text
        :param number_of_sentences:         the number of sentences to be produced
        :return:                            lorem ipsum text
        r   r	   r
   zmm_emily_bronte.jsonr   c                    r   r   r   r   r   r   r   r   t   r   z5Lipsum.generate_emily_bronte_text.<locals>.<listcomp>r   r   r&   r   r   r   generate_emily_bronte_textg      

z!Lipsum.generate_emily_bronte_textc                    r   )	z
        This function produces Jane Austen styled lorem ipsum text
        :param number_of_sentences:         the number of sentences to be produced
        :return:                            lorem ipsum text
        r   r	   r
   zmm_jane_austen.jsonr   c                    r   r   r   r   r   r   r   r      r   z4Lipsum.generate_jane_austen_text.<locals>.<listcomp>r   r   r&   r   r   r   generate_jane_austen_textz   r-   z Lipsum.generate_jane_austen_textc                    r   )	z
        This function produces Lewis Carroll styled lorem ipsum text
        :param number_of_sentences:         the number of sentences to be produced
        :return:                            lorem ipsum text
        r   r	   r
   zmm_lewis_carroll.jsonr   c                    r   r   r   r   r   r   r   r      r   z6Lipsum.generate_lewis_carroll_text.<locals>.<listcomp>r   r   r&   r   r   r   generate_lewis_carroll_text   r)   z"Lipsum.generate_lewis_carroll_textc                    r   )	a)  
        This function produces lorem ipsum text
        :param number_of_sentences:         the number of sentences to be produced
        :param start_with_lorem_ipsum:      whether or not to start the text with "Lorem ipsum"
        :return:                            lorem ipsum text
        r   r	   r
   zmm_lipsum.jsonr   c                    r   r   r   r   r   r   r   r      r   z/Lipsum.generate_lipsum_text.<locals>.<listcomp>r   r   r&   r   r   r   generate_lipsum_text   s   
	
zLipsum.generate_lipsum_textc                    r   )	z
        This function produces Mary Shelley styled lorem ipsum text
        :param number_of_sentences:         the number of sentences to be produced
        :return:                            lorem ipsum text
        r   r	   r
   zmm_mary_shelley.jsonr   c                    r   r   r   r   r   r   r   r      r   z5Lipsum.generate_mary_shelley_text.<locals>.<listcomp>r   r   r&   r   r   r   generate_mary_shelley_text   r-   z!Lipsum.generate_mary_shelley_textN)r   )__name__
__module____qualname____doc__staticmethodintstrr(   r*   r+   r,   r.   r/   r0   r1   r   r   r   r   r      s$    r   )r5   r   r   %borb.pdf.canvas.lipsum.text_generatorr   r   r   r   r   r   <module>   s
   	