[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Menu: Web Browser vs. Web browsers



On Fri, Oct 12, 2001 at 12:05:51AM +0200, J.H.M. Dassen (Ray) wrote:
> On Wed, Oct 10, 2001 at 20:56:23 -0400, Duncan Findlay wrote:
> > This generates 2 menu entries in my Apps/Net menu, rather than one.  Which
> > is correct, "Web Browser" or "Web browsers"? -- I guess I'd vote for the
> > former.
> 
> Given the precedent of "Apps", "Games", "Databases", "Editors" etc., my vote
> goes to the plural.

The following shell script can be used to find all hints
of all installed packages:

    #! /bin/sh
    # extract-hints - extract hint values from Debian menu files
    # Copyright 2001 Jochen Voss <voss@mathematik.uni-kl.de>
    # This script may be distributed under the GPL

    systemhintdir=/usr/lib/menu
    etchintdir=/etc/menu

    outfile=/tmp/extract-hints.$$
    rm -f $outfile
    touch $outfile
    trap "rm -f $outfile" 0

    # gather data
    for name in $(find $systemhintdir -type f \! -name README)\
		    $(find $etchintdir -type f \! -name README); do
	sed -n -e "s/  / /g" \
	       -e ": START" \
	       -e "/\\\\$/ N" \
	       -e "s/ *\\\\\\n */ /g" \
	       -e "t START" \
	       -e "/hints/ p" $name >>$outfile
    done

    # extract hints
    echo "  count hint"
    sed -n -e 's/.*hints="\([^"]*\)".*/\1/p' \
	   -e 's/.*hints=\([^ ]*\) .*/\1/p' $outfile \
      | sed $'s/,/\\\n/g' | sort | uniq -c

At my system it outputs

  count hint
      5 Admin
      1 Bitmap
      1 Bug reporting
      4 Calculators
      1 Characters
      3 Clocks
      1 Color
      3 Config
      1 DVI
      1 Debuggers
      1 Dictionary
      1 Drawing
      1 English
      1 Environments
      2 File managers
      2 Fonts
      1 German
     30 Gnome
      1 Graphs
      2 Images
      3 Mail
      8 Monitoring
      1 News
      1 PDF
      2 Player
      1 PostScript
      1 Screenshot
      3 Selectors
      1 Terminal
      4 Text
      1 Translation
      1 Troff
      1 Vector
      1 Web Browser
      1 Web Browser Manual
      4 apt

So currently singular and plural forms are mixed.
The menu policy really should include some hints about hints.

Jochen
-- 
                                         Omm
                                      (0)-(0)
http://www.mathematik.uni-kl.de/~wwwstoch/voss/privat.html

Attachment: pgpFtjsrXopkQ.pgp
Description: PGP signature


Reply to: