Skip to content

Instantly share code, notes, and snippets.

@adiabatic
Created July 1, 2013 23:39

Revisions

  1. adiabatic created this gist Jul 1, 2013.
    15 changes: 15 additions & 0 deletions quikscript-pangram-checker.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    # coding: UTF-8
    # This file is in the public domain.
    from itertools import chain

    # documentation — yes, it is being overwritten in the very next line
    pangram = u"What is the price of a foot-bath kit? A goose in a dress near North Square thought it would cure jelly ankle. The goat nurse suggested palm oil in the mouth or wrapped around the ankle with a cloth."
    pangram = u"      - ?       ·       .                 ."

    letters = u"""p b t d k g T D f v s z S Z tS dZ j w h W N m n l r
    I i E eI { A O Q oI @ aU oU U u""".split()

    codepoints = [unichr(cp) for cp in chain(range(0xe650, 0xe668+1), range(0xe760, 0xe67e+1))]
    for cp, letter in zip(codepoints, letters):
    if not cp in pangram:
    print u"couldn’t find in pangram: {} ({})".format(cp, letter)