1. Ali Gholami Rudi
  2. noor

Commits

Ali Gholami Rudi  committed 8c76016

0.3

  • Participants
  • Parent commits 304c2f5
  • Branches default
  • Tags 0.3

Comments (0)

Files changed (4)

File README.txt

View file
 ========
 
 Noor_ is a program written in Python_ for viewing quran.  You can
-specify translation files; The translation of each aya is shown after
-it.  These are the interfaces that come with noor:
+specify translation files; If specified the translation of each aya is
+shown after it.  These are the interfaces that come with noor:
 
 ===========   ===================================================
 Interface     Description
 ============
 
 * Added *noorhtmls* interface for generating html files
-* Changing CGI and GTK interfaces fonts
+* Changing translation font for noorcgi and noorhtmls interfaces
 
 The noorhtmls interface can be used to output quran in html files in a
 directory.  All you should do is to run::
 
   noorhtmls.py output_folder
 
-The ``index.html`` file will contain the sura index and ``001.html``
-through ``114.html`` files will contain the suras.  Note that the
-configurations specified in the ``~/.noor`` file are considered when
-generating the pages.
+The ``index.html`` file will contain the list of suras and
+``001.html`` through ``114.html`` files will contain the suras.  Note
+that the configurations specified in the ``~/.noor`` file are
+considered when generating the pages.
+
+Now you can change the translation font for noorcgi and noorhtmls
+interfaces by setting ``translation_font`` config in the ``html``
+section of ``~/.noor``::
+
+  [html]
+  translation_font = myfont
 
 
 Getting Started
 Changing Font
 -------------
 
-You can change the GTK or CGI fonts in ``~/.noor`` file::
+You can change the GTK or html fonts in ``~/.noor`` file::
 
   [gtk]
   font = nazli 19
 
   [html]
-  font = nazli 5
-  translation_font = nazli 4
+  font = nazli 6
+  translation_font = homa 4
+
+Note that "html" section of config file is applied to both *noorcgi*
+and *noorhtmls* interfaces.
 
 
 noorgtk keys

File docs/index.txt

View file
 noortxt       Outputs a sura to a file
 ===========   ===================================================
 
-You can specify translation files; The translation of each aya is
-shown after it.  Translations can be in two formats.  It can be either
-a zip file in the same format as Zekr_ translation files which can be
-obtained from http://siahe.com/zekr/resources.html or it can be a
-utf-8 text file with translation of each aya in one line.
+You can specify translation files; If specified, the translation of
+each aya is shown after it.  Translations can be in two formats.  It
+can be either a zip file in the same format as Zekr_ translation files
+which can be obtained from http://siahe.com/zekr/resources.html or it
+can be a utf-8 text file with translation of each aya in one line.
 
 Here are a few screenshots_.
 

File docs/todo.txt

View file
 * Using text box instead of a label
 
 
-noorcgi
--------
-
-* Generating static pages
+noorcgi And noorhtmls
+---------------------
 
 
 noortxt

File noortxt.py

View file
 
 
 if __name__ == '__main__':
-    if len(sys.argv) == 1:
+    if len(sys.argv) == 1 or not sys.argv[1].isdigit():
         print 'Usage: %s sura_number [output_file]' % sys.argv[0]
     else:
         number = int(sys.argv[1])