Subversion Repositories wimsdev

Rev

Rev 15715 | Rev 15723 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15715 Rev 15722
Line 46... Line 46...
46
## a:link {color:#004077;text-decoration:none;cursor:pointer;}
46
## a:link {color:#004077;text-decoration:none;cursor:pointer;}
47
## a:hover {color:#dd6300;}
47
## a:hover {color:#dd6300;}
48
## a:visited {color:#004077;}
48
## a:visited {color:#004077;}
49
##</style>"> $html
49
##</style>"> $html
50
 
50
 
51
echo "!!generated by canvasinfo.sh | Do NOT Modify here.
51
echo "!!generated by Misc/canvasdraw/canvasinfo.sh | Do NOT Modify here.
52
<div class='wims_search_engine'><div class='wimscenter'>
52
<div class='wims_search_engine'><div class='wimscenter'>
-
 
53
  <label for='search'>enter a command name</label>
53
  <input type='search' id='search' placeholder='enter a command name'
54
  <input type='search' id='search'
54
         onkeydown='javascript:if(event.keyCode == 13){look();}'
55
         onkeydown='javascript:if(event.keyCode == 13){look();}'
55
  /><button class='wims_button icon_button' type='submit' onclick='javascript:look();'>
56
  /><button class='wims_button icon_button' type='submit' onclick='javascript:look();'>
56
  <span class='Searching'>\$wims_name_search</span></button>
57
  <span class='Searching'>\$wims_name_search</span></button>
57
</div></div>
58
</div></div>
58
<h2 class='wims_title'>Implemented canvasdraw commands ($datum)</h2>
59
<h2 class='wims_title'>Implemented canvasdraw commands ($datum)</h2>
Line 62... Line 63...
62
p=0
63
p=0
63
echo "" > $tmp
64
echo "" > $tmp
64
cntex=0
65
cntex=0
65
while read line ; do
66
while read line ; do
66
  chk=`echo "$line" | grep "@"`
67
  chk=`echo "$line" | grep "@"`
-
 
68
  # Lines starting with "@" are docstrings (z test if string empty)
67
  if [ ! -z "$chk" ] ; then
69
  if [ ! -z "$chk" ] ; then
68
    chk=`echo "$chk" | grep @%`
70
    chk=`echo "$chk" | grep @%`
-
 
71
    # if it's not a docstring samples
69
    if [ -z "$chk" ] ; then
72
    if [ -z "$chk" ] ; then
-
 
73
      # if it's first line
70
      if [ $p -eq 0 ]; then
74
      if [ $p -eq 0 ]; then
71
        string=`echo "$line" | tr '@' ' '`
75
        string=`echo "$line" | tr '@' ' '`
72
        idx=`echo "$string" | awk '{ print $1 }'`
76
        idx=`echo "$string" | awk '{ print $1 }'`
73
        echo ",'$idx'" >> $keys
77
        echo ",'$idx'" >> $keys
74
 
-
 
75
        echo "<li class='card cell'><div class='card-section'>
78
        echo "<li class='card cell'><div class='card-section'>" >> $phtml
76
        <a id='${idx}_top' href='#$idx'>$idx</a></div></li>" >> $phtml
79
        echo "<a id='${idx}_top' href='#$idx'>$idx</a>" >> $phtml
77
        echo "<h3 id='$idx'>$idx <a href='#${idx}_top' title='return at the command list'>&#8593;</a></h3>
80
        echo "<h3 id='$idx'>$idx <a href='#${idx}_top' title='return at the command list'>&#8593;</a></h3>
78
        <code>$string</code>
81
        <code>$string</code>
79
        <ul>" >> $tmp
82
        <ul>" >> $tmp
80
        p=1
83
        p=1
-
 
84
      # it's not the first line
81
      else
85
      else
82
        p=2
86
        p=2
83
        alt=`echo "$line" | grep "@ alternative:" | awk -F'alternative:' '{ print $2 }' | tr -d '[:blank:]'`
87
        alt=`echo "$line" | grep "@ alternative:" | awk -F'alternative:' '{ print $2 }' | tr -d '[:blank:]'`
-
 
88
        # it's a command alias
84
        if [ ! -z $alt ] ; then
89
        if [ ! -z $alt ] ; then
85
          echo ",'$alt'" >> $keys
90
          echo ",'$alt'" >> $keys
86
          echo "<td><a id='${alt}_top' href='#$idx'>$alt</a></td>" >> $phtml
91
          echo "<td><a id='${alt}_top' href='#$idx'>$alt</a></td>" >> $phtml
87
          echo "<li><span>alternative command: <a id='$alt' href='#${alt}_top'><code>$alt</code></a></span></li>" >> $tmp
92
          echo "<li><span>alternative command: <a id='$alt' href='#${alt}_top'><code>$alt</code></a></span></li>" >> $tmp
88
        else
93
        else
Line 117... Line 122...
117
      if [ $cntex -gt 0 ]; then
122
      if [ $cntex -gt 0 ]; then
118
        echo "</li>" >> $tmp
123
        echo "</li>" >> $tmp
119
      fi
124
      fi
120
      cntex=0
125
      cntex=0
121
      echo "</ul>" >> $tmp
126
      echo "</ul>" >> $tmp
-
 
127
      echo "</div></li>" >> $phtml
122
    fi
128
    fi
123
    p=0
129
    p=0
124
  fi
130
  fi
125
done < $in
131
done < $in
126
 
132