converts xml Scilab help files to Microsoft Compressed HTML format (Windows)
xmltochm(dirs [,titles [,dir_language [default_language]]]]])
dirs vector of strings: | |
---|---|
a set of directory paths for which html manuals are to be generated or [] |
:
converts xml Scilab help files contained in a set of directories into chm files.
// example_1/
// `-- help
// |-- en_US
// | |-- example_1_function_1.xml
// | |-- example_1_function_2.xml
// | `-- example_1_function_3.xml
// `-- fr_FR
// |-- example_1_function_1.xml
// |-- example_1_function_2.xml
// `-- example_1_function_3.xml
// `-- zh_TW
// |-- example_1_function_1.xml
// |-- example_1_function_2.xml
// `-- example_1_function_3.xml
my_module_path = `pathconvert`_(SCI+'/modules/helptools/examples/example_1',%f,%f)
// Build the french help
// =============================================================================
my_french_help_dir = my_module_path+'/help/fr_FR';
my_french_help_title = 'Example 1 [fr_FR]';
res = xmltochm(my_french_help_dir,my_french_help_title,'fr_FR');
if `getos`_() == 'Windows' then
dos('start ' + res);
end
// Build the english help
// =============================================================================
my_english_help_dir = my_module_path+'/help/en_US';
my_english_help_title = 'Example 1 [en_US]';
res = xmltochm(my_english_help_dir,my_english_help_title,'en_US');
if `getos`_() == 'Windows' then
dos('start ' + res);
end
// Build the chinese help
// =============================================================================
my_chinese_help_dir = my_module_path+'/help/zh_TW';
my_chinese_help_title = 'Example 1 [zh_TW]';
res = xmltochm(my_chinese_help_dir,my_chinese_help_title,'zh_TW');
if `getos`_() == 'Windows' then
dos('start ' + res);
end