예제 #1
0
 def __init__(self, input_file, output_file, mapping_file):
     self.payyan = Payyan()
     (inp_file, inp_ext) = os.path.splitext(input_file)
     if string.upper(inp_ext) == ".PDF":
         self.payyan.pdf = 1
     self.payyan.input_filename = input_file
     self.payyan.output_filename = output_file
     self.payyan.mapping_filename = mapping_file
예제 #2
0
파일: __init__.py 프로젝트: basilk87/smc
class Payyans:
	def __init__(self,input_file, output_file,mapping_file):
		self.payyan= Payyan()
		(inp_file, inp_ext) = os.path.splitext(input_file)
		if string.upper(inp_ext) == ".PDF":
			self.payyan.pdf=1	
		self.payyan.input_filename=input_file 
		self.payyan.output_filename=output_file
		self.payyan.mapping_filename=mapping_file
	
	def word2ASCII(self, unicode_str):
		return self.payyan.word2ASCII(unicode_str)
	def word2Unicode(self, ascii_str):
		return self.payyan.word2ASCII(ascii_str)
	def ascii2unicode(self):
		return self.payyan.Ascii2Uni()
	def unicode2ascii(self):
		return self.payyan.Uni2Ascii()
예제 #3
0
파일: __init__.py 프로젝트: ksundar1971/smc
class Payyans:
    def __init__(self, input_file, output_file, mapping_file):
        self.payyan = Payyan()
        (inp_file, inp_ext) = os.path.splitext(input_file)
        if string.upper(inp_ext) == ".PDF":
            self.payyan.pdf = 1
        self.payyan.input_filename = input_file
        self.payyan.output_filename = output_file
        self.payyan.mapping_filename = mapping_file

    def word2ASCII(self, unicode_str):
        return self.payyan.word2ASCII(unicode_str)

    def word2Unicode(self, ascii_str):
        return self.payyan.word2ASCII(ascii_str)

    def ascii2unicode(self):
        return self.payyan.Ascii2Uni()

    def unicode2ascii(self):
        return self.payyan.Uni2Ascii()