~ubuntu-branches/debian/sid/tex4ht/sid

« back to all changes in this revision

Viewing changes to share/all4ht/exerqz.4ht

  • Committer: Bazaar Package Importer
  • Author(s): Kapil Hari Paranjape
  • Date: 2005-04-05 14:14:41 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050405141441-x4dojdgz3frkfyet
Tags: 20050402.1817-1
* New upstream release (2005-04-02-18:17). Closes: #299934.
* See README.src, README.validate, README.Debian and copyright
  for information on minor changes.
* This upload fixes a some .htf files. Closes: #295109.
* Updated the description to reflect recent changes.
* Fixed some typos in src/tex4ht-mkht.tex and consequently
  in the mk4ht script.
* Updated the man page to include mk4ht. 
* Updated the description of options for the scripts in the man page.
  Put more information in the man page about the way the system works.
  Closes: #219348, #219347.
* Added debian/watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
 
% exerqz.4ht                           2000-04-12-13:50 %
3
 
% Copyright (C) 1999--2000                         %
4
 
%                     Donald P. Story & Eitan M. Gurari %
5
 
%                                                       %
6
 
% This program can redistributed and/or modified under  %
7
 
% the terms of the LaTeX Project Public License         %
8
 
% Distributed from CTAN archives in directory           %
9
 
% macros/latex/base/lppl.txt; either version 1 of the   %
10
 
% License, or (at your option) any later version.       %
11
 
%                                                       %
12
 
% However, you are allowed to modify this program       %
13
 
% without changing its name, if you modify its          %
14
 
% signature. Changes to the signature can be introduced %
15
 
% with a directive of the form                          %
16
 
%            \message{signature}                        %
17
 
%                                                       %
18
 
%                             gurari@cis.ohio-state.edu %
19
 
%                 http://www.cis.ohio-state.edu/~gurari %
20
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
21
 
\immediate\write-1{version 2000-04-12-13:50}
22
 
 
23
 
\def\eqXInitQuizMsg{\hbox{%
24
 
   \let\noexpand\string
25
 
   \csname eq@InitQuizMsg\endcsname}}
26
 
\expandafter\ifx \csname eq@InitQuizMsg\endcsname\relax
27
 
    \expandafter\def\csname eq@InitQuizMsg\endcsname{
28
 
        "You must initialize the Quiz! Click on "+bqlabel}
29
 
\fi
30
 
\def\eqXQuizTotalMsg{\hbox{%
31
 
   \let\noexpand\string
32
 
   \def\thequestionno{"+thequestionno+"}%
33
 
   \csname eq@QuizTotalMsg\endcsname}}
34
 
\expandafter\ifx \csname eq@QuizTotalMsg\endcsname\relax
35
 
    \expandafter\def\csname eq@QuizTotalMsg\endcsname{"Score: '
36
 
         +Score +' out of '+thequestionno+'"}
37
 
\fi
38
 
\def\eqXMadeChoice{\hbox{%
39
 
   \let\noexpand\string
40
 
   \csname eq@MadeChoice\endcsname}}
41
 
\expandafter\ifx \csname eq@MadeChoice\endcsname\relax
42
 
    \expandafter\def\csname eq@MadeChoice\endcsname{
43
 
            "You have already made a choice. Your choice was ("
44
 
            +Responses[probno]+")."
45
 
            +" Do you want to change it?"}
46
 
\fi
47
 
\expandafter\ifx \csname eqScore\endcsname\relax
48
 
    \def\eqScore{Score:}
49
 
\fi
50
 
 
51
 
\JavaScript-$
52
 
var QuizInitialized;
53
 
var EndQuizPushed;
54
 
var CurrentQuizNo;
55
 
var Responses;
56
 
var ResponsesAddr;
57
 
var Cor;
58
 
var CorAddr;
59
 
var qthis;
60
 
var prev_notify;
61
 
function InitializeQuiz(qtfield,mark,quizN,ansN,lbrc,rbrc) {
62
 
  Score=0;
63
 
  QuizInitialized=1;
64
 
  CurrentQuizNo=quizN;
65
 
  eval( 'document.form'+qtfield+'.'+qtfield+'.value="$eqScore";' )
66
 
  RightWrong=new Array();
67
 
  for(var i in Responses){
68
 
  if (prev_notify == 0 ) {
69
 
    ResponsesAddr[i].value=Responses[i];
70
 
  } else {
71
 
    ResponsesAddr[i].value="("+Responses[i]+")";
72
 
} }
73
 
 
74
 
  Responses=new Array();
75
 
  ResponsesAddr=new Array();
76
 
  for(var i in Cor){
77
 
  CorAddr[i].value=Cor[i];
78
 
}
79
 
 
80
 
  Cor=new Array();
81
 
  CorAddr=new Array();
82
 
  EndQuizPushed=0;
83
 
  for(var i=1; i<=ansN; i++){
84
 
     RightWrong[i]=0;
85
 
  }
86
 
}
87
 
\EndJavaScript
88
 
\JavaScript
89
 
function href(addr) { top.location.href=addr; }
90
 
\EndJavaScript
91
 
\JavaScript
92
 
function Corrections(lbl1,lbl2,quizN) {
93
 
  if ( (EndQuizPushed == 1) && ( CurrentQuizNo == quizN ) ){
94
 
    for(var i in RightWrong){
95
 
      if( (RightWrong[i]==0) ){
96
 
        var k=Cor.length;
97
 
eval('Cor[k]=thisform'+quizN+'.ans'+quizN+'x'+i+'.value');
98
 
eval('CorAddr[k]=thisform'+quizN+'.ans'+quizN+'x'+i);
99
 
 
100
 
        eval('thisform'+quizN+'.ans'+quizN+'x'+i+'.value= "*"');
101
 
  } }
102
 
} }
103
 
\EndJavaScript
104
 
\JavaScript
105
 
function LinkTo(addr) {
106
 
}
107
 
\EndJavaScript
108
 
\JavaScript-$
109
 
function QuizEnd(bqlabel,thequestionno,quiztotal,quizN){
110
 
  if ((QuizInitialized !=1) || ( CurrentQuizNo!= quizN )){
111
 
     alert($eqXInitQuizMsg,3);
112
 
  } else {
113
 
     eval( 'document.form'+quiztotal+'.'+quiztotal+
114
 
       '.value=$eqXQuizTotalMsg');
115
 
         QuizInitialized=-1;
116
 
         EndQuizPushed=1;
117
 
} }
118
 
\EndJavaScript
119
 
 
120
 
\JavaScript-$
121
 
function  ProcessQuestion
122
 
  (key,letterresp,probno,notify,bqlabel,quizN) {
123
 
    if ((QuizInitialized !=1) || ( CurrentQuizNo!= quizN )){
124
 
      alert($eqXInitQuizMsg,3);
125
 
    } else {
126
 
      if (Responses[probno] == null) {
127
 
   if (key==1) {
128
 
      Score++;
129
 
      RightWrong[probno]=1;
130
 
   }
131
 
   else
132
 
      RightWrong[probno]=0;
133
 
   if( ResponsesAddr[probno] != null ){
134
 
  if (notify == 0 ) {
135
 
    ResponsesAddr[probno].value=Responses[probno];
136
 
  } else {
137
 
    ResponsesAddr[probno].value="("+Responses[probno]+")";
138
 
} }
139
 
qthis.value = "#";  ResponsesAddr[probno]=qthis;
140
 
 
141
 
   Responses[probno]=letterresp;
142
 
}
143
 
else {
144
 
   if (notify==0)
145
 
      User=true;
146
 
   else
147
 
      User=confirm($eqXMadeChoice);
148
 
   if (User) {
149
 
      if (RightWrong[probno]==1) {
150
 
          if (key==0) {
151
 
            Score -= 1;
152
 
            RightWrong[probno]=0;
153
 
            if( ResponsesAddr[probno] != null ){
154
 
  if (notify == 0 ) {
155
 
    ResponsesAddr[probno].value=Responses[probno];
156
 
  } else {
157
 
    ResponsesAddr[probno].value="("+Responses[probno]+")";
158
 
} }
159
 
qthis.value = "#";  ResponsesAddr[probno]=qthis;
160
 
 
161
 
            Responses[probno]=letterresp;
162
 
         }
163
 
      }
164
 
      else {
165
 
          if (key==1) {
166
 
            Score++;
167
 
            RightWrong[probno]=1;
168
 
            if( ResponsesAddr[probno] != null ){
169
 
  if (notify == 0 ) {
170
 
    ResponsesAddr[probno].value=Responses[probno];
171
 
  } else {
172
 
    ResponsesAddr[probno].value="("+Responses[probno]+")";
173
 
} }
174
 
qthis.value = "#";  ResponsesAddr[probno]=qthis;
175
 
 
176
 
            Responses[probno]=letterresp;
177
 
         }
178
 
         else {
179
 
            RightWrong[probno]=0;
180
 
            if( ResponsesAddr[probno] != null ){
181
 
  if (notify == 0 ) {
182
 
    ResponsesAddr[probno].value=Responses[probno];
183
 
  } else {
184
 
    ResponsesAddr[probno].value="("+Responses[probno]+")";
185
 
} }
186
 
qthis.value = "#";  ResponsesAddr[probno]=qthis;
187
 
 
188
 
            Responses[probno]=letterresp;
189
 
         }
190
 
      }
191
 
   }
192
 
}
193
 
 
194
 
      prev_notify = notify;
195
 
}   }
196
 
\EndJavaScript
197
 
 
198