Ignore:
Timestamp:
07/28/06 17:13:40 (18 years ago)
Author:
smasson
Message:

work on xxx documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/xmldoc/forxxxdoc.sh

    r147 r149  
    2525# 
    2626case "${1}" in 
    27 0101|0201) 
     270101|0201|mouse) 
    2828# screen capture to be commented by frames and callouts images 
    2929capture="figpng/xxx_${1}_org.png" 
     
    7474;; 
    7575figpng/xxx_0201_org.png) 
    76 capture_xsize=1211 #++ should be obtain by parsing identify result 
     76capture_xsize=429 #++ should be obtain by parsing identify result 
    7777capture_ysize=630 #++ should be obtain by parsing identify result 
    7878# 
     
    8282# later in xml as id or label 
    8383# 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 # 
     84zone_nb=10 
     85# 
     86zone_t[1]="Plot type" 
     87zone_l[1]="plottype" 
     88zone_rect[1]="3,24, 97,51" 
     89zone_t[2]="Menu" 
     90zone_l[2]="menu" 
     91zone_rect[2]="108,24, 325,53" 
     92zone_t[3]="OK" 
     93zone_l[3]="ok" 
     94zone_rect[3]="5,59, 44,86" 
     95zone_t[4]="Page layout" 
     96zone_l[4]="pagelayout" 
     97zone_rect[4]="70,59, 193,86" 
     98zone_t[5]="Variables list" 
     99zone_l[5]="variableslist" 
     100zone_rect[5]="209,60, 323,85" 
     101zone_t[6]="Files list" 
     102zone_l[6]="fileslist" 
     103zone_rect[6]="2,95, 344,117" 
     104zone_t[7]="Command text" 
     105zone_l[7]="commandtext" 
     106zone_rect[7]="2,126, 346,160" 
     107zone_t[8]="Calendar" 
     108zone_l[8]="calendar" 
     109zone_rect[8]="2,169, 212,216" 
     110zone_t[9]="Domdef" 
     111zone_l[9]="domdef" 
     112zone_rect[9]="16,227, 308,447" 
     113zone_t[10]="Specifications" 
     114zone_l[10]="specifications" 
     115zone_rect[10]="1,458, 345,580" 
    98116# the next three lines are here to check calcultation of CALSPAIR units 
    99117# see http://www.docbook.org/tdg/en/html/area.html 
    100118# 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}" 
     119zone_t[11]="just to check full size rectangle" 
     120zone_l[11]="check" 
     121zone_rect[11]="0,0 ${capture_xsize},${capture_ysize}" 
     122;; 
     123figpng/xxx_mouse_org.png) 
     124capture_xsize=57 #++ should be obtain by parsing identify result 
     125capture_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 
     132zone_nb=3 
     133zone_t[1]="Left" 
     134zone_l[1]="left" 
     135zone_rect[1]="3,14, 11,21" 
     136zone_t[2]="Middle" 
     137zone_l[2]="middle" 
     138zone_rect[2]="21,14, 28,19" 
     139zone_t[3]="Right" 
     140zone_l[3]="right" 
     141zone_rect[3]="39,14, 46,20" 
    104142;; 
    105143*) 
     
    108146;; 
    109147esac 
     148 
     149 
     150 
    110151 
    111152# 
     
    155196done 
    156197# 
     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... 
     202if [ $1 = mouse ] 
     203then 
     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     
     213fi 
     214# +++ verrue mal codee...  
     215# 
     216# 
    157217# last component of the convert command : the name of the output image 
    158218framecallouts=$(dirname ${capture})/$(basename ${capture} _org.png).png 
Note: See TracChangeset for help on using the changeset viewer.