* Create a dedicated category for libraries functions (See bug #11642) 47/8547/2
Sylvestre Ledru [Sun, 5 Aug 2012 19:48:51 +0000 (21:48 +0200)]
Change-Id: I2ac06e9c3d469b790a1a35a671a633e49fb78358

50 files changed:
scilab/CHANGES_5.4.X
scilab/modules/functions/help/en_US/genlib.xml [deleted file]
scilab/modules/functions/help/en_US/get_function_path.xml [deleted file]
scilab/modules/functions/help/en_US/lib.xml [deleted file]
scilab/modules/functions/help/en_US/libraries/CHAPTER [new file with mode: 0644]
scilab/modules/functions/help/en_US/libraries/genlib.xml [new file with mode: 0644]
scilab/modules/functions/help/en_US/libraries/get_function_path.xml [new file with mode: 0644]
scilab/modules/functions/help/en_US/libraries/lib.xml [new file with mode: 0644]
scilab/modules/functions/help/en_US/libraries/librarieslist.xml [new file with mode: 0644]
scilab/modules/functions/help/en_US/libraries/library.xml [new file with mode: 0644]
scilab/modules/functions/help/en_US/libraries/libraryinfo.xml [new file with mode: 0644]
scilab/modules/functions/help/en_US/libraries/whereis.xml [new file with mode: 0644]
scilab/modules/functions/help/en_US/librarieslist.xml [deleted file]
scilab/modules/functions/help/en_US/library.xml [deleted file]
scilab/modules/functions/help/en_US/libraryinfo.xml [deleted file]
scilab/modules/functions/help/en_US/whereis.xml [deleted file]
scilab/modules/functions/help/fr_FR/libraries/CHAPTER [new file with mode: 0644]
scilab/modules/functions/help/fr_FR/libraries/whereis.xml [new file with mode: 0644]
scilab/modules/functions/help/fr_FR/whereis.xml [deleted file]
scilab/modules/functions/help/ja_JP/genlib.xml [deleted file]
scilab/modules/functions/help/ja_JP/get_function_path.xml [deleted file]
scilab/modules/functions/help/ja_JP/lib.xml [deleted file]
scilab/modules/functions/help/ja_JP/libraries/CHAPTER [new file with mode: 0644]
scilab/modules/functions/help/ja_JP/libraries/genlib.xml [new file with mode: 0644]
scilab/modules/functions/help/ja_JP/libraries/get_function_path.xml [new file with mode: 0644]
scilab/modules/functions/help/ja_JP/libraries/lib.xml [new file with mode: 0644]
scilab/modules/functions/help/ja_JP/libraries/librarieslist.xml [new file with mode: 0644]
scilab/modules/functions/help/ja_JP/libraries/library.xml [new file with mode: 0644]
scilab/modules/functions/help/ja_JP/libraries/libraryinfo.xml [new file with mode: 0644]
scilab/modules/functions/help/ja_JP/libraries/whereis.xml [new file with mode: 0644]
scilab/modules/functions/help/ja_JP/librarieslist.xml [deleted file]
scilab/modules/functions/help/ja_JP/library.xml [deleted file]
scilab/modules/functions/help/ja_JP/libraryinfo.xml [deleted file]
scilab/modules/functions/help/ja_JP/whereis.xml [deleted file]
scilab/modules/functions/help/pt_BR/genlib.xml [deleted file]
scilab/modules/functions/help/pt_BR/get_function_path.xml [deleted file]
scilab/modules/functions/help/pt_BR/lib.xml [deleted file]
scilab/modules/functions/help/pt_BR/libraries/CHAPTER [new file with mode: 0644]
scilab/modules/functions/help/pt_BR/libraries/genlib.xml [new file with mode: 0644]
scilab/modules/functions/help/pt_BR/libraries/get_function_path.xml [new file with mode: 0644]
scilab/modules/functions/help/pt_BR/libraries/lib.xml [new file with mode: 0644]
scilab/modules/functions/help/pt_BR/libraries/librarieslist.xml [new file with mode: 0644]
scilab/modules/functions/help/pt_BR/libraries/library.xml [new file with mode: 0644]
scilab/modules/functions/help/pt_BR/libraries/libraryinfo.xml [new file with mode: 0644]
scilab/modules/functions/help/pt_BR/libraries/whereis.xml [new file with mode: 0644]
scilab/modules/functions/help/pt_BR/librarieslist.xml [deleted file]
scilab/modules/functions/help/pt_BR/library.xml [deleted file]
scilab/modules/functions/help/pt_BR/libraryinfo.xml [deleted file]
scilab/modules/functions/help/pt_BR/whereis.xml [deleted file]
scilab/modules/functions/help/ru_RU/libraries/CHAPTER [new file with mode: 0644]

index 1d98407..fb0f3d6 100644 (file)
@@ -9,6 +9,13 @@ Obsolete functions
   Please use 'preferences' instead.
 
 
+Documentation
+=============
+
+* Categories have been created for the following modules help pages:
+  - Functions: libraries sub-category (See bug #11642)
+
+
 Bug Fixes
 =========
 
diff --git a/scilab/modules/functions/help/en_US/genlib.xml b/scilab/modules/functions/help/en_US/genlib.xml
deleted file mode 100644 (file)
index 4e9287d..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at
- * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="genlib">
-  <refnamediv>
-    <refname>genlib</refname>
-    <refpurpose> build library from functions in given directory</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>Calling Sequence</title>
-    <synopsis>genlib(lib_name [[,dir_name, [ Force [,verb [,Names]]]])
-      genlib(lib_name [,path=dir_name] [,verbose=verb] [,force=Force] [,names=Names])
-    </synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>Arguments</title>
-    <variablelist>
-      <varlistentry>
-        <term>lib_name:  </term>
-        <listitem>
-          <para>Scilab string.  The variable name of the library to (re)create.</para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term>dir_name:  </term>
-        <listitem>
-          <para>Scilab string.  The name of the directory to look for
-            <literal>.sci</literal>-files. 
-          </para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term>Force</term>
-        <listitem>
-          <para>
-            boolean value (default value is <literal>%f</literal>). Set it to
-            <literal>%t</literal> to force the sci-files recompilation.
-          </para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term>verb</term>
-        <listitem>
-          <para>
-            boolean values (default value is <literal>%f</literal>). Set it to
-            <literal>%t</literal> to get information.
-          </para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term>Names</term>
-        <listitem>
-          <para>a vector of strings, the names of function to include in the
-            library. By default all the sci-files are taken into account
-          </para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsection>
-  <refsection>
-    <title>Description</title>
-    <para>
-      For each <literal>.sci</literal> file in <literal>dir_name</literal> (or only those
-      specified by the <literal>Names</literal> argument), <literal>genlib</literal> executes a
-      <literal>exec</literal> and saves the functions to the corresponding <literal>.bin</literal>
-      file.  The <literal>.sci</literal> file must not contain anything but Scilab
-      functions.  If a <literal>.bin</literal> file is newer than the associated
-      <literal>.sci</literal> file, <literal>genlib</literal> does not translate and save the file.
-    </para>
-    <para>
-      This default behaviour can be changed if <literal>force</literal> is given and 
-      set to <literal>%t</literal>. In this latter case the recompilation is always 
-      performed for each <literal>.sci</literal> file.
-    </para>
-    <para>
-      When all <literal>.sci</literal> files have been processed, <literal>genlib</literal> creates a
-      library variable named <literal>lib_name</literal> and saves it in the file
-      <literal>lib</literal> in <literal>dir_name</literal>. If the Scilab variable
-      <literal>lib_name</literal> is not protected (see <link linkend="predef">predef</link>) this
-      variable is updated.
-    </para>
-    <para>
-      If <literal>verbose</literal> is et to <literal>%t</literal> information are displayed during 
-      the build process.
-    </para>
-    <para>
-      If <literal>dir_name</literal> argument is not given and if <literal>lib_name</literal>
-      Scilab variable  exists and it is a library dir_name is taken equal to the
-      <literal>lib_name</literal> library path (update mode).
-    </para>
-  </refsection>
-  <refsection>
-    <title>Restrictions</title>
-    <para>
-      Scilab tacitly assumes that file <literal>foo.sci</literal> defines at least a
-      function named <literal>foo</literal>. If subsidiary functions are included,
-      they are made known to Scilab only after the function <literal>foo</literal>
-      had been referenced.
-    </para>
-  </refsection>
-  <refsection role="see also">
-    <title>See Also</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="getd">getd</link>
-      </member>
-      <member>
-        <link linkend="exec">exec</link>
-      </member>
-      <member>
-        <link linkend="save">save</link>
-      </member>
-      <member>
-        <link linkend="lib">lib</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/en_US/get_function_path.xml b/scilab/modules/functions/help/en_US/get_function_path.xml
deleted file mode 100644 (file)
index a2c462c..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at
- * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="get_function_path">
-  <refnamediv>
-    <refname>get_function_path</refname>
-    <refpurpose> get source file path of a library function</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>Calling Sequence</title>
-    <synopsis>path=get_function_path(fun_name)</synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>Arguments</title>
-    <variablelist>
-      <varlistentry>
-        <term>fun_name</term>
-        <listitem>
-          <para>a string, the name of the function</para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term>path</term>
-        <listitem>
-          <para>a string, the absolute pathname of the function source file (.sci) or [].</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsection>
-  <refsection>
-    <title>Description</title>
-    <para>
-      Given the name of a function get_function_path returns the absolute
-      pathname of the function source file if the function is defined in a
-      Scilab library (see lib) or [] if name does not match any library
-      function.
-    </para>
-  </refsection>
-  <refsection>
-    <title>Examples</title>
-    <programlisting role="example"><![CDATA[ 
-get_function_path('median')
- ]]></programlisting>
-  </refsection>
-  <refsection role="see also">
-    <title>See Also</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="lib">lib</link>
-      </member>
-      <member>
-        <link linkend="string">string</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/en_US/lib.xml b/scilab/modules/functions/help/en_US/lib.xml
deleted file mode 100644 (file)
index ec7cac9..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) XXXX-2008 - INRIA
- * 
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at    
- * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="lib">
-  <refnamediv>
-    <refname>lib</refname>
-    <refpurpose> library definition</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>Calling Sequence</title>
-    <synopsis>namelib = lib('lib-dir')</synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>Arguments</title>
-    <variablelist>
-      <varlistentry>
-        <term>lib-dir</term>
-        <listitem>
-          <para>character string</para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term>namelib</term>
-        <listitem>
-          <para>library variable returned by 'lib'.</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsection>
-  <refsection>
-    <title>Description</title>
-    <para>
-      <literal>lib-dir</literal> is a character string defining a directory that contains
-      compiled Scilab function (<literal>.bin</literal>) files.
-    </para>
-    <para>
-      In addition to these files <literal>lib-dir</literal> must have a file called
-      <literal>names</literal>, that contains the names of the functions defined in
-      <literal>lib-dir</literal>.  On success, all functions in <literal>lib-dir</literal> are
-      available from within Scilab.  They are loaded on demand when called
-      for the first time.
-    </para>
-    <para>
-      Binary files can be created from within Scilab with the command
-      <literal>save</literal>.
-      A library variable
-      usually is saved for later loading, either on-line or from the
-      user-specific startup file (see startup).
-    </para>
-    <para>value returned by 'lib' must be insert in a variable 'namelib' to access to macro functions of this library.</para>
-  </refsection>
-  <refsection>
-    <title>Restrictions</title>
-    <para>
-      Scilab tacitly assumes that each xxxx.bin file defines a  variable named <literal>xxxx</literal>.
-    </para>
-  </refsection>
-  <refsection>
-    <title>Examples</title>
-    <programlisting role="example"><![CDATA[ 
-//define some functions
-function z = myplus(x, y)
-  z = x + y
-endfunction
-
-function z = yourplus(x, y)
-  x = x - y
-endfunction
-
-//create the *.bin files in libdir
-libdir = TMPDIR;
-save(libdir + '/myplus.bin', myplus);
-save(libdir + '/yourplus.bin', yourplus);
-
-//create the name file
-mputl(['myplus';'yourplus'],TMPDIR+'/names');
-
-//build the library containing myplus and yourplus
-mylibfoo = lib(libdir+'/');
-
-//erase the variables
-clear myplus yourplus
-
-//Automatic loading and execution
-myplus(1,2)
-
-//erase the variables
-clear myplus yourplus
-
-mylibfoo
-[n,p] = libraryinfo('mylibfoo')
-
-isdef('myplus')
-clear mylibfoo
-isdef('myplus')
-
- ]]></programlisting>
-  </refsection>
-  <refsection role="see also">
-    <title>See Also</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="library">library</link>
-      </member>
-      <member>
-        <link linkend="genlib">genlib</link>
-      </member>
-      <member>
-        <link linkend="save">save</link>
-      </member>
-      <member>
-        <link linkend="deff">deff</link>
-      </member>
-      <member>
-        <link linkend="exec">exec</link>
-      </member>
-      <member>
-        <link linkend="whereis">whereis</link>
-      </member>
-      <member>
-        <link linkend="libraryinfo">libraryinfo</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/en_US/libraries/CHAPTER b/scilab/modules/functions/help/en_US/libraries/CHAPTER
new file mode 100644 (file)
index 0000000..4cd7693
--- /dev/null
@@ -0,0 +1,2 @@
+title = Libraries
+
diff --git a/scilab/modules/functions/help/en_US/libraries/genlib.xml b/scilab/modules/functions/help/en_US/libraries/genlib.xml
new file mode 100644 (file)
index 0000000..85d7ffa
--- /dev/null
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) ????-2008 - INRIA
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="genlib">
+    <refnamediv>
+        <refname>genlib</refname>
+        <refpurpose> build library from functions in given directory</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>Calling Sequence</title>
+        <synopsis>genlib(lib_name [[,dir_name, [ Force [,verb [,Names]]]])
+            genlib(lib_name [,path=dir_name] [,verbose=verb] [,force=Force] [,names=Names])
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>Arguments</title>
+        <variablelist>
+            <varlistentry>
+                <term>lib_name:  </term>
+                <listitem>
+                    <para>Scilab string.  The variable name of the library to (re)create.</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>dir_name:  </term>
+                <listitem>
+                    <para>Scilab string.  The name of the directory to look for
+                        <literal>.sci</literal>-files. 
+                    </para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>Force</term>
+                <listitem>
+                    <para>
+                        boolean value (default value is <literal>%f</literal>). Set it to
+                        <literal>%t</literal> to force the sci-files recompilation.
+                    </para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>verb</term>
+                <listitem>
+                    <para>
+                        boolean values (default value is <literal>%f</literal>). Set it to
+                        <literal>%t</literal> to get information.
+                    </para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>Names</term>
+                <listitem>
+                    <para>a vector of strings, the names of function to include in the
+                        library. By default all the sci-files are taken into account
+                    </para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>Description</title>
+        <para>
+            For each <literal>.sci</literal> file in <literal>dir_name</literal> (or only those
+            specified by the <literal>Names</literal> argument), <literal>genlib</literal> executes a
+            <literal>exec</literal> and saves the functions to the corresponding <literal>.bin</literal>
+            file.  The <literal>.sci</literal> file must not contain anything but Scilab
+            functions.  If a <literal>.bin</literal> file is newer than the associated
+            <literal>.sci</literal> file, <literal>genlib</literal> does not translate and save the file.
+        </para>
+        <para>
+            This default behaviour can be changed if <literal>force</literal> is given and 
+            set to <literal>%t</literal>. In this latter case the recompilation is always 
+            performed for each <literal>.sci</literal> file.
+        </para>
+        <para>
+            When all <literal>.sci</literal> files have been processed, <literal>genlib</literal> creates a
+            library variable named <literal>lib_name</literal> and saves it in the file
+            <literal>lib</literal> in <literal>dir_name</literal>. If the Scilab variable
+            <literal>lib_name</literal> is not protected (see <link linkend="predef">predef</link>) this
+            variable is updated.
+        </para>
+        <para>
+            If <literal>verbose</literal> is et to <literal>%t</literal> information are displayed during 
+            the build process.
+        </para>
+        <para>
+            If <literal>dir_name</literal> argument is not given and if <literal>lib_name</literal>
+            Scilab variable  exists and it is a library dir_name is taken equal to the
+            <literal>lib_name</literal> library path (update mode).
+        </para>
+    </refsection>
+    <refsection>
+        <title>Restrictions</title>
+        <para>
+            Scilab tacitly assumes that file <literal>foo.sci</literal> defines at least a
+            function named <literal>foo</literal>. If subsidiary functions are included,
+            they are made known to Scilab only after the function <literal>foo</literal>
+            had been referenced.
+        </para>
+    </refsection>
+    <refsection role="see also">
+        <title>See Also</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="getd">getd</link>
+            </member>
+            <member>
+                <link linkend="exec">exec</link>
+            </member>
+            <member>
+                <link linkend="save">save</link>
+            </member>
+            <member>
+                <link linkend="lib">lib</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/en_US/libraries/get_function_path.xml b/scilab/modules/functions/help/en_US/libraries/get_function_path.xml
new file mode 100644 (file)
index 0000000..fbd9736
--- /dev/null
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) ????-2008 - INRIA
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="get_function_path">
+    <refnamediv>
+        <refname>get_function_path</refname>
+        <refpurpose> get source file path of a library function</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>Calling Sequence</title>
+        <synopsis>path=get_function_path(fun_name)</synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>Arguments</title>
+        <variablelist>
+            <varlistentry>
+                <term>fun_name</term>
+                <listitem>
+                    <para>a string, the name of the function</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>path</term>
+                <listitem>
+                    <para>a string, the absolute pathname of the function source file (.sci) or [].</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>Description</title>
+        <para>
+            Given the name of a function get_function_path returns the absolute
+            pathname of the function source file if the function is defined in a
+            Scilab library (see lib) or [] if name does not match any library
+            function.
+        </para>
+    </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[ 
+get_function_path('median')
+ ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>See Also</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="lib">lib</link>
+            </member>
+            <member>
+                <link linkend="string">string</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/en_US/libraries/lib.xml b/scilab/modules/functions/help/en_US/libraries/lib.xml
new file mode 100644 (file)
index 0000000..7241044
--- /dev/null
@@ -0,0 +1,134 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) XXXX-2008 - INRIA
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="lib">
+    <refnamediv>
+        <refname>lib</refname>
+        <refpurpose> library definition</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>Calling Sequence</title>
+        <synopsis>namelib = lib('lib-dir')</synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>Arguments</title>
+        <variablelist>
+            <varlistentry>
+                <term>lib-dir</term>
+                <listitem>
+                    <para>character string</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>namelib</term>
+                <listitem>
+                    <para>library variable returned by 'lib'.</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>Description</title>
+        <para>
+            <literal>lib-dir</literal> is a character string defining a directory that contains
+            compiled Scilab function (<literal>.bin</literal>) files.
+        </para>
+        <para>
+            In addition to these files <literal>lib-dir</literal> must have a file called
+            <literal>names</literal>, that contains the names of the functions defined in
+            <literal>lib-dir</literal>.  On success, all functions in <literal>lib-dir</literal> are
+            available from within Scilab.  They are loaded on demand when called
+            for the first time.
+        </para>
+        <para>
+            Binary files can be created from within Scilab with the command
+            <literal>save</literal>.
+            A library variable
+            usually is saved for later loading, either on-line or from the
+            user-specific startup file (see startup).
+        </para>
+        <para>value returned by 'lib' must be insert in a variable 'namelib' to access to macro functions of this library.</para>
+    </refsection>
+    <refsection>
+        <title>Restrictions</title>
+        <para>
+            Scilab tacitly assumes that each xxxx.bin file defines a  variable named <literal>xxxx</literal>.
+        </para>
+    </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[ 
+//define some functions
+function z = myplus(x, y)
+  z = x + y
+endfunction
+
+function z = yourplus(x, y)
+  x = x - y
+endfunction
+
+//create the *.bin files in libdir
+libdir = TMPDIR;
+save(libdir + '/myplus.bin', myplus);
+save(libdir + '/yourplus.bin', yourplus);
+
+//create the name file
+mputl(['myplus';'yourplus'],TMPDIR+'/names');
+
+//build the library containing myplus and yourplus
+mylibfoo = lib(libdir+'/');
+
+//erase the variables
+clear myplus yourplus
+
+//Automatic loading and execution
+myplus(1,2)
+
+//erase the variables
+clear myplus yourplus
+
+mylibfoo
+[n,p] = libraryinfo('mylibfoo')
+
+isdef('myplus')
+clear mylibfoo
+isdef('myplus')
+
+ ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>See Also</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="library">library</link>
+            </member>
+            <member>
+                <link linkend="genlib">genlib</link>
+            </member>
+            <member>
+                <link linkend="save">save</link>
+            </member>
+            <member>
+                <link linkend="deff">deff</link>
+            </member>
+            <member>
+                <link linkend="exec">exec</link>
+            </member>
+            <member>
+                <link linkend="whereis">whereis</link>
+            </member>
+            <member>
+                <link linkend="libraryinfo">libraryinfo</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/en_US/libraries/librarieslist.xml b/scilab/modules/functions/help/en_US/libraries/librarieslist.xml
new file mode 100644 (file)
index 0000000..9901087
--- /dev/null
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="librarieslist">
+    <refnamediv>
+        <refname>librarieslist</refname>
+        <refpurpose>get scilab libraries</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>Calling Sequence</title>
+        <synopsis>s=librarieslist()</synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>Arguments</title>
+        <variablelist>
+            <varlistentry>
+                <term>s</term>
+                <listitem>
+                    <para>a string matrix</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>Description</title>
+        <para>
+            return in <literal>s</literal> all libraries on scilab stack.
+        </para>
+        <para>libraries are scanned from the lastest loaded to the first one.</para>
+    </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[ 
+librarieslist()
+// to sort list
+l =  gsort(librarieslist(),'r','i')
+ ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>See Also</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="libraryinfo">libraryinfo</link>
+            </member>
+            <member>
+                <link linkend="gsort">gsort</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/en_US/libraries/library.xml b/scilab/modules/functions/help/en_US/libraries/library.xml
new file mode 100644 (file)
index 0000000..4204789
--- /dev/null
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) ????-2008 - INRIA
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="library">
+    <refnamediv>
+        <refname>library</refname>
+        <refpurpose> library datatype description
+        </refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>Calling Sequence</title>
+        <synopsis/>
+    </refsynopsisdiv>
+    <refsection>
+        <title>Description</title>
+        <para>
+            A library is a data type with type number 14. It contains a path-name
+            and a set of names. It allows automatic loading of variables using the
+            following algorithm:
+        </para>
+        <para>
+            Suppose the Scilab user references the variable named <literal>foo</literal>.
+            Scilab first looks if <literal>foo</literal> is the name of a primitive or of an
+            already defined variable. If not, it looks for <literal>foo</literal> sequentially
+            (the newest first) in all defined library .
+        </para>
+        <para>
+            Suppose <literal>foo</literal> belongs to the set of names of the library <literal>xlib</literal>
+            then Scilab tries to load the file
+            &lt;xlib-path-name&gt;/foo.bin. &lt;xlib-path-name&gt;/foo.bin must have been
+            created using the <literal>save</literal> function
+        </para>
+        <para>
+            Library are often used for collection of functions, but they can also
+            be used for any collection of scilab variables
+        </para>
+        <para>
+            If a function is defined in more than one library, the default search
+            algorithm loads thode contained in the newest. It possible to force
+            the use of a specific library using dot notation:
+        </para>
+        <para>
+            <literal>xlib.foo</literal> loads the variable <literal>foo</literal> contained in <literal>xlib</literal>.
+            if <literal>foo</literal> is a function 
+            and <literal>xlib.foo(args)</literal> executes the functions
+        </para>
+    </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[ 
+// elemlib is a predefined library
+elementary_functionlib //displays the contents of the library
+A=rand(3,3);
+cosm(A) //loads cosm and executes it
+whos -name cosm // now cosm is a variable
+elementary_functionlib.sinm //loads sinm from the library
+elementary_functionlib.cosm(A) //reloads cosm and executes it
+ ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>See Also</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="lib">lib</link>
+            </member>
+            <member>
+                <link linkend="string">string</link>
+            </member>
+            <member>
+                <link linkend="load">load</link>
+            </member>
+            <member>
+                <link linkend="save">save</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/en_US/libraries/libraryinfo.xml b/scilab/modules/functions/help/en_US/libraries/libraryinfo.xml
new file mode 100644 (file)
index 0000000..01f81a6
--- /dev/null
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="libraryinfo">
+    <refnamediv>
+        <refname>libraryinfo</refname>
+        <refpurpose>get macros and path of a scilab library</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>Calling Sequence</title>
+        <synopsis>macros = libraryinfo(libraryname)
+            [macros,path] = libraryinfo(libraryname)
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>Arguments</title>
+        <variablelist>
+            <varlistentry>
+                <term>macros</term>
+                <listitem>
+                    <para>a string matrix (all main functions of the library)</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+        <variablelist>
+            <varlistentry>
+                <term>path</term>
+                <listitem>
+                    <para>a string (path of library)</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+        <variablelist>
+            <varlistentry>
+                <term>libraryname</term>
+                <listitem>
+                    <para>a string (library name)</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>Description</title>
+        <para>get functions names  and path of a scilab library.The function names
+            returned correspond to those which correspond to the associated .sci or .bin
+            file names. The other ones are subsidiary functions.
+        </para>
+    </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[ 
+[m,p]=libraryinfo('corelib')
+ ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>See Also</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="librarieslist">librarieslist</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/en_US/libraries/whereis.xml b/scilab/modules/functions/help/en_US/libraries/whereis.xml
new file mode 100644 (file)
index 0000000..39cd9a3
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="whereis">
+    <refnamediv>
+        <refname>whereis</refname>
+        <refpurpose> name of library containing a function</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>Calling Sequence</title>
+        <synopsis>[librname]=whereis(function-name)</synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>Description</title>
+        <para>
+            returns as a character string
+            the name of the library containing the function <literal>function-name</literal>. 
+            The path of the library is returned by typing <literal>"librname"</literal>.
+        </para>
+    </refsection>
+    <refsection role="see also">
+        <title>See Also</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="lib">lib</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/en_US/librarieslist.xml b/scilab/modules/functions/help/en_US/librarieslist.xml
deleted file mode 100644 (file)
index 644f1f7..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="librarieslist">
-  <refnamediv>
-    <refname>librarieslist</refname>
-    <refpurpose>get scilab libraries</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>Calling Sequence</title>
-    <synopsis>s=librarieslist()</synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>Arguments</title>
-    <variablelist>
-      <varlistentry>
-        <term>s</term>
-        <listitem>
-          <para>a string matrix</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsection>
-  <refsection>
-    <title>Description</title>
-    <para>
-      return in <literal>s</literal> all libraries on scilab stack.
-    </para>
-    <para>libraries are scanned from the lastest loaded to the first one.</para>
-  </refsection>
-  <refsection>
-    <title>Examples</title>
-    <programlisting role="example"><![CDATA[ 
-librarieslist()
-// to sort list
-l =  gsort(librarieslist(),'r','i')
- ]]></programlisting>
-  </refsection>
-  <refsection role="see also">
-    <title>See Also</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="libraryinfo">libraryinfo</link>
-      </member>
-      <member>
-        <link linkend="gsort">gsort</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/en_US/library.xml b/scilab/modules/functions/help/en_US/library.xml
deleted file mode 100644 (file)
index 0026d95..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at
- * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="library">
-  <refnamediv>
-    <refname>library</refname>
-    <refpurpose> library datatype description
-    </refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>Calling Sequence</title>
-    <synopsis/>
-  </refsynopsisdiv>
-  <refsection>
-    <title>Description</title>
-    <para>
-      A library is a data type with type number 14. It contains a path-name
-      and a set of names. It allows automatic loading of variables using the
-      following algorithm:
-    </para>
-    <para>
-      Suppose the Scilab user references the variable named <literal>foo</literal>.
-      Scilab first looks if <literal>foo</literal> is the name of a primitive or of an
-      already defined variable. If not, it looks for <literal>foo</literal> sequentially
-      (the newest first) in all defined library .
-    </para>
-    <para>
-      Suppose <literal>foo</literal> belongs to the set of names of the library <literal>xlib</literal>
-      then Scilab tries to load the file
-      &lt;xlib-path-name&gt;/foo.bin. &lt;xlib-path-name&gt;/foo.bin must have been
-      created using the <literal>save</literal> function
-    </para>
-    <para>
-      Library are often used for collection of functions, but they can also
-      be used for any collection of scilab variables
-    </para>
-    <para>
-      If a function is defined in more than one library, the default search
-      algorithm loads thode contained in the newest. It possible to force
-      the use of a specific library using dot notation:
-    </para>
-    <para>
-      <literal>xlib.foo</literal> loads the variable <literal>foo</literal> contained in <literal>xlib</literal>.
-      if <literal>foo</literal> is a function 
-      and <literal>xlib.foo(args)</literal> executes the functions
-    </para>
-  </refsection>
-  <refsection>
-    <title>Examples</title>
-    <programlisting role="example"><![CDATA[ 
-// elemlib is a predefined library
-elementary_functionlib //displays the contents of the library
-A=rand(3,3);
-cosm(A) //loads cosm and executes it
-whos -name cosm // now cosm is a variable
-elementary_functionlib.sinm //loads sinm from the library
-elementary_functionlib.cosm(A) //reloads cosm and executes it
- ]]></programlisting>
-  </refsection>
-  <refsection role="see also">
-    <title>See Also</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="lib">lib</link>
-      </member>
-      <member>
-        <link linkend="string">string</link>
-      </member>
-      <member>
-        <link linkend="load">load</link>
-      </member>
-      <member>
-        <link linkend="save">save</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/en_US/libraryinfo.xml b/scilab/modules/functions/help/en_US/libraryinfo.xml
deleted file mode 100644 (file)
index 654213d..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="libraryinfo">
-  <refnamediv>
-    <refname>libraryinfo</refname>
-    <refpurpose>get macros and path of a scilab library</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>Calling Sequence</title>
-    <synopsis>macros = libraryinfo(libraryname)
-      [macros,path] = libraryinfo(libraryname)
-    </synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>Arguments</title>
-    <variablelist>
-      <varlistentry>
-        <term>macros</term>
-        <listitem>
-          <para>a string matrix (all main functions of the library)</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-    <variablelist>
-      <varlistentry>
-        <term>path</term>
-        <listitem>
-          <para>a string (path of library)</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-    <variablelist>
-      <varlistentry>
-        <term>libraryname</term>
-        <listitem>
-          <para>a string (library name)</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsection>
-  <refsection>
-    <title>Description</title>
-    <para>get functions names  and path of a scilab library.The function names
-      returned correspond to those which correspond to the associated .sci or .bin
-      file names. The other ones are subsidiary functions.
-    </para>
-  </refsection>
-  <refsection>
-    <title>Examples</title>
-    <programlisting role="example"><![CDATA[ 
-[m,p]=libraryinfo('corelib')
- ]]></programlisting>
-  </refsection>
-  <refsection role="see also">
-    <title>See Also</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="librarieslist">librarieslist</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/en_US/whereis.xml b/scilab/modules/functions/help/en_US/whereis.xml
deleted file mode 100644 (file)
index f5b3e8e..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="whereis">
-  <refnamediv>
-    <refname>whereis</refname>
-    <refpurpose> name of library containing a function</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>Calling Sequence</title>
-    <synopsis>[librname]=whereis(function-name)</synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>Description</title>
-    <para>
-      returns as a character string
-      the name of the library containing the function <literal>function-name</literal>. 
-      The path of the library is returned by typing <literal>"librname"</literal>.
-    </para>
-  </refsection>
-  <refsection role="see also">
-    <title>See Also</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="lib">lib</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/fr_FR/libraries/CHAPTER b/scilab/modules/functions/help/fr_FR/libraries/CHAPTER
new file mode 100644 (file)
index 0000000..4cd7693
--- /dev/null
@@ -0,0 +1,2 @@
+title = Libraries
+
diff --git a/scilab/modules/functions/help/fr_FR/libraries/whereis.xml b/scilab/modules/functions/help/fr_FR/libraries/whereis.xml
new file mode 100644 (file)
index 0000000..268fe11
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="fr" xml:id="whereis">
+    <refnamediv>
+        <refname>whereis</refname>
+        <refpurpose> nom de la bibliothèque contenant une fonction  </refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>Séquence d'appel</title>
+        <synopsis>[librname]=whereis(function-name)</synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>Description</title>
+        <para>
+            Renvoie une chaîne de caractères contenant le nom de la bibliothèque contenant
+            la fonction <literal>function-name</literal>. 
+            Le chemin d'accès à la bibliothèque peut être obtenu avec la fonction <literal>"librname"</literal>.
+        </para>
+    </refsection>
+    <refsection role="see also">
+        <title>Voir aussi</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="lib">lib</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/fr_FR/whereis.xml b/scilab/modules/functions/help/fr_FR/whereis.xml
deleted file mode 100644 (file)
index 5bae7cb..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="fr" xml:id="whereis">
-  <refnamediv>
-    <refname>whereis</refname>
-    <refpurpose> nom de la bibliothèque contenant une fonction  </refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>Séquence d'appel</title>
-    <synopsis>[librname]=whereis(function-name)</synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>Description</title>
-    <para>
-      Renvoie une chaîne de caractères contenant le nom de la bibliothèque contenant
-      la fonction <literal>function-name</literal>. 
-      Le chemin d'accès à la bibliothèque peut être obtenu avec la fonction <literal>"librname"</literal>.
-    </para>
-  </refsection>
-  <refsection role="see also">
-    <title>Voir aussi</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="lib">lib</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/genlib.xml b/scilab/modules/functions/help/ja_JP/genlib.xml
deleted file mode 100644 (file)
index 6c0c783..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at
- * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="genlib">
-  <refnamediv>
-    <refname>genlib</refname>
-    <refpurpose>指定したディレクトリの関数からライブラリを構築する </refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>呼び出し手順</title>
-    <synopsis>genlib(lib_name [[,dir_name, [ Force [,verb [,Names]]]])
-      genlib(lib_name [,path=dir_name] [,verbose=verb] [,force=Force] [,names=Names])
-    </synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>パラメータ</title>
-    <variablelist>
-      <varlistentry>
-        <term>lib_name:  </term>
-        <listitem>
-          <para>Scilab文字列.  (再)作成するライブラリの変数名.</para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term>dir_name:  </term>
-        <listitem>
-          <para>Scilab文字列. 
-            <literal>.sci</literal>-ファイルを探すディレクトリの名前. 
-          </para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term>Force</term>
-        <listitem>
-          <para>
-            論理値 (デフォルト値は <literal>%f</literal>). 
-            sci-ファイルの再コンパイルを強制的に行う場合,
-            <literal>%t</literal>に設定してください.
-          </para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term>verb</term>
-        <listitem>
-          <para>
-            論理値 (デフォルト値は <literal>%f</literal>). 
-            情報を取得するには <literal>%t</literal> に設定してください.
-          </para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term>Names</term>
-        <listitem>
-          <para>文字列のベクトルで, ライブラリに含まれる
-            関数の名前です.
-            デフォルトで全ての sci-ファイルが取得されます.
-          </para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsection>
-  <refsection>
-    <title>説明</title>
-    <para>
-      <literal>dir_name</literal>にある各<literal>.sci</literal>ファイル
-      (または<literal>Names</literal>引数で指定されたファイルのみ)について,
-      <literal>genlib</literal>は<literal>exec</literal>を
-      実行し,対応する<literal>.bin</literal>ファイルに関数を保存します.
-      <literal>.sci</literal>ファイルにはScilab関数以外のものを含んでは
-      いけません.
-      ある<literal>.bin</literal>ファイルが対応する<literal>.sci</literal>ファイルよりも
-      新しい場合, <literal>genlib</literal>はこのファイルを変換/保存しません.
-    </para>
-    <para>
-      このデフォルトの動作は<literal>force</literal>が指定され,
-      <literal>%t</literal> に設定された場合に変更できます.
-      この場合, 各<literal>.sci</literal>ファイル毎に常に再コンパイルが
-      行われます.
-    </para>
-    <para>
-      全ての<literal>.sci</literal> ファイルが処理された場合,
-      <literal>genlib</literal>は<literal>lib_name</literal>という
-      名前のライブラリ変数を作成し,
-      <literal>dir_name</literal>の中のファイル<literal>lib</literal>に
-      この変数を保存します.
-      Scilab変数
-      <literal>lib_name</literal>が保護されていない場合
-      (<link linkend="predef">predef</link>参照), 
-      この変数は更新されます.
-    </para>
-    <para>
-      <literal>verbose</literal> に <literal>%t</literal>が
-      指定された場合, 構築処理中に情報が表示されます.
-    </para>
-    <para>
-      <literal>dir_name</literal> 引数が指定されない場合に,
-      Scilab変数<literal>lib_name</literal>が存在し,
-      それがライブラリの場合,
-      dir_name は,
-      <literal>lib_name</literal>ライブラリパスに等しく
-      設定されます (更新モード).
-    </para>
-  </refsection>
-  <refsection>
-    <title>制限</title>
-    <para>
-      Scilab は, ファイル<literal>foo.sci</literal>が,
-      少なくとも<literal>foo</literal>という名前の関数を
-      定義すると仮定します.
-      補助関数が含まれる場合,これらは
-      関数<literal>foo</literal>が参照された後でのみ
-      Scilabから既知となります.
-    </para>
-  </refsection>
-  <refsection role="see also">
-    <title>参照</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="getd">getd</link>
-      </member>
-      <member>
-        <link linkend="exec">exec</link>
-      </member>
-      <member>
-        <link linkend="save">save</link>
-      </member>
-      <member>
-        <link linkend="lib">lib</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/get_function_path.xml b/scilab/modules/functions/help/ja_JP/get_function_path.xml
deleted file mode 100644 (file)
index 4d8ce37..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at
- * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="get_function_path">
-  <refnamediv>
-    <refname>get_function_path</refname>
-    <refpurpose>ライブラリ関数のソースファイルのパスを取得</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>呼び出し手順</title>
-    <synopsis>path=get_function_path(fun_name)</synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>パラメータ</title>
-    <variablelist>
-      <varlistentry>
-        <term>fun_name</term>
-        <listitem>
-          <para>文字列, 関数名</para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term>path</term>
-        <listitem>
-          <para>文字列, 関数ソースファイル(.sci)の絶対パス名または [].</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsection>
-  <refsection>
-    <title>説明</title>
-    <para>
-      関数名を指定すると, 
-      その関数が Scilab ライブラリ(lib参照)で定義されている場合,
-      get_function_path は関数ソースファイルの
-      絶対パス名を返します.
-      名前がライブラリ関数に一致しない場合 [] が返されます.
-    </para>
-  </refsection>
-  <refsection>
-    <title>例</title>
-    <programlisting role="example"><![CDATA[ 
-get_function_path('median')
- ]]></programlisting>
-  </refsection>
-  <refsection role="see also">
-    <title>参照</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="lib">lib</link>
-      </member>
-      <member>
-        <link linkend="string">string</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/lib.xml b/scilab/modules/functions/help/ja_JP/lib.xml
deleted file mode 100644 (file)
index 6559964..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) XXXX-2008 - INRIA
- * 
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at    
- * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="lib">
-  <refnamediv>
-    <refname>lib</refname>
-    <refpurpose>ライブラリ定義</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>呼出し手順</title>
-    <synopsis>xlib = lib('lib-dir')</synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>パラメータ</title>
-    <variablelist>
-      <varlistentry>
-        <term>lib-dir</term>
-        <listitem>
-          <para>文字列</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsection>
-  <refsection>
-    <title>説明</title>
-    <para>
-      <literal>lib-dir</literal>は,
-      コンパイル済みのScilab関数(<literal>.bin</literal>)ファイルを
-      含むディレクトリを定義する文字列です.
-    </para>
-    <para>
-      これらのファイルに加えて,<literal>lib-dir</literal> には,
-      <literal>lib-dir</literal>で定義された関数の名前を保持する
-      <literal>names</literal>という名前のファイルがある必要があります.
-      処理が成功すると, <literal>lib-dir</literal> の中の全ての関数が
-      Scilabから利用可能になります.
-      これらの関数は最初にコールされた時にオンデマンドでロードされます.
-    </para>
-    <para>
-      バイナリファイルは Scilab上でコマンド<literal>save</literal>
-      により作成できます.
-    </para>
-    <para>
-      Scilabの標準ライブラリは,
-      <literal>SCIDIR/modules/*/macros/*</literal>サブディレクトリの
-      <literal>lib</literal>により定義されています.
-    </para>
-    <para>
-      ライブラリ変数は,通常,
-      オンラインまたはユーザ指定のスタートアップファイル(startupファイル)
-      のどちらかにより,後でロードするために保存されます.
-    </para>
-  </refsection>
-  <refsection>
-    <title>制限</title>
-    <para>
-      Scilab は, 各ファイル xxxx.bin が<literal>xxxx</literal>という名前の
-      変数を定義するものと暗黙裡に仮定します.
-    </para>
-  </refsection>
-  <refsection>
-    <title>例</title>
-    <programlisting role="example"><![CDATA[ 
-//複数の変数を定義します
-function z = myplus(x, y), z = x + y,endfunction
-function z = yourplus(x, y), x = x - y,endfunction
-A=1:10;
-
-// *.bin ファイルを libdirに作成
-libdir=TMPDIR
-save(libdir + '/myplus.bin', myplus);
-save(libdir + '/yourplus.bin', yourplus);
-save(libdir + '/A.bin', A);
-
-//nameファイルを作成
-mputl(['myplus';'yourplus';'A'],TMPDIR+'/names');
-
-// myplus およびyourplusを含むライブラリを構築
-xlib = lib(libdir+'/')
-
-//変数を消去
-clear myplus yourplus A
-
-//自動的にロードし,実行
-myplus(1,2)
-
-A
- ]]></programlisting>
-  </refsection>
-  <refsection role="see also">
-    <title>参照</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="library">library</link>
-      </member>
-      <member>
-        <link linkend="genlib">genlib</link>
-      </member>
-      <member>
-        <link linkend="save">save</link>
-      </member>
-      <member>
-        <link linkend="deff">deff</link>
-      </member>
-      <member>
-        <link linkend="exec">exec</link>
-      </member>
-      <member>
-        <link linkend="whereis">whereis</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/libraries/CHAPTER b/scilab/modules/functions/help/ja_JP/libraries/CHAPTER
new file mode 100644 (file)
index 0000000..4cd7693
--- /dev/null
@@ -0,0 +1,2 @@
+title = Libraries
+
diff --git a/scilab/modules/functions/help/ja_JP/libraries/genlib.xml b/scilab/modules/functions/help/ja_JP/libraries/genlib.xml
new file mode 100644 (file)
index 0000000..964e0fc
--- /dev/null
@@ -0,0 +1,141 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) ????-2008 - INRIA
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="genlib">
+    <refnamediv>
+        <refname>genlib</refname>
+        <refpurpose>指定したディレクトリの関数からライブラリを構築する </refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>genlib(lib_name [[,dir_name, [ Force [,verb [,Names]]]])
+            genlib(lib_name [,path=dir_name] [,verbose=verb] [,force=Force] [,names=Names])
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>パラメータ</title>
+        <variablelist>
+            <varlistentry>
+                <term>lib_name:  </term>
+                <listitem>
+                    <para>Scilab文字列.  (再)作成するライブラリの変数名.</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>dir_name:  </term>
+                <listitem>
+                    <para>Scilab文字列. 
+                        <literal>.sci</literal>-ファイルを探すディレクトリの名前. 
+                    </para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>Force</term>
+                <listitem>
+                    <para>
+                        論理値 (デフォルト値は <literal>%f</literal>). 
+                        sci-ファイルの再コンパイルを強制的に行う場合,
+                        <literal>%t</literal>に設定してください.
+                    </para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>verb</term>
+                <listitem>
+                    <para>
+                        論理値 (デフォルト値は <literal>%f</literal>). 
+                        情報を取得するには <literal>%t</literal> に設定してください.
+                    </para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>Names</term>
+                <listitem>
+                    <para>文字列のベクトルで, ライブラリに含まれる
+                        関数の名前です.
+                        デフォルトで全ての sci-ファイルが取得されます.
+                    </para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            <literal>dir_name</literal>にある各<literal>.sci</literal>ファイル
+            (または<literal>Names</literal>引数で指定されたファイルのみ)について,
+            <literal>genlib</literal>は<literal>exec</literal>を
+            実行し,対応する<literal>.bin</literal>ファイルに関数を保存します.
+            <literal>.sci</literal>ファイルにはScilab関数以外のものを含んでは
+            いけません.
+            ある<literal>.bin</literal>ファイルが対応する<literal>.sci</literal>ファイルよりも
+            新しい場合, <literal>genlib</literal>はこのファイルを変換/保存しません.
+        </para>
+        <para>
+            このデフォルトの動作は<literal>force</literal>が指定され,
+            <literal>%t</literal> に設定された場合に変更できます.
+            この場合, 各<literal>.sci</literal>ファイル毎に常に再コンパイルが
+            行われます.
+        </para>
+        <para>
+            全ての<literal>.sci</literal> ファイルが処理された場合,
+            <literal>genlib</literal>は<literal>lib_name</literal>という
+            名前のライブラリ変数を作成し,
+            <literal>dir_name</literal>の中のファイル<literal>lib</literal>に
+            この変数を保存します.
+            Scilab変数
+            <literal>lib_name</literal>が保護されていない場合
+            (<link linkend="predef">predef</link>参照), 
+            この変数は更新されます.
+        </para>
+        <para>
+            <literal>verbose</literal> に <literal>%t</literal>が
+            指定された場合, 構築処理中に情報が表示されます.
+        </para>
+        <para>
+            <literal>dir_name</literal> 引数が指定されない場合に,
+            Scilab変数<literal>lib_name</literal>が存在し,
+            それがライブラリの場合,
+            dir_name は,
+            <literal>lib_name</literal>ライブラリパスに等しく
+            設定されます (更新モード).
+        </para>
+    </refsection>
+    <refsection>
+        <title>制限</title>
+        <para>
+            Scilab は, ファイル<literal>foo.sci</literal>が,
+            少なくとも<literal>foo</literal>という名前の関数を
+            定義すると仮定します.
+            補助関数が含まれる場合,これらは
+            関数<literal>foo</literal>が参照された後でのみ
+            Scilabから既知となります.
+        </para>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="getd">getd</link>
+            </member>
+            <member>
+                <link linkend="exec">exec</link>
+            </member>
+            <member>
+                <link linkend="save">save</link>
+            </member>
+            <member>
+                <link linkend="lib">lib</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/libraries/get_function_path.xml b/scilab/modules/functions/help/ja_JP/libraries/get_function_path.xml
new file mode 100644 (file)
index 0000000..5af2369
--- /dev/null
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) ????-2008 - INRIA
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="get_function_path">
+    <refnamediv>
+        <refname>get_function_path</refname>
+        <refpurpose>ライブラリ関数のソースファイルのパスを取得</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>path=get_function_path(fun_name)</synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>パラメータ</title>
+        <variablelist>
+            <varlistentry>
+                <term>fun_name</term>
+                <listitem>
+                    <para>文字列, 関数名</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>path</term>
+                <listitem>
+                    <para>文字列, 関数ソースファイル(.sci)の絶対パス名または [].</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            関数名を指定すると, 
+            その関数が Scilab ライブラリ(lib参照)で定義されている場合,
+            get_function_path は関数ソースファイルの
+            絶対パス名を返します.
+            名前がライブラリ関数に一致しない場合 [] が返されます.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[ 
+get_function_path('median')
+ ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="lib">lib</link>
+            </member>
+            <member>
+                <link linkend="string">string</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/libraries/lib.xml b/scilab/modules/functions/help/ja_JP/libraries/lib.xml
new file mode 100644 (file)
index 0000000..897936f
--- /dev/null
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) XXXX-2008 - INRIA
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="lib">
+    <refnamediv>
+        <refname>lib</refname>
+        <refpurpose>ライブラリ定義</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼出し手順</title>
+        <synopsis>xlib = lib('lib-dir')</synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>パラメータ</title>
+        <variablelist>
+            <varlistentry>
+                <term>lib-dir</term>
+                <listitem>
+                    <para>文字列</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            <literal>lib-dir</literal>は,
+            コンパイル済みのScilab関数(<literal>.bin</literal>)ファイルを
+            含むディレクトリを定義する文字列です.
+        </para>
+        <para>
+            これらのファイルに加えて,<literal>lib-dir</literal> には,
+            <literal>lib-dir</literal>で定義された関数の名前を保持する
+            <literal>names</literal>という名前のファイルがある必要があります.
+            処理が成功すると, <literal>lib-dir</literal> の中の全ての関数が
+            Scilabから利用可能になります.
+            これらの関数は最初にコールされた時にオンデマンドでロードされます.
+        </para>
+        <para>
+            バイナリファイルは Scilab上でコマンド<literal>save</literal>
+            により作成できます.
+        </para>
+        <para>
+            Scilabの標準ライブラリは,
+            <literal>SCIDIR/modules/*/macros/*</literal>サブディレクトリの
+            <literal>lib</literal>により定義されています.
+        </para>
+        <para>
+            ライブラリ変数は,通常,
+            オンラインまたはユーザ指定のスタートアップファイル(startupファイル)
+            のどちらかにより,後でロードするために保存されます.
+        </para>
+    </refsection>
+    <refsection>
+        <title>制限</title>
+        <para>
+            Scilab は, 各ファイル xxxx.bin が<literal>xxxx</literal>という名前の
+            変数を定義するものと暗黙裡に仮定します.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[ 
+//複数の変数を定義します
+function z = myplus(x, y), z = x + y,endfunction
+function z = yourplus(x, y), x = x - y,endfunction
+A=1:10;
+
+// *.bin ファイルを libdirに作成
+libdir=TMPDIR
+save(libdir + '/myplus.bin', myplus);
+save(libdir + '/yourplus.bin', yourplus);
+save(libdir + '/A.bin', A);
+
+//nameファイルを作成
+mputl(['myplus';'yourplus';'A'],TMPDIR+'/names');
+
+// myplus およびyourplusを含むライブラリを構築
+xlib = lib(libdir+'/')
+
+//変数を消去
+clear myplus yourplus A
+
+//自動的にロードし,実行
+myplus(1,2)
+
+A
+ ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="library">library</link>
+            </member>
+            <member>
+                <link linkend="genlib">genlib</link>
+            </member>
+            <member>
+                <link linkend="save">save</link>
+            </member>
+            <member>
+                <link linkend="deff">deff</link>
+            </member>
+            <member>
+                <link linkend="exec">exec</link>
+            </member>
+            <member>
+                <link linkend="whereis">whereis</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/libraries/librarieslist.xml b/scilab/modules/functions/help/ja_JP/libraries/librarieslist.xml
new file mode 100644 (file)
index 0000000..707df68
--- /dev/null
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="librarieslist">
+    <refnamediv>
+        <refname>librarieslist</refname>
+        <refpurpose>scilabライブラリを取得</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>s=librarieslist()</synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>パラメータ</title>
+        <variablelist>
+            <varlistentry>
+                <term>s</term>
+                <listitem>
+                    <para>文字列行列</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            <literal>s</literal>にある
+            Scilabスタックの全てのライブラリを返します.
+            return in <literal>s</literal> all libraries on scilab stack.
+        </para>
+        <para>
+            ライブラリは最後にロードされたものから最初にロードされたものに
+            向かってスキャンされます.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[ 
+librarieslist()
+// to sort list
+l =  gsort(librarieslist(),'r','i')
+ ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="libraryinfo">libraryinfo</link>
+                <link linkend="gsort">gsort</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/libraries/library.xml b/scilab/modules/functions/help/ja_JP/libraries/library.xml
new file mode 100644 (file)
index 0000000..7e1b973
--- /dev/null
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) ????-2008 - INRIA
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="library">
+    <refnamediv>
+        <refname>library</refname>
+        <refpurpose>ライブラリのデータ型の説明
+        </refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis/>
+    </refsynopsisdiv>
+    <refsection>
+        <title>説明</title>
+        <para>
+            ライブラリは型番号14のデータ型です.
+            これには,パス名と名前の集合が含まれます.
+            これにより,以下のアルゴリズムにより変数を自動的に
+            ロードすることが可能になります:
+        </para>
+        <para>
+            Scilabユーザが<literal>foo</literal>という名前の変数を参照すると
+            仮定します.
+            Scilabはまず<literal>foo</literal>がプリミティブの名前または
+            すでに定義ずみであるかどうかを調べます.
+            そうでない場合,<literal>foo</literal>を(新しいものから順に)
+            順番に全ての定義済みのライブラリの中で探します.
+        </para>
+        <para>
+            <literal>foo</literal> がライブラリ<literal>xlib</literal>の
+            名前の集合に属すると仮定すると,
+            Scilabはファイル &lt;xlib-path-name&gt;/foo.bin をロード
+            します.
+            &lt;xlib-path-name&gt;/foo.bin は
+            <literal>save</literal> 関数により作成されている必要があります.
+        </para>
+        <para>
+            ライブラリはしばしば関数の集約に使用されますが,
+            Scilab変数の集約にも使用することができます.
+        </para>
+        <para>
+            ある関数が1つ以上のライブラリで定義されている場合,
+            デフォルトの探索アルゴリズムは最新のライブラリに
+            含まれる関数をロードします.
+            ドット表記により
+            特定のライブラリの関数を強制的に使用することも可能です:
+        </para>
+        <para>
+            <literal>xlib.foo</literal> は
+            <literal>xlib</literal>に含まれる変数<literal>foo</literal>
+            をロードします.
+            <literal>foo</literal>が関数の場合,
+            <literal>xlib.foo(args)</literal>はこの関数を実行します.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[ 
+// elemlib は定義済みのライブラリです
+elementary_functionlib //ライブラリの中身を表示
+A=rand(3,3);
+cosm(A) //cosmをロードし実行
+whos -name cosm // ここでcosmは変数です
+elementary_functionlib.sinm //sinmをライブラリからロード
+elementary_functionlib.cosm(A) //cosmを再ロードし,実行
+ ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="lib">lib</link>
+            </member>
+            <member>
+                <link linkend="string">string</link>
+            </member>
+            <member>
+                <link linkend="load">load</link>
+            </member>
+            <member>
+                <link linkend="save">save</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/libraries/libraryinfo.xml b/scilab/modules/functions/help/ja_JP/libraries/libraryinfo.xml
new file mode 100644 (file)
index 0000000..e540b45
--- /dev/null
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="libraryinfo">
+    <refnamediv>
+        <refname>libraryinfo</refname>
+        <refpurpose>マクロとscilabライブラリのパスを取得</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>macros = libraryinfo(libraryname)
+            [macros,path] = libraryinfo(libraryname)
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>パラメータ</title>
+        <variablelist>
+            <varlistentry>
+                <term>macros</term>
+                <listitem>
+                    <para>文字列行列 (ライブラリの全ての主関数)</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+        <variablelist>
+            <varlistentry>
+                <term>path</term>
+                <listitem>
+                    <para>文字列 (ライブラリのパス)</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+        <variablelist>
+            <varlistentry>
+                <term>libraryname</term>
+                <listitem>
+                    <para>文字列 (ライブラリ名)</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            指定したScilabライブラリの関数名とパスを取得します.
+            返される関数名は対応する .sci または .bin のファイルの名前
+            に一致します.
+            その他の名前は補助関数です.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[ 
+[m,p]=libraryinfo('corelib')
+ ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="librarieslist">librarieslist</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/libraries/whereis.xml b/scilab/modules/functions/help/ja_JP/libraries/whereis.xml
new file mode 100644 (file)
index 0000000..4cd9447
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="whereis">
+    <refnamediv>
+        <refname>whereis</refname>
+        <refpurpose>関数が属するライブラリの名前</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>[librname]=whereis(function-name)</synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>説明</title>
+        <para>
+            関数<literal>function-name</literal>が属するライブラリの名前を
+            文字列として返します.
+            ライブラリのパス名は<literal>"librname"</literal>と入力することにより
+            返されます.
+        </para>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="lib">lib</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/librarieslist.xml b/scilab/modules/functions/help/ja_JP/librarieslist.xml
deleted file mode 100644 (file)
index 431eb27..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="librarieslist">
-  <refnamediv>
-    <refname>librarieslist</refname>
-    <refpurpose>scilabライブラリを取得</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>呼び出し手順</title>
-    <synopsis>s=librarieslist()</synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>パラメータ</title>
-    <variablelist>
-      <varlistentry>
-        <term>s</term>
-        <listitem>
-          <para>文字列行列</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsection>
-  <refsection>
-    <title>説明</title>
-    <para>
-      <literal>s</literal>にある
-      Scilabスタックの全てのライブラリを返します.
-      return in <literal>s</literal> all libraries on scilab stack.
-    </para>
-    <para>
-      ライブラリは最後にロードされたものから最初にロードされたものに
-      向かってスキャンされます.
-    </para>
-  </refsection>
-  <refsection>
-    <title>例</title>
-    <programlisting role="example"><![CDATA[ 
-librarieslist()
-// to sort list
-l =  gsort(librarieslist(),'r','i')
- ]]></programlisting>
-  </refsection>
-  <refsection role="see also">
-    <title>参照</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="libraryinfo">libraryinfo</link>
-        <link linkend="gsort">gsort</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/library.xml b/scilab/modules/functions/help/ja_JP/library.xml
deleted file mode 100644 (file)
index 64d277a..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at
- * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="library">
-  <refnamediv>
-    <refname>library</refname>
-    <refpurpose>ライブラリのデータ型の説明
-    </refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>呼び出し手順</title>
-    <synopsis/>
-  </refsynopsisdiv>
-  <refsection>
-    <title>説明</title>
-    <para>
-      ライブラリは型番号14のデータ型です.
-      これには,パス名と名前の集合が含まれます.
-      これにより,以下のアルゴリズムにより変数を自動的に
-      ロードすることが可能になります:
-    </para>
-    <para>
-      Scilabユーザが<literal>foo</literal>という名前の変数を参照すると
-      仮定します.
-      Scilabはまず<literal>foo</literal>がプリミティブの名前または
-      すでに定義ずみであるかどうかを調べます.
-      そうでない場合,<literal>foo</literal>を(新しいものから順に)
-      順番に全ての定義済みのライブラリの中で探します.
-    </para>
-    <para>
-      <literal>foo</literal> がライブラリ<literal>xlib</literal>の
-      名前の集合に属すると仮定すると,
-      Scilabはファイル &lt;xlib-path-name&gt;/foo.bin をロード
-      します.
-      &lt;xlib-path-name&gt;/foo.bin は
-      <literal>save</literal> 関数により作成されている必要があります.
-    </para>
-    <para>
-      ライブラリはしばしば関数の集約に使用されますが,
-      Scilab変数の集約にも使用することができます.
-    </para>
-    <para>
-      ある関数が1つ以上のライブラリで定義されている場合,
-      デフォルトの探索アルゴリズムは最新のライブラリに
-      含まれる関数をロードします.
-      ドット表記により
-      特定のライブラリの関数を強制的に使用することも可能です:
-    </para>
-    <para>
-      <literal>xlib.foo</literal> は
-      <literal>xlib</literal>に含まれる変数<literal>foo</literal>
-      をロードします.
-      <literal>foo</literal>が関数の場合,
-      <literal>xlib.foo(args)</literal>はこの関数を実行します.
-    </para>
-  </refsection>
-  <refsection>
-    <title>例</title>
-    <programlisting role="example"><![CDATA[ 
-// elemlib は定義済みのライブラリです
-elementary_functionlib //ライブラリの中身を表示
-A=rand(3,3);
-cosm(A) //cosmをロードし実行
-whos -name cosm // ここでcosmは変数です
-elementary_functionlib.sinm //sinmをライブラリからロード
-elementary_functionlib.cosm(A) //cosmを再ロードし,実行
- ]]></programlisting>
-  </refsection>
-  <refsection role="see also">
-    <title>参照</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="lib">lib</link>
-      </member>
-      <member>
-        <link linkend="string">string</link>
-      </member>
-      <member>
-        <link linkend="load">load</link>
-      </member>
-      <member>
-        <link linkend="save">save</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/libraryinfo.xml b/scilab/modules/functions/help/ja_JP/libraryinfo.xml
deleted file mode 100644 (file)
index a972b36..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="libraryinfo">
-  <refnamediv>
-    <refname>libraryinfo</refname>
-    <refpurpose>マクロとscilabライブラリのパスを取得</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>呼び出し手順</title>
-    <synopsis>macros = libraryinfo(libraryname)
-      [macros,path] = libraryinfo(libraryname)
-    </synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>パラメータ</title>
-    <variablelist>
-      <varlistentry>
-        <term>macros</term>
-        <listitem>
-          <para>文字列行列 (ライブラリの全ての主関数)</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-    <variablelist>
-      <varlistentry>
-        <term>path</term>
-        <listitem>
-          <para>文字列 (ライブラリのパス)</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-    <variablelist>
-      <varlistentry>
-        <term>libraryname</term>
-        <listitem>
-          <para>文字列 (ライブラリ名)</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsection>
-  <refsection>
-    <title>説明</title>
-    <para>
-      指定したScilabライブラリの関数名とパスを取得します.
-      返される関数名は対応する .sci または .bin のファイルの名前
-      に一致します.
-      その他の名前は補助関数です.
-    </para>
-  </refsection>
-  <refsection>
-    <title>例</title>
-    <programlisting role="example"><![CDATA[ 
-[m,p]=libraryinfo('corelib')
- ]]></programlisting>
-  </refsection>
-  <refsection role="see also">
-    <title>参照</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="librarieslist">librarieslist</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/whereis.xml b/scilab/modules/functions/help/ja_JP/whereis.xml
deleted file mode 100644 (file)
index 333f59f..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="whereis">
-  <refnamediv>
-    <refname>whereis</refname>
-    <refpurpose>関数が属するライブラリの名前</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>呼び出し手順</title>
-    <synopsis>[librname]=whereis(function-name)</synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>説明</title>
-    <para>
-      関数<literal>function-name</literal>が属するライブラリの名前を
-      文字列として返します.
-      ライブラリのパス名は<literal>"librname"</literal>と入力することにより
-      返されます.
-    </para>
-  </refsection>
-  <refsection role="see also">
-    <title>参照</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="lib">lib</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/genlib.xml b/scilab/modules/functions/help/pt_BR/genlib.xml
deleted file mode 100644 (file)
index 279a6c8..0000000
+++ /dev/null
@@ -1,136 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at
- * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="genlib" xml:lang="en">
-  <refnamediv>
-    <refname>genlib</refname>
-    <refpurpose>constrói biblioteca a partir de funções em um
-      diretório
-    </refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>Seqüência de Chamamento</title>
-    <synopsis>genlib(lib_name [[,dir_name, [ Force [,verb [,Names]]]])
-      genlib(lib_name [,path=dir_name] [,verbose=verb] [,force=Force] [,names=Names])
-    </synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>Parâmetros</title>
-    <variablelist>
-      <varlistentry>
-        <term>lib_name:</term>
-        <listitem>
-          <para>string. O nome da variável biblioteca a ser (re)criada.</para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term>dir_name:</term>
-        <listitem>
-          <para>string. O nome do diretório onde se deve procurar arquivos
-            <literal>.sci</literal>.
-          </para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term>Force</term>
-        <listitem>
-          <para>
-            booleano (o padrão é <literal>%f</literal>). Para forçar
-            recompilação de arquivos .sci, ajuste-o para
-            <literal>%t</literal>.
-          </para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term>verb</term>
-        <listitem>
-          <para>
-            booleano (o padrão é <literal>%f</literal>). Para obter
-            informações ajuste-o para <literal>%t</literal>.
-          </para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term>Names</term>
-        <listitem>
-          <para>vetor de strings, os nomes das funções a serem inclusas na
-            bibilioteca. Por padrão, todos os arquivos sci são levados em
-            conta.
-          </para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsection>
-  <refsection>
-    <title>Descrição</title>
-    <para>
-      Para cada arquivo <literal>.sci</literal> em
-      <literal>dir_name</literal> (ou apenas para aqueles especificados pelo
-      argumento <literal>Names</literal>), <literal>genlib</literal> executa um
-      <literal>exec</literal> e salva as funções no arquivo
-      <literal>.bin</literal> correspondente. O arquivo <literal>.sci</literal>
-      só pode conter instruções Scilab. Se um arquivo <literal>.bin</literal>
-      for mais novo que o arquivo <literal>.sci</literal> assicuadi,
-      <literal>genlib</literal> não traduz nem salva o arquivo.
-    </para>
-    <para>O comportamento padrão pode ser modificado se
-      <literal>force</literal> for fornecido e ajustado para
-      <literal>%t</literal>. Neste último caso, a recompilação é sempre feita
-      para cada arquivo <literal>.sci</literal>.
-    </para>
-    <para>
-      Quando todos os arquivos <literal>.sci</literal> tiverem sido
-      processados, <literal>genlib</literal> cria uma biblioteca nomeada
-      <literal>lib_name</literal> e a salva arquivo <literal>lib</literal> em
-      <literal>dir_name</literal>. Se a variável Scilab
-      <literal>lib_name</literal> não estiver protegida (ver <link linkend="predef">predef</link>), esta variável é atualizada.
-    </para>
-    <para>
-      Se <literal>verb</literal> estiver ajustado para
-      <literal>%t</literal> informações são exibidas durante o processo de
-      construção.
-    </para>
-    <para>
-      Seo argumento <literal>dir_name</literal> não for fornecido e se a
-      variável Scilab <literal>lib_name</literal> existe e é uma variável
-      dir_name é tomado como sendo igual a o endereço de bibilioteca
-      <literal>lib_name</literal> (modo de atualização).
-    </para>
-  </refsection>
-  <refsection>
-    <title>Restrições</title>
-    <para>
-      Scilab assume implicitamente que <literal>foo.sci</literal> define
-      pelo menos uma função de nome <literal>foo</literal>. Se funções
-      subsidiárias estiverem inlusas, elas são tornadas conhecidas ao Scilab
-      apenas depois que função <literal>foo</literal> tiver sido
-      referencida.
-    </para>
-  </refsection>
-  <refsection role="see also">
-    <title>Ver Também</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="getd">getd</link>
-      </member>
-      <member>
-        <link linkend="exec">exec</link>
-      </member>
-      <member>
-        <link linkend="save">save</link>
-      </member>
-      <member>
-        <link linkend="lib">lib</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/get_function_path.xml b/scilab/modules/functions/help/pt_BR/get_function_path.xml
deleted file mode 100644 (file)
index 349ee94..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at
- * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="get_function_path" xml:lang="en">
-  <refnamediv>
-    <refname>get_function_path</refname>
-    <refpurpose>retorna o endereço do arquivo fonte de uma função de
-      biblioteca
-    </refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>Seqüência de Chamamento</title>
-    <synopsis>path=get_function_path(fun_name)</synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>Parâmetros</title>
-    <variablelist>
-      <varlistentry>
-        <term>fun_name</term>
-        <listitem>
-          <para>string, o nome da função</para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term>path</term>
-        <listitem>
-          <para>string, o nome absoluto do endereço do arquivo fonte da função
-            (.sci) ou [].
-          </para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsection>
-  <refsection>
-    <title>Descrição</title>
-    <para>Dadi o nome de uma uma função, get_function_path o nome absoluto do
-      endereço do arquivo fonte da função se a função estiver definida em uma
-      biblioteca Scilab (ver lib) ou [] se nenhum nome corresponde a uma função
-      de biblioteca.
-    </para>
-  </refsection>
-  <refsection>
-    <title>Exemplos</title>
-    <programlisting role="example"><![CDATA[ 
-get_function_path('median')
- ]]></programlisting>
-  </refsection>
-  <refsection role="see also">
-    <title>Ver Também</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="lib">lib</link>
-      </member>
-      <member>
-        <link linkend="string">string</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/lib.xml b/scilab/modules/functions/help/pt_BR/lib.xml
deleted file mode 100644 (file)
index b55d071..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) XXXX-2008 - INRIA
- * 
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at    
- * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="lib" xml:lang="en">
-  <refnamediv>
-    <refname>lib</refname>
-    <refpurpose>definição de biblioteca</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>Seqüência de Chamamento</title>
-    <synopsis>xlib = lib('lib-dir')</synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>Parameters</title>
-    <variablelist>
-      <varlistentry>
-        <term>lib-dir</term>
-        <listitem>
-          <para>string</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsection>
-  <refsection>
-    <title>Descrição</title>
-    <para>
-      <literal>lib-dir</literal> é um string definindo um diretório que
-      contém arquivos de funções compiladas do Scilab
-      (<literal>.bin</literal>).
-    </para>
-    <para>
-      Em adição a esses arquivos <literal>lib-dir</literal> deve conter um
-      arquivo chamado <literal>names</literal>, que contém os nomes das funções
-      definidas em <literal>lib-dir</literal>. Com sucesso, todas as funções em
-      <literal>lib-dir</literal> estarão disponíveis dentro do Scilab. Elas são
-      carregadas em demanda quando são chamadas pela primeira vez.
-    </para>
-    <para>Arquivos binários podem ser criados de dentro do Scilab com o
-      comando <literal>save</literal>.
-    </para>
-    <para>As bibliotecas padrões do Scilab são definidas utilizando-se
-      <literal>lib</literal> nos subdiretórios
-      <literal>SCI/modules/*/macros/*</literal>.
-    </para>
-    <para>Uma variável biblioteca geralmente é salva para carregamento
-      posterior, tanto on-line quanto do arquivo de inicialização específico do
-      usuário (ver startup).
-    </para>
-  </refsection>
-  <refsection>
-    <title>Restrições</title>
-    <para>O Scilab assume tacitamente que cada arquivo xxxx.bin define uma
-      variável chamada <literal>xxxx</literal>.
-    </para>
-  </refsection>
-  <refsection>
-    <title>Exemplos</title>
-    <programlisting role="example"><![CDATA[ 
-//define some variables
-function z = myplus(x, y), z = x + y,endfunction
-function z = yourplus(x, y), x = x - y,endfunction
-A=1:10;
-
-//create the *.bin files in libdir
-libdir=TMPDIR
-save(libdir + '/myplus.bin', myplus);
-save(libdir + '/yourplus.bin', yourplus);
-save(libdir + '/A.bin', A);
-
-//create the name file
-mputl(['myplus';'yourplus';'A'],TMPDIR+'/names');
-
-//build the library containing myplus and yourplus
-xlib = lib(libdir+'/')
-
-//erase the variables
-clear myplus yourplus A
-
-//Automatic loading and execution
-myplus(1,2)
-
-A
- ]]></programlisting>
-  </refsection>
-  <refsection role="see also">
-    <title>Ver Também</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="library">library</link>
-      </member>
-      <member>
-        <link linkend="genlib">genlib</link>
-      </member>
-      <member>
-        <link linkend="save">save</link>
-      </member>
-      <member>
-        <link linkend="deff">deff</link>
-      </member>
-      <member>
-        <link linkend="exec">exec</link>
-      </member>
-      <member>
-        <link linkend="whereis">whereis</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/libraries/CHAPTER b/scilab/modules/functions/help/pt_BR/libraries/CHAPTER
new file mode 100644 (file)
index 0000000..4cd7693
--- /dev/null
@@ -0,0 +1,2 @@
+title = Libraries
+
diff --git a/scilab/modules/functions/help/pt_BR/libraries/genlib.xml b/scilab/modules/functions/help/pt_BR/libraries/genlib.xml
new file mode 100644 (file)
index 0000000..72bb8d7
--- /dev/null
@@ -0,0 +1,136 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) ????-2008 - INRIA
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="genlib" xml:lang="en">
+    <refnamediv>
+        <refname>genlib</refname>
+        <refpurpose>constrói biblioteca a partir de funções em um
+            diretório
+        </refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>Seqüência de Chamamento</title>
+        <synopsis>genlib(lib_name [[,dir_name, [ Force [,verb [,Names]]]])
+            genlib(lib_name [,path=dir_name] [,verbose=verb] [,force=Force] [,names=Names])
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>Parâmetros</title>
+        <variablelist>
+            <varlistentry>
+                <term>lib_name:</term>
+                <listitem>
+                    <para>string. O nome da variável biblioteca a ser (re)criada.</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>dir_name:</term>
+                <listitem>
+                    <para>string. O nome do diretório onde se deve procurar arquivos
+                        <literal>.sci</literal>.
+                    </para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>Force</term>
+                <listitem>
+                    <para>
+                        booleano (o padrão é <literal>%f</literal>). Para forçar
+                        recompilação de arquivos .sci, ajuste-o para
+                        <literal>%t</literal>.
+                    </para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>verb</term>
+                <listitem>
+                    <para>
+                        booleano (o padrão é <literal>%f</literal>). Para obter
+                        informações ajuste-o para <literal>%t</literal>.
+                    </para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>Names</term>
+                <listitem>
+                    <para>vetor de strings, os nomes das funções a serem inclusas na
+                        bibilioteca. Por padrão, todos os arquivos sci são levados em
+                        conta.
+                    </para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>Descrição</title>
+        <para>
+            Para cada arquivo <literal>.sci</literal> em
+            <literal>dir_name</literal> (ou apenas para aqueles especificados pelo
+            argumento <literal>Names</literal>), <literal>genlib</literal> executa um
+            <literal>exec</literal> e salva as funções no arquivo
+            <literal>.bin</literal> correspondente. O arquivo <literal>.sci</literal>
+            só pode conter instruções Scilab. Se um arquivo <literal>.bin</literal>
+            for mais novo que o arquivo <literal>.sci</literal> assicuadi,
+            <literal>genlib</literal> não traduz nem salva o arquivo.
+        </para>
+        <para>O comportamento padrão pode ser modificado se
+            <literal>force</literal> for fornecido e ajustado para
+            <literal>%t</literal>. Neste último caso, a recompilação é sempre feita
+            para cada arquivo <literal>.sci</literal>.
+        </para>
+        <para>
+            Quando todos os arquivos <literal>.sci</literal> tiverem sido
+            processados, <literal>genlib</literal> cria uma biblioteca nomeada
+            <literal>lib_name</literal> e a salva arquivo <literal>lib</literal> em
+            <literal>dir_name</literal>. Se a variável Scilab
+            <literal>lib_name</literal> não estiver protegida (ver <link linkend="predef">predef</link>), esta variável é atualizada.
+        </para>
+        <para>
+            Se <literal>verb</literal> estiver ajustado para
+            <literal>%t</literal> informações são exibidas durante o processo de
+            construção.
+        </para>
+        <para>
+            Seo argumento <literal>dir_name</literal> não for fornecido e se a
+            variável Scilab <literal>lib_name</literal> existe e é uma variável
+            dir_name é tomado como sendo igual a o endereço de bibilioteca
+            <literal>lib_name</literal> (modo de atualização).
+        </para>
+    </refsection>
+    <refsection>
+        <title>Restrições</title>
+        <para>
+            Scilab assume implicitamente que <literal>foo.sci</literal> define
+            pelo menos uma função de nome <literal>foo</literal>. Se funções
+            subsidiárias estiverem inlusas, elas são tornadas conhecidas ao Scilab
+            apenas depois que função <literal>foo</literal> tiver sido
+            referencida.
+        </para>
+    </refsection>
+    <refsection role="see also">
+        <title>Ver Também</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="getd">getd</link>
+            </member>
+            <member>
+                <link linkend="exec">exec</link>
+            </member>
+            <member>
+                <link linkend="save">save</link>
+            </member>
+            <member>
+                <link linkend="lib">lib</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/libraries/get_function_path.xml b/scilab/modules/functions/help/pt_BR/libraries/get_function_path.xml
new file mode 100644 (file)
index 0000000..c7974a6
--- /dev/null
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) ????-2008 - INRIA
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="get_function_path" xml:lang="en">
+    <refnamediv>
+        <refname>get_function_path</refname>
+        <refpurpose>retorna o endereço do arquivo fonte de uma função de
+            biblioteca
+        </refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>Seqüência de Chamamento</title>
+        <synopsis>path=get_function_path(fun_name)</synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>Parâmetros</title>
+        <variablelist>
+            <varlistentry>
+                <term>fun_name</term>
+                <listitem>
+                    <para>string, o nome da função</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>path</term>
+                <listitem>
+                    <para>string, o nome absoluto do endereço do arquivo fonte da função
+                        (.sci) ou [].
+                    </para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>Descrição</title>
+        <para>Dadi o nome de uma uma função, get_function_path o nome absoluto do
+            endereço do arquivo fonte da função se a função estiver definida em uma
+            biblioteca Scilab (ver lib) ou [] se nenhum nome corresponde a uma função
+            de biblioteca.
+        </para>
+    </refsection>
+    <refsection>
+        <title>Exemplos</title>
+        <programlisting role="example"><![CDATA[ 
+get_function_path('median')
+ ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>Ver Também</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="lib">lib</link>
+            </member>
+            <member>
+                <link linkend="string">string</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/libraries/lib.xml b/scilab/modules/functions/help/pt_BR/libraries/lib.xml
new file mode 100644 (file)
index 0000000..4cddc5b
--- /dev/null
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) XXXX-2008 - INRIA
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="lib" xml:lang="en">
+    <refnamediv>
+        <refname>lib</refname>
+        <refpurpose>definição de biblioteca</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>Seqüência de Chamamento</title>
+        <synopsis>xlib = lib('lib-dir')</synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>Parameters</title>
+        <variablelist>
+            <varlistentry>
+                <term>lib-dir</term>
+                <listitem>
+                    <para>string</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>Descrição</title>
+        <para>
+            <literal>lib-dir</literal> é um string definindo um diretório que
+            contém arquivos de funções compiladas do Scilab
+            (<literal>.bin</literal>).
+        </para>
+        <para>
+            Em adição a esses arquivos <literal>lib-dir</literal> deve conter um
+            arquivo chamado <literal>names</literal>, que contém os nomes das funções
+            definidas em <literal>lib-dir</literal>. Com sucesso, todas as funções em
+            <literal>lib-dir</literal> estarão disponíveis dentro do Scilab. Elas são
+            carregadas em demanda quando são chamadas pela primeira vez.
+        </para>
+        <para>Arquivos binários podem ser criados de dentro do Scilab com o
+            comando <literal>save</literal>.
+        </para>
+        <para>As bibliotecas padrões do Scilab são definidas utilizando-se
+            <literal>lib</literal> nos subdiretórios
+            <literal>SCI/modules/*/macros/*</literal>.
+        </para>
+        <para>Uma variável biblioteca geralmente é salva para carregamento
+            posterior, tanto on-line quanto do arquivo de inicialização específico do
+            usuário (ver startup).
+        </para>
+    </refsection>
+    <refsection>
+        <title>Restrições</title>
+        <para>O Scilab assume tacitamente que cada arquivo xxxx.bin define uma
+            variável chamada <literal>xxxx</literal>.
+        </para>
+    </refsection>
+    <refsection>
+        <title>Exemplos</title>
+        <programlisting role="example"><![CDATA[ 
+//define some variables
+function z = myplus(x, y), z = x + y,endfunction
+function z = yourplus(x, y), x = x - y,endfunction
+A=1:10;
+
+//create the *.bin files in libdir
+libdir=TMPDIR
+save(libdir + '/myplus.bin', myplus);
+save(libdir + '/yourplus.bin', yourplus);
+save(libdir + '/A.bin', A);
+
+//create the name file
+mputl(['myplus';'yourplus';'A'],TMPDIR+'/names');
+
+//build the library containing myplus and yourplus
+xlib = lib(libdir+'/')
+
+//erase the variables
+clear myplus yourplus A
+
+//Automatic loading and execution
+myplus(1,2)
+
+A
+ ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>Ver Também</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="library">library</link>
+            </member>
+            <member>
+                <link linkend="genlib">genlib</link>
+            </member>
+            <member>
+                <link linkend="save">save</link>
+            </member>
+            <member>
+                <link linkend="deff">deff</link>
+            </member>
+            <member>
+                <link linkend="exec">exec</link>
+            </member>
+            <member>
+                <link linkend="whereis">whereis</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/libraries/librarieslist.xml b/scilab/modules/functions/help/pt_BR/libraries/librarieslist.xml
new file mode 100644 (file)
index 0000000..2d4e579
--- /dev/null
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="librarieslist" xml:lang="en">
+    <refnamediv>
+        <refname>librarieslist</refname>
+        <refpurpose>retorna as bibliotecas do Scilab</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>Seqüência de Chamamento</title>
+        <synopsis>s=librarieslist()</synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>Parâmetros</title>
+        <variablelist>
+            <varlistentry>
+                <term>s</term>
+                <listitem>
+                    <para>uma matriz de strings</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>Descrição</title>
+        <para>
+            Retorna em <literal>s</literal> todas as bibliotecas na pilha
+            Scilab.
+        </para>
+    </refsection>
+    <refsection>
+        <title>Exemplos</title>
+        <programlisting role="example"><![CDATA[ 
+librarieslist()
+ ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>Ver Também</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="libraryinfo">libraryinfo</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/libraries/library.xml b/scilab/modules/functions/help/pt_BR/libraries/library.xml
new file mode 100644 (file)
index 0000000..797923d
--- /dev/null
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) ????-2008 - INRIA
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="library" xml:lang="en">
+    <refnamediv>
+        <refname>library</refname>
+        <refpurpose>descrição de tipo de dado bibilioteca</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>Seqüência de Chamamento</title>
+        <synopsis/>
+    </refsynopsisdiv>
+    <refsection>
+        <title>Descrição</title>
+        <para>Uma bibilioteca é um tipo de dado com número 14. Contém um nome de
+            endereço e um conjunto de nomes. Permite o carregamento automático de
+            variáveis utilizando o seguinte algoritmo:
+        </para>
+        <para>Suponha o usuário Scilab referencie a variável de nome
+            <literal>foo</literal>. O Scilab procura primeiro se
+            <literal>foo</literal> é o nome de uma primitiva, ou de uma variável já
+            definida. Se naõ for, procura por <literal>foo</literal> seqüencialmente
+            (a mais nova) em toda a biblioteca definida .
+        </para>
+        <para>
+            Suponha que <literal>foo</literal> pertence ao conjunto de nomes da
+            biblioteca <literal>xlib</literal>. Então o Scilab tenta carregar o
+            arquivo &lt;xlib-path-name&gt;/foo.bin. &lt;xlib-path-name&gt;/foo.bin
+            deve ter sido criado utilizando-se a função
+            <literal>save</literal>.
+        </para>
+        <para>Bibliotecas geralmente são utilizadas para coleções de funções, mas
+            também podem ser utilizadas para coleções de variáveis Scilab.
+        </para>
+        <para>Se uma função estiver definida em mais de uma biblioteca, o
+            algoritmo de busca padrão carrega aquela contida na mais nova. É possível
+            forçar o uso de uma biblioteca específica utilizando a notação de
+            ponto:
+        </para>
+        <para>
+            <literal>xlib.foo</literal> carrega a variável
+            <literal>foo</literal> contida em <literal>xlib</literal>, if
+            <literal>foo</literal> for uma função e <literal>xlib.foo(args)</literal>
+            executa as funções.
+        </para>
+    </refsection>
+    <refsection>
+        <title>Exemplos</title>
+        <programlisting role="example"><![CDATA[ 
+// elemlib é uma biblioteca predefinida
+elementary_functionlib //exibindo o conteúdo da biblioteca
+A=rand(3,3);
+cosm(A) //carregando cosm e executando-o
+whos -name cosm // agora, cosm é uma variável
+elementary_functionlib.sinm //carregando sinm da biblioteca
+elementary_functionlib.cosm(A) //carregando novamente cosm e executando-o
+ ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>Ver Também</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="lib">lib</link>
+            </member>
+            <member>
+                <link linkend="string">string</link>
+            </member>
+            <member>
+                <link linkend="load">load</link>
+            </member>
+            <member>
+                <link linkend="save">save</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/libraries/libraryinfo.xml b/scilab/modules/functions/help/pt_BR/libraries/libraryinfo.xml
new file mode 100644 (file)
index 0000000..4675384
--- /dev/null
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="libraryinfo" xml:lang="en">
+    <refnamediv>
+        <refname>libraryinfo</refname>
+        <refpurpose>retorna macros e endereço de uma biblioteca
+            Scilab
+        </refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>Seqüência de Chamamento</title>
+        <synopsis>macros = libraryinfo(libraryname)
+            [macros,path] = libraryinfo(libraryname)
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>Parâmetros</title>
+        <variablelist>
+            <varlistentry>
+                <term>macros</term>
+                <listitem>
+                    <para>uma matriz de strings (todas as funções principais da
+                        biblioteca)
+                    </para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+        <variablelist>
+            <varlistentry>
+                <term>path</term>
+                <listitem>
+                    <para>um string (endereço da biblioteca)</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+        <variablelist>
+            <varlistentry>
+                <term>libraryname</term>
+                <listitem>
+                    <para>string (nome da biblioteca)</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>Descrição</title>
+        <para>Retorna nomes de funções e o endereço de uma biblioteca Scilab. Os
+            nomes de funções são aqueles que correspondem aos nomes de arquivo
+            associados .sci ou .bin. Os outros são funções subsidiárias.
+        </para>
+    </refsection>
+    <refsection>
+        <title>Exemplos</title>
+        <programlisting role="example"><![CDATA[ 
+[m,p]=libraryinfo('corelib')
+ ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>Ver Também</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="librarieslist">librarieslist</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/libraries/whereis.xml b/scilab/modules/functions/help/pt_BR/libraries/whereis.xml
new file mode 100644 (file)
index 0000000..822dab2
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="whereis" xml:lang="en">
+    <refnamediv>
+        <refname>whereis</refname>
+        <refpurpose>ome da biblioteca contendo a função</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>Seqüência de Chamamento</title>
+        <synopsis>[librname]=whereis(function-name)</synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>Descrição</title>
+        <para>Retorna um string correspondente ao nome da biblioteca onde a função
+            <literal>function-name</literal>. se encontra. O endereço da biblioteca é
+            retornado digitando-se <literal>"librname"</literal>.
+        </para>
+    </refsection>
+    <refsection role="see also">
+        <title>Ver Também</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="lib">lib</link>
+            </member>
+        </simplelist>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/librarieslist.xml b/scilab/modules/functions/help/pt_BR/librarieslist.xml
deleted file mode 100644 (file)
index 2044845..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="librarieslist" xml:lang="en">
-  <refnamediv>
-    <refname>librarieslist</refname>
-    <refpurpose>retorna as bibliotecas do Scilab</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>Seqüência de Chamamento</title>
-    <synopsis>s=librarieslist()</synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>Parâmetros</title>
-    <variablelist>
-      <varlistentry>
-        <term>s</term>
-        <listitem>
-          <para>uma matriz de strings</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsection>
-  <refsection>
-    <title>Descrição</title>
-    <para>
-      Retorna em <literal>s</literal> todas as bibliotecas na pilha
-      Scilab.
-    </para>
-  </refsection>
-  <refsection>
-    <title>Exemplos</title>
-    <programlisting role="example"><![CDATA[ 
-librarieslist()
- ]]></programlisting>
-  </refsection>
-  <refsection role="see also">
-    <title>Ver Também</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="libraryinfo">libraryinfo</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/library.xml b/scilab/modules/functions/help/pt_BR/library.xml
deleted file mode 100644 (file)
index 9071a6d..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at
- * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="library" xml:lang="en">
-  <refnamediv>
-    <refname>library</refname>
-    <refpurpose>descrição de tipo de dado bibilioteca</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>Seqüência de Chamamento</title>
-    <synopsis/>
-  </refsynopsisdiv>
-  <refsection>
-    <title>Descrição</title>
-    <para>Uma bibilioteca é um tipo de dado com número 14. Contém um nome de
-      endereço e um conjunto de nomes. Permite o carregamento automático de
-      variáveis utilizando o seguinte algoritmo:
-    </para>
-    <para>Suponha o usuário Scilab referencie a variável de nome
-      <literal>foo</literal>. O Scilab procura primeiro se
-      <literal>foo</literal> é o nome de uma primitiva, ou de uma variável já
-      definida. Se naõ for, procura por <literal>foo</literal> seqüencialmente
-      (a mais nova) em toda a biblioteca definida .
-    </para>
-    <para>
-      Suponha que <literal>foo</literal> pertence ao conjunto de nomes da
-      biblioteca <literal>xlib</literal>. Então o Scilab tenta carregar o
-      arquivo &lt;xlib-path-name&gt;/foo.bin. &lt;xlib-path-name&gt;/foo.bin
-      deve ter sido criado utilizando-se a função
-      <literal>save</literal>.
-    </para>
-    <para>Bibliotecas geralmente são utilizadas para coleções de funções, mas
-      também podem ser utilizadas para coleções de variáveis Scilab.
-    </para>
-    <para>Se uma função estiver definida em mais de uma biblioteca, o
-      algoritmo de busca padrão carrega aquela contida na mais nova. É possível
-      forçar o uso de uma biblioteca específica utilizando a notação de
-      ponto:
-    </para>
-    <para>
-      <literal>xlib.foo</literal> carrega a variável
-      <literal>foo</literal> contida em <literal>xlib</literal>, if
-      <literal>foo</literal> for uma função e <literal>xlib.foo(args)</literal>
-      executa as funções.
-    </para>
-  </refsection>
-  <refsection>
-    <title>Exemplos</title>
-    <programlisting role="example"><![CDATA[ 
-// elemlib é uma biblioteca predefinida
-elementary_functionlib //exibindo o conteúdo da biblioteca
-A=rand(3,3);
-cosm(A) //carregando cosm e executando-o
-whos -name cosm // agora, cosm é uma variável
-elementary_functionlib.sinm //carregando sinm da biblioteca
-elementary_functionlib.cosm(A) //carregando novamente cosm e executando-o
- ]]></programlisting>
-  </refsection>
-  <refsection role="see also">
-    <title>Ver Também</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="lib">lib</link>
-      </member>
-      <member>
-        <link linkend="string">string</link>
-      </member>
-      <member>
-        <link linkend="load">load</link>
-      </member>
-      <member>
-        <link linkend="save">save</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/libraryinfo.xml b/scilab/modules/functions/help/pt_BR/libraryinfo.xml
deleted file mode 100644 (file)
index 2a7234d..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="libraryinfo" xml:lang="en">
-  <refnamediv>
-    <refname>libraryinfo</refname>
-    <refpurpose>retorna macros e endereço de uma biblioteca
-      Scilab
-    </refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>Seqüência de Chamamento</title>
-    <synopsis>macros = libraryinfo(libraryname)
-      [macros,path] = libraryinfo(libraryname)
-    </synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>Parâmetros</title>
-    <variablelist>
-      <varlistentry>
-        <term>macros</term>
-        <listitem>
-          <para>uma matriz de strings (todas as funções principais da
-            biblioteca)
-          </para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-    <variablelist>
-      <varlistentry>
-        <term>path</term>
-        <listitem>
-          <para>um string (endereço da biblioteca)</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-    <variablelist>
-      <varlistentry>
-        <term>libraryname</term>
-        <listitem>
-          <para>string (nome da biblioteca)</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsection>
-  <refsection>
-    <title>Descrição</title>
-    <para>Retorna nomes de funções e o endereço de uma biblioteca Scilab. Os
-      nomes de funções são aqueles que correspondem aos nomes de arquivo
-      associados .sci ou .bin. Os outros são funções subsidiárias.
-    </para>
-  </refsection>
-  <refsection>
-    <title>Exemplos</title>
-    <programlisting role="example"><![CDATA[ 
-[m,p]=libraryinfo('corelib')
- ]]></programlisting>
-  </refsection>
-  <refsection role="see also">
-    <title>Ver Também</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="librarieslist">librarieslist</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/whereis.xml b/scilab/modules/functions/help/pt_BR/whereis.xml
deleted file mode 100644 (file)
index c64ab21..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="whereis" xml:lang="en">
-  <refnamediv>
-    <refname>whereis</refname>
-    <refpurpose>ome da biblioteca contendo a função</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <title>Seqüência de Chamamento</title>
-    <synopsis>[librname]=whereis(function-name)</synopsis>
-  </refsynopsisdiv>
-  <refsection>
-    <title>Descrição</title>
-    <para>Retorna um string correspondente ao nome da biblioteca onde a função
-      <literal>function-name</literal>. se encontra. O endereço da biblioteca é
-      retornado digitando-se <literal>"librname"</literal>.
-    </para>
-  </refsection>
-  <refsection role="see also">
-    <title>Ver Também</title>
-    <simplelist type="inline">
-      <member>
-        <link linkend="lib">lib</link>
-      </member>
-    </simplelist>
-  </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/ru_RU/libraries/CHAPTER b/scilab/modules/functions/help/ru_RU/libraries/CHAPTER
new file mode 100644 (file)
index 0000000..4cd7693
--- /dev/null
@@ -0,0 +1,2 @@
+title = Libraries
+