help names: any length + UTF-8 accepted
[scilab.git] / scilab / modules / core / help / pt_BR / variables / names.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) INRIA
5  * Copyright (C) 2017 - Samuel GOUGEON
6  *
7  * Copyright (C) 2012 - 2016 - Scilab Enterprises
8  *
9  * This file is hereby licensed under the terms of the GNU GPL v2.0,
10  * pursuant to article 5.3.4 of the CeCILL v.2.1.
11  * This file was originally licensed under the terms of the CeCILL v2.1,
12  * and continues to be available under such terms.
13  * For more information, see the COPYING file which you should have received
14  * along with this program.
15  *
16  -->
17 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
18         xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml"
19         xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
20         xmlns:scilab="http://www.scilab.org" xml:id="names" xml:lang="pt">
21     <refnamediv>
22         <refname>names</refname>
23         <refpurpose>scilab names syntax</refpurpose>
24     </refnamediv>
25     <refsection>
26         <title>Descrição</title>
27         <para>Nomes de variáveis ou funções no Scilab devem começar com uma letra,
28             ou com um dos seguintes caracteres especiais: <literal>% _ # ! ? $</literal>
29         </para>
30         <para>Os próximos caracteres podem ser letras ou um dos seguintes
31             caracteres especiais: <literal>_ # ! ? $</literal>
32         </para>
33         <para>
34             Letras maiúsculas e minúsculas são diferentes.
35         </para>
36         <para>
37             Multilingual UTF-8 characters are accepted.
38         </para>
39         <para>
40             Names may be as long as you want.
41         </para>
42     </refsection>
43     <refsection>
44         <title>Exemplos</title>
45         <programlisting role="example"><![CDATA[
46 //Nomes válidos
47 %eps
48 A1 = 123
49 #Color = 8
50 função = "linspace"
51
52 //Nomes inválidos
53 //1A , b%, .C
54
55 // Long names
56 The_name_of_an_identifier_is_not_length_limited = 1
57
58 // A kilometric name:
59 name = strcat(part("a",ones(1,1000))); // 1000-char long
60 execstr(name+"=%pi; b ="+name);
61 b
62  ]]></programlisting>
63     </refsection>
64     <refsection role="history">
65         <title>Histórico</title>
66         <revhistory>
67             <revision>
68                 <revnumber>6.0</revnumber>
69                 <revdescription>
70                     <itemizedlist>
71                         <listitem>
72                             Scilab's parser no longer truncates names longer than 24 characters.
73                         </listitem>
74                         <listitem>
75                             UTF-8 characters are now accepted in names of variables and fields.
76                         </listitem>
77                     </itemizedlist>
78                 </revdescription>
79             </revision>
80         </revhistory>
81     </refsection>
82 </refentry>