[Sync] Kazimir uses ALS Typograf

This commit is contained in:
Roman Timashev committed 2017-10-16 03:16:12 +03:00
1 parent 3ecf1deb5d
commit a034254cbe
2 files changed
+48 -3

No files matched your search

+5 -3
View File
@@ -94,9 +94,11 @@ def html_from_tree(tree):
async def typo(text):
url = 'http://www.typograf.ru/webservice/'
params = dict(text=text)
return await request.post(url, params, {'chr': 'utf-8'})
from kazimir import artlebedev
return await artlebedev.typograf(text)
# url = 'http://www.typograf.ru/webservice/'
# params = dict(text=text)
# return await request.post(url, params, {'chr': 'utf-8'})
def join_tokens(tokens):