Bläddra i källkod

g.mkfontcap: update description & manual page

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54649 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 år sedan
förälder
incheckning
21fb03aae3
2 ändrade filer med 10 tillägg och 7 borttagningar
  1. 8 5
      general/g.mkfontcap/g.mkfontcap.html
  2. 2 2
      general/g.mkfontcap/main.c

+ 8 - 5
general/g.mkfontcap/g.mkfontcap.html

@@ -1,6 +1,6 @@
 <h2>DESCRIPTION</h2>
 <h2>DESCRIPTION</h2>
 
 
-<p><em>g.mkfontcap</em> is a utilty to generate a GRASS font configuration file
+<em>g.mkfontcap</em> is a utilty to generate a GRASS font configuration file
 ("fontcap") containing details of the fonts available on the current system.
 ("fontcap") containing details of the fonts available on the current system.
 If <a href="http://freetype.sourceforge.net/">Freetype</a> is not installed,
 If <a href="http://freetype.sourceforge.net/">Freetype</a> is not installed,
 the font list will be limited to the set of Hershey stroke fonts supplied
 the font list will be limited to the set of Hershey stroke fonts supplied
@@ -18,13 +18,13 @@ fonts. The list of directories scanned is currently:
 </pre></div>
 </pre></div>
 <p>These correspond to directories where fonts can be found on some common
 <p>These correspond to directories where fonts can be found on some common
 operating systems. Extra directories to search can easily by added using the
 operating systems. Extra directories to search can easily by added using the
-<em>extradirs</em> parameter, which accepts a comma-separated list. An extra
+<b>extradirs</b> parameter, which accepts a comma-separated list. An extra
 directory may optionally contain an environment variable <em>at the start</em> 
 directory may optionally contain an environment variable <em>at the start</em> 
 of the string, if enclosed in ${xxx} syntax (see examples above).
 of the string, if enclosed in ${xxx} syntax (see examples above).
 
 
 <p>The module will normally write to the standard fontcap file location,
 <p>The module will normally write to the standard fontcap file location,
 <tt>$GISBASE/etc/fontcap</tt>. If the environment variable
 <tt>$GISBASE/etc/fontcap</tt>. If the environment variable
-<strong>GRASS_FONT_CAP</strong> is set, the output will instead be written 
+<tt>GRASS_FONT_CAP</tt> is set, the output will instead be written 
 to the file specified by that variable. This is useful if you don't have
 to the file specified by that variable. This is useful if you don't have
 permission to modify <tt>$GISBASE/etc/fontcap</tt>: in this case you can
 permission to modify <tt>$GISBASE/etc/fontcap</tt>: in this case you can
 use e.g.
 use e.g.
@@ -44,10 +44,13 @@ followed by Freetype) and within each type by the short name of the font.
 
 
 <h2>SEE ALSO</h2>
 <h2>SEE ALSO</h2>
  
  
-<em><a href="d.font.html">d.font</a></em>
+<em>
+<a href="d.font.html">d.font</a>
+</em>
 
 
 <h2>AUTHOR</h2>
 <h2>AUTHOR</h2>
 
 
 Paul Kelly
 Paul Kelly
 
 
-<p><i>Last changed: $Date$</i>
+<p>
+<i>Last changed: $Date$</i>

+ 2 - 2
general/g.mkfontcap/main.c

@@ -68,10 +68,9 @@ int main(int argc, char *argv[])
 
 
     module = G_define_module();
     module = G_define_module();
     G_add_keyword(_("general"));
     G_add_keyword(_("general"));
-    G_add_keyword(_("gui"));
     module->description =
     module->description =
 	_("Generates the font configuration file by scanning various directories "
 	_("Generates the font configuration file by scanning various directories "
-	  "for fonts");
+	  "for fonts.");
 
 
     overwrite = G_define_flag();
     overwrite = G_define_flag();
     overwrite->key = 'o';
     overwrite->key = 'o';
@@ -88,6 +87,7 @@ int main(int argc, char *argv[])
     extradirs->key = "extradirs";
     extradirs->key = "extradirs";
     extradirs->type = TYPE_STRING;
     extradirs->type = TYPE_STRING;
     extradirs->required = NO;
     extradirs->required = NO;
+    extradirs->label = _("List of extra directories to scan");
     extradirs->description =
     extradirs->description =
 	_("Comma-separated list of extra directories to scan for "
 	_("Comma-separated list of extra directories to scan for "
 	  "Freetype-compatible fonts as well as the defaults (see documentation)");
 	  "Freetype-compatible fonts as well as the defaults (see documentation)");