#!/usr/bin/python3 """Generate problematic, disturbing stochastic monospace Unicode art. Example: ⎙christchristchristchristchristchristchristchristchristchristchristchristchristc ♄Argument┉‣╁☙♠▧ ◺follows_░ ╯mil azahares exiguos de aquella palo ┇ windows ╾ ╉follows sense♗₌ ╪ ⍃₡warmfollows : ⍣ ▕ ♄follows ♄Argument relevant♵☿⍇ ┌follows ┇ windows follows ╪ follows : follows ♄Argument follows ┇ windows follows ╪ follows : follows ♄Argument follows ┇ windows follows ╪ follows : follows ♄Argument follows ┇ windows follows ⎿ ▬ ╪ follows ▿ : follows ╞ ♄Argument follows ⎻ ┇ windows follows aquel oro supremo de aquellos pies b ╪ follows appeared⎨♔appeared⎨♔appeared⎨♔appear : follows Users⎨♔ Users⎨♔ Users⎨♔ Users ♄Argument follows ⁆ ┇ windows follows ♃ ╪ follows § : follows ₸† ⍅ ♄Argument follows ▭ ┇ windows follows ]The Dark Fool Of Their Trembling, F ⍕square⍂⍫÷☒⁃articleAn Unspeakable Place Of Two Singing Willows⍾ ▝ ♔ ╜ ⍱ ⎕ ⎥ ★ ☱ ♰┥₱⚈☜whyfastmember▓◶┿◸┖☴ ⁻ ♰┥ member▓ ┐ ¯ ♰┥ member▓ · ♰┥ member▓ ⏆ Or: El Algarrobo Cálido De Aquella Herencia Impía aquel caballo delicioso de la esposa más fielheld╾ ┾ ◐ club ⌺ The Smooth Lie Of His Blistered Torture ╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭╭ ┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊┊ carryingcarryingcarryingcarryingcarryingcarryingcarryingcarryingcarryingcarrying ⌿ Entry ┯ ☧☧☧☧☧☧☧ ▼ ⎎ germany ⎽ ⎴membership ┽ ┞ aquel crepúsculo vigoroso de aquel fiebre dolorido y profundo ♐ ╾ ‱ ⌅♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥ ¯♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥┧♥ ◕competition ☌ ▊ ♅ ♗ ☗ aquella época cálida de una lluvia inmaculada respirando☗aquella épo Aquella Mirada Voluptuosa De Su Viento Más Legendario Aquella Mir \⍶ ¡ ¡\⍶ ¡ At⍋aquel precipicio impío de la corona exuberante⍋aquel precipicio iAt⍋aquel pre ╃ ¡ ¡ ╃ ¡ ⌈‧ ⌈ ◜ courses ◜ courses ┿perhapsperhapsperhapsperhapsperhapsperhapsperhapsperhapsperhapspe ┿perhapsperh aquel linyera fantástico de mi samurai enfermoaquel linyera fantás aquel linyer ┌ ┌ ⍞ ⍞ teacher ┄ teacher ┄ Ca Ca background background the alien daughter within my unchained, silent, brazen gates⌟Talk⍘ the alien da } } ⍂⍳«῝᾽᾽᾽⍍⍍⍍⍍⍍◟ ☊ ☊ ☊ ☊ ☊ ☊ ☊ ☊curriculu ⍎ ▇⍍⍍⍍⍍⍍₰suitablesuitablesuitablesuitablesuitablesuitablesuitablesu ⍂⍳«῝ %⍍⍍⍍⍍⍍ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ Types ⍎⌻―♳⍍⍍⍍⍍⍍ ⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹⎹ Las Larva ⍂⍳«῝ \⍍⍍⍍⍍⍍Years ╳⁂῍┟The True Temple Of Her Deserted, Secret Witchcurriculu ⍎Concern☂ failed ◞ ⍡┻⍀─☜the rotten daughters of the blinding nightmareused⍲⁋⁋⁋⁋⁋⁋⁋⁋⁋⁋⁋⁋⁋⁋⁋⁋⁋⁋⁋⁋⁋⁋⁋⁋ ‗ the rotten daughters of the blinding nightmareused the unchained king of th ⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋⎋used }method ⍠used ― used ‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵‵used """ import random, sys, unicodedata import alglayout, dramaticphrase, frasedramatica, wordlist # Trying to stick to ranges of characters that terminals treat as # fixed-width here. Browsers have trouble with characters like ⊿ in # the math block. punctuation = [c for c in [chr(n) for cmin, cmax in ['\0\377', '᾽₹', '⌁⌕', '⌘⌨', '⌸⍺', '⍽⏏', '─⚉'] for n in range(ord(cmin), ord(cmax))] if c.isprintable() and not c.isalnum() and not unicodedata.combining(c)] def generate_atom(): s = (random.choice(punctuation) if random.randrange(4) else wordlist.words[random.randrange(2000)][1] if random.randrange(3) else dramaticphrase.generate() if random.randrange(2) else frasedramatica.generar()) if not random.randrange(3): s = s.title() return alglayout.String(s) def combine(a, b): if not random.randrange(5): return [~a, b] return [random.choice([alglayout.Hbox, alglayout.Vbox])(a, b)] def main(): stack = [generate_atom() for i in range(128)] while len(stack) > 1: i = random.randrange(len(stack)-1) stack[i:i+2] = combine(stack[i], stack[i+1]) alglayout.draw(sys.stdout, stack[0], w=80) if __name__ == '__main__': main()