New serie of images in the graphic help. 48/7748/3
authorSylvestre Ledru <sylvestre.ledru@scilab-enterprises.com>
Sat, 30 Jun 2012 23:14:01 +0000 (01:14 +0200)
committerVincent COUVERT <vincent.couvert@scilab.org>
Tue, 3 Jul 2012 10:12:00 +0000 (12:12 +0200)
commit6292183f6e105597d766cb7275793e1458a04db6
tree2fb244cf9db56c261395d65ffb2f13a48f707162
parent26c33817f511fbeafb75bbeefd0f9907a7288008
New serie of images in the graphic help.

For the color_management, I use directly all examples.

The script was the following:

function reuseExampleForImage(fileName)
disp(fileName)
doc = xmlRead(fileName);

xp = xmlXPath(doc, "//foo:refsection[foo:title=''Examples'']",["foo" "http://docbook.org/ns/docbook"]);
if (xp.size > 0)
Example=xp(1).children(2).content;
if length(Example)>0
    root = xmlElement(doc, "refsection");

    root.children(1) = "<title>Sample</title>";
    root.children(2) = xmlElement(doc, "scilab:image");
    root.children(2).content = Example;
    xmlDump(root);

doc.root.children(4.9)=root;
xmlWrite(doc);
end
end
xmlDelete(doc);
endfunction

listHelp=mgetl("helpfile.txt");

for i = 1 : size(listHelp,'*')
  reuseExampleForImage(listHelp(i));
end

Quick and dirty!!

Change-Id: I77fe67e3bec45ceef5af784d383a626441a3231d
44 files changed:
scilab/modules/graphics/help/en_US/2d_plot/champ.xml
scilab/modules/graphics/help/en_US/2d_plot/champ1.xml
scilab/modules/graphics/help/en_US/2d_plot/champ_properties.xml
scilab/modules/graphics/help/en_US/annotation/captions.xml
scilab/modules/graphics/help/en_US/annotation/legend.xml
scilab/modules/graphics/help/en_US/annotation/legends.xml
scilab/modules/graphics/help/en_US/annotation/title.xml
scilab/modules/graphics/help/en_US/annotation/xlabel.xml
scilab/modules/graphics/help/en_US/annotation/xtitle.xml
scilab/modules/graphics/help/en_US/axes_operations/graduate.xml
scilab/modules/graphics/help/en_US/axes_operations/isoview.xml
scilab/modules/graphics/help/en_US/axes_operations/replot.xml
scilab/modules/graphics/help/en_US/axes_operations/sca.xml
scilab/modules/graphics/help/en_US/axes_operations/sda.xml
scilab/modules/graphics/help/en_US/axes_operations/subplot.xml
scilab/modules/graphics/help/en_US/axis/drawaxis.xml
scilab/modules/graphics/help/en_US/color_management/addcolor.xml
scilab/modules/graphics/help/en_US/color_management/autumncolormap.xml
scilab/modules/graphics/help/en_US/color_management/bonecolormap.xml
scilab/modules/graphics/help/en_US/color_management/color.xml
scilab/modules/graphics/help/en_US/color_management/color_list.xml
scilab/modules/graphics/help/en_US/color_management/colorbar.xml
scilab/modules/graphics/help/en_US/color_management/colordef.xml
scilab/modules/graphics/help/en_US/color_management/colormap.xml
scilab/modules/graphics/help/en_US/color_management/coolcolormap.xml
scilab/modules/graphics/help/en_US/color_management/coppercolormap.xml
scilab/modules/graphics/help/en_US/color_management/getcolor.xml
scilab/modules/graphics/help/en_US/color_management/graycolormap.xml
scilab/modules/graphics/help/en_US/color_management/hotcolormap.xml
scilab/modules/graphics/help/en_US/color_management/hsv2rgb.xml
scilab/modules/graphics/help/en_US/color_management/hsvcolormap.xml
scilab/modules/graphics/help/en_US/color_management/jetcolormap.xml
scilab/modules/graphics/help/en_US/color_management/name2rgb.xml
scilab/modules/graphics/help/en_US/color_management/oceancolormap.xml
scilab/modules/graphics/help/en_US/color_management/pinkcolormap.xml
scilab/modules/graphics/help/en_US/color_management/rainbowcolormap.xml
scilab/modules/graphics/help/en_US/color_management/rgb2name.xml
scilab/modules/graphics/help/en_US/color_management/springcolormap.xml
scilab/modules/graphics/help/en_US/color_management/summercolormap.xml
scilab/modules/graphics/help/en_US/color_management/whitecolormap.xml
scilab/modules/graphics/help/en_US/color_management/wintercolormap.xml
scilab/modules/graphics/help/en_US/polygon/xpoly.xml
scilab/modules/graphics/help/en_US/transform/move.xml
scilab/modules/graphics/help/en_US/transform/rotate.xml