[GRASS-SVN] r69590 - in grass/trunk: man tools
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 27 17:18:18 PDT 2016
Author: wenzeslaus
Date: 2016-09-27 17:18:18 -0700 (Tue, 27 Sep 2016)
New Revision: 69590
Modified:
grass/trunk/man/build_full_index.py
grass/trunk/man/build_html.py
grass/trunk/man/build_rest.py
grass/trunk/tools/mkhtml.py
Log:
doc: use PostScript instead of Postscript for index pages
Modified: grass/trunk/man/build_full_index.py
===================================================================
--- grass/trunk/man/build_full_index.py 2016-09-27 20:08:58 UTC (rev 69589)
+++ grass/trunk/man/build_full_index.py 2016-09-28 00:18:18 UTC (rev 69590)
@@ -15,13 +15,14 @@
os.chdir(html_dir)
+# TODO: create some master function/dict somewhere
class_labels = {
'd' : 'display',
'db' : 'database',
'g' : 'general',
'i' : 'imagery',
'm' : 'miscellaneous',
- 'ps' : 'postscript',
+ 'ps' : 'PostScript',
'r' : 'raster',
'r3' : '3D raster',
't' : 'temporal',
Modified: grass/trunk/man/build_html.py
===================================================================
--- grass/trunk/man/build_html.py 2016-09-27 20:08:58 UTC (rev 69589)
+++ grass/trunk/man/build_html.py 2016-09-28 00:18:18 UTC (rev 69590)
@@ -167,7 +167,7 @@
<tr>
<td width="33%" valign="top" class="box"><h3> Cartography</h3>
<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>
</ul>
</td>
@@ -435,6 +435,8 @@
def to_title(name):
"""Convert name of command class/family to form suitable for title"""
+ if name == 'PostScript':
+ return name
return name.capitalize()
############################################################################
Modified: grass/trunk/man/build_rest.py
===================================================================
--- grass/trunk/man/build_rest.py 2016-09-27 20:08:58 UTC (rev 69589)
+++ grass/trunk/man/build_rest.py 2016-09-28 00:18:18 UTC (rev 69590)
@@ -156,7 +156,7 @@
.. toctree::
:maxdepth: 1
- Postscript commands manual <postscript>
+ PostScript commands manual <postscript>
""")
Modified: grass/trunk/tools/mkhtml.py
===================================================================
--- grass/trunk/tools/mkhtml.py 2016-09-27 20:08:58 UTC (rev 69589)
+++ grass/trunk/tools/mkhtml.py 2016-09-28 00:18:18 UTC (rev 69590)
@@ -269,11 +269,12 @@
}
-# TODO: special code for ps/postscript/PostScirpt
def to_title(name):
"""Convert name of command class/family to form suitable for title"""
if name == 'raster3d':
return '3D raster'
+ elif name == 'postscript':
+ return 'PostScript'
else:
return name.capitalize()
More information about the grass-commit
mailing list