forked from teamtachyon/Quillpad-Server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
QuillManualHelper.py
executable file
·32 lines (23 loc) · 1.12 KB
/
QuillManualHelper.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- coding: utf-8 -*-
# @Date : Jan 25, 2013
# @Author : Ram Prakash
# @Version : 1
import QuillManual
staticQuillManual = QuillManual.QuillManual()
staticQuillManual.loadPrimaryDef()
def LoadPrimaryDef( primaryDefFile ) :
staticQuillManual.loadPrimaryDef( primaryDefFile )
def PrimaryToUnicode( literal ) :
return staticQuillManual.primaryToUnicode( literal )
def UnicodeToPrimary( uStr ) :
return staticQuillManual.unicodeToPrimary( uStr.decode('utf-8') )
def UnicodeToHelperStr( uStr ) :
return staticQuillManual.unicodeToHelperStr( uStr.decode('utf-8') )
def GetOptionsAt( currHelper, currUStr, pos ) :
return staticQuillManual.getOptionsAt( currHelper, currUStr.decode('utf-8'), pos )
def GetInsertCorrections( currHelper, currUStr, pos, delta ) :
corrections = staticQuillManual.getInsertCorrections( currHelper, currUStr.decode('utf-8'), pos, delta )
return corrections
def GetDeleteCorrections( currHelper, currUStr, pos, delLen ) :
corrections = staticQuillManual.getDeleteCorrections( currHelper, currUStr.decode('utf-8'), pos, delLen )
return corrections