Fonction Scilab
eng - fr


generate_whatis - crée un fichier whatis.html (OBSOLETE)

Librairie

Séquence d'appel

generate_whatis(Path)

Paramètres

Description

Add here a paragraph of the function description. Other paragraph can be added

Add here a paragraph of the function description

Exemple

Add here scilab instructions and comments

Contenu du fichier


//Fonction qui génère un fichier whatis.htm
//à partir de tous les fichiers htm trouvés
//dans le repertoire pointé par Path
function generate_whatis(Path)
   //lisf=return_listfile(Path,'htm')
   lines(0);
   whatis_title='Help chapter'
   head=["<html>"
         "<head>"
         "  <meta http-equiv=""Content-Type"" content=""text/html; charset=ISO-8859-1"">"
         "    <title>"+whatis_title+"</title>"
         "</head>"
         "<body bgcolor=""#FFFFFF"">"
         "<dl>"];
   for i=1:size(lisf,1)
      name=part(lisf(i,1),1:length(lisf(i,1))-4);
      if fileinfo(xml_path+lang+'/'+name+'.xml')==[] then
       lisf(i,2)=name
      else
       lisf(i,2)=return_xml_sdesc(xml_path+lang+'/'+name+'.xml')
      end
      line(i)="<dd><A HREF="""+lisf(i,1)+""">"+name+"</A> - "+lisf(i,2)+"</dd>";
   end
   text = [head;gsort(line,'g','i');"</dl></body></html>"];
   mputl(text,Path+"whatis.htm");
endfunction

Fonction(s) utilisée(s)

Add here the used function name and references

Auteurs

enter here the author name Add here the author references