summaryrefslogtreecommitdiffstats
path: root/scilab
diff options
context:
space:
mode:
authorSamuel GOUGEON <sgougeon@free.fr>2021-01-01 18:27:51 +0100
committerClément David <clement.david@esi-group.com>2021-01-21 20:09:07 +0100
commit136c7fe92085dd1b983997fda3b170a0f5d98660 (patch)
treec8f837573e87d641e7f4fb6b908fcab1d9a1ac13 /scilab
parent9a788474c90d8bfe06857f062c02d43e58454281 (diff)
downloadscilab-136c7fe92085dd1b983997fda3b170a0f5d98660.zip
scilab-136c7fe92085dd1b983997fda3b170a0f5d98660.tar.gz
* Bug 9221: %chars constant added (selected sets of unicode symbols)
http://bugzilla.scilab.org/9221 %chars proposed page (PDF): http://bugzilla.scilab.org/attachment.cgi?id=5210 Change-Id: I52b18632faddfc11ad131a7cdae7314d18253edb
Diffstat (limited to 'scilab')
-rw-r--r--scilab/CHANGES.md2
-rw-r--r--scilab/etc/scilab.start3
-rw-r--r--scilab/modules/core/help/en_US/variables/predefined/percentchars.xml133
-rw-r--r--scilab/modules/core/help/ru_RU/variables/predefined/percentchars.xml135
-rw-r--r--scilab/modules/core/macros/percentchars.sci49
-rw-r--r--scilab/modules/ui_data/src/cpp/BrowseVarManager.cpp53
6 files changed, 349 insertions, 26 deletions
diff --git a/scilab/CHANGES.md b/scilab/CHANGES.md
index 12c75f0..2fd4a24 100644
--- a/scilab/CHANGES.md
+++ b/scilab/CHANGES.md
@@ -196,6 +196,7 @@ Feature changes and additions
196 - It can now sort any sparse 2D matrix, in all `g, r, c, lr, lc` methods, including sparse booleans and in multi-level mode. It was formerly limited to sparse real or complex vectors and only to the `g` mode. 196 - It can now sort any sparse 2D matrix, in all `g, r, c, lr, lc` methods, including sparse booleans and in multi-level mode. It was formerly limited to sparse real or complex vectors and only to the `g` mode.
197 - Any hypermatrix can be sorted along a dimension > 2. 197 - Any hypermatrix can be sorted along a dimension > 2.
198* `unique` is enabled for any 2D sparse arrays, in simple, 'c' and 'r' modes. 198* `unique` is enabled for any 2D sparse arrays, in simple, 'c' and 'r' modes.
199* %chars constant added, to easily access to some selected sets of unicode symbols.
199 200
200Help pages: 201Help pages:
201----------- 202-----------
@@ -278,6 +279,7 @@ Bug Fixes
278* [#7117](https://bugzilla.scilab.org/7117): `findobj()` could not search within given object. 279* [#7117](https://bugzilla.scilab.org/7117): `findobj()` could not search within given object.
279* [#8059](https://bugzilla.scilab.org/8059): A local `.wgetrc` config file could make troubles in `atomsDownload`. 280* [#8059](https://bugzilla.scilab.org/8059): A local `.wgetrc` config file could make troubles in `atomsDownload`.
280* [#8378](https://bugzilla.scilab.org/8378): Datatip `ContextMenu => Delete last datatip` was useless. 281* [#8378](https://bugzilla.scilab.org/8378): Datatip `ContextMenu => Delete last datatip` was useless.
282* [#9221](https://bugzilla.scilab.org/9221): There was no way in Scilab to easily access to sets of unicode symbols like greek letters, etc.
281* [#9909](https://bugzilla.scilab.org/9909): In the help browser, add a way to open the online version of the current page. 283* [#9909](https://bugzilla.scilab.org/9909): In the help browser, add a way to open the online version of the current page.
282* [#10476](https://bugzilla.scilab.org/10476): From `browsevar`, displaying the content of lists, structures, cells, or other custom tlists or mlists was not possible. 284* [#10476](https://bugzilla.scilab.org/10476): From `browsevar`, displaying the content of lists, structures, cells, or other custom tlists or mlists was not possible.
283* [#12418](https://bugzilla.scilab.org/12418): Using bvode() with "continuation", i.e. `ipar(9) > 1` led to an error. 285* [#12418](https://bugzilla.scilab.org/12418): Using bvode() with "continuation", i.e. `ipar(9) > 1` led to an error.
diff --git a/scilab/etc/scilab.start b/scilab/etc/scilab.start
index 949509b..872f33d 100644
--- a/scilab/etc/scilab.start
+++ b/scilab/etc/scilab.start
@@ -76,6 +76,9 @@ if getos() <> "Windows" then
76end 76end
77setenv("VERSION", getversion()); 77setenv("VERSION", getversion());
78 78
79// Add %chars constant ================================================
80%chars = percentchars()
81
79// ATOMS =============================================================== 82// ATOMS ===============================================================
80if with_module("atoms") then 83if with_module("atoms") then
81 atomsSystemInit(); 84 atomsSystemInit();
diff --git a/scilab/modules/core/help/en_US/variables/predefined/percentchars.xml b/scilab/modules/core/help/en_US/variables/predefined/percentchars.xml
new file mode 100644
index 0000000..9ebc9c2
--- /dev/null
+++ b/scilab/modules/core/help/en_US/variables/predefined/percentchars.xml
@@ -0,0 +1,133 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2020 - Samuel GOUGEON
5 *
6 * This file is hereby licensed under the terms of the GNU GPL v2.0,
7 * pursuant to article 5.3.4 of the CeCILL v.2.1.
8 * This file was originally licensed under the terms of the CeCILL v2.1,
9 * and continues to be available under such terms.
10 * For more information, see the COPYING file which you should have received
11 * along with this program.
12 *
13 -->
14<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
15 xmlns:svg="http://www.w3.org/2000/svg" xmlns:db="http://docbook.org/ns/docbook"
16 xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="percentchars">
17 <refnamediv>
18 <refname>%chars</refname>
19 <refpurpose>Selected sets of Unicode characters</refpurpose>
20 </refnamediv>
21 <refsynopsisdiv>
22 <title>Syntax</title>
23 <synopsis>%chars</synopsis>
24 </refsynopsisdiv>
25 <refsection>
26 <title>Description</title>
27 <para>
28 <emphasis role="bold">%chars</emphasis> is a Scilab constant made
29 of a structure gathering various sets of Unicode characters.
30 </para>
31 <para>
32 %chars aims to easily access to greek letters, most frequent mathematical
33 symbols, arrows, etc. After displaying %chars in the console or displaying this page in
34 the help browser, copy/pasting selected characters wherever they are needed becomes
35 trivial and very handy.
36 </para>
37 <para>
38 In many simple situations -- when setting legends in graphics, writing some
39 help pages or some other documentation, etc, using ready-to-read special characters
40 instead of not-rendered raw LaTeX technical expressions is enough and helpful.
41 </para>
42 <important>
43 Character sets provided by %chars must not be considered as fixed and definitive.
44 The number of sets, their names, hierarchy, and order can vary in the future,
45 as well as the order of characters in the sets. In addition, a given character
46 may belong to several sets.
47 </important>
48 <note>
49 The full display of all %chars contents in the console may require tuning the
50 <emphasis>General:Environment/Containers display depth</emphasis> parameter
51 in the Preferences.
52 </note>
53 </refsection>
54 <refsection>
55 <title>Examples</title>
56 <programlisting role="example"><![CDATA[
57%chars
58 ]]></programlisting>
59 <screen><![CDATA[
60--> %chars
61 %chars =
62 greek: struct with fields:
63 lower = "αβδεϵζηθικλμνξοπρστυφϕχψωάϐέήϑίϊϰόϱςύϋΰϖώ"
64 upper = "ΑΒΓΔΕΖΗΘϴΙΪΚΛΜΝΞΟΠΡΣΤΥΫΦΧΨΩ KΩ℧"
65 subsupscript = "₀₁₂₃₄₅₆₇₈₉₊₋₌₍ₐₕₖₗₘₙₒₚₛₜₓ₎ ⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽ªⁱⁿº⁾"
66 maths: struct with fields:
67 frac = "½ ⅓ ¼ ⅕ ⅙ ⅛ ⅔ ⅖ ¾ ⅗ ⅜ ⅘ ⅚ ⅝ ⅞"
68 sets = "ℂⅅℍℕℙℚℝℤ∉∈∊∍∋∌∅∖⋂∩⋃∪⊂⊆⊄⊅⊇⊃⋐⋑⋒⋓"
69 operators = "−±∓∔÷×∏∐∑√∛∜⋅⋆⊕⊖⊝⊗⊘⊙⊚⊛⊜⊞⊟⊠⊡"
70 comparisons = "⋘≪≤≲≳≥≫⋙≠≃≄≅≈∽∝≍≐≔≕≝"
71 integdiff = "∂∇∆∫∬∭∮∯∰∱⨑∲"
72 geometry = "°′″∟⊾∠∡∢⊥∥∦∺∻≎⊿⋕"
73 logical = "∀∃∄∧∨⋀⋁⊼⊽⊻∁∴∵∎≍"
74 misc = "⋮⋰⋯⋱ ′ ″ ∞ ‰ ‱"
75 physics = "Å ℃ ℉ ħ"
76 arrows: struct with fields:
77 base = "←↖↑↗→↘↓↙↔↕↵↱↴☇⇐⇑⇒⇓⇔↺↻⊣⊥⊢⊤"
78 thick = "⬅⬆➞⬇➚➙➘➔➜➡➥➦➧➨➼➽"
79 symbols = "…⋈⋔⋄♢◊♤♧♡♦♠♣♥©®℗Ⓢ™℡♀♂⌘✠♻☎«»◬⨺⨹⨻¶"
80 stars = "⋆★☆✫✯✰✭✡⊛⍟✪❂✻✼✹✸✶"
81 currencies = "¤ $ ¢ € £ ¥ 円 元 ₪ ฿ ¢ ₫ ₣"
82 lang: struct with fields:
83 latin: struct with fields:
84 voydiac = "áàâãäāăåéêèëēěėíîïóòôõöőōúùûŭũūůüűýŷÿ"
85 condiac = "ćĉčçċďđǵĜ ğġĥħĵķĺļłńňņŕřŗśŝšşťţŵźžż"
86 special = "æ Æ œ Œ ℬ ъ Ъ Þ þ ⅆ ℇ ℈ ℰ ƒ ⨍ ℊ ℱ ℏ ℎ ℋ ℌ ℐ ℑ ℳ № ℘ ℛ ℜ"
87 LATIN: struct with fields:
88 voydiac = "ÁÀÂÃÄĀĂÅÉÊÈËĒĚĖÍÎÏÓÒÔÕÖŐŌÚÙÛŬŨŪŮÜŰÝŶŸ"
89 condiac = "ĆĈČĊÇĎĐ ĝĢĞĠĤĦĴĶĹĻŁŃŇŅŔŘŖŚŜŠŞŤŢŴŹŽŻ"
90 russian = "абвгдеёжзийклмнопрстуфхцчшщъыьэюя"
91 RUSSIAN = "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ"
92 japanese: struct with fields:
93 hiragana: struct with fields:
94 a = "あかさたなはまやらわ がざだばぱ"
95 e = "えけせてねへめ れゑ げぜでべぺ"
96 i = "いきしちにひみ りゐ ぎじぢびぴ"
97 o = "おこそとのほもよろをんごぞどぽ"
98 u = "うくすつぬふむゆる ぐずづぶぷ"
99 arabic: struct with fields:
100 alone1 = "ش س ز ر ذ د خ ح ج ث ت ب ا ء"
101 alone2 = "ي و ه ن م ل ك ق ف غ ع ظ ط ض ص"
102]]></screen>
103 </refsection>
104 <refsection role="see also">
105 <title></title>
106 <simplelist type="inline">
107 <member>
108 <link linkend="xlfont">xlfont</link>
109 </member>
110 <member>
111 <link linkend="math_rendering_features_in_graphic">LaTeX in Scilab</link>
112 </member>
113 <member>
114 <link linkend="console">console</link>
115 </member>
116 <member>
117 <link linkend="ascii">ascii</link>
118 </member>
119 </simplelist>
120 </refsection>
121 <refsection role="history">
122 <title>History</title>
123 <revhistory>
124 <revision>
125 <revnumber>6.1.1</revnumber>
126 <revdescription>
127 %chars introduced.
128 </revdescription>
129 </revision>
130 </revhistory>
131 </refsection>
132</refentry>
133
diff --git a/scilab/modules/core/help/ru_RU/variables/predefined/percentchars.xml b/scilab/modules/core/help/ru_RU/variables/predefined/percentchars.xml
new file mode 100644
index 0000000..9fb55d8
--- /dev/null
+++ b/scilab/modules/core/help/ru_RU/variables/predefined/percentchars.xml
@@ -0,0 +1,135 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2020 - Samuel GOUGEON
5 *
6 * This file is hereby licensed under the terms of the GNU GPL v2.0,
7 * pursuant to article 5.3.4 of the CeCILL v.2.1.
8 * This file was originally licensed under the terms of the CeCILL v2.1,
9 * and continues to be available under such terms.
10 * For more information, see the COPYING file which you should have received
11 * along with this program.
12 *
13 -->
14<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
15 xmlns:svg="http://www.w3.org/2000/svg" xmlns:db="http://docbook.org/ns/docbook"
16 xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="percentchars">
17 <refnamediv>
18 <refname>%chars</refname>
19 <refpurpose>Избранные наборы символов Unicode</refpurpose>
20 </refnamediv>
21 <refsynopsisdiv>
22 <title>Синтаксис</title>
23 <synopsis>%chars</synopsis>
24 </refsynopsisdiv>
25 <refsection>
26 <title>Описание</title>
27 <para>
28 <emphasis role="bold">%chars</emphasis> является константой Scilab,
29 сделанной из структуры, сбором различных наборов символов Unicode.
30 </para>
31 <para>
32 <literal>%chars</literal> предназначена для лёгкого доступа к греческим
33 буквам, наиболее часто встречающимся математическим символам, стрелкам
34 и т.д. После отображения <literal>%chars</literal> в консоли или отображая
35 эту страницу в браузере справки, копирование/вставка выбранных символов
36 становится тривиальной и очень удобной, где бы то ни было.
37 </para>
38 <para>
39 Во многих простых ситуациях - при вставке легенды в графики, написании
40 некоторых страниц справки или иной документации и т.д., довольно удобно
41 и приятно использование готовых к чтению специальных символов вместо
42 несгенерированных сырых технических LaTeX-выражений.
43 </para>
44 <important>
45 Наборы символов, предоставляемые <literal>%chars</literal> не должны
46 рассматриваться, как фиксированные и определённые. Число наборов, их
47 имена, иерархия и порядок могут изменяться со временем, так же как и
48 порядок символов в наборах. К тому же указанные символы могут принадлежать
49 к нескольким наборам.
50 </important>
51 <note>
52 Полное отображение всего содержимого <literal>%chars</literal> в командном
53 окне может потребовать изменения параметра <emphasis>Общее:глубина
54 отображения Среды/Контейнеров</emphasis> в Настройках.
55 </note>
56 </refsection>
57 <refsection>
58 <title>Примеры</title>
59 <programlisting role="example"><![CDATA[
60%chars
61 ]]></programlisting>
62 <screen><![CDATA[
63--> %chars
64 %chars =
65 greek: struct with fields:
66 lower = "αβδεϵζηθικλμνξοπρστυφϕχψωάϐέήϑίϊϰόϱςύϋΰϖώ"
67 upper = "ΑΒΓΔΕΖΗΘϴΙΪΚΛΜΝΞΟΠΡΣΤΥΫΦΧΨΩ KΩ℧"
68 subsupscript = "₀₁₂₃₄₅₆₇₈₉₊₋₌₍ₐₕₖₗₘₙₒₚₛₜₓ₎ ⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽ªⁱⁿº⁾"
69 maths: struct with fields:
70 frac = "½ ⅓ ¼ ⅕ ⅙ ⅛ ⅔ ⅖ ¾ ⅗ ⅜ ⅘ ⅚ ⅝ ⅞"
71 sets = "ℂⅅℍℕℙℚℝℤ∉∈∊∍∋∌∅∖⋂∩⋃∪⊂⊆⊄⊅⊇⊃⋐⋑⋒⋓"
72 operators = "−±∓∔÷×∏∐∑√∛∜⋅⋆⊕⊖⊝⊗⊘⊙⊚⊛⊜⊞⊟⊠⊡"
73 comparisons = "⋘≪≤≲≳≥≫⋙≠≃≄≅≈∽∝≍≐≔≕≝"
74 integdiff = "∂∇∆∫∬∭∮∯∰∱⨑∲"
75 geometry = "°′″∟⊾∠∡∢⊥∥∦∺∻≎⊿⋕"
76 logical = "∀∃∄∧∨⋀⋁⊼⊽⊻∁∴∵∎≍"
77 misc = "⋮⋰⋯⋱ ′ ″ ∞ ‰ ‱"
78 physics = "Å ℃ ℉ ħ"
79 arrows: struct with fields:
80 base = "←↖↑↗→↘↓↙↔↕↵↱↴☇⇐⇑⇒⇓⇔↺↻⊣⊥⊢⊤"
81 thick = "⬅⬆➞⬇➚➙➘➔➜➡➥➦➧➨➼➽"
82 symbols = "…⋈⋔⋄♢◊♤♧♡♦♠♣♥©®℗Ⓢ™℡♀♂⌘✠♻☎«»◬⨺⨹⨻¶"
83 stars = "⋆★☆✫✯✰✭✡⊛⍟✪❂✻✼✹✸✶"
84 currencies = "¤ $ ¢ € £ ¥ 円 元 ₪ ฿ ¢ ₫ ₣"
85 lang: struct with fields:
86 latin: struct with fields:
87 voydiac = "áàâãäāăåéêèëēěėíîïóòôõöőōúùûŭũūůüűýŷÿ"
88 condiac = "ćĉčçċďđǵĜ ğġĥħĵķĺļłńňņŕřŗśŝšşťţŵźžż"
89 special = "æ Æ œ Œ ℬ ъ Ъ Þ þ ⅆ ℇ ℈ ℰ ƒ ⨍ ℊ ℱ ℏ ℎ ℋ ℌ ℐ ℑ ℳ № ℘ ℛ ℜ"
90 LATIN: struct with fields:
91 voydiac = "ÁÀÂÃÄĀĂÅÉÊÈËĒĚĖÍÎÏÓÒÔÕÖŐŌÚÙÛŬŨŪŮÜŰÝŶŸ"
92 condiac = "ĆĈČĊÇĎĐ ĝĢĞĠĤĦĴĶĹĻŁŃŇŅŔŘŖŚŜŠŞŤŢŴŹŽŻ"
93 russian = "абвгдеёжзийклмнопрстуфхцчшщъыьэюя"
94 RUSSIAN = "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ"
95 japanese: struct with fields:
96 hiragana: struct with fields:
97 a = "あかさたなはまやらわ がざだばぱ"
98 e = "えけせてねへめ れゑ げぜでべぺ"
99 i = "いきしちにひみ りゐ ぎじぢびぴ"
100 o = "おこそとのほもよろをんごぞどぽ"
101 u = "うくすつぬふむゆる ぐずづぶぷ"
102 arabic: struct with fields:
103 alone1 = "ش س ز ر ذ د خ ح ج ث ت ب ا ء"
104 alone2 = "ي و ه ن م ل ك ق ف غ ع ظ ط ض ص"
105]]></screen>
106 </refsection>
107 <refsection role="see also">
108 <title></title>
109 <simplelist type="inline">
110 <member>
111 <link linkend="xlfont">xlfont</link>
112 </member>
113 <member>
114 <link linkend="math_rendering_features_in_graphic">LaTeX в Scilab</link>
115 </member>
116 <member>
117 <link linkend="console">командное окно</link>
118 </member>
119 <member>
120 <link linkend="ascii">ascii-символы</link>
121 </member>
122 </simplelist>
123 </refsection>
124 <refsection role="history">
125 <title>История</title>
126 <revhistory>
127 <revision>
128 <revnumber>6.1.1</revnumber>
129 <revdescription>
130 Введены <literal>%chars</literal>.
131 </revdescription>
132 </revision>
133 </revhistory>
134 </refsection>
135</refentry>
diff --git a/scilab/modules/core/macros/percentchars.sci b/scilab/modules/core/macros/percentchars.sci
new file mode 100644
index 0000000..d6a7c1b
--- /dev/null
+++ b/scilab/modules/core/macros/percentchars.sci
@@ -0,0 +1,49 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2020 - Samuel GOUGEON
3//
4// This file is hereby licensed under the terms of the GNU GPL v2.0,
5// pursuant to article 5.3.4 of the CeCILL v.2.1.
6// This file was originally licensed under the terms of the CeCILL v2.1,
7// and continues to be available under such terms.
8// For more information, see the COPYING file which you should have received
9// along with this program.
10
11function %chars = percentchars()
12 // Internal function called by scilab.start
13 // http://bugzilla.scilab.org/9221
14
15 %chars.greek.lower = "αβδεϵζηθικλμνξοπρστυφϕχψωάϐέήϑίϊϰόϱςύϋΰϖώ";
16 %chars.greek.upper = "ΑΒΓΔΕΖΗΘϴΙΪΚΛΜΝΞΟΠΡΣΤΥΫΦΧΨΩ KΩ℧";
17 %chars.subsupscript = "₀₁₂₃₄₅₆₇₈₉₊₋₌₍ₐₕₖₗₘₙₒₚₛₜₓ₎ ⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽ªⁱⁿº⁾";
18 %chars.maths.frac = "½ ⅓ ¼ ⅕ ⅙ ⅛ ⅔ ⅖ ¾ ⅗ ⅜ ⅘ ⅚ ⅝ ⅞";
19 %chars.maths.sets = "ℂⅅℍℕℙℚℝℤ∉∈∊∍∋∌∅∖⋂∩⋃∪⊂⊆⊄⊅⊇⊃⋐⋑⋒⋓";
20 %chars.maths.operators = "−±∓∔÷×∏∐∑√∛∜⋅⋆⊕⊖⊝⊗⊘⊙⊚⊛⊜⊞⊟⊠⊡";
21 %chars.maths.comparisons = "⋘≪≤≲≳≥≫⋙≠≃≄≅≈∽∝≍≐≔≕≝";
22 %chars.maths.integdiff = "∂∇∆∫∬∭∮∯∰∱⨑∲";
23 %chars.maths.geometry = "°′″∟⊾∠∡∢⊥∥∦∺∻≎⊿⋕";
24 %chars.maths.logical = "∀∃∄∧∨⋀⋁⊼⊽⊻∁∴∵∎≍";
25 %chars.maths.misc = "⋮⋰⋯⋱ ′ ″ ∞ ‰ ‱";
26 %chars.physics = "Å ℃ ℉ ħ";
27 %chars.arrows.base = "←↖↑↗→↘↓↙↔↕↵↱↴☇⇐⇑⇒⇓⇔↺↻⊣⊥⊢⊤";
28 %chars.arrows.thick = "⬅⬆➞⬇➚➙➘➔➜➡➥➦➧➨➼➽";
29 %chars.symbols = "…⋈⋔⋄♢◊♤♧♡♦♠♣♥©®℗Ⓢ™℡♀♂⌘✠♻☎«»◬⨺⨹⨻¶";
30 %chars.stars = "⋆★☆✫✯✰✭✡⊛⍟✪❂✻✼✹✸✶";
31 %chars.currencies = "¤ $ ¢ € £ ¥ 円 元 ₪ ฿ ¢ ₫ ₣";
32
33 %chars.lang.latin = "abcdefghijklmnopqrstuvwxyz";
34 %chars.lang.LATIN = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
35 %chars.lang.latin.voydiac = "áàâãäāăåéêèëēěėíîïóòôõöőōúùûŭũūůüűýŷÿ";
36 %chars.lang.LATIN.voydiac = "ÁÀÂÃÄĀĂÅÉÊÈËĒĚĖÍÎÏÓÒÔÕÖŐŌÚÙÛŬŨŪŮÜŰÝŶŸ";
37 %chars.lang.latin.condiac = "ćĉčçċďđǵĜ ğġĥħĵķĺļłńňņŕřŗśŝšşťţŵźžż";
38 %chars.lang.LATIN.condiac = "ĆĈČĊÇĎĐ ĝĢĞĠĤĦĴĶĹĻŁŃŇŅŔŘŖŚŜŠŞŤŢŴŹŽŻ";
39 %chars.lang.latin.special = "æ Æ œ Œ ℬ ъ Ъ Þ þ ⅆ ℇ ℈ ℰ ƒ ⨍ ℊ ℱ ℏ ℎ ℋ ℌ ℐ ℑ ℳ № ℘ ℛ ℜ";
40 %chars.lang.russian = "абвгдеёжзийклмнопрстуфхцчшщъыьэюя";
41 %chars.lang.RUSSIAN = "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ";
42 %chars.lang.japanese.hiragana.a = "あかさたなはまやらわ がざだばぱ";
43 %chars.lang.japanese.hiragana.e = "えけせてねへめ れゑ げぜでべぺ";
44 %chars.lang.japanese.hiragana.i = "いきしちにひみ りゐ ぎじぢびぴ";
45 %chars.lang.japanese.hiragana.o = "おこそとのほもよろをんごぞどぽ";
46 %chars.lang.japanese.hiragana.u = "うくすつぬふむゆる ぐずづぶぷ";
47 %chars.lang.arabic.alone1 = "ش س ز ر ذ د خ ح ج ث ت ب ا ء";
48 %chars.lang.arabic.alone2 = "ي و ه ن م ل ك ق ف غ ع ظ ط ض ص";
49endfunction
diff --git a/scilab/modules/ui_data/src/cpp/BrowseVarManager.cpp b/scilab/modules/ui_data/src/cpp/BrowseVarManager.cpp
index bbf3bb9..20a5ab4 100644
--- a/scilab/modules/ui_data/src/cpp/BrowseVarManager.cpp
+++ b/scilab/modules/ui_data/src/cpp/BrowseVarManager.cpp
@@ -329,47 +329,48 @@ static std::set<string> createScilabDefaultVariablesSet()
329{ 329{
330 string arr[] = 330 string arr[] =
331 { 331 {
332 "home", 332 "$",
333 "PWD",
334 "%tk",
335 "%pvm",
336 "MSDOS",
337 "%F", 333 "%F",
338 "%T", 334 "%T",
339 "%f", 335 "%_atoms_cache",
340 "%t", 336 "%chars", // Unicode characters
341 "%e", 337 "%e",
342 "%pi", 338 "%eps",
343 "%modalWarning", 339 "%f",
344 "%nan",
345 "%inf",
346 "SCI",
347 "WSCI",
348 "SCIHOME",
349 "TMPDIR",
350 "%gui",
351 "%fftw", 340 "%fftw",
341 "%gui",
352 "%helps", 342 "%helps",
353 "%eps", 343 "%helps_modules",
354 "%io",
355 "%i", 344 "%i",
356 "demolist", 345 "%inf",
357 "%z", 346 "%io",
347 "%modalWarning",
348 "%nan",
349 "%pi",
350 "%pvm",
358 "%s", 351 "%s",
359 "$", 352 "%t",
353 "%tk",
360 "%toolboxes", 354 "%toolboxes",
361 "%toolboxes_dir", 355 "%toolboxes_dir",
356 "%z",
357 "MSDOS",
358 "PWD",
359 "SCI",
360 "SCIHOME",
362 "TICTOC", 361 "TICTOC",
363 "%helps_modules", 362 "TMPDIR",
364 "%_atoms_cache", 363 "WSCI",
364 "demolist",
365 "enull", // Constant for external object
365 "evoid", // Constant for external object 366 "evoid", // Constant for external object
366 "jvoid", // Constant for external object Java (jims) 367 "home",
367 "jnull", // Constant for external object Java (jims) 368 "jnull", // Constant for external object Java (jims)
368 "enull" // Constant for external object 369 "jvoid" // Constant for external object Java (jims)
369 }; 370 };
370 int i = 0; 371 int i = 0;
371 372
372#define NBELEMENT 37 373#define NBELEMENT (sizeof(arr)/sizeof(*(arr)))
373 std::set<string> ScilabDefaultVariables; 374 std::set<string> ScilabDefaultVariables;
374 375
375 for (i = 0; i < NBELEMENT; i++) 376 for (i = 0; i < NBELEMENT; i++)