فهرست منبع

doc: use PostScript instead of Postscript for index pages

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69590 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 8 سال پیش
والد
کامیت
043624007e
4فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 2 1
      man/build_full_index.py
  2. 3 1
      man/build_html.py
  3. 1 1
      man/build_rest.py
  4. 2 1
      tools/mkhtml.py

+ 2 - 1
man/build_full_index.py

@@ -15,13 +15,14 @@ if len(sys.argv) > 1:
 
 
 os.chdir(html_dir)
 os.chdir(html_dir)
 
 
+# TODO: create some master function/dict somewhere
 class_labels = {
 class_labels = {
     'd' : 'display',
     'd' : 'display',
     'db' : 'database',
     'db' : 'database',
     'g' : 'general',
     'g' : 'general',
     'i' : 'imagery',
     'i' : 'imagery',
     'm' : 'miscellaneous',
     'm' : 'miscellaneous',
-    'ps' : 'postscript',
+    'ps' : 'PostScript',
     'r' : 'raster',
     'r' : 'raster',
     'r3' : '3D raster',
     'r3' : '3D raster',
     't' : 'temporal',
     't' : 'temporal',

+ 3 - 1
man/build_html.py

@@ -167,7 +167,7 @@ r"""<!-- the files grass${grass_version_major}.html & helptext.html file live in
     <tr>
     <tr>
       <td width="33%" valign="top" class="box"><h3>&nbsp;Cartography</h3>
       <td width="33%" valign="top" class="box"><h3>&nbsp;Cartography</h3>
        <ul>
        <ul>
-        <li class="box"><a href="postscript.html">Postscript commands manual</a></li>
+        <li class="box"><a href="postscript.html">PostScript commands manual</a></li>
         <li class="box"><a href="g.gui.psmap.html">wxGUI Cartographic Composer</a></li>
         <li class="box"><a href="g.gui.psmap.html">wxGUI Cartographic Composer</a></li>
        </ul>
        </ul>
       </td>
       </td>
@@ -435,6 +435,8 @@ def get_desc(cmd):
 
 
 def to_title(name):
 def to_title(name):
     """Convert name of command class/family to form suitable for title"""
     """Convert name of command class/family to form suitable for title"""
+    if name == 'PostScript':
+        return name
     return name.capitalize()
     return name.capitalize()
 
 
 ############################################################################
 ############################################################################

+ 1 - 1
man/build_rest.py

@@ -156,7 +156,7 @@ Printing
 .. toctree::
 .. toctree::
     :maxdepth: 1
     :maxdepth: 1
     
     
-        Postscript commands manual <postscript>
+        PostScript commands manual <postscript>
 
 
 """)
 """)
 
 

+ 2 - 1
tools/mkhtml.py

@@ -269,11 +269,12 @@ index_names = {
     }
     }
 
 
 
 
-# TODO: special code for ps/postscript/PostScirpt
 def to_title(name):
 def to_title(name):
     """Convert name of command class/family to form suitable for title"""
     """Convert name of command class/family to form suitable for title"""
     if name == 'raster3d':
     if name == 'raster3d':
         return '3D raster'
         return '3D raster'
+    elif name == 'postscript':
+        return 'PostScript'
     else:
     else:
         return name.capitalize()
         return name.capitalize()