U
    '1eKY                     @   s  d Z dZdddddddd	d
ddddddddgZddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBd,dCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`ddadbdcdddedfdgdhddidjdkdldmdndodpdqdrdsdtdudvdddwdxdydzd{d|d}d~dddddddddddddddddddddddddddddddddddddgZdddddddddddddddgZdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd5ddddddddddddddddddddddddddd gcZddddddddd	d
dddddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLgLZdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|d}d~dddddddddddddddgAZddddddddddddddddddddddddddddddddddddddddddddddddddddddÐdĐdŐdƐdǐdȐdɐdʐdːd̐d͐dΐdϐdАdѐdҐdӐdԐdՐd֐dאdؐdِdڐdېdܐdݐdސdߐdddddddgYZdddddddddddddddddddddddddd ddddddddd	d
dddddddg+Z	ddddddddddddddd d!d"d#gZ
d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4gZd5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEgZdYdGdHZdZdJdKZdLdMlmZ ejr,dLdNlZG dOdP dPejZejej_ejej_ejje_ejje_[eedQdNs*dIe_edR [[edSfdTdUZedVkrdLdNlZejdIdN ZeredLZ ere!edLZ"ndSZ"ze#ee e" W n*   ej$%dW ej$%dX  Y nX ne#edS dNS ([  z3.3.0a  Like Lorem Ipsum, but more fun and extensible.

This module exposes a function randomText() which generates paragraphs.
These can be used when testing out document templates and stylesheets.
A number of 'themes' are provided - please contribute more!
We need some real Greek text too.

There are currently six themes provided:
    STARTUP (words suitable for a business plan - or not as the case may be),
    COMPUTERS (names of programming languages and operating systems etc),
    BLAH (variations on the word 'blah'),
    BUZZWORD (buzzword bingo),
    STARTREK (Star Trek),
    PRINTING (print-related terms)
    PYTHON (snippets and quotes from Monty Python)
    CHOMSKY (random lingusitic nonsense)

EXAMPLE USAGE:
    from reportlab.lib import randomtext
    print randomtext.randomText(randomtext.PYTHON, 10)

    This prints a random number of random sentences (up to a limit
    of ten) using the theme 'PYTHON'.

Z	strategic	directionZ	proactivezventure capitalZreengineeringZforecast	resourceszSWOT analysiszforward-thinkingZprofitZgrowthZ
doubletalkZB2BZB2CZIPOz#NASDAQ meltdown - we're all doomed!PythonZPerlZPascalJavaZ
JavascriptZVBZBasicZLISPZFortranZADAZAPLCzC++Z	assemblerz
Larry WallzGuido van RossumXMLZHTMLcgizcgi-binZAmigaZ	MacintoshZDell	MicrosoftZfirewallserverLinuxZUnixZMacOSZBeOSzAS/400ZsendmailzTCP/IPSMTPzRFC822-compliantZdynamicZInternetzA/UXzAmiga OSZBIOSzboot managerszCP/MZDOSzfile systemZFreeBSDZFreewareZGEOSZGNUZHurdZMachzMacintosh OSzmailing listsZMinixZMulticsZNetWareZNextStepzOS/2zPlan 9ZRealtimeZUNIXZVMSWindowsz	X WindowsZXinusecurityZIntelZ
encryptionZPGPZsoftwareZActiveXZAppleScriptZawkZBETAZCOBOLZDelphiZDylanZEiffelzextreme programmingZForthzfunctional languagesZGuilezformat your hard driveZIconZIDLZInferZIntercalJZ
JavaScriptzCD-ROMZJCLZLispz"literate programming"ZLogoZMUMPSzC: drivezModula-2zModula-3ZOberonZOccamZOpenGLzparallel languageszPL/IZ
PostScriptZPrologZhardwarezBlue Screen of DeathZRexxZRPGSchemezscripting languagesZ	Smalltalkzcrash!z
disc crashZSpannerZSQLzTcl/TkZTeXZTOMZVisualzVisual BasicZ4GLZVRMLz!Virtual Reality Modeling Languagezdifference enginez...went into "yo-yo mode"SunzSun MicrosystemszHewlett Packardzoutput deviceZCPUZmemoryZ	registersZmonitorzTFT displayzplasma screenz
bug reportz"mis-feature"z...millions of bugs!Zpizzaz"illiterate programming"z...lots of pizza!zpepperoni pizzaZcoffeezJolt Cola[TM]ZbeerzBEER!BlahBLAHZblahblahZblahblahblahz	blah-blahzblah!z"Blah Blah Blah"zblah-de-blahzblah?zblah!!!zblah...zBlah.zblah;zblah, Blah, BLAH!zBlah!!!zintellectual capitalzmarket segmentZ
flatteningZregroupplatformzclient-basedz	long-termzquality vectorzout of the loopZ	implement
streamlinezcost-centeredphaseZsynergyZ	synergizeinteractiveZ
facilitateappropriatezgoal-settingZ
empoweringzlow-risk high-yieldzpeel the onionZgoalZdownsizezresult-drivenZconceptualizeZmultidisciplinaryzgap analysisZdysfunctionalZ
networkingzknowledge managementzmastery learningZcommunicationzreal-estateZ	quarterlyZscalablezTotal Quality Managementzbest of breedZnimbleZmonetizeZ	benchmarkZhardballzclient-centeredzvision statementZempowermentzlean & meanZcredibilityZsynergisticzbackward-compatiblezstretch the envelopezbleeding edgeZ
motivationzbest practiceimplementationZ	undefinedZdisintermediateZmindsetZ	architectZmoraleZ	objectiveZ
projectionZcontributionzgo the extra milezworld classzreal estateZrecognitionZqualityZscenariozperformance basedZsolutioningzexperiencing slippagezhigh priorityprocessZethicalzvalue-addedzre-factoringzre-brandingzembracing changeZ	StarfleetZKlingonZRomulanZ
CardassianZVulcanZBenzitezIKV Paghzemergency transponderzUnited Federation of PlanetsZBolianzK'Vort Class Bird-of-PreyzUSS EnterprisezUSS IntrepidzUSS ReliantzUSS VoyagerzStarfleet AcademyzCaptain PicardzCaptain Janewayz	Tom Parisz	Harry KimzCounsellor TroizLieutenant WorfzLieutenant Commander DatazDr. Beverly CrusherzAdmiral NakamurazIrumodic SyndromezDevron systemzAdmiral Pressmanzasteroid fieldzsensor readingsZBinarszdistress signalZshuttlecraftzcloaking devicezshuttle bay 2zDr. PulaskizLwaxana TroiZPacificazWilliam RikerzChief O'BrianzSoyuz class science vesselzWolf-359zGalaxy class vesselzUtopia Planitia yardszphoton torpedoz	Archer IVzquantum fluxZ	spacedockZRisazDeep Space Ninez
blood winezquantum torpedoesZholodeckzRomulan WarbirdZBetazoidZ	turboliftzbattle bridgezMemory Alphaz...with a phaser!zRomulan aleZFerrengizKlingon operaZQuarkZwormholeZBajoranZcruiserZwarshipZbattlecruiserz"Intruder alert!"z
scout shipzscience vesselz"Borg Invasion imminent!" z"Abandon ship!"z
Red Alert!zwarp-core breechz."All hands abandon ship! This is not a drill!"ZpointsZpicasleadingZkerningZCMYKzoffset lithotypezfont familyZ
typographyztype designerZbaselinezwhite-out typeZWOBZ	bicameralZbitmapZblockletterZbleedmarginbodyZwidowZorphanZciceroZcursiveZ
letterformZsideheadZdingbatZleaderZDPIzdrop-capZ	paragraphZEnZEmz
flush leftzleft justifiedzright justifiedZcenteredZitaliczLatin letterformZligatureZ	uppercaseZ	lowercaseZserifz
sans-serifZweightztype foundryZfleuronZfolioZgutter
whitespacezhumanist letterformcaptionpageframezragged settingzflush-rightZrulezdrop shadowsZprepresszspot-colourZduotoneszcolour separationszfour-colour printingzPantone[TM]zservice bureauZimagesetterzGood evening ladies and BruceszI want to buy some cheesez You do have some cheese, do you?z3Of course sir, it's a cheese shop sir, we've got...z(discipline?... naked? ... With a melon!?zThe Church Police!!z$There's a dead bishop on the landingz&Would you like a twist of lemming sir?z<"Conquistador Coffee brings a new meaning to the word vomit"zYour lupins pleasez7Crelm Toothpaste, with the miracle ingredient FraudulinzEWell there's the first result and the Silly Party has held Leicester.z0Hello, I would like to buy a fish license pleasez-Look, it's people like you what cause unrest!zAWhen we got home, our Dad would thrash us to sleep with his belt!ZLuxuryzGumby Brain SpecialistzMy brain hurts!!!zMy brain hurts too.zHow not to be seenz=In this picture there are 47 people. None of them can be seenz%Mrs Smegma, will you stand up please?zNMr. Nesbitt has learned the first lesson of 'Not Being Seen', not to stand up.zMy hovercraft is full of eelszAh. You have beautiful thighs.zMy nipples explode with delightz;Drop your panties Sir William, I cannot wait 'til lunchtimez#I'm a completely self-taught idiot.z%I always wanted to be a lumberjack!!!zTold you so!! Oh, coitus!! zNudge nudge?zKnow what I mean!zNudge nudge, nudge nudge?zSay no more!!zhHello, well it's just after 8 o'clock, and time for the penguin on top of your television set to explodezOh, intercourse the penguin!!z)Funny that penguin being there, isn't it?zI wish to register a complaint.z$Now that's what I call a dead parrotzPining for the fjords???z)No, that's not dead, it's ,uhhhh, restingzThis is an ex-parrot!!z#That parrot is definitely deceased.z\No, no, no - it's spelt Raymond Luxury Yach-t, but it's pronounced 'Throatwobbler Mangrove'.z;You're a very silly man and I'm not going to interview you.zZNo Mungo... never kill a customer.And I'd like to conclude by putting my finger up my nosezegg and Spamzegg bacon and Spamzegg bacon sausage and SpamzSpam bacon sausage and Spamz!Spam egg Spam Spam bacon and Spamz6Spam sausage Spam Spam Spam bacon Spam tomato and SpamzSpam Spam Spam egg and Spamz8Spam Spam Spam Spam Spam Spam baked beans Spam Spam SpamzSpam!!zI don't like Spam!!!z=You can't have egg, bacon, Spam and sausage without the Spam!zI'll have your Spam. I Love it!zQI'm having Spam Spam Spam Spam Spam Spam Spam baked beans Spam Spam Spam and Spamz#Have you got anything without Spam?zBThere's Spam egg sausage and Spam, that's not got much Spam in it.z(No one expects the Spanish Inquisition!!z*Our weapon is surprise, surprise and fear!zGet the comfy chair!zAmongst our weaponry are such diverse elements as: fear, surprise, ruthless efficiency, an almost fanatical devotion to the Pope, and nice red uniforms - Oh damn!z Nobody expects the... Oh bugger!z=What swims in the sea and gets caught in nets? Henri Bergson?z3Goats. Underwater goats with snorkels and flippers?zA buffalo with an aqualung?z1Dinsdale was a looney, but he was a happy looney.z
Dinsdale!!z+The 127th Upper-Class Twit of the Year ShowzWhat a great Twit!z2thought by many to be this year's outstanding twitzJ...and there's a big crowd here today to see these prize idiots in action.z+And now for something completely different.zStop that, it's sillyzKWe interrupt this program to annoy you and make things generally irritatingzQThis depraved and degrading spectacle is going to stop right now, do you hear me?zStop right there!z?This is absolutely disgusting and I'm not going to stand for itzFI object to all this sex on the television. I mean, I keep falling offz/Right! Stop that, it's silly. Very silly indeedzVery silly indeedzLemon curry?zAAnd now for something completely different, a man with 3 buttocksz+I've heard of unisex, but I've never had itz*That's the end, stop the program! Stop it!z%To characterize a linguistic level L,zOn the other hand,zThis suggests thatzIt appears thatzFurthermore,z9We will bring evidence in favor of the following thesis: z.To provide a constituent structure for T(Z,K),zFrom C1, it follows thatz^For any transformation which is sufficiently diversified in application to be of any interest,zAnalogously,zClearly,z	Note thatz
Of course,zSuppose, for instance, thatZThuszWith this clarification,zConversely,zWe have already seen thatz2By combining adjunctions and certain deformations,zDI suggested that these results would follow from the assumption thatzTIf the position of the trace in (99c) were only relatively inaccessible to movement,z.However, this assumption is not correct, sincez\Comparing these examples with their parasitic gap counterparts in (96) and (97), we see thatz8In the discussion of resumptive pronouns following (81),zSo far,zNevertheless,zFor one thing,z!Summarizing, then, we assume thatz3A consequence of the approach just outlined is thatzPresumably,zOn our assumptions,zIt may be, then, thatz'It must be emphasized, once again, thatzLet us continue to suppose thatzNotice, incidentally, thatz9A majority  of informed linguistic specialists agree thatz@There is also a different approach to the [unification] problem,zHThis approach divorces the cognitive sciences from a biological setting,zOThe approach relies on the "Turing Test," devised by mathematician Alan Turing,zAdopting this approach,z8There is no fact, no meaningful question to be answered,zIAnother superficial similarity is the interest in simulation of behavior,zbA lot of sophistication has been developed about the utilization of machines for complex purposes,z&the notion of level of grammaticalnessz1a case of semigrammaticalness of a different sortz5most of the methodological work in modern linguisticszFa subset of English sentences interesting on quite independent groundsz9the natural general principle that will subsume this casez0an important property of these three types of ECz!any associated supporting elementzZthe appearance of parasitic gaps in domains relatively inaccessible to ordinary extractionz)the speaker-hearer's linguistic intuitionz+the descriptive power of the base componentz"the earlier discussion of deviancez:this analysis of a formative as a pair of sets of featuresz0this selectionally introduced contextual featurez a descriptively adequate grammarzCthe fundamental error of regarding functional notions as categorialzrelational informationz%the systematic use of complex symbolsz2the theory of syntactic features developed earlierz)can be defined in such a way as to imposeZdelimitszsuffices to account forzcannot be arbitrary inzis not subject tozdoes not readily toleratezraises serious doubts aboutzis not quite equivalent toz does not affect the structure ofz+may remedy and, at the same time, eliminatez&is not to be considered in determiningzis to be regarded aszis unspecified with respect tozis, apparently, determined byz+is necessary to impose an interpretation onz(appears to correlate rather closely withzis rather different fromz0problems of phonemic and morphological analysis.zaa corpus of utterance tokens upon which conformity has been defined by the paired utterance test.z(the traditional practice of grammarians.z\the levels of acceptability from fairly high (e.g. (99a)) to virtual gibberish (e.g. (98d)).zGa stipulation to place the constructions into these various categories.za descriptive fact.za parasitic gap construction.z9the extended c-command discussed in connection with (34).zKthe ultimate standard that determines the accuracy of any proposed grammar.z2the system of base rules exclusive of the lexicon.z5irrelevant intervening contexts in selectional rules.z;nondistinctness in the sense of distinctive feature theory.z8a general convention regarding the forms of the grammar.zan abstract underlying order.z)an important distinction in language use.z_the requirement that branching is not tolerated within the dominance scope of a complex symbol.z-the strong generative capacity of the theory.H   c                 C   s,   zdd l }|| |W S    |  Y S X d S )N    )textwrapfill)textZline_lengthr%    r(   </tmp/pip-unpacked-wheel-109iniqw/reportlab/lib/randomtext.pyformat_wisdom&  s
    r*      c                 C   s   t | tsttS dd l}g }g }g }t| D ]N}tttt	fD ]$}|
|}||krBqXqB|| q>|d| |}g }q.td|S )Nr$    z  )
isinstanceintr*   __doc__randomrangeleadinssubjectsverbsobjectschoiceappendjoin)timesr0   Z	prevpartsZnewpartsoutputiZpartlistpartr(   r(   r)   chomsky-  s     

r=   r$   )	rl_configNc                   @   s,   e Zd Zddedej> fddZdd ZdS )RLMonkeyPatchRandomNr+   c                 C   sl  ||}||krt d|dkrR|dkrJ||kr:| |S ||  | S t d||}||krjt d|| }|dkr|dkr||kr||| | S ||||  |  S |dkrt d|||f ||}	|	|krt d|	dkr||	 d |	 }
n$|	dk r||	 d |	 }
nt d	|
dkr8t d|
|krT||	| |
  S ||	||  |
   S )
zChoose a random item from range(start, stop[, step]).

            This fixes the problem with randint() which includes the
            endpoint; in Python this is usually not what you want.

            z!non-integer arg 1 for randrange()Nr$   zempty range for randrange()z non-integer stop for randrange()r+   z'empty range for randrange() (%d,%d, %d)z non-integer step for randrange()zzero step for randrange())
ValueError
_randbelowr0   )selfstartstopstep_intZ	_maxwidthistartistopwidthistepnr(   r(   r)   	randrangeE  s@    





zRLMonkeyPatchRandom.randrangec                 C   s   |t |  t|  S )z2Choose a random element from a non-empty sequence.)r.   r0   len)rB   seqr(   r(   r)   r6     s    zRLMonkeyPatchRandom.choice)__name__
__module____qualname__r.   r0   BPFrL   r6   r(   r(   r(   r)   r?   D  s   >r?   _randoml   H>    c           	      C   s   t | t dkrL|  dkr$t|S |  dkr@t |   } ntd|  ddlm}m} | }d}t	|d|D ]P}|d }t	|d	d
D ],}|dddkr||}nd}|d | }q|d }qr|S )Nr"   r=   )STARTUP	COMPUTERSr   BUZZWORDSTARTREKPRINTINGPYTHONzUnknown theme "%s"r$   )randintr6   r+   r   
         Zblahr,   z. )
r   lowerr=   upperglobalsr@   r0   r[   r6   r1   )	theme	sentencesr[   r6   ZRANDOMWORDSr:   Z
sentencenoZwordnowordr(   r(   r)   
randomText  s$     

re   __main__z*Usage: randomtext.py [theme [#sentences]]
zK theme in chomsky|STARTUP|COMPUTERS|BLAH|BUZZWORD|STARTREK|PRINTING|PYTHON
)r#   )r+   )&__version__r/   rU   rV   r   rW   rX   rY   rZ   r2   r3   r4   r5   r*   r=   Z	reportlabr>   Z	invariantr0   Randomr?   rL   r6   _instgetattrrS   seedre   rO   sysargvpoprb   r.   rc   printstderrwriter(   r(   r(   r)   <module>   s            
                                                                                                                         
                                                                                                                                                                                                                              0/B




