Commits

Anonymous committed 3e8a41c

gtk: specifing which aya to show using CLI

  • Participants
  • Parent commits b1ca92e
  • Tags 0.8.1

Comments (0)

Files changed (2)

 have more than one key-binding.  See the `noorgtk keys`_ and try its
 commands.
 
+Also you can tell noorgtk to start from a sura and aya using command
+line arguments.  For instance ``noorgtk.py 100 3`` goes to the third
+aya of the 100th sura.
+
 
 Adding Translations
 ===================
 Sura and aya hooks can be specified in ``~/.noor`` file and are run
 when a new sura or aya is shown in noorgtk.
 
-The first argument of a hook is sura number.  You can use noor's sura
-hook to start playing quran recitation when noorgtk shows a sura.
-Hook can be specified like::
+The first argument of a sura hook is the sura number.  You can use
+noor's sura hook to start playing quran recitation when noorgtk shows
+a sura.  Hook can be specified like::
 
   [gtk]
-  sura_hook = myprogram
+  sura_hook = my_sura_hook
 
 See ``contrib/playsura`` hook as an example.
 
-Aya hook is run when a new aya is shown (see key-binding section;
+Aya hook is executed when a new aya is shown (see key-binding section;
 next/previous/current aya).  The first argument of an aya hook is sura
 number and the second one is aya number.  An aya hook can be specified
 in gtk section of the config file::
 
   [gtk]
-  sura_hook = myprogram
+  aya_hook = my_aya_hook
 
 
 
                              foreground='#BBBBAA', justification='center')
     tag3 = buffer.create_tag('info', font='mono 13')
     tag4 = buffer.create_tag('copyright', font='15')
-    noor_text = u'\u0646\u0648\u0631'
+    noor_text = _('Noor')
     version = uihelpers._int_to_str(noor.VERSION, arabic=True)
     buffer.insert_with_tags(buffer.get_end_iter(),
                             '\n%s    ' % noor_text, tag1)