Changeset 149 for trunk/SRC/Documentation/xmldoc/forxxxdoc.sh
- Timestamp:
- 07/28/06 17:13:40 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/xmldoc/forxxxdoc.sh
r147 r149 25 25 # 26 26 case "${1}" in 27 0101|0201 )27 0101|0201|mouse) 28 28 # screen capture to be commented by frames and callouts images 29 29 capture="figpng/xxx_${1}_org.png" … … 74 74 ;; 75 75 figpng/xxx_0201_org.png) 76 capture_xsize= 1211#++ should be obtain by parsing identify result76 capture_xsize=429 #++ should be obtain by parsing identify result 77 77 capture_ysize=630 #++ should be obtain by parsing identify result 78 78 # … … 82 82 # later in xml as id or label 83 83 # now they are only here to remind us what we do 84 zone_nb=4 85 zone_t[1]="Page layout" 86 zone_l[1]="pagelayout" 87 zone_rect[1]="70,55 200,80" 88 zone_t[2]="Calendar" 89 zone_l[2]="calendar" 90 zone_rect[2]="10,140 230,180" 91 zone_t[3]="Domain" 92 zone_l[3]="domain" 93 zone_rect[3]="10,200 300,400" 94 zone_t[4]="Specify" 95 zone_l[4]="specify" 96 zone_rect[4]="10,450 350,500" 97 # 84 zone_nb=10 85 # 86 zone_t[1]="Plot type" 87 zone_l[1]="plottype" 88 zone_rect[1]="3,24, 97,51" 89 zone_t[2]="Menu" 90 zone_l[2]="menu" 91 zone_rect[2]="108,24, 325,53" 92 zone_t[3]="OK" 93 zone_l[3]="ok" 94 zone_rect[3]="5,59, 44,86" 95 zone_t[4]="Page layout" 96 zone_l[4]="pagelayout" 97 zone_rect[4]="70,59, 193,86" 98 zone_t[5]="Variables list" 99 zone_l[5]="variableslist" 100 zone_rect[5]="209,60, 323,85" 101 zone_t[6]="Files list" 102 zone_l[6]="fileslist" 103 zone_rect[6]="2,95, 344,117" 104 zone_t[7]="Command text" 105 zone_l[7]="commandtext" 106 zone_rect[7]="2,126, 346,160" 107 zone_t[8]="Calendar" 108 zone_l[8]="calendar" 109 zone_rect[8]="2,169, 212,216" 110 zone_t[9]="Domdef" 111 zone_l[9]="domdef" 112 zone_rect[9]="16,227, 308,447" 113 zone_t[10]="Specifications" 114 zone_l[10]="specifications" 115 zone_rect[10]="1,458, 345,580" 98 116 # the next three lines are here to check calcultation of CALSPAIR units 99 117 # see http://www.docbook.org/tdg/en/html/area.html 100 118 # if you want to use it, please add one to zone_nb 101 zone_t[5]="just to check full size rectangle" 102 zone_l[5]="check" 103 zone_rect[5]="0,0 ${capture_xsize},${capture_ysize}" 119 zone_t[11]="just to check full size rectangle" 120 zone_l[11]="check" 121 zone_rect[11]="0,0 ${capture_xsize},${capture_ysize}" 122 ;; 123 figpng/xxx_mouse_org.png) 124 capture_xsize=57 #++ should be obtain by parsing identify result 125 capture_ysize=82 #++ should be obtain by parsing identify result 126 # 127 # description of frames (title, xmin,ymin, xmax,ymax) 128 # nb : title and label are not yet used but they may be added in a kind of 129 # comments 130 # later in xml as id or label 131 # now they are only here to remind us what we do 132 zone_nb=3 133 zone_t[1]="Left" 134 zone_l[1]="left" 135 zone_rect[1]="3,14, 11,21" 136 zone_t[2]="Middle" 137 zone_l[2]="middle" 138 zone_rect[2]="21,14, 28,19" 139 zone_t[3]="Right" 140 zone_l[3]="right" 141 zone_rect[3]="39,14, 46,20" 104 142 ;; 105 143 *) … … 108 146 ;; 109 147 esac 148 149 150 110 151 111 152 # … … 155 196 done 156 197 # 198 # 199 # +++ verrue mal codee... 200 # dans le cas mouse, je ne veux pas les cardes 201 # a voir si on integre proprement ou si on vire... 202 if [ $1 = mouse ] 203 then 204 cmd="convert -size ${capture_xsize}x${capture_ysize} ${capture}" 205 iz=1 206 while [ ${iz} -le ${zone_nb} ] 207 do 208 leftcorner=$(echo ${zone_rect[${iz}]} | awk '{print $1}') 209 cmd="${cmd} -draw \"image over ${leftcorner} ${callout_xsize},${callout_ysize} 'images/callouts/${iz}.png'\"" 210 iz=$(( ${iz} + 1 )) 211 done 212 213 fi 214 # +++ verrue mal codee... 215 # 216 # 157 217 # last component of the convert command : the name of the output image 158 218 framecallouts=$(dirname ${capture})/$(basename ${capture} _org.png).png
Note: See TracChangeset
for help on using the changeset viewer.