Rev 13306 | Rev 14606 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 13306 | Rev 14603 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | !let module_title=Setup your preferences for WIMS |
4 | !let module_title=Setup your preferences for WIMS |
5 | !let module_description=define preferences for wims |
5 | !let module_description=define preferences for wims |
6 | !let module_language=en |
6 | !let module_language=en |
7 | !!INDEXEND |
7 | !!INDEXEND |
8 | 8 | ||
9 | !let |
9 | !let tip=<ul><li><strong>FireFox</strong> gère nativement MathML sans extension</li><li><strong>Safari</strong> gère nativement MathML sans extension</li><li><strong>Google Chrome</strong> nécessite <a target="new" href="https://chrome.google.com/webstore/detail/mathjax-for-chrome/elbbpgnifnallkilnkofjcgjeallfcfa">MathJax Extension </a></li><li><strong>Internet Explorer</strong> nécessite <a target="new" href="http://www.dessci.com/en/products/mathplayer/">DESSCI MathPlayer plugin</a></li><li><strong>Opera</strong> nécessite <a target="new" href="http://xml-maiden.com/userjs/mathml/">UserJS MathML plugin</a></li></ul> |
10 | 10 | ||
11 | !read proc/useropts.proc |
11 | !read proc/useropts.proc |
12 | 12 | ||
13 | !header |
13 | !header |
- | 14 | ||
14 | < |
15 | <p>This page lets you configure some preferences on WIMS |
15 | 16 | ||
16 | <div id="widget_useropts"> |
17 | <div id="widget_useropts"> |
17 | <ul> |
18 | <ul> |
18 | <li><a href="#formula">Mathematical formulas</a></li> |
19 | <li><a href="#formula">Mathematical formulas</a></li> |
19 | !if $wims_user=$empty |
20 | !if $wims_user=$empty |
20 | <li><a href="#language_selector">Default language</a></li> |
21 | <li><a href="#language_selector">Default language</a></li> |
21 | !endif |
22 | !endif |
22 | <li><a href="#accessibility">Accessibility</a></li> |
23 | <li><a href="#accessibility">Accessibility</a></li> |
23 | </ul> |
24 | </ul> |
24 | 25 | ||
25 | !if $wims_user=$empty |
26 | !if $wims_user=$empty |
26 | <div id="language_selector"> |
27 | <div id="language_selector"> |
27 | <h2> |
- | |
28 | Default language |
28 | <h2>Default language</h2> |
29 | </h2> |
- | |
30 | <p> |
29 | <p> |
31 | Choose site language : |
30 | Choose site language : |
32 | !read themes/_widgets/language_selector.phtml |
31 | !read themes/_widgets/language_selector.phtml |
33 | </p> |
32 | </p> |
34 | </div> |
33 | </div> |
35 | !endif |
34 | !endif |
36 | 35 | ||
37 | <div id="formula"> |
36 | <div id="formula"> |
38 | <h2> |
- | |
39 |
|
37 | <h2>Mathematical formulas</h2> |
40 | < |
38 | <p> |
41 |
|
39 | You can choose beetween 2 display modes: image mode or MathML. |
42 | < |
40 | </p> |
43 |
|
41 | !if $texalign=2 |
44 | < |
42 | <p>The server is currently set to MathML if you have a suitable browser.</p> |
45 |
|
43 | !endif |
46 | Some display test |
44 | Some display test: |
47 | <ul> |
45 | <ul> |
48 | <li> |
46 | <li> |
49 | Greek letters: |
47 | Greek letters: |
50 | <pre> |
48 | <pre> |
51 | !insmath alpha != pi |
49 | !insmath alpha != pi |
52 | </pre> |
50 | </pre> |
53 | </li> |
51 | </li> |
54 | <li> |
52 | <li> |
55 | Mathematical expression |
53 | Mathematical expression |
56 | !let ins_align=middle |
54 | !let ins_align=middle |
57 | !! we need to force dynamic insertion |
55 | !! we need to force dynamic insertion |
Line 68... | Line 66... | ||
68 | </li> |
66 | </li> |
69 | </ul> |
67 | </ul> |
70 | 68 | ||
71 | !if $texalign=2 |
69 | !if $texalign=2 |
72 | <p> |
70 | <p> |
73 | The server is currently set to MathML if you have a suitable browser. |
- | |
74 | If the formula is not correctly displayed, you can use another |
71 | If the formula is not correctly displayed, you can use another |
75 | <a onmouseover="return Tip($tip)" class="wims_emph" style="cursor:help;"> |
- | |
76 | browser |
- | |
77 | </a> |
- | |
78 | or use the serveur with "math with images". |
72 | browser or use the serveur with "math with images". |
79 | </p><p> |
- | |
80 | Choose your display mode : |
- | |
81 | !set wims_ref_class=wims_button |
- | |
82 | !href cmd=resume&useropts=$(arg)0$font Math with images |
- | |
83 | - | ||
84 | !set arg=!nospace $texsize 2 |
- | |
85 | !set wims_ref_class=wims_button $ wims_secondary_button |
- | |
86 | !href cmd=resume&useropts=$(arg)0$font MathML |
- | |
87 | </p> |
73 | </p> |
- | 74 | ||
- | 75 | <h3>Mode d'affichage</h3> |
|
- | 76 | <p> |
|
- | 77 | You currently use MathML |
|
- | 78 | !set wims_ref_class=wims_button |
|
- | 79 | !href cmd=resume&useropts=$(arg)0$font Passer au mode image |
|
- | 80 | </p> |
|
- | 81 | ||
- | 82 | <h3 id="formula_options">Option du mode MathML :</h3> |
|
- | 83 | <p>Le mode MathML permet un zoom sur les formules par un click de souris.</p> |
|
- | 84 | !set wims_ref_class=wims_button |
|
- | 85 | !if $useropts=$texsize$(texalign)0$font |
|
- | 86 | Le zoom est <span class="disabled">désactivé</span>. |
|
- | 87 | !href cmd=resume&useropts=$texsize$(texalign)1$font#formula_options activer |
|
- | 88 | <span class="wims_button disabled">désactiver</span> |
|
- | 89 | !else |
|
- | 90 | Le zoom est <span class="oef_indgood success">activé</span>. |
|
- | 91 | <span class="wims_button disabled">activer</span> |
|
- | 92 | !href cmd=resume&useropts=$texsize$(texalign)0$font#formula_options désactiver |
|
- | 93 | !endif |
|
- | 94 | ||
- | 95 | <h3>Navigateurs compatibles MathML</h3> |
|
- | 96 | $tip |
|
- | 97 | !else |
|
- | 98 | <p> |
|
- | 99 | Actuellement, vous utilisez le serveur en <strong>mode image</strong>.<br/> |
|
- | 100 | Avec un navigateur compatible, vous pouvez utiliser le mode MathML. |
|
- | 101 | </p> |
|
- | 102 | ||
- | 103 | <h3>Mode d'affichage</h3> |
|
88 | <p> |
104 | <p> |
89 | Use zoom on formulas by mouse click. |
- | |
90 |
|
105 | Vous êtes en mode Image |
91 | !if $useropts=$texsize$(texalign)0$font |
- | |
92 | !set secondary1=wims_button wims_secondary_button |
- | |
93 | !set secondary2=wims_button |
- | |
94 | !else |
- | |
95 | !set secondary2=wims_button wims_secondary_button |
- | |
96 | !set secondary1=wims_button |
- | |
97 | !endif |
- | |
98 | !set wims_ref_class=$secondary2 |
- | |
99 | !href cmd=resume&useropts=$texsize$(texalign)1$font activated |
- | |
100 | |
- | |
101 | !set wims_ref_class=$secondary1 |
- | |
102 | !href cmd=resume&useropts=$texsize$(texalign)0$font desactivated |
- | |
103 | </p> |
- | |
104 | !else |
- | |
105 | <p> |
- | |
106 | Currently, you use the server with "Math with images". If you have a suitable |
- | |
107 | <a onmouseover="return Tip($tip)" class="wims_emph" style="cursor:help;"> |
- | |
108 | browser |
- | |
109 | </a>, |
- | |
110 | you may also use MathML. |
- | |
111 | </p><p> |
- | |
112 | Choose your display mode : |
- | |
113 | !reset secondary |
- | |
114 | !if $useropts=$(arg)0$font |
- | |
115 | !set secondary=$ wims_secondary_button |
- | |
116 | !endif |
- | |
117 | !set wims_ref_class=wims_button$secondary |
- | |
118 | !href cmd=resume&useropts=$(arg)0$font Mode image |
- | |
119 | !set arg=!nospace $texsize 2 |
106 | !set arg=!nospace $texsize 2 |
120 | !reset secondary |
- | |
121 | !if $useropts=$(arg)0$font |
- | |
122 | !set secondary=$ wims_secondary_button |
- | |
123 | !endif |
- | |
124 | !set |
107 | !set wims_ref_class=wims_button |
125 |
|
108 | !href cmd=resume&useropts=$(arg)0$font Passer au mode MathML |
126 | </p> |
109 | </p> |
- | 110 | ||
- | 111 | <h3>Options du mode image</h3> |
|
127 | <ul><li> |
112 | <ul><li> |
128 | Size of mathematical symbols and formulas. |
113 | Size of mathematical symbols and formulas. |
129 | !let ts1=!eval $texsize-1 |
114 | !let ts1=!eval $texsize-1 |
130 | !let ts2=!eval $texsize+1 |
115 | !let ts2=!eval $texsize+1 |
131 | !if $ts1<1 |
116 | !if $ts1<1 |
132 | !let ts1=1 |
117 | !let ts1=1 |
133 | !endif |
118 | !endif |
134 | !if $ts2>9 |
119 | !if $ts2>9 |
135 | !let ts2=9 |
120 | !let ts2=9 |
136 | !endif |
121 | !endif |
137 | !set wims_ref_class=wims_button |
122 | !set wims_ref_class=wims_button |
138 | !href cmd=resume& |
123 | !href cmd=resume&useropts=$ts1$texalign$zoom$font#formula <img src="gifs/doc/dgauche.gif" style="width:1em" /> |
139 | !set wims_ref_class=wims_button |
124 | !set wims_ref_class=wims_button |
140 | !href cmd=resume&useropts=$[$wims_texbasesize-1] |
125 | !href cmd=resume&useropts=$[$wims_texbasesize-1]$texalign$zoom$font#formula Normal |
141 | !set wims_ref_class=wims_button |
126 | !set wims_ref_class=wims_button |
142 | !href cmd=resume& |
127 | !href cmd=resume&useropts=$ts2$texalign$zoom$font#formula <img src="gifs/doc/ddroite.gif" style="width:1em" /> |
143 | </li><li> |
128 | </li><li> |
144 | Position of the formulas. If the expression |
129 | Position of the formulas. If the expression |
145 | !insmath (x+y)/(x^$pw + y^2) |
130 | !insmath (x+y)/(x^$pw + y^2) |
146 | is |
131 | is |
147 | !if $texalign=1 |
132 | !if $texalign=1 |
148 | too high with respect to the text line, |
133 | too high with respect to the text line, |
149 | !set wims_ref_class=wims_button |
134 | !set wims_ref_class=wims_button |
150 | !href cmd=resume&useropts=$(texsize)0$zoom$font click here to lower it. |
135 | !href cmd=resume&useropts=$(texsize)0$zoom$font click here to lower it. |
151 | !else |
136 | !else |
152 | too low with respect to the text line, |
137 | too low with respect to the text line, |
153 | !set wims_ref_class=wims_button |
138 | !set wims_ref_class=wims_button |
154 | !href cmd=resume&useropts=$(texsize)1$zoom$font click here to raise it. |
139 | !href cmd=resume&useropts=$(texsize)1$zoom$font click here to raise it. |
155 | !endif |
140 | !endif |
156 | </li> |
- | |
157 | </ul> |
141 | </li></ul> |
158 | !endif |
142 | !endif |
159 | </div> |
143 | </div> |
160 | 144 | ||
161 | <div id="accessibility"> |
145 | <div id="accessibility"> |
162 | <h2>Accessibility</h2> |
146 | <h2>Accessibility</h2> |
163 | 147 | ||
164 | <p>You can modify space width beetween characters. |
148 | <p>You can modify space width beetween characters. |
165 |
|
149 | !if $useropts=$(texsize)$texalign$(zoom)1 |
166 |
|
150 | !set secondary1=wims_button disabled |
167 |
|
151 | !set secondary2=wims_button |
168 |
|
152 | !else |
169 |
|
153 | !set secondary2=wims_button disabled |
170 |
|
154 | !set secondary1=wims_button |
171 |
|
155 | !endif |
172 |
|
156 | !set wims_ref_class=$secondary2 |
173 |
|
157 | !href cmd=resume&useropts=$(texsize)$texalign$(zoom)0 Normal |
174 | 158 | ||
175 |
|
159 | !set wims_ref_class=$secondary1 |
176 |
|
160 | !href cmd=resume&useropts=$(texsize)$texalign$(zoom)1 Mode espacé |
177 | </p> |
161 | </p> |
178 | <p>The spaced mode may be better if you have some reading difficulties.</p> |
162 | <p>The spaced mode may be better if you have some reading difficulties.</p> |
179 | </div> |
163 | </div> |
180 | - | ||
181 | </div> |
164 | </div> |
182 | !if $jquery_defined=yes |
165 | !if $jquery_defined=yes |
183 | !read adm/tabscript useropts |
166 | !read adm/tabscript useropts |
184 | !endif |
167 | !endif |
185 | 168 | ||
186 | < |
169 | <p class="spacer"> |
187 | <p> |
- | |
188 | !if $wims_user=$empty |
170 | !if $wims_user=$empty |
189 | When everything corresponds exactly to what you want, put |
171 | When everything corresponds exactly to what you want, put |
190 | !set wims_ref_class=wims_button |
172 | !set wims_ref_class=wims_button |
191 | <a href="$wims_ref_name?lang=$lang&+useropts=$texsize$texalign$zoom$font" title="WIMS"> |
173 | <a href="$wims_ref_name?lang=$lang&+useropts=$texsize$texalign$zoom$font" title="WIMS"> |
192 | this link |
174 | this link</a> |
193 | </a> |
- | |
194 | into your bookmark, to keep these preferences for your future connections. |
175 | into your bookmark, to keep these preferences for your future connections. |
195 | !else |
176 | !else |
196 | Your preferences will be preserved in your future logins in this class. |
177 | Your preferences will be preserved in your future logins in this class. |
197 | !endif |
178 | !endif |
198 | </p> |
179 | </p> |
199 | 180 | ||
200 | !tail |
181 | !tail |
201 | - |