Rev 9680 | Rev 10686 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9680 | Rev 10585 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | !!INDEX |
1 | !!INDEX |
2 | !let |
2 | !let module_translator= |
3 | !let |
3 | !let module_translator_address= |
4 | !let module_maintainer_address=wimsdev@groupes.renater.fr |
- | |
5 | !let module_title=Setup your preferences for WIMS |
4 | !let module_title=Setup your preferences for WIMS |
6 | !let module_description=define preferences for wims |
5 | !let module_description=define preferences for wims |
7 | !let module_version=1.00 |
- | |
8 | !let module_wims_version=4.05a |
- | |
9 | !let module_language=en |
6 | !let module_language=en |
10 | !let module_copyright=© 1998 (<a href="COPYING">GNU GPL</a>) |
- | |
11 | !let module_category=adm |
- | |
12 | !let module_level= |
- | |
13 | !let module_domain=adm |
- | |
14 | !let module_keywords=wims |
- | |
15 | !!INDEXEND |
7 | !!INDEXEND |
16 | 8 | ||
17 | !let tip='<ul><li>FireFox <a target=\'new\' href=\'http://www.mozilla-europe.org/$module_language/\'><img src=\'gifs/mathml/getFireFox.gif\' alt=\'get FireFox\'/></a></li><li>Google Chrome <a target=\'new\' href=\'https://chrome.google.com/webstore/detail/mathjax-for-chrome/elbbpgnifnallkilnkofjcgjeallfcfa\'> MathJax Extension </a><li>Windows<ul><li>Internet Explorer: <a target=\'new\' href=\'http://www.dessci.com/en/products/mathplayer/\'><img src=\'gifs/mathml/dessci_logo.gif\' alt=\'dessci\'/> DESSCI MathPlayer plugin</a><li>Opera: <a target=\'new\' href=\'http://xml-maiden.com/userjs/mathml/\'>UserJS MathML plugin</a></ul></li><li>Safari</li></ul>' |
9 | !let tip='<ul><li>FireFox <a target=\'new\' href=\'http://www.mozilla-europe.org/$module_language/\'><img src=\'gifs/mathml/getFireFox.gif\' alt=\'get FireFox\'/></a></li><li>Google Chrome <a target=\'new\' href=\'https://chrome.google.com/webstore/detail/mathjax-for-chrome/elbbpgnifnallkilnkofjcgjeallfcfa\'> MathJax Extension </a><li>Windows<ul><li>Internet Explorer: <a target=\'new\' href=\'http://www.dessci.com/en/products/mathplayer/\'><img src=\'gifs/mathml/dessci_logo.gif\' alt=\'dessci\'/> DESSCI MathPlayer plugin</a><li>Opera: <a target=\'new\' href=\'http://xml-maiden.com/userjs/mathml/\'>UserJS MathML plugin</a></ul></li><li>Safari</li></ul>' |
18 | 10 | ||
19 | - | ||
20 | !let texsize=!char 1 of $useropts |
- | |
21 | !let texalign=!char 2 of $useropts |
- | |
22 | !let default=$[$wims_texbasesize-1] |
- | |
23 | !default texsize=$default |
- | |
24 | !let default=!char 1 of $default |
- | |
25 | !default texalign=$talign |
- | |
26 | !set zoom=!char 3 of $useropts |
- | |
27 |
|
11 | !read proc/useropts.proc |
28 | !default zoom=0 |
- | |
29 | !default font=0 |
- | |
30 | !set arg=!nospace $texsize 1 |
- | |
31 | - | ||
32 | !let useropt2=!char 3 to -1 of $useropts |
- | |
33 | !if $useropts!=$empty and $wims_realuser!=$empty |
- | |
34 | !readproc adm/class/userdef classes,$wims_class,$wims_realuser |
- | |
35 | !setdef !set user_opts=$useropts in $userdef |
- | |
36 | !setdef wims_useropts=$useropts in wimshome/$wims_sesdir/var.stat |
- | |
37 | !endif |
- | |
38 | - | ||
39 | 12 | ||
40 | !header |
13 | !header |
41 | <script type="text/javascript" src="scripts/js/wz_tooltip.js"></script> |
14 | <script type="text/javascript" src="scripts/js/wz_tooltip.js"></script> |
42 | Cette page a pour but de régler quelques préférences sur WIMS. |
- | |
43 | - | ||
44 | !if $wims_user=$empty |
- | |
45 | <h2> |
- | |
46 | Default language |
- | |
47 | </h2> |
- | |
48 | <p> |
- | |
49 | Choissisez la langue d'affichage du site : |
- | |
50 | !set wims_language_cnt=!wordcnt $wims_site_languages |
- | |
51 | !for l=1 to $wims_language_cnt |
- | |
52 | !let la=!word $l of $wims_site_languages |
- | |
53 | !href cmd=resume&phtml=useropts.phtml.$la&lang=$la <img src="gifs/$la.gif" alt="$la.gif" style="height:1.1em;" />$(lang_name_$la) |
- | |
54 | |
- | |
55 | !next l |
- | |
56 | </p> |
- | |
57 | - | ||
58 | !endif |
- | |
59 | 15 | ||
- | 16 | <div id="widget_useropts"> |
|
- | 17 | <ul> |
|
- | 18 | <li><a href="#formula">Mathematical formulas</a></li> |
|
- | 19 | !if $wims_user=$empty |
|
- | 20 | <li><a href="#language_selector">Default language</a></li> |
|
- | 21 | !endif |
|
- | 22 | <li><a href="#accessibility">Accessibility</a></li> |
|
- | 23 | </ul> |
|
- | 24 | ||
- | 25 | <div id="language_selector"> |
|
60 | <h2> |
26 | <h2> |
- | 27 | Default language |
|
- | 28 | </h2> |
|
- | 29 | <p> |
|
- | 30 | Choose site language : |
|
- | 31 | !read themes/_widgets/language_selector.phtml |
|
- | 32 | </p> |
|
- | 33 | </div> |
|
- | 34 | ||
- | 35 | <div id="formula"> |
|
- | 36 | <h2> |
|
61 | Mathematical formulas |
37 | Mathematical formulas |
62 | </h2> |
38 | </h2> |
- | 39 | <p>You can choose beetween 2 display modes:</p> |
|
63 | < |
40 | <ul> |
- | 41 | <li> image mode</li> |
|
64 |
|
42 | <li> or MathML</li> |
- | 43 | </ul> |
|
65 |
|
44 | Some display test : |
66 | <ul> |
45 | <ul> |
67 | <li> |
46 | <li> |
68 | Greek letters: |
47 | Greek letters: |
69 |
|
48 | <pre> |
70 |
|
49 | !insmath alpha != pi |
71 |
|
50 | </pre> |
72 | </li> |
51 | </li> |
73 | <li> |
52 | <li> |
74 | Mathematical expression |
53 | Mathematical expression |
75 | !let ins_align=middle |
54 | !let ins_align=middle |
76 | !! we need to force dynamic insertion |
55 | !! we need to force dynamic insertion |
77 | !set pw=2 |
56 | !set pw=2 |
78 | <pre> |
57 | <pre> |
79 | !insmath x_{1,2} = \frac{-b \pm \sqrt{b^{$pw} - 4a c}}{2a} |
58 | !insmath x_{1,2} = \frac{-b \pm \sqrt{b^{$pw} - 4a c}}{2a} |
80 | </pre> |
59 | </pre> |
81 | </li> |
60 | </li> |
82 | <li> |
61 | <li> |
83 | A mixed inequality: |
62 | A mixed inequality: |
84 | <pre> |
63 | <pre> |
85 | !insmath | a + b | <= epsilon + 123.45 |
64 | !insmath | a + b | <= epsilon + 123.45 |
86 | </pre> |
65 | </pre> |
87 | </li> |
66 | </li> |
88 | </ul> |
67 | </ul> |
89 | 68 | ||
90 | !if $texalign=2 |
69 | !if $texalign=2 |
91 | <p> |
70 | <p> |
92 | The server is currently set to MathML if you have a suitable browser. |
71 | The server is currently set to MathML if you have a suitable browser. |
93 | If the formula is not correctly displayed, you can use another |
72 | If the formula is not correctly displayed, you can use another |
94 | <a onmouseover="return Tip($tip)" class="wims_emph" style="cursor:help;"> |
73 | <a onmouseover="return Tip($tip)" class="wims_emph" style="cursor:help;"> |
95 | browser |
74 | browser |
96 | </a> |
75 | </a> |
97 | or use the serveur with "math with images". |
76 | or use the serveur with "math with images". |
98 | </p><p> |
77 | </p><p> |
99 |
|
78 | Choose your display mode : |
100 | !set wims_ref_class=wims_button |
79 | !set wims_ref_class=wims_button |
101 | !href cmd=resume&useropts=$(arg)0$font Math with images |
80 | !href cmd=resume&useropts=$(arg)0$font Math with images |
102 | 81 | ||
103 | !set arg=!nospace $texsize 2 |
82 | !set arg=!nospace $texsize 2 |
104 | !set wims_ref_class=wims_button $ wims_secondary_button |
83 | !set wims_ref_class=wims_button $ wims_secondary_button |
105 | !href cmd=resume&useropts=$(arg)0$font MathML |
84 | !href cmd=resume&useropts=$(arg)0$font MathML |
106 | </p> |
85 | </p> |
107 | < |
86 | <p> |
108 | Use zoom on formulas by mouse click. |
87 | Use zoom on formulas by mouse click. |
- | 88 | !reset secondary |
|
- | 89 | !if $useropts=$texsize$(texalign)0$font |
|
- | 90 | !set secondary1=wims_button wims_secondary_button |
|
- | 91 | !set secondary2=wims_button |
|
- | 92 | !else |
|
- | 93 | !set secondary2=wims_button wims_secondary_button |
|
- | 94 | !set secondary1=wims_button |
|
- | 95 | !endif |
|
- | 96 | !set wims_ref_class=$secondary2 |
|
- | 97 | !href cmd=resume&useropts=$texsize$(texalign)1$font activated |
|
- | 98 | |
|
- | 99 | !set wims_ref_class=$secondary1 |
|
- | 100 | !href cmd=resume&useropts=$texsize$(texalign)0$font desactivated |
|
- | 101 | </p> |
|
- | 102 | !else |
|
- | 103 | <p> |
|
- | 104 | Currently, you use the server with "Math with images". If you have a suitable |
|
- | 105 | <a onmouseover="return Tip($tip)" class="wims_emph" style="cursor:help;"> |
|
- | 106 | browser |
|
- | 107 | </a>, |
|
- | 108 | you may also use MathML. |
|
- | 109 | </p><p> |
|
- | 110 | Choose your display mode : |
|
109 | !reset secondary |
111 | !reset secondary |
110 | !if |
112 | !if $useropts=$(arg)0$font |
111 | !set secondary1=wims_button wims_secondary_button |
- | |
112 | !set secondary2=wims_button |
- | |
113 | !else |
- | |
114 | !set |
113 | !set secondary=$ wims_secondary_button |
115 | !set secondary1=wims_button |
- | |
116 | !endif |
114 | !endif |
117 | !set wims_ref_class=$secondary2 |
- | |
118 | !href cmd=resume&useropts=$texsize$(texalign)1$font activated |
- | |
119 | |
- | |
120 | !set wims_ref_class=$secondary1 |
- | |
121 | !href cmd=resume&useropts=$texsize$(texalign)0$font desactivated |
- | |
122 | </li></ul> |
- | |
123 | !else |
- | |
124 | <p> |
- | |
125 | Currently, you use the server with "Math with images". If you have a suitable |
- | |
126 | <a onmouseover="return Tip($tip)" class="wims_emph" style="cursor:help;"> |
- | |
127 | browser |
- | |
128 | </a>, |
- | |
129 | you may also use MathML. |
- | |
130 | </p><p> |
- | |
131 | Modifier le mode d'affichage : |
- | |
132 | !reset secondary |
- | |
133 | !if $useropts=$(arg)0$font |
- | |
134 | !set secondary=$ wims_secondary_button |
- | |
135 | !endif |
- | |
136 | !set wims_ref_class=wims_button$secondary |
115 | !set wims_ref_class=wims_button$secondary |
137 | !href cmd=resume&useropts=$(arg)0$font Mode image |
116 | !href cmd=resume&useropts=$(arg)0$font Mode image |
138 | !set arg=!nospace $texsize 2 |
117 | !set arg=!nospace $texsize 2 |
139 | !reset secondary |
118 | !reset secondary |
140 | !if $useropts=$(arg)0$font |
119 | !if $useropts=$(arg)0$font |
141 | !set secondary=$ wims_secondary_button |
120 | !set secondary=$ wims_secondary_button |
142 | !endif |
121 | !endif |
143 | !set wims_ref_class=wims_button$secondary |
122 | !set wims_ref_class=wims_button$secondary |
144 | !href cmd=resume&useropts=$(arg)0$font MathML |
123 | !href cmd=resume&useropts=$(arg)0$font MathML |
145 | </p> |
124 | </p> |
146 | <ul><li> |
125 | <ul><li> |
147 | Size of mathematical symbols and formulas. |
126 | Size of mathematical symbols and formulas. |
148 | !let ts1=!eval $texsize-1 |
127 | !let ts1=!eval $texsize-1 |
149 | !let ts2=!eval $texsize+1 |
128 | !let ts2=!eval $texsize+1 |
150 | !if $ts1<1 |
129 | !if $ts1<1 |
151 | !let ts1=1 |
130 | !let ts1=1 |
152 | !endif |
131 | !endif |
153 | !if $ts2>9 |
132 | !if $ts2>9 |
154 | !let ts2=9 |
133 | !let ts2=9 |
155 | !endif |
134 | !endif |
156 | !set wims_ref_class=wims_button |
135 | !set wims_ref_class=wims_button |
157 | !href cmd=resume&useropts=$ts1$texalign$zoom$font <img src="gifs/doc/dgauche.gif" style="width:1em" /> |
136 | !href cmd=resume&useropts=$ts1$texalign$zoom$font <img src="gifs/doc/dgauche.gif" style="width:1em" /> |
158 | !set wims_ref_class=wims_button |
137 | !set wims_ref_class=wims_button |
159 | !href cmd=resume&useropts=$[$wims_texbasesize-1]$texalign$zoom$font Normal |
138 | !href cmd=resume&useropts=$[$wims_texbasesize-1]$texalign$zoom$font Normal |
160 | !set wims_ref_class=wims_button |
139 | !set wims_ref_class=wims_button |
161 | !href cmd=resume&useropts=$ts2$texalign$zoom$font <img src="gifs/doc/ddroite.gif" style="width:1em" /> |
140 | !href cmd=resume&useropts=$ts2$texalign$zoom$font <img src="gifs/doc/ddroite.gif" style="width:1em" /> |
162 | </li><li> |
141 | </li><li> |
163 | Position of the formulas. If the expression |
142 | Position of the formulas. If the expression |
164 | !insmath (x+y)/(x^$pw + y^2) |
143 | !insmath (x+y)/(x^$pw + y^2) |
165 | is |
144 | is |
166 | !if $texalign=1 |
145 | !if $texalign=1 |
167 | too high with respect to the text line, |
146 | too high with respect to the text line, |
168 | !set wims_ref_class=wims_button |
147 | !set wims_ref_class=wims_button |
169 | !href cmd=resume&useropts=$(texsize)0$zoom$font click here to lower it. |
148 | !href cmd=resume&useropts=$(texsize)0$zoom$font click here to lower it. |
170 | !else |
149 | !else |
171 | too low with respect to the text line, |
150 | too low with respect to the text line, |
172 | !set wims_ref_class=wims_button |
151 | !set wims_ref_class=wims_button |
173 | !href cmd=resume&useropts=$(texsize)1$zoom$font click here to raise it. |
152 | !href cmd=resume&useropts=$(texsize)1$zoom$font click here to raise it. |
174 | !endif |
153 | !endif |
175 | </li> |
154 | </li> |
176 | </ul> |
155 | </ul> |
177 | !endif |
156 | !endif |
- | 157 | </div> |
|
- | 158 | ||
- | 159 | <div id="accessibility"> |
|
178 | <h2> |
160 | <h2>Accessibility</h2> |
- | 161 | ||
- | 162 | <p>You can modify space width beetween characters. |
|
- | 163 | !if $useropts=$(texsize)$texalign$(zoom)1 |
|
- | 164 | !set secondary1=wims_button wims_secondary_button |
|
- | 165 | !set secondary2=wims_button |
|
- | 166 | !else |
|
- | 167 | !set secondary2=wims_button wims_secondary_button |
|
- | 168 | !set secondary1=wims_button |
|
- | 169 | !endif |
|
- | 170 | !set wims_ref_class=$secondary2 |
|
- | 171 | !href cmd=resume&useropts=$(texsize)$texalign$(zoom)0 Normal |
|
- | 172 | ||
- | 173 | !set wims_ref_class=$secondary1 |
|
- | 174 | !href cmd=resume&useropts=$(texsize)$texalign$(zoom)1 Spaced |
|
- | 175 | </p> |
|
- | 176 | <p>The spaced mode may be better if you have some reading difficulties.</p> |
|
- | 177 | </div> |
|
179 | 178 | ||
180 | <p>Vous pouvez régler l'espacement des lettres et des mots |
- | |
181 | !if $useropts=$(texsize)$texalign$(zoom)1 |
- | |
182 | !set secondary1=wims_button wims_secondary_button |
- | |
183 | !set secondary2=wims_button |
- | |
184 | !else |
- | |
185 | !set secondary2=wims_button wims_secondary_button |
- | |
186 | !set secondary1=wims_button |
- | |
187 |
|
179 | </div> |
188 |
|
180 | !if $jquery_defined=yes |
189 | !href cmd=resume&useropts=$(texsize)$texalign$(zoom)0 Normal |
- | |
190 | - | ||
191 |
|
181 | !read adm/tabscript useropts |
192 | !href cmd=resume&useropts=$(texsize)$texalign$(zoom)1 Lecteur dyslexique |
- | |
193 |
|
182 | !endif |
194 | Le mode espacé est particulièrement adapté dans le cas d'un lecteur dyslexique.</p> |
- | |
195 | 183 | ||
196 | <br class="spacer" /> |
184 | <br class="spacer" /> |
197 | <p> |
185 | <p> |
198 | !if $wims_user=$empty |
186 | !if $wims_user=$empty |
199 | When everything corresponds exactly to what you want, put |
187 | When everything corresponds exactly to what you want, put |
200 | !set wims_ref_class=wims_button |
188 | !set wims_ref_class=wims_button |
201 | <a href="$wims_ref_name?lang=$lang&+useropts=$texsize$texalign$zoom$font" title="WIMS"> |
189 | <a href="$wims_ref_name?lang=$lang&+useropts=$texsize$texalign$zoom$font" title="WIMS"> |
202 | this link |
190 | this link |
203 | </a> |
191 | </a> |
204 | into your bookmark, to keep these preferences for your future connections. |
192 | into your bookmark, to keep these preferences for your future connections. |
205 | !else |
193 | !else |
206 | Your preferences will be preserved in your future logins in this class. |
194 | Your preferences will be preserved in your future logins in this class. |
207 | !endif |
195 | !endif |
208 | </p> |
196 | </p> |
209 | 197 | ||
210 | :end |
- | |
211 | !tail |
198 | !tail |
212 | 199 |