Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.0 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Ajuda Scilab >> Gerenciamento de ajuda online > xmltojar

xmltojar

converte arquivos de ajuda xml do Scilab para formato javaHelp

Seqüência de Chamamento

xmltojar(dirs [,titles [,dir_language [default_language]]]]])

Parâmetros

dirs

vetor de strings: um conjunto de endereços de diretórios para os quais os manuais html devem ser gerados ou []

titles

vetor de strings: títulos associados a endereços de diretórios ou []

dir_language

vetor de strings: idiomas associados a endereços de diretórios ou []

default_language

vetor de strings: idiomas padrões associados aos endereços de diretórios ou []. Se um arquivo XML estiver faltando em dir_language, ele é copiado de default_language.

Descrição

Converte arquivos de ajuda Scilab contidos em um conjunto de diretórios para formato jar.

Exemplos

// 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)

// Construindo a ajuda em francês
// =============================================================================
my_french_help_dir    =  my_module_path+'/help/fr_FR';
my_french_help_title  =  'Example 1 [fr_FR]';
xmltojar(my_french_help_dir,my_french_help_title,'fr_FR');

// Construindo a ajuda em inglês
// =============================================================================
my_english_help_dir   =  my_module_path+'/help/en_US';
my_english_help_title =  'Example 1 [en_US]';
xmltojar(my_english_help_dir,my_english_help_title,'en_US');

// Construindo a ajuda em chinês
// =============================================================================
my_chinese_help_dir   =  my_module_path+'/help/zh_TW';
my_chinese_help_title =  'Example 1 [zh_TW]';
xmltojar(my_chinese_help_dir,my_chinese_help_title,'zh_TW');

// Adicionando capítulos de ajuda em francês, inglês e chinês
// =============================================================================

if getlanguage() == 'fr_FR' then
  add_help_chapter(my_french_help_title,my_module_path+"/jar");

elseif getlanguage() == 'zh_TW' then
  add_help_chapter(my_chinese_help_title,my_module_path+"/jar");

else
  add_help_chapter(my_english_help_title,my_module_path+"/jar");
end

// Ver o resultado no navegador de ajuda
// =============================================================================
help();

// Deletando capítulos de ajuda em francês e inglês
// =============================================================================
if getlanguage() == 'fr_FR' then
  del_help_chapter(my_french_help_title);
else
  del_help_chapter(my_english_help_title);
end
Report an issue
<< xmltohtml Gerenciamento de ajuda online xmltopdf >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Oct 01 17:39:55 CEST 2012