Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/graph/doc/jwebfrob.pl @ 14

Last change on this file since 14 was 12, checked in by landauf, 17 years ago

added boost

  • Property svn:executable set to *
File size: 1.8 KB
Line 
1
2
3$lastpage = 0;
4$thispage = 1;
5$counter =  1;
6$alphabet = "\@abcdefghijklmnopqrstuvwxyz";
7$Alphabet = "\@ABCDEFGHIJKLMNOPQRSTUVWXYZ";
8$out = "";
9$saved_full = "";
10$saved_empty = "";
11
12while(<>) {
13
14# These changes are so that it works when we aren't using hyperref
15
16#  if (/(\\newlabel.*\{\{)([0-9]+)(\}\{)([0-9ivx]+)(\}.*JWebCtr\.)([0-9]+)(.*)/) {
17  if (/\\newlabel\{sec:.*/) {
18    # make sure not to munge normal (non jweb part) section labels
19    print ;
20  } elsif (/\\newlabel\{class:.*/) {
21    # make sure not to munge normal (non jweb part) class labels
22    print ;
23  } elsif (/\\newlabel\{tab:.*/) {
24    # make sure not to munge normal (non jweb part) table labels
25    print ;
26  } elsif (/\\newlabel\{concept:.*/) {
27    # make sure not to munge normal (non jweb part) concept labels
28    print ;
29  } elsif (/\\newlabel\{fig:.*/) {
30    # make sure not to munge normal (non jweb part) class labels
31    print ;
32  } elsif (/(\\newlabel.*\{\{)([0-9\.]+)(\}\{)([0-9ivx]+)(\}.*)(.*)/) {
33    $thispage = $4;
34
35    if ($thispage ne $lastpage) {
36     
37      $counter = 1;
38
39      print $saved_empty;
40
41#      $saved_full = "$1".substr($alphabet,$counter,1)."$3$4$5$6$7\n";
42#      $saved_empty = "$1"."$3$4$5$6$7\n";
43      $saved_full = "$1".substr($alphabet,$counter,1)."$3$4$5\n";
44      $saved_empty = "$1"."$3$4$5\n";
45
46    } else {
47      print $saved_full;
48#      print "$1".substr($alphabet,$counter,1)."$3$4$5$counter$7\n";
49      print "$1".substr($alphabet,$counter,1)."$3$4$5\n";
50      $saved_full = "";
51      $saved_empty = "";
52    }
53
54    $lastpage = $thispage;
55    $counter++;
56
57  } else {
58    print ;
59  }
60}
61print $saved_empty;
62
63
64
65# get a line
66# cases
67# - ref
68#   - if it is first, save off someplace
69#     - if there is a first saved, dump the empty version
70#   - else
71#     - if there is a first saved, dump the non empty version
72# - not a ref
Note: See TracBrowser for help on using the repository browser.