help names: any length + UTF-8 accepted
[scilab.git] / scilab / modules / core / help / ja_JP / 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:mml="http://www.w3.org/1998/Math/MathML"
19         xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
20         xml:lang="ja" xml:id="names">
21     <refnamediv>
22         <refname>names</refname>
23         <refpurpose>Scilab 名前の構文</refpurpose>
24     </refnamediv>
25     <refsection>
26         <title>説明</title>
27         <para>
28             変数および関数の名前は文字または以下の特殊文字のとれかから始まる必要があります:
29             <literal>% _ # ! ? $</literal>
30         </para>
31         <para>
32             以下に続く文字は,文字,数字,
33             <literal>_ # ! ? $</literal>
34             を含む任意の特殊文字とすることができます.
35         </para>
36         <para>
37             大文字小文字は区別されます.
38         </para>
39         <para>
40             Multilingual UTF-8 characters are accepted.
41         </para>
42         <para>
43             Names may be as long as you want.
44         </para>
45     </refsection>
46     <refsection>
47         <title>例</title>
48         <programlisting role="example"><![CDATA[
49 // 有効な名前
50 %eps
51 A1 = 123
52 #Color = 8
53 長さ = 2
54 My_Special_Color_Table = rand(10,3)
55
56 // 無効な名前
57 //1A , b%, .C
58
59 //長い名前
60 The_name_of_an_identifier_is_not_length_limited = 1
61
62 // A kilometric name (1000-char long) :
63 name = strcat(part("a",ones(1,1000)));
64 execstr(name+"=%pi; b ="+name);
65 b
66  ]]></programlisting>
67     </refsection>
68     <refsection role="history">
69         <title>履歴</title>
70         <revhistory>
71             <revision>
72                 <revnumber>6.0</revnumber>
73                 <revdescription>
74                     <itemizedlist>
75                         <listitem>
76                             Scilab's parser no longer truncates names longer than 24 characters.
77                         </listitem>
78                         <listitem>
79                             UTF-8 characters are now accepted in names of variables and fields.
80                         </listitem>
81                     </itemizedlist>
82                 </revdescription>
83             </revision>
84         </revhistory>
85     </refsection>
86 </refentry>