# GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011 Free Software Foundation, Inc
+# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import re
+# This import *is* used; see word.encode('tranlit/long') below.
import translitcodec
"""
result = []
for word in _punct_re.split(text.lower()):
+ # Uses translitcodec!
word = word.encode('translit/long')
if word:
result.append(word)