[smc-discuss] [Git][smc/ibus-braille][master] renamed to ibus-braille

Nalin x GNU gitlab at gitlab.com
Mon Sep 21 06:32:41 PDT 2015


Nalin x GNU pushed to branch master at SMC / ibus-braille


Commits:
f0842701 by Nalin.x.GNU at 2015-09-21T05:57:30Z
renamed to ibus-braille

- - - - -


28 changed files:

- AUTHORS
- Makefile.am
- + README
- abbreviation-editor/Makefile.am
- abbreviation-editor/ibus-sharada-braille-abbreviation-editor.desktop → abbreviation-editor/ibus-braille-abbreviation-editor.desktop
- abbreviation-editor/ibus-sharada-braille-abbreviation-editor.in → abbreviation-editor/ibus-braille-abbreviation-editor.in
- abbreviation-editor/main.py
- braille/Makefile.am
- configure.ac
- engine/Makefile.am
- engine/sharada-braille.xml.in.in → engine/braille.xml.in.in
- engine/engine.py
- preferences/ibus-sharada-braille-preferences.in → engine/ibus-braille.in
- engine/main.py
- icons/Makefile.am
- icons/ibus-sharada-braille.png → icons/ibus-braille.png
- language-editor/Makefile.am
- language-editor/ibus-sharada-braille-language-editor.desktop → language-editor/ibus-braille-language-editor.desktop
- engine/ibus-sharada-braille.in → language-editor/ibus-braille-language-editor.in
- language-editor/main.py
- packaging/control
- packaging/ibus-sharada-braille.spec
- packaging/postinst
- packaging/preinst
- preferences/Makefile.am
- preferences/ibus-sharada-braille-preferences.desktop → preferences/ibus-braille-preferences.desktop
- language-editor/ibus-sharada-braille-language-editor.in → preferences/ibus-braille-preferences.in
- preferences/main.py


Changes:

=====================================
AUTHORS
=====================================
--- a/AUTHORS
+++ b/AUTHORS
@@ -1 +1,3 @@
-Nalin.x.Linux <Nalin.x.Linux at gmail.com>
+Nalin.x.GNU <nalin.x.linux at gmail.com>
+Samuel Thibault <samuel.thibault at ens-lyon.org>
+Sathyaseelan.K <sath.linux at gmail.com>


=====================================
Makefile.am
=====================================
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,7 +2,7 @@
 #
 # ibus-sharada-braille - The braille ibus engine
 #
-# Copyright (c) 2007-2011 Peng Huang <shawn.p.huang at gmail.com>
+# Copyright (c) 2014-2015 Nalin.x.GNU <nalin.x.linux at gmail.com>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by


=====================================
README
=====================================
--- /dev/null
+++ b/README
@@ -0,0 +1,60 @@
+ibus-sharada-braille
+Braille input method for ibus
+
+ibus-sharada-braille is an ibus input engine based on six key approach of braille. We express our gratitude to Swathanthra Malayalam Computing(SMC) for mentoring this project. We consider the acceptance of this project by Svathanthra Malayalam Computing and Google as a new flowering of the effort of louis braille. By default it uses letters f, d, s, j, k, and l in the keyboard to represent 1, 2, 3, 4, 5 and 6 of the braille dots respectively. One can use different combinations of braille to produce text. For example key 'f' will produce 'a', 'f' and 'd' will produce 'b' and 'f' and 'j' will produce 'c' and like. The combination of keys should be released together fafter pressing them.
+
+Languages : - This version comes with seven languages English, Malayalam, Hindi, Kannada, Tamil, French, and Spanish. English is the default language, and one can switch to other languages by pressing language switch key (Pause Break). one can go back to previus language using the same key. One can select the required languages by checking them in general page of ibus-sharada-braille-preferences. Also default language can be change by using the combo box that appears in the same page.
+
+Contractions : - All the grade 2 and grade 3 contractions in English and Malayalam is available in ibus-sharada-braille. In order to activate contractions one should uncheck the simple mode. To produce contraction, press the combination of letters after pressing the contraction key, Dot 5, 5-6, 4-5-6, 4, 3, 3-6, 6, 3, 1-5-6 are the contraction signs. For example, press 'f' and 'd' together after pressing 'j' will produce word "better" and like. Along with these contractions, we have provided some contractions in the simple mode itself. For this purpose we have used the combinations which are not used for alphabets.
+
+Numerals : - One can select numeral as language. Nemeth code approach is accepted here. In this mode, d, s, k, l representing 2, 3, 5, 6 of the braille dots are used for numbers that is d for 1 and d, s together for 2 etc. Other letters are written as in braille mode, f, k, l combination is used to produce underscore and this combination can be used to produce line in any text. Numeral mode is used for handling mathematics.
+
+Punctuations : - To produce any punctuation one should press semicolon in the ordinary keyboard and then press necessary combinations.
+
+Abbreviations : - letter 'a' is the abbreviation key and one should press 'a' after typing the abbreviation. For example pressing 'a' after typing 'ab' will expand the word 'ab' to 'about' This facility will increase the speed of producing text.
+
+Abbreviation-Editor : - It is a unique feature of isb which enable a user to create whatever abbreviation he/she requires. In order to edit the abbreviation one has to open ibus-sharada-braille-abbreviation-editor then select the language of which abbreviation to be edited. For adding a new abbreviation one has to click add button which will prompt a dialog with two entries: abbreviation and expantion, user has to fill apropriate data and click add button. One can remove an abbreviation by clicking on remove button. One has to press save button to make it effective. Abbreviations thus saved can be shared with others using the export button which will prompt a save dialog. Restore button will delete all newly added abbreviations and restore the list to the default position. For english we have already provided all the grade 3 abbreviations in the package.
+
+Beginning list and middle list : - One can switch between middle list and beginning list using map-switching key(left ALT). This will help the user to write any letter anywhere. For example one can write a vowel in hindi inside a word. To write a full vowel instead of a sign, one should press left alt and then type the combination needed for the vowel.
+
+Simple-Mode : - ibus sharada braille is installed as the simple mode unchecked. This will be complicated for a beginner. To avoid these complications a newbie can disable abbreviations and contractions by checking simple mode from general page of ibus-sharada-braille-preferences.
+
+Text Manipulation : - capitol/chill key('g') is used to produce capital letter in English and chillu in malayalam. pressing this key before typing the braille combination to make a letter capital and pressing this key after typing the braille combination to make a letter chillu in malayalam. If this capitol key is pressed before using a contracted word, whole letters will be in capital. Letter deletion key('h') will delete the last letter typed and pressing letter deletion key and capitol/chill key together will delete the last word. Caps lock : - One can enable and disable caps lock by pressing capitol/chill key two time continuesly.
+
+Key-remapping : - One can change the all keys by using ket/shortcut page of ibus-sharada-braille-preferences. Users having non qwerty keyboard can use this to setup six appropriate keys on there keyboard. Here user can also change the key for language switching,map switching and capitol/chill as well. By default the following keys are given for different functionalities: f, d, s, j, k, l for dots 1, 2, 3, 4, 5, 6 of the braille dots. Semicolon as punctuation key, 'g' as capital/chilli, 'h' for deletion of last letter, left alt map switching key, 'a' as abbreviation expansion key. User can tab to listen to the key assigned to the function and simply press the needed key to change it. After making the changes press apply button to effect the changes. Here also one can use restore button to come back to the default settings.
+
+ibus-sharada-braille language editor : - The language editor enable the user to add a new language, remove the existing language, add a new map of contractions, remove the map of contractions, and manipulate the characters and contractions of existing languages. One can also share the languages, maps, and contractions he has created, with others using the export and import facility.
+
+one cant start the process of editing by selecting the languge to be edited from combobox. This is the list of existing languages and one can press add-language button for creating new language. After pressing this button, one should enter the name of the language with its e-speak variant name putting a hyphen between them. Now one can work upon the language by selecting it from the list. Using remove-language button one can remove any language.
+
+Editing Map : - A map is an arrangement for producing a character or list or a contraction list. A map is a key combination which does not produce any character but enable the user to produce the list of characters and contractions. After pressing the add-map button it will ask for the entry. One can press the braille combination using and press the add button. If one has pressed j and l the editor will show "46" and in the process map for 4, 6 will appear in the editor and one can add any contractions in the 4, 6 list.
+
+Editing Beginning list : - This page list out all the characters that should appear after pressing the space. For example it contains all the vowels and other alphabets of indian languages, and all the alphabets and contractions given in the braille six key combinations in english. Let us now see how one can change or remove a character. Just tab and then a list will appear which contains the number combinations are given. Again tab and add new row button will appear. After pressing the button, editor will ask for the braille combination and enter it using six key combinations as done in map creation. Again tab and you will get the column for adding the value. Then again tab and press add button. If one needs further entry add row button will appear again.
+
+Editing middle list : - In the map page and curser is at beginning, use right arrow to select the middle list. Middle list contains all the characters that should appear when a character is already in position. It contains all the signs attached to the vowels and other alphabets in indian languages and all the alphabets and middle contractions like cc dd etc.
+
+Editing Punctuation list : - press right arrow and one can go to punctuation list and here one can see the list of combinations for punctuations which will appear after pressing the punctution key(semicolon) in the ordinary key board.
+
+please note that one can't remove beginning,middle and pucntation lists because they are essential for the working of a language. Using the right arrow one can manipulate other maps such as 4 6, 5, 4 5 6, etc in english. Again one can remove any unwanted row as well. One can clear all the entries using clear-all button, After the operations one should save/save-all and quit the editor to bring the changes in to effect.
+
+Accessibility : - ibus-shrada-braille is fully orca supported and one can use the orca preferences for changing voices, punctuation levels to be pronounced, key echo by character etc. In order to activate orca preferences one should press insert+space together. After the installation of the program,
+we recommend you to open the orca preferences and check the echo by character and uncheck the key echo in the key echo page to get a better speech support. To get speech support for Kannada and Tamil one should change the language to that language using the orca preferences.
+
+Copyright (c) 2014-2015 ISB Development Team
+
+All rights reserved . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 
+
+Redistributions of source code must retain the below copyright notice, 
+
+this list of conditions and the following disclaimer. 
+
+Redistributions in binary form must reproduce the below copyright notice, 
+
+this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 
+
+Neither the name of the nor the Lios team names of its 
+
+contributors may be used to endorse or promote products derived from this software without specific prior written permission. 
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 
+FREE SOFTWARE FREE SOCIETY


=====================================
abbreviation-editor/Makefile.am
=====================================
--- a/abbreviation-editor/Makefile.am
+++ b/abbreviation-editor/Makefile.am
@@ -1,8 +1,8 @@
 # vim:set noet ts=4:
 #
-# ibus-sharada-braille - The braille ibus engine
+# ibus-braille - The braille ibus engine
 #
-# Copyright (c) 2007-2011 Peng Huang <shawn.p.huang at gmail.com>
+# Copyright (c) 2014-2015 Nalin.x.GNU <nalin.x.linux at gmail.com>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,12 +22,12 @@ isb_abbreviation_editor_DATA = \
 	main.py \
 	ui.glade \
 	$(NULL)
-isb_abbreviation_editordir = $(datadir)/ibus-sharada-braille-abbreviation-editor/
+isb_abbreviation_editordir = $(datadir)/ibus-braille-abbreviation-editor/
 
-isb_desktop_icon_DATA = ibus-sharada-braille-abbreviation-editor.desktop
+isb_desktop_icon_DATA = ibus-braille-abbreviation-editor.desktop
 isb_desktop_icondir = $(datadir)/applications/
 
-bin_SCRIPTS = ibus-sharada-braille-abbreviation-editor
+bin_SCRIPTS = ibus-braille-abbreviation-editor
 
 
 CLEANFILES = \


=====================================
abbreviation-editor/ibus-sharada-braille-abbreviation-editor.desktop → abbreviation-editor/ibus-braille-abbreviation-editor.desktop
=====================================
--- a/abbreviation-editor/ibus-sharada-braille-abbreviation-editor.desktop
+++ b/abbreviation-editor/ibus-braille-abbreviation-editor.desktop
@@ -4,9 +4,9 @@ Categories=GNOME;Utility;
 Version=1.0
 Type=Application
 Terminal=false
-Comment=Change preferences of ibus-sharada-braille
-Exec=ibus-sharada-braille-abbreviation-editor
-Name=ibus-sharada-braille-abbreviation-editor
-Icon=/usr/share/ibus-sharada-braille/icons/ibus-sharada-braille.png
+Comment=Change preferences of ibus-braille
+Exec=ibus-braille-abbreviation-editor
+Name=ibus-braille-abbreviation-editor
+Icon=/usr/share/ibus-braille/icons/ibus-braille.png
 
-Name[en_IN]=ibus-sharada-braille-abbreviation-editor
+Name[en_IN]=ibus-braille-abbreviation-editor


=====================================
abbreviation-editor/ibus-sharada-braille-abbreviation-editor.in → abbreviation-editor/ibus-braille-abbreviation-editor.in
=====================================
--- a/abbreviation-editor/ibus-sharada-braille-abbreviation-editor.in
+++ b/abbreviation-editor/ibus-braille-abbreviation-editor.in
@@ -19,5 +19,5 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-exec python3 @prefix@/share/ibus-sharada-braille-abbreviation-editor/main.py $@
+exec python3 @prefix@/share/ibus-braille-abbreviation-editor/main.py $@
 


=====================================
abbreviation-editor/main.py
=====================================
--- a/abbreviation-editor/main.py
+++ b/abbreviation-editor/main.py
@@ -1,16 +1,35 @@
 #!/usr/bin/env python
+# vim:set noet ts=4:
+#
+# ibus-braille - The braille ibus engine
+#
+# Copyright (c) 2014-2015 Nalin.x.GNU <nalin.x.linux at gmail.com>
+#
+# This program is 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 2, 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
 import os
 from gi.repository import Gtk
 from gi.repository import IBus
 home_dir = os.environ['HOME']
-data_dir = "/usr/share/ibus-sharada-braille/braille"
+data_dir = "/usr/share/ibus-braille/braille"
 
 
-class ibus_sharada_braille_ae():
+class ibus_braille_ae():
 	def __init__ (self,file_list=None):
 		self.guibuilder = Gtk.Builder()
-		self.guibuilder.add_from_file("/usr/share/ibus-sharada-braille-abbreviation-editor/ui.glade")
+		self.guibuilder.add_from_file("/usr/share/ibus-braille-abbreviation-editor/ui.glade")
 		self.window = self.guibuilder.get_object("window1")
 		self.guibuilder.connect_signals(self);
 		
@@ -250,10 +269,10 @@ class ibus_sharada_braille_ae():
 	def save(self,widget,data=None):
 		self.save_to_file("{}/{}/abbreviations.txt".format(data_dir,self.language))
 		bus = IBus.Bus()
-		bus.set_global_engine("sharada-braille");
+		bus.set_global_engine("braille");
 		
 		
 
 		
-ibus_sharada_braille_ae()
+ibus_braille_ae()
 Gtk.main()


=====================================
braille/Makefile.am
=====================================
--- a/braille/Makefile.am
+++ b/braille/Makefile.am
@@ -2,7 +2,7 @@
 #
 # ibus-sharada-braille - The braille ibus engine
 #
-# Copyright (c) 2007-2011 Peng Huang <shawn.p.huang at gmail.com>
+# Copyright (c) 2014-2015 Nalin.x.GNU <nalin.x.linux at gmail.com>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by


=====================================
configure.ac
=====================================
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@
 #
 # ibus-sharada-braille - The braille ibus engine
 #
-# Copyright (c) 2007-2011 Peng Huang <shawn.p.huang at gmail.com>
+# Copyright (c) 2014-2015 Nalin.x.GNU <nalin.x.linux at gmail.com>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -19,7 +19,7 @@
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
 # if not 1, append datestamp to the version number.
-m4_define([package_name], [ibus-sharada-braille])
+m4_define([package_name], [ibus-braille])
 m4_define([ibus_released], [0])
 m4_define([ibus_major_version], [1])
 m4_define([ibus_minor_version], [2])
@@ -67,8 +67,8 @@ AM_PATH_PYTHON([2.5])
 AC_CONFIG_FILES(
 Makefile
 engine/Makefile
-engine/ibus-sharada-braille
-engine/sharada-braille.xml.in
+engine/ibus-braille
+engine/braille.xml.in
 icons/Makefile
 m4/Makefile
 braille/Makefile
@@ -81,11 +81,11 @@ braille/numerical/Makefile
 braille/spanish/Makefile
 braille/tamil/Makefile
 preferences/Makefile
-preferences/ibus-sharada-braille-preferences
+preferences/ibus-braille-preferences
 abbreviation-editor/Makefile
-abbreviation-editor/ibus-sharada-braille-abbreviation-editor
+abbreviation-editor/ibus-braille-abbreviation-editor
 language-editor/Makefile
-language-editor/ibus-sharada-braille-language-editor
+language-editor/ibus-braille-language-editor
 
 )
 


=====================================
engine/Makefile.am
=====================================
--- a/engine/Makefile.am
+++ b/engine/Makefile.am
@@ -2,7 +2,7 @@
 #
 # ibus-sharada-braille - The braille ibus engine
 #
-# Copyright (c) 2007-2011 Peng Huang <shawn.p.huang at gmail.com>
+# Copyright (c) 2014-2015 Nalin.x.GNU <nalin.x.linux at gmail.com>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,11 +22,11 @@ engine_enchant_PYTHON = \
 	engine.py \
 	main.py \
 	$(NULL)
-engine_enchantdir = $(datadir)/ibus-sharada-braille
+engine_enchantdir = $(datadir)/ibus-braille
 
-bin_SCRIPTS = ibus-sharada-braille
+bin_SCRIPTS = ibus-braille
 
-component_DATA = sharada-braille.xml
+component_DATA = braille.xml
 componentdir = $(datadir)/ibus/component
 
 CLEANFILES = \
@@ -34,11 +34,11 @@ CLEANFILES = \
 	$(NULL)
 
 EXTRA_DIST = \
-	ibus-sharada-braille.in \
-	sharada-braille.xml.in.in \
+	ibus-braille.in \
+	braille.xml.in.in \
 	$(NULL)
 
-sharada-braille.xml: sharada-braille.xml.in
+braille.xml: braille.xml.in
 	$(AM_V_GEN) \
 	( \
 		libexecdir=${libexecdir}; \


=====================================
engine/sharada-braille.xml.in.in → engine/braille.xml.in.in
=====================================
--- a/engine/sharada-braille.xml.in.in
+++ b/engine/braille.xml.in.in
@@ -1,24 +1,24 @@
 <?xml version=\"1.0\" encoding=\"utf-8\"?>
-<!-- filename: sharada-braille.xml -->
+<!-- filename: braille.xml -->
 <component>
 	<name>org.freedesktop.IBus.SharadaBraille</name>
 	<description>Braille Component</description>
-	<exec>/usr/bin/ibus-sharada-braille --ibus</exec>
+	<exec>/usr/bin/ibus-braille --ibus</exec>
 	<version>@VERSION@</version>
 	<author>Nalin.x.Linux <Nalin.x.Linux at gmail.com></author>
 	<license>GPL</license>
-	<homepage>https://github.com/Nalin-x-Linux/ibus-sharada-braille</homepage>
-	<textdomain>ibus-sharada-braille</textdomain>
+	<homepage>https://github.com/Nalin-x-Linux/ibus-braille</homepage>
+	<textdomain>ibus-braille</textdomain>
 
 	<engines>
 		<engine>
-			<name>sharada-braille</name>
+			<name>braille</name>
 			<language></language>
 			<license>GPL</license>
 			<author>Nalin.x.Linux <Nalin.x.Linux at gmail.com></author>
-			<icon>${pkgdatadir}/icons/ibus-sharada-braille.png</icon>
+			<icon>${pkgdatadir}/icons/ibus-braille.png</icon>
 			<layout></layout>
-			<longname>Sharada-Braille</longname>
+			<longname>Braille</longname>
 			<description>Braille Input Method</description>
 			<rank>0</rank>
 		</engine>


=====================================
engine/engine.py
=====================================
--- a/engine/engine.py
+++ b/engine/engine.py
@@ -2,7 +2,7 @@
 #
 # ibus-sharada-braille - The Braille Input Bus project
 #
-# Copyright (c) 20014-2015 Nalin.x.Linux <Nalin.x.Linux at gmail.com>
+# Copyright (c) 2014-2015 Nalin.x.Linux <Nalin.x.Linux at gmail.com>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -33,7 +33,7 @@ from gi.repository import Pango
 keysyms = IBus
 
 #Where the data is located
-data_dir = "/usr/share/ibus-sharada-braille";
+data_dir = "/usr/share/ibus-braille";
 
 home_dir = os.environ['HOME']
 


=====================================
preferences/ibus-sharada-braille-preferences.in → engine/ibus-braille.in
=====================================
--- a/preferences/ibus-sharada-braille-preferences.in
+++ b/engine/ibus-braille.in
@@ -3,7 +3,7 @@
 #
 # ibus-sharada-braille - The braille ibus engine
 #
-# Copyright (c) 2007-2011 Peng Huang <shawn.p.huang at gmail.com>
+# Copyright (c) 2014-2015 Nalin.x.GNU <nalin.x.linux at gmail.com>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -19,5 +19,5 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-exec python3 @prefix@/share/ibus-sharada-braille-preferences/main.py $@
+exec @PYTHON@ @prefix@/share/ibus-braille/main.py $@
 


=====================================
engine/main.py
=====================================
--- a/engine/main.py
+++ b/engine/main.py
@@ -2,7 +2,7 @@
 #
 # ibus-sharada-braille - The braille ibus engine
 #
-# Copyright (c) 2007-2011 Peng Huang <shawn.p.huang at gmail.com>
+# Copyright (c) 2014-2015 Nalin.x.GNU <nalin.x.linux at gmail.com>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -33,17 +33,17 @@ from engine import EngineSharadaBraille
 class IMApp:
     def __init__(self, exec_by_ibus):
         self.__component = IBus.Component.new("org.freedesktop.IBus.SharadaBraille",
-                                          "Sharada-Braille Component",
+                                          "Braille Component",
                                           "0.1.0",
                                           "GPL",
                                           "Nalin.x.Linux <Nalin.x.Linux at gmail.com>",
                                           "http://example.com",
                                           "/usr/bin/exec",
-                                          "sharada-braille")
+                                          "braille")
                                           
-        engine = IBus.EngineDesc.new("sharada-braille",
-                                    "Sharada-Braille",
-                                    "Sharada-Braille",
+        engine = IBus.EngineDesc.new("braille",
+                                    "Braille",
+                                    "Braille",
                                     "",
                                     "GPL",
                                     "Nalin.x.Linux <Nalin.x.Linux at gmail.com>",
@@ -54,13 +54,13 @@ class IMApp:
         self.__bus = IBus.Bus()
         self.__bus.connect("disconnected", self.__bus_disconnected_cb)
         self.__factory = IBus.Factory.new(self.__bus.get_connection())
-        self.__factory.add_engine("sharada-braille", GObject.type_from_name("EngineSharadaBraille"))        
+        self.__factory.add_engine("braille", GObject.type_from_name("EngineSharadaBraille"))        
         
         if exec_by_ibus:
             self.__bus.request_name("org.freedesktop.IBus.SharadaBraille", 0)
         else:
             self.__bus.register_component(self.__component)
-            self.__bus.set_global_engine_async("sharada-braille", -1, None, None, None)
+            self.__bus.set_global_engine_async("braille", -1, None, None, None)
 
     def run(self):
         self.__mainloop.run()


=====================================
icons/Makefile.am
=====================================
--- a/icons/Makefile.am
+++ b/icons/Makefile.am
@@ -2,7 +2,7 @@
 #
 # ibus-sharada-braille - The braille ibus engine
 #
-# Copyright (c) 2007-2011 Peng Huang <shawn.p.huang at gmail.com>
+# Copyright (c) 2014-2015 Nalin.x.GNU <nalin.x.linux at gmail.com>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -19,11 +19,11 @@
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
 icons_DATA = \
-	ibus-sharada-braille.png \
+	ibus-braille.png \
 	$(NULL)
 
 iconsdir = $(pkgdatadir)/icons
 
 EXTRA_DIST = \
-	ibus-sharada-braille.png \
+	ibus-braille.png \
 	$(NULL)


=====================================
icons/ibus-sharada-braille.png → icons/ibus-braille.png
=====================================
Binary files a/icons/ibus-sharada-braille.png and b/icons/ibus-braille.png differ


=====================================
language-editor/Makefile.am
=====================================
--- a/language-editor/Makefile.am
+++ b/language-editor/Makefile.am
@@ -2,7 +2,7 @@
 #
 # ibus-sharada-braille - The braille ibus engine
 #
-# Copyright (c) 2007-2011 Peng Huang <shawn.p.huang at gmail.com>
+# Copyright (c) 2014-2015 Nalin.x.GNU <nalin.x.linux at gmail.com>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,12 +22,12 @@ isb_language_editor_DATA = \
 	main.py \
 	ui.glade \
 	$(NULL)
-isb_language_editordir = $(datadir)/ibus-sharada-braille-language-editor/
+isb_language_editordir = $(datadir)/ibus-braille-language-editor/
 
-isb_desktop_icon_DATA = ibus-sharada-braille-language-editor.desktop
+isb_desktop_icon_DATA = ibus-braille-language-editor.desktop
 isb_desktop_icondir = $(datadir)/applications/
 
-bin_SCRIPTS = ibus-sharada-braille-language-editor
+bin_SCRIPTS = ibus-braille-language-editor
 
 
 CLEANFILES = \


=====================================
language-editor/ibus-sharada-braille-language-editor.desktop → language-editor/ibus-braille-language-editor.desktop
=====================================
--- a/language-editor/ibus-sharada-braille-language-editor.desktop
+++ b/language-editor/ibus-braille-language-editor.desktop
@@ -4,9 +4,9 @@ Categories=GNOME;Utility;
 Version=1.0
 Type=Application
 Terminal=false
-Comment=Change edit languages of ibus-sharada-braille
-Exec=ibus-sharada-braille-language-editor
-Name=ibus-sharada-braille-language-editor
-Icon=/usr/share/ibus-sharada-braille/icons/ibus-sharada-braille.png
+Comment=Change edit languages of ibus-braille
+Exec=ibus-braille-language-editor
+Name=ibus-braille-language-editor
+Icon=/usr/share/ibus-braille/icons/ibus-braille.png
 
-Name[en_IN]=ibus-sharada-braille-language-editor
+Name[en_IN]=ibus-braille-language-editor


=====================================
engine/ibus-sharada-braille.in → language-editor/ibus-braille-language-editor.in
=====================================
--- a/engine/ibus-sharada-braille.in
+++ b/language-editor/ibus-braille-language-editor.in
@@ -19,5 +19,5 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-exec @PYTHON@ @prefix@/share/ibus-sharada-braille/main.py $@
+exec python3 @prefix@/share/ibus-braille-language-editor/main.py $@
 


=====================================
language-editor/main.py
=====================================
--- a/language-editor/main.py
+++ b/language-editor/main.py
@@ -1,4 +1,24 @@
 #!/usr/bin/env python
+# vim:set noet ts=4:
+#
+# ibus-sharada-braille - The braille ibus engine
+#
+# Copyright (c) 2014-2015 Nalin.x.GNU <nalin.x.linux at gmail.com>
+#
+# This program is 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 2, 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
 
 import os
 import shutil
@@ -6,7 +26,7 @@ import configparser
 from gi.repository import Gtk
 from gi.repository import IBus
 home_dir = os.environ['HOME']
-data_dir = "/usr/share/ibus-sharada-braille/braille"
+data_dir = "/usr/share/ibus-braille/braille"
 
 
 class page(Gtk.ScrolledWindow):
@@ -139,7 +159,7 @@ class page(Gtk.ScrolledWindow):
 class ibus_sharada_braille_le():
 	def __init__ (self,file_list=None):
 		self.guibuilder = Gtk.Builder()
-		self.guibuilder.add_from_file("/usr/share/ibus-sharada-braille-language-editor/ui.glade")
+		self.guibuilder.add_from_file("/usr/share/ibus-braille-language-editor/ui.glade")
 		self.window = self.guibuilder.get_object("window1")
 		self.guibuilder.connect_signals(self);
 		
@@ -256,7 +276,7 @@ class ibus_sharada_braille_le():
 			self.notebook.remove_page(-1)
 		
 		self.black_list = ['help.txt','abbreviations.txt','abbreviations_default.txt']
-		for item in ['beginning.txt','middle.txt','punctuations.txt']+os.listdir("/usr/share/ibus-sharada-braille/braille/"+self.language+"/"):
+		for item in ['beginning.txt','middle.txt','punctuations.txt']+os.listdir("/usr/share/ibus-braille/braille/"+self.language+"/"):
 			if item not in self.black_list:
 				label = Gtk.Label(item)
 				print(item)
@@ -461,7 +481,7 @@ class ibus_sharada_braille_le():
 		object = self.notebook.get_nth_page(pagenum)		
 		self.save_to_file("{}/{}/{}".format(data_dir,self.language,object.filename))
 		bus = IBus.Bus()
-		bus.set_global_engine("sharada-braille");
+		bus.set_global_engine("braille");
 
 
 	def save_all(self,widget,data=None):
@@ -473,7 +493,7 @@ class ibus_sharada_braille_le():
 				file.write("{} {}\n".format(key,val))
 			file.close()
 		bus = IBus.Bus()
-		bus.set_global_engine("sharada-braille");
+		bus.set_global_engine("braille");
 
 		
 		


=====================================
packaging/control
=====================================
--- a/packaging/control
+++ b/packaging/control
@@ -1,9 +1,9 @@
-Package: ibus-sharada-braille
+Package: ibus-braille
 Priority: optional
 Section: gnome
 Installed-Size: 400
 Architecture: all
-Version: 0.2
+Version: 0.3
 Depends: python3-gi
 Provides: Nalin.x.Linux
 Maintainer: Nalin.x.Linux <Nalin.x.Linux at gmail.com>


=====================================
packaging/ibus-sharada-braille.spec
=====================================
--- a/packaging/ibus-sharada-braille.spec
+++ b/packaging/ibus-sharada-braille.spec
@@ -1,6 +1,6 @@
 ###########################################################################
 #    ISB - IBus-sharada-braille
-#    Copyright (C) 2014-2015 Nalin.x.Linux GPL-3
+#    Copyright (c) 2014-2015 Nalin.x.GNU <nalin.x.linux at gmail.com>
 #
 #    This program is free software: you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
@@ -19,16 +19,16 @@
 # yum install  python3-devel
 # yum install  rpm-build
 
-Name:           ibus-sharada-braille
-Version:        0.2
+Name:           ibus-braille
+Version:        0.3
 Release:        0%{?dist}
 Epoch:          1
-Summary:        ibus-sharada-braille is an ibus input engine based on six key approach of braille.
+Summary:        ibus-braille is an ibus input engine based on six key approach of braille.
 
 Group:          Applications/Editors
 License:        GPLv3+
-URL:            https://codeload.github.com/Nalin-x-Linux/ibus-sharada-braille/zip/ibus-sharada-braille-0.2.zip
-Source0:        https://codeload.github.com/Nalin-x-Linux/ibus-sharada-braille/zip/ibus-sharada-braille-0.2.zip
+URL:            https://gitlab.com/smc/ibus-braille/zip/ibus-sharada-braille-0.3.zip
+Source0:        https://gitlab.com/smc/ibus-braille/zip/ibus-sharada-braille-0.3.zip
 
 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
@@ -37,7 +37,7 @@ Requires:       python3-espeak
 Requires:	PackageKit-gtk3-module
 
 %description
- ibus-sharada-braille is an ibus input engine based on six key approach of braille. we express our gratitude to Swathanthra Malayalam Computing(SMC) for mentoring this project. We consider the acceptance of this project by Swathanthra Malayalam Computing and Google as a new flowering of the effort of louies braille.
+ ibus-braille is an ibus input engine based on six key approach of braille. we express our gratitude to Swathanthra Malayalam Computing(SMC) for mentoring this project. We consider the acceptance of this project by Swathanthra Malayalam Computing and Google as a new flowering of the effort of louies braille.
 
 
 %prep
@@ -64,15 +64,15 @@ make DESTDIR=${RPM_BUILD_ROOT} install
 
 
 #abbreviations.txt should be editable for user
-chmod -R 777 $RPM_BUILD_ROOT/%{_datadir}/ibus-sharada-braille/braille/
+chmod -R 777 $RPM_BUILD_ROOT/%{_datadir}/ibus-braille/braille/
 
 
 %files
 %defattr(-,root,root,-)
-%{_datadir}/ibus-sharada-braille/*
-%{_datadir}/ibus-sharada-braille-abbreviation-editor/*
-%{_datadir}/ibus-sharada-braille-language-editor/*
-%{_datadir}/ibus-sharada-braille-preferences/*
-%{_datadir}/ibus/component/sharada-braille.xml
+%{_datadir}/ibus-braille/*
+%{_datadir}/ibus-braille-abbreviation-editor/*
+%{_datadir}/ibus-braille-language-editor/*
+%{_datadir}/ibus-braille-preferences/*
+%{_datadir}/ibus/component/braille.xml
 %{_datadir}/applications/*
 %{_bindir}/*


=====================================
packaging/postinst
=====================================
--- a/packaging/postinst
+++ b/packaging/postinst
@@ -1,6 +1,6 @@
 #! /bin/sh
 sudo ldconfig
-sudo chmod -R 777 /usr/share/ibus-sharada-braille/braille/
+sudo chmod -R 777 /usr/share/ibus-braille/braille/
 if [ -x "`which update-menus 2>/dev/null`" ]; then
 sudo update-menus
 fi


=====================================
packaging/preinst
=====================================
--- a/packaging/preinst
+++ b/packaging/preinst
@@ -1,5 +1,5 @@
 #! /bin/sh
-if [ -d /usr/share/ibus-sharada-braille ]
+if [ -d /usr/share/ibus-braille ]
 then
-sudo rm -rf /usr/share/ibus-sharada-braille
+sudo rm -rf /usr/share/ibus-braille
 fi


=====================================
preferences/Makefile.am
=====================================
--- a/preferences/Makefile.am
+++ b/preferences/Makefile.am
@@ -2,7 +2,7 @@
 #
 # ibus-sharada-braille - The braille ibus engine
 #
-# Copyright (c) 2007-2011 Peng Huang <shawn.p.huang at gmail.com>
+# Copyright (c) 2014-2015 Nalin.x.GNU <nalin.x.linux at gmail.com>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,12 +22,12 @@ isb_preferences_DATA = \
 	main.py \
 	ui.glade \
 	$(NULL)
-isb_preferencesdir = $(datadir)/ibus-sharada-braille-preferences/
+isb_preferencesdir = $(datadir)/ibus-braille-preferences/
 
-isb_desktop_icon_DATA = ibus-sharada-braille-preferences.desktop
+isb_desktop_icon_DATA = ibus-braille-preferences.desktop
 isb_desktop_icondir = $(datadir)/applications/
 
-bin_SCRIPTS = ibus-sharada-braille-preferences
+bin_SCRIPTS = ibus-braille-preferences
 
 
 CLEANFILES = \


=====================================
preferences/ibus-sharada-braille-preferences.desktop → preferences/ibus-braille-preferences.desktop
=====================================
--- a/preferences/ibus-sharada-braille-preferences.desktop
+++ b/preferences/ibus-braille-preferences.desktop
@@ -3,8 +3,8 @@ Categories=GNOME;Utility;
 Version=1.0
 Type=Application
 Terminal=false
-Comment=Change preferences of ibus-sharada-braille
-Exec=ibus-sharada-braille-preferences
-Name=ibus-sharada-braille-preferences
-Icon=/usr/share/ibus-sharada-braille/icons/ibus-sharada-braille.png
+Comment=Change preferences of ibus-braille
+Exec=ibus-braille-preferences
+Name=ibus-braille-preferences
+Icon=/usr/share/ibus-braille/icons/ibus-braille.png
 


=====================================
language-editor/ibus-sharada-braille-language-editor.in → preferences/ibus-braille-preferences.in
=====================================
--- a/language-editor/ibus-sharada-braille-language-editor.in
+++ b/preferences/ibus-braille-preferences.in
@@ -3,7 +3,7 @@
 #
 # ibus-sharada-braille - The braille ibus engine
 #
-# Copyright (c) 2007-2011 Peng Huang <shawn.p.huang at gmail.com>
+# Copyright (c) 2012-2013 Nalin.x.GNU <nalin.x.linux at gmail.com>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -19,5 +19,5 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-exec python3 @prefix@/share/ibus-sharada-braille-language-editor/main.py $@
+exec python3 @prefix@/share/ibus-braille-preferences/main.py $@
 


=====================================
preferences/main.py
=====================================
--- a/preferences/main.py
+++ b/preferences/main.py
@@ -1,11 +1,31 @@
 #!/usr/bin/env python
+# vim:set noet ts=4:
+#
+# ibus-sharada-braille - The braille ibus engine
+#
+# Copyright (c) 2014-2015 Nalin.x.GNU <nalin.x.linux at gmail.com>
+#
+# This program is 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 2, 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
 import configparser
 import os
 from gi.repository import Gtk
 from gi.repository import Gdk
 from gi.repository import IBus
 home_dir = os.environ['HOME']
-data_dir = "/usr/share/ibus-sharada-braille/braille"
+data_dir = "/usr/share/ibus-braille/braille"
 
 
 #Key code map #{30:"a",31:"s",32:"d",33:"f",34:"g",35:"h",36:"j",37:"k",38:"l",39:";"}
@@ -13,7 +33,7 @@ data_dir = "/usr/share/ibus-sharada-braille/braille"
 class ibus_sharada_braille_preferences():
 	def __init__ (self,file_list=None):
 		self.guibuilder = Gtk.Builder()
-		self.guibuilder.add_from_file("/usr/share/ibus-sharada-braille-preferences/ui.glade")
+		self.guibuilder.add_from_file("/usr/share/ibus-braille-preferences/ui.glade")
 		self.window = self.guibuilder.get_object("window")
 		self.combobox_default_languge = self.guibuilder.get_object("combobox_default_languge")
 		self.box_general = self.guibuilder.get_object("box_general")		
@@ -147,7 +167,7 @@ class ibus_sharada_braille_preferences():
 		self.config.write(file)
 		file.close()
 		bus = IBus.Bus()
-		bus.set_global_engine("sharada-braille");
+		bus.set_global_engine("braille");
 		Gtk.main_quit()
 	def restore(self,widget,data=None):
 		try:
@@ -155,7 +175,7 @@ class ibus_sharada_braille_preferences():
 		except:
 			pass
 		bus = IBus.Bus()
-		bus.set_global_engine("sharada-braille");
+		bus.set_global_engine("braille");
 		Gtk.main_quit()
 		
 ibus_sharada_braille_preferences()



View it on GitLab: https://gitlab.com/smc/ibus-braille/commit/f084270192ec0fee2ee4ffc944fde0ab53486bf6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.smc.org.in/pipermail/discuss-smc.org.in/attachments/20150921/32c74f13/attachment-0001.htm>


More information about the discuss mailing list