Skip to content

Instantly share code, notes, and snippets.

@adiabatic
Created July 1, 2013 23:39
Show Gist options
  • Save adiabatic/5905628 to your computer and use it in GitHub Desktop.
Save adiabatic/5905628 to your computer and use it in GitHub Desktop.
# 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment