From 6e1df2e361a83766f6360f4dfd8325ce3efa6426 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 9 May 2011 22:51:10 +0000 Subject: remove tlpkg/dev/keyword-search, move the docu to tlpkg/doc git-svn-id: svn://tug.org/texlive/trunk@22392 c570f23f-e606-0410-a88d-b1316a301751 --- .../keyword-search/read-dump-and-pretty-print.pl | 52 ---------------------- .../tlpkg/dev/keyword-search/tlmgr-interface.txt | 42 ----------------- .../tlpkg/doc/tlmgr-keyword-search-interface.txt | 42 +++++++++++++++++ 3 files changed, 42 insertions(+), 94 deletions(-) delete mode 100644 Master/tlpkg/dev/keyword-search/read-dump-and-pretty-print.pl delete mode 100644 Master/tlpkg/dev/keyword-search/tlmgr-interface.txt create mode 100644 Master/tlpkg/doc/tlmgr-keyword-search-interface.txt diff --git a/Master/tlpkg/dev/keyword-search/read-dump-and-pretty-print.pl b/Master/tlpkg/dev/keyword-search/read-dump-and-pretty-print.pl deleted file mode 100644 index ca5a7ba7d76..00000000000 --- a/Master/tlpkg/dev/keyword-search/read-dump-and-pretty-print.pl +++ /dev/null @@ -1,52 +0,0 @@ -$^W = 1; -use strict; -# how to read in!!! -my $seikaku; -my $kw_pkg; -my $cz_pkg; -my $foo = `cat tc-dump`; -# the no strict "vars" is *ABSOLUT* necessary otherwise the file is not -# evaluated, no idea why! -no strict "vars"; -eval "$foo"; -use strict "vars"; -# -print_keywords($kw_pkg); -print "\n===================\nprimary characterizations\n"; -walk_cz_tree($cz_pkg->{'primary'}, "PRIM"); -print "\n===================\nsecondary characterizations\n"; -walk_cz_tree($cz_pkg->{'secondary'}, "SEC"); -print "\n===================\nby-function characterizations\n"; -walk_cz_tree($cz_pkg->{'by-function'}, "BFUNC"); - - -sub print_keywords { - my $kw_pkg = shift; - for my $k (keys %$kw_pkg) { - my @pkgl = @{$kw_pkg->{$k}}; - if (defined(@pkgl)) { - print "keyword = $k\n package = @pkgl\n"; - } else { - print "keyword = $k\n package = NO PACKAGE FOUND!\n"; - } - } -} - - -sub walk_cz_tree { - my $cp = shift; - my $prestring = shift; - if (defined($cp->{'_packages_'})) { - my @pkgs = sort @{$cp->{'_packages_'}}; - print "$prestring\n"; - print "--> @pkgs\n"; - } - for my $cz (keys %$cp) { - if ($cz ne '_packages_') { - my $nextstring = "$prestring > $cz"; - my $np = $cp->{$cz}; - &walk_cz_tree($np,$nextstring); - } - } -} - diff --git a/Master/tlpkg/dev/keyword-search/tlmgr-interface.txt b/Master/tlpkg/dev/keyword-search/tlmgr-interface.txt deleted file mode 100644 index 2b955040470..00000000000 --- a/Master/tlpkg/dev/keyword-search/tlmgr-interface.txt +++ /dev/null @@ -1,42 +0,0 @@ -How to interface tlmgr search with keywords - -new search interface: - -tlmgr search - searches the normal way, i.e., pkg names, short/long desc -tlmgr search --file - searches the current --file way, i.e., the list of files of a package -tlmgr search --taxonomy - searches the taxonomy (keyword, functionality, characterization) -tlmgr search --extended - allows full searching (will maybe implemented later) - - ::= --global | --word | --list [keywords|functions|characterizations] - - ::= | - ::= AND | OR | LEFT | RIGHT - keyword= | function= | - characterization= | - package-name= | title= | - description= | file= - - ::= | " > " - ::= - - -defaults = package-names=ARG OR titles=ARG OR descriptions=ARG -AND -> conjunction -OR -> disjunction -LEFT|RIGHT -> parenthesis for grouping of and and or - - may contain wildcards and it is matched in a glob style (no re!!) - - -example - tlmgr search keyword=paragraph AND description=dropped -should give back the lettrine package - - tlmgr search characterization=bibliography -searches for all packages with characterization containing anywhere the string -"bibliography" (case insensitive). - diff --git a/Master/tlpkg/doc/tlmgr-keyword-search-interface.txt b/Master/tlpkg/doc/tlmgr-keyword-search-interface.txt new file mode 100644 index 00000000000..2b955040470 --- /dev/null +++ b/Master/tlpkg/doc/tlmgr-keyword-search-interface.txt @@ -0,0 +1,42 @@ +How to interface tlmgr search with keywords + +new search interface: + +tlmgr search + searches the normal way, i.e., pkg names, short/long desc +tlmgr search --file + searches the current --file way, i.e., the list of files of a package +tlmgr search --taxonomy + searches the taxonomy (keyword, functionality, characterization) +tlmgr search --extended + allows full searching (will maybe implemented later) + + ::= --global | --word | --list [keywords|functions|characterizations] + + ::= | + ::= AND | OR | LEFT | RIGHT + keyword= | function= | + characterization= | + package-name= | title= | + description= | file= + + ::= | " > " + ::= + + +defaults = package-names=ARG OR titles=ARG OR descriptions=ARG +AND -> conjunction +OR -> disjunction +LEFT|RIGHT -> parenthesis for grouping of and and or + + may contain wildcards and it is matched in a glob style (no re!!) + + +example + tlmgr search keyword=paragraph AND description=dropped +should give back the lettrine package + + tlmgr search characterization=bibliography +searches for all packages with characterization containing anywhere the string +"bibliography" (case insensitive). + -- cgit v1.2.3