Commit 002688c8 authored by Jerome Berthier's avatar Jerome Berthier Committed by Romain Bignon

Allow SplitKeyboard to convert individual images

parent 83f3f5fd
......@@ -284,7 +284,7 @@ class SplitKeyboard(object):
raise VirtKeyboardError("Symbol '%s' not found; all symbol hashes are available in %s" % (char, path))
def checksum(self, buffer):
return hashlib.md5(buffer).hexdigest()
return hashlib.md5(self.convert(buffer)).hexdigest()
def dump(self, files, path):
for dat in files:
......@@ -298,6 +298,9 @@ class SplitKeyboard(object):
return self.codesep.join(symbols)
def convert(self, buffer):
return buffer
def create_from_url(cls, browser, code_to_url):
code_to_file = {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment