From cb32ee0447403aad868169bb5acecc8764dbf8c1 Mon Sep 17 00:00:00 2001 From: Rajeesh K Nambiar Date: Fri, 30 Jan 2009 12:22:22 +0530 Subject: Chathans: Add ability for u2a and a2u conversions --- pychathans/chathans.py | 58 +++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 45 insertions(+), 13 deletions(-) diff --git a/pychathans/chathans.py b/pychathans/chathans.py index a52192c..ee34c3a 100755 --- a/pychathans/chathans.py +++ b/pychathans/chathans.py @@ -44,7 +44,7 @@ gettext.textdomain(PACKAGE) #_ = gettext.gettext name = _("Chathans") -version = "0.3" +version = "0.4" title = name + " " + version @@ -75,6 +75,10 @@ class Chathans (gtk.Window): ascii_btn = gtk.FileChooserButton(_("Select the ASCII File (.txt,.pdf)")) mapping_btn = gtk.FileChooserButton(_("Select the ASCII-Unicode Mapping File")) unicode_btn = gtk.FileChooserButton(_("Select Output Unicode File")) + + # ആസ്കി-യൂണിക്കോഡ് ആണോ, അതോ യൂണിക്കോഡ്-ആസ്കിയോ? + a2u_radio = gtk.RadioButton(None, (_("ASCII-to-Unicode"))) + u2a_radio = gtk.RadioButton(a2u_radio, (_("Unicode-to-ASCII"))) # മാപ്പ്, സാധാരണ എവിടെ കിട്ടും? അല്ല, എവിടെ കിട്ടും? mapping_dir = sys.prefix + "/share/payyans/maps/" @@ -95,6 +99,9 @@ class Chathans (gtk.Window): ascii_filter.add_pattern("*.[Pp][Dd][Ff]") ascii_btn.add_filter(ascii_filter) + self.a2u_radio = a2u_radio + self.u2a_radio = u2a_radio + self.ascii_btn = ascii_btn self.mapping_btn = mapping_btn self.unicode_btn = unicode_btn @@ -115,17 +122,23 @@ class Chathans (gtk.Window): hbox3.pack_start(unicode_lbl) hbox3.pack_end(unicode_btn) + radio_box = gtk.HBox() + radio_box.set_border_width(12) + radio_box.pack_start(a2u_radio) + radio_box.pack_start(u2a_radio) + btn_box = gtk.HButtonBox() btn_box.set_border_width(4) btn_box.pack_start(convert_btn) btn_box.pack_start(about_btn) btn_box.pack_start(cancel_btn) - + vbox1 = gtk.VBox() vbox1.set_border_width(4) vbox1.pack_start(hbox1) vbox1.pack_start(hbox2) vbox1.pack_start(hbox3) + vbox1.pack_start(radio_box) vbox1.pack_end(btn_box) frame = gtk.Frame() @@ -140,28 +153,47 @@ class Chathans (gtk.Window): self.AsciiFile = self.ascii_btn.get_filename() self.MappingFile = self.mapping_btn.get_filename() self.UnicodeFile = self.unicode_btn.get_filename() - - if ( self.AsciiFile == None + + if self.a2u_radio.get_active() == True: + direction = "a2u" + from_file = self.AsciiFile + to_file = self.UnicodeFile + else: + direction = "u2a" + from_file = self.UnicodeFile + to_file = self.AsciiFile + + if ( from_file == None or self.MappingFile == None ): dlg = gtk.MessageDialog(self.get_toplevel(), gtk.DIALOG_MODAL, gtk.MESSAGE_INFO, gtk.BUTTONS_OK, - _("Please select both ASCII file and Mapping file")) + _("Please select both Input file and Mapping file")) dlg.run() dlg.destroy() return - if self.UnicodeFile == None: - (inp_file, inp_ext) = os.path.splitext(self.AsciiFile) - self.UnicodeFile = inp_file + "-unicode" + ".txt" + if to_file == None: + (inp_file, inp_ext) = os.path.splitext(from_file) + if direction == "a2u": + self.UnicodeFile = inp_file + "-unicode" + ".txt" + else: + self.AsciiFile = inp_file + "-ascii" + ".txt" # ഓഹ്, പയ്യന്‍! നീ വ്യാഘ്രമാകുന്നു. - payyan = Payyans(self.AsciiFile, self.UnicodeFile, self.MappingFile) - status = payyan.ascii2unicode() + if direction == "a2u": + payyan = Payyans(self.AsciiFile, self.UnicodeFile, self.MappingFile) + status = payyan.ascii2unicode() + else: + payyan = Payyans(self.UnicodeFile, self.AsciiFile, self.MappingFile) + status = payyan.unicode2ascii() print status - if status == None: - msg = _("Coversion Done - Unicode file :") + self.UnicodeFile + if status == 0: + if direction == "a2u": + msg = _("Coversion Done - Unicode file : ") + self.UnicodeFile + else: + msg = _("Conversion Done - ASCII file : ") + self.AsciiFile if status == 1: msg = _("Could not find the pdftotext utility. Exiting...") if status == 2: @@ -198,7 +230,7 @@ class Chathans (gtk.Window): def __quit(self, event): ''' ന്നാ, കട്ടേം പടോം മടക്കാം ! ''' dlg = gtk.MessageDialog(self.get_toplevel(), - gtk.DIALOG_MODAL, + gtk.DIALOG_MODAL|gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_QUESTION, gtk.BUTTONS_YES_NO, _("Do you really want to Quit?")) -- cgit From e25411a0451ce78b31350d42bd9527dad59d59ba Mon Sep 17 00:00:00 2001 From: Rajeesh K Nambiar Date: Sun, 1 Feb 2009 10:39:16 +0530 Subject: Chathans: Add functionality for giving output filename from file chooser --- pychathans/chathans.py | 61 +++++++++++++++++----- pychathans/po/chathans-ml.po | 117 ++++++++++++++++++++++++------------------- pychathans/po/chathans.pot | 78 +++++++++++++++++------------ 3 files changed, 158 insertions(+), 98 deletions(-) diff --git a/pychathans/chathans.py b/pychathans/chathans.py index ee34c3a..dc90840 100755 --- a/pychathans/chathans.py +++ b/pychathans/chathans.py @@ -34,7 +34,7 @@ try: from payyans import Payyans except ImportError: ''' ഹൈയ്, പയ്യന്റെ ദുര്‍ജ്ജനസംസര്‍ഗ്ഗമില്ലാതെ നോം സാധനം തൊടാറില്ല! ''' - print _("Chathans require Payyans") + print _("Chathans requires Payyans") raise SystemExit @@ -44,7 +44,7 @@ gettext.textdomain(PACKAGE) #_ = gettext.gettext name = _("Chathans") -version = "0.4" +version = "0.5" title = name + " " + version @@ -72,9 +72,13 @@ class Chathans (gtk.Window): unicode_lbl = gtk.Label(_("Unicode File : ")) # പ്രമാണോം പത്രോം ആധാരോം എടുക്ക്വാ.. - ascii_btn = gtk.FileChooserButton(_("Select the ASCII File (.txt,.pdf)")) + #ascii_btn = gtk.FileChooserButton(_("Select the ASCII File (.txt,.pdf)")) + ascii_btn = gtk.Button("ASCII File...",None) + ascii_btn.connect("clicked", self.__choose_ascii_file) + unicode_btn = gtk.Button("Unicode File...",None) + unicode_btn.connect("clicked", self.__choose_unicode_file) mapping_btn = gtk.FileChooserButton(_("Select the ASCII-Unicode Mapping File")) - unicode_btn = gtk.FileChooserButton(_("Select Output Unicode File")) + #unicode_btn = gtk.FileChooserButton(_("Select Output Unicode File")) # ആസ്കി-യൂണിക്കോഡ് ആണോ, അതോ യൂണിക്കോഡ്-ആസ്കിയോ? a2u_radio = gtk.RadioButton(None, (_("ASCII-to-Unicode"))) @@ -92,13 +96,6 @@ class Chathans (gtk.Window): about_btn = gtk.Button(_("About"), gtk.STOCK_ABOUT) about_btn.connect("clicked", self.__show_about) - # Add File Filter for ASCII input file. അരിപ്പ! - ascii_filter = gtk.FileFilter() - ascii_filter.set_name("*.txt,*.pdf") - ascii_filter.add_pattern("*.[Tt][Xx][Tt]") - ascii_filter.add_pattern("*.[Pp][Dd][Ff]") - ascii_btn.add_filter(ascii_filter) - self.a2u_radio = a2u_radio self.u2a_radio = u2a_radio @@ -148,11 +145,49 @@ class Chathans (gtk.Window): self.show_all() + def __choose_ascii_file(self, event): + if self.u2a_radio.get_active() == True: + the_action = gtk.FILE_CHOOSER_ACTION_SAVE + else: + the_action = gtk.FILE_CHOOSER_ACTION_OPEN + filechooser = gtk.FileChooserDialog(title=_("Select the ASCII File (.txt,.pdf)"), + action=the_action, + buttons=(gtk.STOCK_OPEN, gtk.RESPONSE_ACCEPT, + gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL)) + # Add File Filter for ASCII input file. അരിപ്പ! + ascii_filter = gtk.FileFilter() + ascii_filter.set_name("*.txt,*.pdf") + ascii_filter.add_pattern("*.[Tt][Xx][Tt]") + ascii_filter.add_pattern("*.[Pp][Dd][Ff]") + filechooser.add_filter(ascii_filter) + filechooser.connect("response", self.__get_file, "a") + filechooser.run() + + def __get_file(self, dialog, response, in_data): + dialog.hide() + if response == gtk.RESPONSE_ACCEPT: + if in_data == "a": + self.AsciiFile = dialog.get_filename() + else: + self.UnicodeFile = dialog.get_filename() + + def __choose_unicode_file(self, event): + if self.a2u_radio.get_active() == True: + the_action = gtk.FILE_CHOOSER_ACTION_SAVE + else: + the_action = gtk.FILE_CHOOSER_ACTION_OPEN + filechooser = gtk.FileChooserDialog(title=_("Select the Unicode File"), + action=the_action, + buttons=(gtk.STOCK_OPEN, gtk.RESPONSE_ACCEPT, + gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL)) + filechooser.connect("response", self.__get_file, "u") + filechooser.run() + def __convert_file(self, event): ''' പയ്യനെ വിളിക്ക്യാ, ഇനി നോം ഗ്യാലറിയിലിരുന്ന് കളി കാണട്ടെ. ''' - self.AsciiFile = self.ascii_btn.get_filename() + #self.AsciiFile = self.ascii_btn.get_filename() self.MappingFile = self.mapping_btn.get_filename() - self.UnicodeFile = self.unicode_btn.get_filename() + #self.UnicodeFile = self.unicode_btn.get_filename() if self.a2u_radio.get_active() == True: direction = "a2u" diff --git a/pychathans/po/chathans-ml.po b/pychathans/po/chathans-ml.po index 5a72472..e96e0dd 100644 --- a/pychathans/po/chathans-ml.po +++ b/pychathans/po/chathans-ml.po @@ -1,109 +1,122 @@ -# Chathans Malayalam Localization file. +# Chathans Localization Template File. # Copyright (C) 2009 Rajeesh K Nambiar # This file is distributed under the same license as Chathans package. # Rajeesh K Nambiar , 2009. # +#, fuzzy msgid "" msgstr "" -"Project-Id-Version: 0.2\n" +"Project-Id-Version: Chathans 0.5\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-01-24 14:26+0530\n" -"PO-Revision-Date: 2009-01-24 15:01+0530\n" +"POT-Creation-Date: 2009-02-01 10:21+0530\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Rajeesh K Nambiar \n" -"Language-Team: ml\n" +"Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#: chathans.py:29 +#: chathans.py:30 msgid "Chathans requires PyGTK" -msgstr "ചാത്തന്‍സിന് PyGTK ആവശ്യമാണ്" +msgstr "ചാത്തന്‍സിന് pygtk ആവശ്യമാണ്" -#: chathans.py:36 -msgid "Chathans require Payyans" +#: chathans.py:37 +msgid "Chathans requires Payyans" msgstr "ചാത്തന്‍സിന് പയ്യന്‍സ് ആവശ്യമാണ്" -#: chathans.py:45 +#: chathans.py:46 msgid "Chathans" msgstr "ചാത്തന്‍സ്" -#: chathans.py:69 +#: chathans.py:70 msgid "ASCII File : " msgstr "ആസ്കി ഫയല്‍" -#: chathans.py:70 +#: chathans.py:71 msgid "Mapping File : " msgstr "മാപ്പിങ്ങ് ഫയല്‍" -#: chathans.py:71 +#: chathans.py:72 msgid "Unicode File : " msgstr "യൂണിക്കോഡ് ഫയല്‍" -#: chathans.py:74 -msgid "Select the ASCII File (.txt,.pdf)" -msgstr "ആസ്കി ഫയല്‍ തിരഞ്ഞെടുക്കൂ" - -#: chathans.py:75 +#: chathans.py:80 msgid "Select the ASCII-Unicode Mapping File" -msgstr "ആസ്കി-യൂണിക്കോഡ് മാപ്പിങ്ങ് ഫയല്‍ തിരഞ്ഞെടുക്കൂ" +msgstr "ആസ്കി-യുണിക്കോഡ് മാപ്പിങ്ങ് ഫയല്‍ തിരഞ്ഞെടുക്കുക" + +#: chathans.py:84 +msgid "ASCII-to-Unicode" +msgstr "ആസ്കി-യൂണിക്കോഡ്" -#: chathans.py:76 -msgid "Select Output Unicode File" -msgstr "ഉണ്ടാക്കേണ്ട യൂണീക്കോഡ് ഫയല്‍ തിരഞ്ഞെടുക്കൂ" +#: chathans.py:85 +msgid "Unicode-to-ASCII" +msgstr "യൂണിക്കോഡ്-ആസ്കി" -#: chathans.py:83 +#: chathans.py:92 msgid "Convert" msgstr "പരിവര്‍ത്തനം ചെയ്യുക" -#: chathans.py:85 +#: chathans.py:94 msgid "Quit" -msgstr "പുറത്തുകടക്കുക" +msgstr "പുറത്ത് പോവുക" -#: chathans.py:87 +#: chathans.py:96 msgid "About" msgstr "സംബന്ധിച്ച്" -#: chathans.py:149 -msgid "Please select both ASCII file and Mapping file" -msgstr "ദയവായി ആസ്കി ഫയലും മാപ്പിങ്ങ് ഫയലും തിരഞ്ഞെടുക്കുക" +#: chathans.py:153 +msgid "Select the ASCII File (.txt,.pdf)" +msgstr "ആസ്കി ഫയല്‍ (.txt,.pdf) തിരഞ്ഞെടുക്കുക" + +#: chathans.py:179 +msgid "Select the Unicode File" +msgstr "യൂണിക്കോഡ് ഫയല്‍ തിരഞ്ഞെടുക്കുക" + +#: chathans.py:207 +msgid "Please select both Input file and Mapping file" +msgstr "ദയവായി പരിവര്‍ത്തനം ചെയ്യേണ്ട ഫയലും മാപ്പിങ്ങ് ഫയലും തിരഞ്ഞെടുക്കുക" + +#: chathans.py:229 +msgid "Coversion Done - Unicode file : " +msgstr "പരിവര്‍ത്തനം ചെയ്തു കഴിഞ്ഞു - യൂണിക്കോഡ് ഫയല്‍ : " -#: chathans.py:163 -msgid "Coversion Done - Unicode file :" -msgstr "പരിവര്‍ത്തനം ചെയ്തു കഴിഞ്ഞു - യൂണിക്കോഡ് ഫയല്‍ :" +#: chathans.py:231 +msgid "Conversion Done - ASCII file : " +msgstr "പരിവര്‍ത്തനം ചെയ്തു കഴിഞ്ഞു - ആസ്കി ഫയല്‍ : " -#: chathans.py:165 +#: chathans.py:233 msgid "Could not find the pdftotext utility. Exiting..." -msgstr "pdftotext ഉപാധി കണ്ടെത്താന്‍ കഴിഞ്ഞില്ല. നിര്‍ത്തുന്നു..." +msgstr "pdftotext ഉപാധി കണ്ടെത്താന്‍ സാധിച്ചില്ല. നിര്‍ത്തുന്നു..." -#: chathans.py:167 +#: chathans.py:235 msgid "Syntax Error in Mapping file. Exiting..." -msgstr "മാപ്പിങ്ങ് ഫയലില്‍ വ്യാകരണ പിശകുണ്ട്. നിര്‍ത്തുന്നു..." +msgstr "മാപ്പിങ്ങ് ഫയലില്‍ വ്യാകരണപ്പിശകുണ്ട്. നിര്‍ത്തുന്നു..." -#: chathans.py:182 +#: chathans.py:250 msgid "Chathans: Rajeesh K Nambiar " -msgstr "ചാത്തന്‍സ്: രജീഷ് കെ നമ്പ്യാര്‍ " +msgstr "ചാത്തന്‍സ് : രജീഷ് കെ നമ്പ്യാര്‍ " -#: chathans.py:183 +#: chathans.py:251 msgid "" "Payyans : Santhosh Thottingal, Nishan Naseer,\n" "\t\t Manu S Madhav, Rajeesh K Nambiar" msgstr "" -"പയ്യന്‍സ് : സന്തോഷ് തോട്ടിങ്ങല്‍, നിഷാന്‍ നസീര്‍,\n" -"\t\t മനു എസ് മാധവ്, രജീഷ് കെ നമ്പ്യാര്‍" +"പയ്യന്‍സ് :‌ സന്തോഷ് തോട്ടിങ്ങല്‍, നിഷാന്‍ നസീര്‍,\n" +"\t\t മനു എസ് മാധവ്, രജീഷ് കെ നമ്പ്യാര്‍" -#: chathans.py:185 -msgid "Chathans is an easy to use GUI frontend to Payyans ASCII<->Unicode Converter" -msgstr "ചാത്തന്‍സ് ഉപയോഗിക്കാന്‍ എളുപ്പമുള്ള, പയ്യന്‍സ് എന്ന ആസ്കി<->യൂണിക്കോഡ് പരിവര്‍ത്തകനു വേണ്ടിയുള്ള ഒരു അഭിമുഖീകരണ ഉപാധിയാണ്." - -#: chathans.py:190 +#: chathans.py:253 +msgid "" +"Chathans is an easy to use GUI frontend to Payyans ASCII<->Unicode Converter" +msgstr "" +"ചാത്തന്‍സ് ഉപയോഗിക്കാന്‍ എളുപ്പമുള്ള, പയ്യന്‍സ് ആസ്കി<->യൂണിക്കോഡ് പരിവര്‍ത്തകനു വേണ്ടിയുള്ള ഒരു അഭിമുഖോപാധിയാണ്" +#: chathans.py:258 msgid "Copyright (c) Rajeesh K Nambiar" msgstr "പകര്‍പ്പവകാശം (c) രജീഷ് കെ നമ്പ്യാര്‍" -#: chathans.py:191 +#: chathans.py:259 msgid "Chathans is licensed under GNU GPL version 3" -msgstr "ചാത്തന്‍സ് ഗ്നു GPLന്റെ മൂന്നാം പതിപ്പിനാല്‍ സംരക്ഷിക്കപ്പെട്ടിരിക്കുന്നു" +msgstr "ചാത്തന്‍സ് ഗ്നു ജിപിഎല്‍ മൂന്നാം പതിപ്പു പ്രകാരം സംരക്ഷിക്കപ്പെട്ടിരിക്കുന്നു" -#: chathans.py:203 +#: chathans.py:271 msgid "Do you really want to Quit?" -msgstr "പുറത്തു കടക്കണമെന്ന് താങ്കള്‍ക്ക് തീര്‍ച്ചയാണോ?" - +msgstr "പുറത്ത് കടക്കണമെന്ന് താങ്കള്‍ക്ക് തീര്‍ച്ചയാണോ?" diff --git a/pychathans/po/chathans.pot b/pychathans/po/chathans.pot index 7dcb80f..b747d0b 100644 --- a/pychathans/po/chathans.pot +++ b/pychathans/po/chathans.pot @@ -1,14 +1,14 @@ -# Chathans Localization template file. -# Copyright (c) 2009 Rajeesh K Nambiar -# This file is distributed under the same license as Chathans package. -# Rajeesh K Nambiar , 2009. +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-01-24 14:26+0530\n" +"POT-Creation-Date: 2009-02-01 10:21+0530\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -16,93 +16,105 @@ msgstr "" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#: chathans.py:29 +#: chathans.py:30 msgid "Chathans requires PyGTK" msgstr "" -#: chathans.py:36 -msgid "Chathans require Payyans" +#: chathans.py:37 +msgid "Chathans requires Payyans" msgstr "" -#: chathans.py:45 +#: chathans.py:46 msgid "Chathans" msgstr "" -#: chathans.py:69 +#: chathans.py:70 msgid "ASCII File : " msgstr "" -#: chathans.py:70 +#: chathans.py:71 msgid "Mapping File : " msgstr "" -#: chathans.py:71 +#: chathans.py:72 msgid "Unicode File : " msgstr "" -#: chathans.py:74 -msgid "Select the ASCII File (.txt,.pdf)" +#: chathans.py:80 +msgid "Select the ASCII-Unicode Mapping File" msgstr "" -#: chathans.py:75 -msgid "Select the ASCII-Unicode Mapping File" +#: chathans.py:84 +msgid "ASCII-to-Unicode" msgstr "" -#: chathans.py:76 -msgid "Select Output Unicode File" +#: chathans.py:85 +msgid "Unicode-to-ASCII" msgstr "" -#: chathans.py:83 +#: chathans.py:92 msgid "Convert" msgstr "" -#: chathans.py:85 +#: chathans.py:94 msgid "Quit" msgstr "" -#: chathans.py:87 +#: chathans.py:96 msgid "About" msgstr "" -#: chathans.py:149 -msgid "Please select both ASCII file and Mapping file" +#: chathans.py:153 +msgid "Select the ASCII File (.txt,.pdf)" +msgstr "" + +#: chathans.py:179 +msgid "Select the Unicode File" +msgstr "" + +#: chathans.py:207 +msgid "Please select both Input file and Mapping file" +msgstr "" + +#: chathans.py:229 +msgid "Coversion Done - Unicode file : " msgstr "" -#: chathans.py:163 -msgid "Coversion Done - Unicode file :" +#: chathans.py:231 +msgid "Conversion Done - ASCII file : " msgstr "" -#: chathans.py:165 +#: chathans.py:233 msgid "Could not find the pdftotext utility. Exiting..." msgstr "" -#: chathans.py:167 +#: chathans.py:235 msgid "Syntax Error in Mapping file. Exiting..." msgstr "" -#: chathans.py:182 +#: chathans.py:250 msgid "Chathans: Rajeesh K Nambiar " msgstr "" -#: chathans.py:183 +#: chathans.py:251 msgid "" "Payyans : Santhosh Thottingal, Nishan Naseer,\n" "\t\t Manu S Madhav, Rajeesh K Nambiar" msgstr "" -#: chathans.py:185 +#: chathans.py:253 msgid "" "Chathans is an easy to use GUI frontend to Payyans ASCII<->Unicode Converter" msgstr "" -#: chathans.py:190 +#: chathans.py:258 msgid "Copyright (c) Rajeesh K Nambiar" msgstr "" -#: chathans.py:191 +#: chathans.py:259 msgid "Chathans is licensed under GNU GPL version 3" msgstr "" -#: chathans.py:203 +#: chathans.py:271 msgid "Do you really want to Quit?" msgstr "" -- cgit From a8d3aa77b0bbf70b4230752da9ff0c4ec57730ee Mon Sep 17 00:00:00 2001 From: Rajeesh K Nambiar Date: Sun, 1 Feb 2009 19:11:25 +0530 Subject: Chathans: Show filenames in ASCII/Unicode file chooser buttons --- pychathans/chathans.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pychathans/chathans.py b/pychathans/chathans.py index dc90840..ebc6b2a 100755 --- a/pychathans/chathans.py +++ b/pychathans/chathans.py @@ -168,8 +168,10 @@ class Chathans (gtk.Window): if response == gtk.RESPONSE_ACCEPT: if in_data == "a": self.AsciiFile = dialog.get_filename() + self.ascii_btn.set_label(os.path.basename(self.AsciiFile)) else: self.UnicodeFile = dialog.get_filename() + self.unicode_btn.set_label(os.path.basename(self.UnicodeFile)) def __choose_unicode_file(self, event): if self.a2u_radio.get_active() == True: -- cgit From 3d50a60f763b88c4a9c39be748652a2162ddbc5a Mon Sep 17 00:00:00 2001 From: Rajeesh K Nambiar Date: Sun, 1 Feb 2009 19:43:24 +0530 Subject: Chathans: Add install script --- pychathans/install.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 pychathans/install.sh diff --git a/pychathans/install.sh b/pychathans/install.sh new file mode 100755 index 0000000..ffb855f --- /dev/null +++ b/pychathans/install.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# +# Copyright (c) 2009 Rajeesh K Nambiar +# This program is a free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +if [ $UID -ne 0 ]; then + echo "You need to be root to install Chathans" + exit 1 +fi + +install -m 0755 chathans.py /usr/bin/chathans +install -m 0644 chathans.desktop /usr/share/applications/chathans.desktop +for lc in po/chathans-*.po; do + mo_file=po/`basename ${lc} .po`.mo + msgfmt -o ${mo_file} ${lc} + _lang=`echo ${lc} | cut -d - -f2 | cut -d . -f1` + mkdir -p /usr/share/locale/${_lang}/LC_MESSAGES/ + install -m 0644 ${mo_file} /usr/share/locale/${_lang}/LC_MESSAGES/chathans.mo +done +echo "Installation complete" +exit 0 -- cgit From fe95fb9d0ec4a610867629799ed252620937f36a Mon Sep 17 00:00:00 2001 From: Rajeesh K Nambiar Date: Mon, 2 Feb 2009 15:07:56 +0530 Subject: Chathans: cleanup README file --- pychathans/doc/README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pychathans/doc/README b/pychathans/doc/README index 7fbfff1..1ce5408 100644 --- a/pychathans/doc/README +++ b/pychathans/doc/README @@ -4,9 +4,9 @@ Chathans Chathans is a GUI for the ASCII to Unicode converter, Payyans. It is written in PyGTK. Both the names, Payyans and Chathans are chosen as a tribute to two of the most famous characters -created by renowned Malayalam author V.K.N +by renowned Malayalam author V.K.N Chathans is developed by Rajeesh K Nambiar Swathanthra Malayalam Computing -Patches and Bug Reports are alwyas welcome. +Patches and Bug Reports are always welcome. -- cgit From be0cdf98d89d7defb029d8b1729b9b2781d06646 Mon Sep 17 00:00:00 2001 From: Rajeesh K Nambiar Date: Mon, 2 Feb 2009 18:53:42 +0530 Subject: Payyans: Remove spurious executable permission from mapping files --- payyans/maps/indulekha.map | 0 payyans/maps/karthika.map | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 payyans/maps/indulekha.map mode change 100755 => 100644 payyans/maps/karthika.map diff --git a/payyans/maps/indulekha.map b/payyans/maps/indulekha.map old mode 100755 new mode 100644 diff --git a/payyans/maps/karthika.map b/payyans/maps/karthika.map old mode 100755 new mode 100644 -- cgit From 6f02e32253b4a3ca60489ae980771f30ec0dd748 Mon Sep 17 00:00:00 2001 From: Rajeesh K Nambiar Date: Mon, 2 Feb 2009 18:55:07 +0530 Subject: Payyans: Add Ambili font map, by ZYXWARE --- payyans/maps/ambili.map | 191 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 payyans/maps/ambili.map diff --git a/payyans/maps/ambili.map b/payyans/maps/ambili.map new file mode 100644 index 0000000..22fa9f0 --- /dev/null +++ b/payyans/maps/ambili.map @@ -0,0 +1,191 @@ +#Ambili Font map for Payyans +#http://download.savannah.gnu.org/releases/smc/payyans +#Copyright 2009 Zyxware (www.zyxware.com) +#Copyright 2008 SMC (www.smc.org.in) +#Licensed under GPLv3 +#Contact smc-discuss@googlegroups.com for bug reports +w=ം +x=ഃ +A=അ +B=ആ +C=ഇ +Cu=ഈ +D=ഉ +Du=ഊ +E=ഋ +\p=ഌ +F=എ +G=ഏ +sF=ഐ +H=ഒ +Hm=ഓ +Hu=ഔ +I=ക +J=ഖ +K=ഗ +L=ഘ +M=ങ +N=ച +O=ഛ +P=ജ +Q=ഝ +R=ഞ +S=ട +T=ഠ +U=ഡ +V=ഢ +W=ണ +X=ത +Y=ഥ +Z=ദ +[=ധ +\=ന +]=പ +^=ഫ +_=ബ +`=ഭ +a=മ +b=യ +c=ര +d=റ +e=ല +f=ള +g=ഴ +h=വ +i=ശ +j=ഷ +k=സ +l=ഹ +m=ാ +n=ി +o=ീ +p=ു +q=ൂ +r=ൃ +s=െ +t=േ +ss=ൈ +sm=ൊ +tm=ോ +su=ൌ +v=്‌ +u=ൗ +¡=ത്ഥ +¢=ക്ല +£=ക്ഷ +€=ഗ്ഗ +¥=ഗ്ല +Š=ങ്ക +§=ങ്ങ +š=ണ്‍ +©=ഞ്ച +ª=ഞ്ഞ +«=ട്ട +¬=ല്‍ +­=ണ്ട +®=ച്ച +¯=സ്ഥ +°=ക്ക +±=ദ്ദ +²=ദ്ധ +³=ന്‍ +Ž=ന്ത +µ=ന്ദ +¶=ങ്ക +·=ന്മ +ž=പ്പ +¹=പ്ലശ്ശ +º=മ്പ +»=ശ്ശ +Œ=മ്പ +œ=മ്മ +Ÿ=മ്ല +¿=ര്‍ +À=ഹ്ല +Á=റ്റ +Â=ണ്ണ +Ã=സ്റ്റ +Ä=ള്‍ +Å=ള്ള +Æ=ണ്ണ +Ç=ശ്ല +È=ശ്ശ +É=സ്ല +Ê=സ്സ +Ë=ഹ്ല +Ì=സ്റ്റ +Í=ഡ്ഡ +Î=ക്ട +Ï=ബ്ധ +Ð=ബ്ദ +Ñ=ച്ഛ +Ò=ഹ്മ +Ó=ഹ്ന +Ô=ന്ധ +Õ=ത്സ +Ö=ജ്ജ +×=ണ്മ +Ø=ത്ത +Ù=ന്ഥ +Ú=ജ്ഞ +Û=ത്ഭ +Ü=ഗ്മ +Ý=ശ്ച +Þ=ണ്ഡ +ß=ങ്ങ +à=ക്ത +á=ഗ്ന +â=ന്റ +ã=ഷ്ട +ä=റ്റ +å=ന് +ó=ന്ന +y=്യ +z=്വ +{=്ര +ð=ല്‍ +ï=ണ്ട +ñ=ല്ല +ò=ന്മ +´=ട്ട +¸=പ്പ +¨=ണ്‍ +¦=ങ്ക +¼=മ്പ +½=മ്മ +¤=ഗ്ഗ +ô=ഞ്ച +þ=- +∂=ന്ന +-= +≤=ദ്ധ +≥=ന്‍ +ƒ=ള്‍ +˛=- +Ω=മ്മ +‰=റ്റ +ÿ=സ്ഥ +›=ശ്ച +∞=ത്ഥ +≠=ണ്ട +‡=ക്ത +√=ല്ല +∏=പ്പ +≈=ള്ള +π=പ്ല +ø=യ്യ +fl=ത്മ +∑=ന്മ +÷=ജ്ജ +∆=വ്വ +™=ഞ്ഞ +—=ച്ഛ +‚=ന്റ +¥=ന്ത + =സ്സ +⁄=ജ്ഞ +•=ഗ്ല +’=ത്സ +‘=ന്ധ +...=സ്ല +“=ഹ്മ -- cgit From f771e45350f7a6e155a5ec9446944c0a58ffdcfa Mon Sep 17 00:00:00 2001 From: Rajeesh K Nambiar Date: Tue, 3 Feb 2009 08:01:47 +0530 Subject: Payyans: Fix converting 'ൈ' from ASCII MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- payyans/payyans/payyan.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/payyans/payyans/payyan.py b/payyans/payyans/payyan.py index 0827b8f..819b940 100755 --- a/payyans/payyans/payyan.py +++ b/payyans/payyans/payyan.py @@ -1,7 +1,7 @@ #! /usr/bin/env python # -*- coding: utf-8 -*- # Payyans Ascii to Unicode Convertor -# Copyright 2008 Santhosh Thottingal , +# Copyright 2008-2009 Santhosh Thottingal , # Nishan Naseer , Manu S Madhav , # Rajeesh K Nambiar # http://www.smc.org.in @@ -57,7 +57,7 @@ class Payyan: letter = unicode_text[index:index+charNo] if letter in self.rulesDict: ascii_letter = self.rulesDict[letter] - letter = letter.encode('utf8') + letter = letter.encode('utf-8') '''കിട്ടിയ അക്ഷരങ്ങളുടെ അപ്പുറത്തും ഇപ്പുറത്തും സ്വരചിഹ്നങ്ങള്‍ ഫിറ്റ് ചെയ്യാനുള്ള ബദ്ധപ്പാട്''' if letter == 'ൈ': # പിറകില്‍ രണ്ടു സാധനം പിടിപ്പിക്കുക ascii_text = ascii_text[:-1] + ascii_letter*2 + ascii_text[-1:] @@ -118,12 +118,16 @@ class Payyan: else: unicode_letter = letter if(self.isPrebase(unicode_letter)): - prebase_letter = unicode_letter + # "ൈ" എന്നത് ആസ്കിയില്‍ 2 "െ" ചേര്‍ന്നതാണ്. It is unique! + if prebase_letter.encode('utf-8') == "െ" and unicode_letter.encode('utf-8') == "െ": + prebase_letter = u"ൈ" + else: + prebase_letter = unicode_letter else: if ((unicode_letter.encode('utf-8') == "എ") | ( unicode_letter.encode('utf-8') == "ഒ" )): unicode_text = unicode_text + self.getVowelSign(prebase_letter , unicode_letter) else: - unicode_text = unicode_text + unicode_letter+ prebase_letter + unicode_text = unicode_text + unicode_letter + prebase_letter prebase_letter="" index = index + 1 @@ -140,7 +144,7 @@ class Payyan: '''ഊഹും. കൊന്നാലും ഇനി മുന്നോട്ടില്ല. മുന്നില്‍ മറ്റവനാകുന്നു. ഏതു്? ''' return 1 # Error - no pdftotext ! else: - self.input_filename = self.input_filename.split(".") [0]+ ".txt" + self.input_filename = os.path.splitext(self.input_filename)[0] + ".txt" if self.input_filename : ascii_file = codecs.open(self.input_filename, encoding = 'utf-8', errors = 'ignore') else : -- cgit From 79879edb7c6f62d2edb12d51e911a5a9c6df4c9e Mon Sep 17 00:00:00 2001 From: Rajeesh K Nambiar Date: Tue, 3 Feb 2009 11:09:36 +0530 Subject: Payyans: Fix all pre-base, post-base issue when converting to unicode; includingൈ '', ്യ'', '്വ' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- payyans/payyans/payyan.py | 68 +++++++++++++++++++++++++++++++++-------------- 1 file changed, 48 insertions(+), 20 deletions(-) diff --git a/payyans/payyans/payyan.py b/payyans/payyans/payyan.py index 819b940..afcac65 100755 --- a/payyans/payyans/payyan.py +++ b/payyans/payyans/payyan.py @@ -107,30 +107,45 @@ class Payyan: def word2Unicode(self, ascii_text): index = 0 + post_index = 0 prebase_letter = "" + postbase_letter = "" # "‌‌്യ", "്വ" unicode_text = "" + next_ucode_letter = "" self.direction="a2u" self.rulesDict = self.LoadRules() while index < len(ascii_text): - letter = ascii_text[index] - if letter in self.rulesDict: - unicode_letter = self.rulesDict[letter] - else: - unicode_letter = letter - if(self.isPrebase(unicode_letter)): - # "ൈ" എന്നത് ആസ്കിയില്‍ 2 "െ" ചേര്‍ന്നതാണ്. It is unique! - if prebase_letter.encode('utf-8') == "െ" and unicode_letter.encode('utf-8') == "െ": - prebase_letter = u"ൈ" - else: - prebase_letter = unicode_letter - else: - if ((unicode_letter.encode('utf-8') == "എ") | ( unicode_letter.encode('utf-8') == "ഒ" )): - unicode_text = unicode_text + self.getVowelSign(prebase_letter , unicode_letter) + for charNo in [2,1]: + letter = ascii_text[index:index+charNo] + if letter in self.rulesDict: + unicode_letter = self.rulesDict[letter] + if(self.isPrebase(unicode_letter)): #സ്വരചിഹ്നമാണോ? + prebase_letter = unicode_letter + else: #സ്വരചിഹ്നമല്ല + #എങ്കില്‍ വ്യഞ്ജനത്തിനു ശേഷം പോസ്റ്റ്-ബേസ് ഉണ്ടോ എന്നു നോക്കൂ + post_index = index+charNo + if post_index < len(ascii_text): + letter = ascii_text[post_index] + if letter in self.rulesDict: + next_ucode_letter = self.rulesDict[letter] + if self.isPostbase(next_ucode_letter): + postbase_letter = next_ucode_letter + index = index + 1 + if ((unicode_letter.encode('utf-8') == "എ") | + ( unicode_letter.encode('utf-8') == "ഒ" )): + unicode_text = unicode_text + postbase_letter + self.getVowelSign(prebase_letter , unicode_letter) + else: + unicode_text = unicode_text + unicode_letter + postbase_letter + prebase_letter + prebase_letter="" + postbase_letter="" + index = index + charNo + break else: - unicode_text = unicode_text + unicode_letter + prebase_letter - prebase_letter="" - - index = index + 1 + if charNo == 1: + unicode_text = unicode_text + letter + index = index + 1 + break + unicode_letter = letter return unicode_text # മതം മാറ്റി തിരിച്ചു കൊടുക്ക്വാ ! def Ascii2Uni(self): @@ -195,8 +210,21 @@ class Payyan: if( ( unicode_letter == "േ" ) | ( unicode_letter == "ൈ" ) | ( unicode_letter == "ൊ" ) | ( unicode_letter == "ോ" ) | ( unicode_letter == "ൌ" ) | ( unicode_letter == "്ര" ) | ( unicode_letter == "െ" ) ): - return "ഇതു സത്യം... അ...സത്യം.... അസത്യം...!" - + return True #"ഇതു സത്യം... അ...സത്യം.... അസത്യം...!" + else: + return False + + def isPostbase(self, letter): + ''' + "ക്യ" എന്നതിലെ "്യ", "ക്വ" എന്നതിലെ "്വ" എന്നിവ പോസ്റ്റ്-ബേസ് ആണ്. + "ത്യേ" എന്നത് ആസ്കിയില്‍ "ഏ+ത+്യ" എന്നാണ് എഴുതുന്നത്. അപ്പോള്‍ വ്യഞ്ജനം കഴിഞ്ഞ് പോസ്റ്റ്-ബേസ് + ഉണ്ടെങ്കില്‍ വ്യഞ്ജനം+പോസ്റ്റ്-ബേസ് കഴിഞ്ഞേ പ്രീ-ബേസ് ചേര്‍ക്കാവൂ! ഹൊ, പയ്യന്‍ പാണിനീശിഷ്യനാണ്!! + ''' + unicode_letter = letter.encode('utf-8') + if ( (unicode_letter == "്യ") | (unicode_letter == "്വ") ): + return True + else: + return False def LoadRules(self): ''' -- cgit From 49e8ee5b99c850ddc3f81127096e83ed38c85a52 Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Tue, 3 Feb 2009 22:54:21 +0530 Subject: * version 0.7 --- payyans/PKG-INFO | 2 +- payyans/docs/ChangeLog | 13 ++++++++----- payyans/docs/README | 3 +-- payyans/payyans/payyans | 5 +++-- payyans/setup.py | 2 +- 5 files changed, 14 insertions(+), 11 deletions(-) diff --git a/payyans/PKG-INFO b/payyans/PKG-INFO index b9a5588..855a8c9 100755 --- a/payyans/PKG-INFO +++ b/payyans/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: Payyans -Version: 0.5 +Version: 0.7 Summary: Payyans is a python program to convert the data written for ascii fonts in ascii format to the Unicode format Home-page: http://smc.org.in/Payyans Author: Santhosh Thottingal, Nishan Naseer diff --git a/payyans/docs/ChangeLog b/payyans/docs/ChangeLog index c78e155..fad531a 100755 --- a/payyans/docs/ChangeLog +++ b/payyans/docs/ChangeLog @@ -1,15 +1,18 @@ Change Log: + version 0.7 + * Bug fix to handle prebase, postbase matras correctly + * Added Ambili Map. Thanks to zyxware version 0.6 - * Added word2Unicode and word2ASCII APIs - * Move the doc files to /usr/share/doc/payyans- directory + * Loading the rules file multiple times fixed version 0.5 * Python API fixes * pdf option detection from input file name extension version 0.4 * bidirectional conversion - version 0.3 - * minor fixes - Version 0.2: + version 0.3 + * minor fixes + Version 0.2: * Renamed rules.map to karthika.map and corrected some mappings Version 0.1: * First release + diff --git a/payyans/docs/README b/payyans/docs/README index 62eda0e..d453719 100755 --- a/payyans/docs/README +++ b/payyans/docs/README @@ -1,7 +1,6 @@ AUTHORS: Santhosh Thottingal Nishan Naseer - Rajeesh K Nambiar A Swathanthra Malayalam Computing Project Detailed Documentation: http://smc.org.in/Payyans @@ -10,4 +9,4 @@ INSTALL: As root #python setup.py install -Enjoy :) +Enjoy :) \ No newline at end of file diff --git a/payyans/payyans/payyans b/payyans/payyans/payyans index 79c2854..7f3c421 100755 --- a/payyans/payyans/payyans +++ b/payyans/payyans/payyans @@ -25,9 +25,10 @@ from payyans import Payyans from optparse import OptionParser import sys,os +VERSION=0.7 def error_exit(): print ''' - Payyans Malayalam Ascii <--> Unicode Converter Version 0.3 + Payyans Malayalam Ascii <--> Unicode Converter Please use --help or -h argument to see the options''' sys.exit(1) @@ -47,7 +48,7 @@ class Payyan: '''നീ ആരാകുന്നു?''' if options.version : '''ഞാന്‍ പയ്യനാകുന്നു. പയ്യെ ജനനം. പൈത്തണ്‍കുലം. ഇങ്ങടു് കടിച്ചാല്‍ അങ്ങടും കടിക്കും- അതു് ജന്മ സ്വഭാവം''' - print "Payyans Malayalam Ascii <--> Unicode Converter Version 0.3" + print "Payyans Malayalam Ascii <--> Unicode Converter Version" , VERSION, return if (options.mapping_filename is None): ''' മാപ്പിങ്ങ് ഇല്ലാതെ നമുക്കെന്താഘാഷം''' diff --git a/payyans/setup.py b/payyans/setup.py index 2993087..a32b599 100755 --- a/payyans/setup.py +++ b/payyans/setup.py @@ -4,7 +4,7 @@ from distutils.core import setup doclines = __doc__.split("\n") setup(name='payyans', - version='0.6', + version='0.7', description=doclines[0], long_description = "\n".join(doclines[:]), platforms = ["Linux"], -- cgit From 64150dcd5fd28967bafaace77489bf356cf325f8 Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Tue, 3 Feb 2009 22:54:41 +0530 Subject: charset=UTF-8 in po file --- pychathans/po/chathans-ml.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pychathans/po/chathans-ml.po b/pychathans/po/chathans-ml.po index e96e0dd..00d02e7 100644 --- a/pychathans/po/chathans-ml.po +++ b/pychathans/po/chathans-ml.po @@ -13,7 +13,7 @@ msgstr "" "Last-Translator: Rajeesh K Nambiar \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=CHARSET\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: chathans.py:30 -- cgit From 759c9b917bd8f68ab682a112aef72b6a6f743fb8 Mon Sep 17 00:00:00 2001 From: Rajeesh K Nambiar Date: Wed, 4 Feb 2009 08:06:30 +0530 Subject: Payyans: Cleanup in v07 --- payyans/docs/ChangeLog | 7 +++---- payyans/setup.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/payyans/docs/ChangeLog b/payyans/docs/ChangeLog index fad531a..af785a1 100755 --- a/payyans/docs/ChangeLog +++ b/payyans/docs/ChangeLog @@ -9,10 +9,9 @@ Change Log: * pdf option detection from input file name extension version 0.4 * bidirectional conversion - version 0.3 - * minor fixes - Version 0.2: + version 0.3 + * minor fixes + Version 0.2: * Renamed rules.map to karthika.map and corrected some mappings Version 0.1: * First release - diff --git a/payyans/setup.py b/payyans/setup.py index a32b599..c1da8a0 100755 --- a/payyans/setup.py +++ b/payyans/setup.py @@ -15,5 +15,5 @@ setup(name='payyans', packages=['payyans'], data_files=[('/usr/share/payyans/maps',['maps/karthika.map','maps/indulekha.map','maps/revathi.map']), ('/usr/bin',['payyans/payyans']), - ('/usr/share/doc/payyans-0.6',['docs/README','docs/LICENSE','docs/ChangeLog'])] + ('/usr/share/doc/payyans-0.7',['docs/README','docs/LICENSE','docs/ChangeLog'])] ) -- cgit From 7393fd4de1769cdab38800d0a0f58c8906ba0f5c Mon Sep 17 00:00:00 2001 From: Rajeesh K Nambiar Date: Sat, 14 Feb 2009 00:11:23 +0530 Subject: Kuttans: Rewrite Kuttans in PyQT4, based on Rahul's original version in QT4 --- pykuttans/Makefile | 10 + pykuttans/README | 26 + pykuttans/qrc/application-illustrator.png | Bin 0 -> 2856 bytes pykuttans/qrc/document-new.png | Bin 0 -> 873 bytes pykuttans/qrc/document-open.png | Bin 0 -> 796 bytes pykuttans/qrc/document-print-preview.png | Bin 0 -> 1107 bytes pykuttans/qrc/document-print.png | Bin 0 -> 880 bytes pykuttans/qrc/document-save-as.png | Bin 0 -> 1233 bytes pykuttans/qrc/document-save.png | Bin 0 -> 798 bytes pykuttans/qrc/edit-clear.png | Bin 0 -> 1283 bytes pykuttans/qrc/edit-copy.png | Bin 0 -> 515 bytes pykuttans/qrc/edit-cut.png | Bin 0 -> 576 bytes pykuttans/qrc/edit-delete.png | Bin 0 -> 1121 bytes pykuttans/qrc/edit-paste.png | Bin 0 -> 771 bytes pykuttans/qrc/edit-redo.png | Bin 0 -> 1245 bytes pykuttans/qrc/edit-select-all.png | Bin 0 -> 631 bytes pykuttans/qrc/edit-undo.png | Bin 0 -> 1220 bytes pykuttans/qrc/face-confused.png | Bin 0 -> 1189 bytes pykuttans/qrc/kuttans.qrc | 23 + pykuttans/qrc/preferences-desktop-font.png | Bin 0 -> 1038 bytes pykuttans/qrc/system-help.png | Bin 0 -> 1222 bytes pykuttans/qrc/window-close.png | Bin 0 -> 1251 bytes pykuttans/qrc/window-new.png | Bin 0 -> 680 bytes pykuttans/src/kuttans_main.py | 176 ++++ pykuttans/src/kuttans_rc.py | 1473 ++++++++++++++++++++++++++++ pykuttans/src/kuttans_rc.pyc | Bin 0 -> 22562 bytes pykuttans/src/kuttans_ui.py | 273 ++++++ pykuttans/src/kuttans_ui.pyc | Bin 0 -> 10398 bytes pykuttans/ui/kuttans.ui | 515 ++++++++++ 29 files changed, 2496 insertions(+) create mode 100644 pykuttans/Makefile create mode 100644 pykuttans/README create mode 100644 pykuttans/qrc/application-illustrator.png create mode 100644 pykuttans/qrc/document-new.png create mode 100644 pykuttans/qrc/document-open.png create mode 100644 pykuttans/qrc/document-print-preview.png create mode 100644 pykuttans/qrc/document-print.png create mode 100644 pykuttans/qrc/document-save-as.png create mode 100644 pykuttans/qrc/document-save.png create mode 100644 pykuttans/qrc/edit-clear.png create mode 100644 pykuttans/qrc/edit-copy.png create mode 100644 pykuttans/qrc/edit-cut.png create mode 100644 pykuttans/qrc/edit-delete.png create mode 100644 pykuttans/qrc/edit-paste.png create mode 100644 pykuttans/qrc/edit-redo.png create mode 100644 pykuttans/qrc/edit-select-all.png create mode 100644 pykuttans/qrc/edit-undo.png create mode 100644 pykuttans/qrc/face-confused.png create mode 100644 pykuttans/qrc/kuttans.qrc create mode 100644 pykuttans/qrc/preferences-desktop-font.png create mode 100644 pykuttans/qrc/system-help.png create mode 100644 pykuttans/qrc/window-close.png create mode 100644 pykuttans/qrc/window-new.png create mode 100644 pykuttans/src/kuttans_main.py create mode 100644 pykuttans/src/kuttans_rc.py create mode 100644 pykuttans/src/kuttans_rc.pyc create mode 100644 pykuttans/src/kuttans_ui.py create mode 100644 pykuttans/src/kuttans_ui.pyc create mode 100644 pykuttans/ui/kuttans.ui diff --git a/pykuttans/Makefile b/pykuttans/Makefile new file mode 100644 index 0000000..0fcee63 --- /dev/null +++ b/pykuttans/Makefile @@ -0,0 +1,10 @@ +# Copyright (c) 2009 Rajeesh +# Use this Makefile to update source files (ui and qrc) + +all: src/kuttans_ui.py src/kuttans_rc.py src/kuttans_main.py + python src/kuttans_main.py + +src/kuttans_ui.py: ui/kuttans.ui + pyuic4 $< > $@ +src/kuttans_rc.py: qrc/kuttans.qrc + pyrcc4 $< > $@ diff --git a/pykuttans/README b/pykuttans/README new file mode 100644 index 0000000..cfdd271 --- /dev/null +++ b/pykuttans/README @@ -0,0 +1,26 @@ + Kuttans +======================================================= +VERSION: 0.1 + +INFO: + QT+payyans=Qtans (pronounced Kuttans in Malayalam) + Kuttans is a GUI frontend for Payyans based on PyQT + +DEPENDENCIES: + payyans + PyQT4 + pdftotext (optional) + +AUTHOR: + Rahul + Rajeesh K Nambiar + +LISCENCE: + GPL V3 + +INSTALL: + $ python src/kuttans_main.py + +USAGE: + 1. Open the document to convert + 2. Click Convert(പരിവര്‍ത്തനം) ->