Subversion Repositories wimsdev

Rev

Rev 9680 | Rev 10686 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
!!INDEX
10585 obado 2
!let module_translator=
3
!let module_translator_address=
5524 bpr 4
!let module_title=Setup your preferences for WIMS
5
!let module_description=define preferences for wims
6
!let module_language=en
23 reyssat 7
!!INDEXEND
8
 
7336 schaersvoo 9
!let tip='<ul><li>FireFox&nbsp;<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&nbsp;<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>'
5524 bpr 10
 
10585 obado 11
!read proc/useropts.proc
5524 bpr 12
 
23 reyssat 13
!header
5524 bpr 14
<script type="text/javascript" src="scripts/js/wz_tooltip.js"></script>
6183 bpr 15
 
10585 obado 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>
6183 bpr 24
 
10585 obado 25
  <div id="language_selector">
26
    <h2>
27
      Default language
28
    </h2>
29
    <p>
30
      Choose site language :
31
      !read themes/_widgets/language_selector.phtml
32
    </p>
33
  </div>
5524 bpr 34
 
10585 obado 35
  <div id="formula">
36
    <h2>
37
      Mathematical formulas
38
    </h2>
39
    <p>You can choose beetween 2 display modes:</p>
6183 bpr 40
    <ul>
10585 obado 41
      <li> image mode</li>
42
      <li> or  MathML</li>
43
    </ul>
44
    Some display test :
45
    <ul>
6183 bpr 46
      <li>
10585 obado 47
        Greek letters:
48
        <pre>
49
         !insmath alpha != pi
50
        </pre>
6183 bpr 51
      </li>
52
      <li>
10585 obado 53
        Mathematical expression
54
        !let ins_align=middle
55
        !! we need to force dynamic insertion
56
        !set pw=2
57
        <pre>
58
          !insmath x_{1,2} = \frac{-b \pm \sqrt{b^{$pw} - 4a c}}{2a}
59
        </pre>
6183 bpr 60
      </li>
61
      <li>
10585 obado 62
        A mixed inequality:
6183 bpr 63
        <pre>
10585 obado 64
          !insmath | a + b | <= epsilon + 123.45
6183 bpr 65
        </pre>
66
      </li>
67
    </ul>
5524 bpr 68
 
10585 obado 69
    !if $texalign=2
70
      <p>
71
      The server is currently set to MathML if you have a suitable browser.
72
        If the formula is not correctly displayed, you can use another
73
        <a onmouseover="return Tip($tip)" class="wims_emph" style="cursor:help;">
74
        browser
75
        </a>
76
        or use the serveur with "math with images".
77
      </p><p>
78
         Choose your display mode :
79
          !set wims_ref_class=wims_button
80
          !href cmd=resume&useropts=$(arg)0$font Math with images
7029 bpr 81
 
10585 obado 82
          !set arg=!nospace $texsize 2
83
          !set wims_ref_class=wims_button $ wims_secondary_button
84
          !href cmd=resume&useropts=$(arg)0$font MathML
85
      </p>
86
      <p>
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
        &nbsp;
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 :
9680 bpr 111
      !reset secondary
10585 obado 112
      !if $useropts=$(arg)0$font
113
        !set secondary=$ wims_secondary_button
6183 bpr 114
      !endif
10585 obado 115
      !set wims_ref_class=wims_button$secondary
116
      !href cmd=resume&useropts=$(arg)0$font Mode image
117
       !set arg=!nospace $texsize 2
118
       !reset secondary
119
       !if $useropts=$(arg)0$font
120
        !set secondary=$ wims_secondary_button
121
       !endif
122
       !set wims_ref_class=wims_button$secondary
123
       !href cmd=resume&useropts=$(arg)0$font MathML
124
      </p>
125
      <ul><li>
126
       Size of mathematical symbols and formulas.
127
       !let ts1=!eval $texsize-1
128
       !let ts2=!eval $texsize+1
129
       !if $ts1<1
130
        !let ts1=1
131
       !endif
132
       !if $ts2>9
133
        !let ts2=9
134
       !endif
135
       !set wims_ref_class=wims_button
136
       !href cmd=resume&useropts=$ts1$texalign$zoom$font <img src="gifs/doc/dgauche.gif" style="width:1em" />
137
       !set wims_ref_class=wims_button
138
       !href cmd=resume&useropts=$[$wims_texbasesize-1]$texalign$zoom$font Normal
139
       !set wims_ref_class=wims_button
140
       !href cmd=resume&useropts=$ts2$texalign$zoom$font <img src="gifs/doc/ddroite.gif" style="width:1em" />
141
      </li><li>
142
        Position of the formulas. If the expression
143
        !insmath (x+y)/(x^$pw + y^2)
144
        is
145
        !if $texalign=1
146
         too high with respect to the text line,
147
         !set wims_ref_class=wims_button
148
         !href cmd=resume&useropts=$(texsize)0$zoom$font click here to lower it.
149
        !else
150
         too low with respect to the text line,
151
         !set wims_ref_class=wims_button
152
         !href cmd=resume&useropts=$(texsize)1$zoom$font click here to raise it.
153
        !endif
154
      </li>
155
      </ul>
156
    !endif
157
  </div>
6183 bpr 158
 
10585 obado 159
  <div id="accessibility">
160
    <h2>Accessibility</h2>
7029 bpr 161
 
10585 obado 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
6183 bpr 172
 
10585 obado 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>
178
 
179
</div>
180
!if $jquery_defined=yes
181
  !read adm/tabscript useropts
182
!endif
183
 
6235 bpr 184
<br class="spacer" />
6183 bpr 185
<p>
10585 obado 186
  !if $wims_user=$empty
187
   When everything corresponds exactly to what you want, put
188
    !set wims_ref_class=wims_button
189
   <a href="$wims_ref_name?lang=$lang&+useropts=$texsize$texalign$zoom$font" title="WIMS">
190
   this link
191
   </a>
192
   into your bookmark, to keep these preferences for your future connections.
193
  !else
194
   Your preferences will be preserved in your future logins in this class.
195
  !endif
6183 bpr 196
</p>
23 reyssat 197
 
198
!tail
199