| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
<html> |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
<head> |
| 18 |
<title>GNU Typist Manual</title> |
| 19 |
|
| 20 |
<meta name="description" content="GNU Typist Manual"> |
| 21 |
<meta name="keywords" content="GNU Typist Manual"> |
| 22 |
<meta name="resource-type" content="document"> |
| 23 |
<meta name="distribution" content="global"> |
| 24 |
<meta name="Generator" content="makeinfo"> |
| 25 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 26 |
<link href="#Top" rel="start" title="Top"> |
| 27 |
<link href="#SEC_Contents" rel="contents" title="Table of Contents"> |
| 28 |
<link href="dir.html#Top" rel="up" title="(dir)"> |
| 29 |
<style type="text/css"> |
| 30 |
<!-- |
| 31 |
a.summary-letter {text-decoration: none} |
| 32 |
blockquote.smallquotation {font-size: smaller} |
| 33 |
div.display {margin-left: 3.2em} |
| 34 |
div.example {margin-left: 3.2em} |
| 35 |
div.indentedblock {margin-left: 3.2em} |
| 36 |
div.lisp {margin-left: 3.2em} |
| 37 |
div.smalldisplay {margin-left: 3.2em} |
| 38 |
div.smallexample {margin-left: 3.2em} |
| 39 |
div.smallindentedblock {margin-left: 3.2em; font-size: smaller} |
| 40 |
div.smalllisp {margin-left: 3.2em} |
| 41 |
kbd {font-style:oblique} |
| 42 |
pre.display {font-family: inherit} |
| 43 |
pre.format {font-family: inherit} |
| 44 |
pre.menu-comment {font-family: serif} |
| 45 |
pre.menu-preformatted {font-family: serif} |
| 46 |
pre.smalldisplay {font-family: inherit; font-size: smaller} |
| 47 |
pre.smallexample {font-size: smaller} |
| 48 |
pre.smallformat {font-family: inherit; font-size: smaller} |
| 49 |
pre.smalllisp {font-size: smaller} |
| 50 |
span.nocodebreak {white-space:nowrap} |
| 51 |
span.nolinebreak {white-space:nowrap} |
| 52 |
span.roman {font-family:serif; font-weight:normal} |
| 53 |
span.sansserif {font-family:sans-serif; font-weight:normal} |
| 54 |
ul.no-bullet {list-style: none} |
| 55 |
--> |
| 56 |
</style> |
| 57 |
|
| 58 |
|
| 59 |
</head> |
| 60 |
|
| 61 |
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> |
| 62 |
<h1 class="settitle" align="center">GNU Typist Manual</h1> |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
<a name="SEC_Contents"></a> |
| 68 |
<h2 class="contents-heading">Table of Contents</h2> |
| 69 |
|
| 70 |
<div class="contents"> |
| 71 |
|
| 72 |
<ul class="no-bullet"> |
| 73 |
<li><a name="toc-Distribution-1" href="#Distribution">Distribution</a></li> |
| 74 |
<li><a name="toc-GNU-GENERAL-PUBLIC-LICENSE" href="#Copying">GNU GENERAL PUBLIC LICENSE</a></li> |
| 75 |
<li><a name="toc-Introduction-1" href="#Introduction">1 Introduction</a></li> |
| 76 |
<li><a name="toc-Invoking-1" href="#Invoking">2 Invoking</a></li> |
| 77 |
<li><a name="toc-Supplied-lessons-1" href="#Supplied-lessons">3 Supplied lessons</a></li> |
| 78 |
<li><a name="toc-Using-typefortune-1" href="#Using-typefortune">4 Using typefortune</a></li> |
| 79 |
<li><a name="toc-Script-file-commands-1" href="#Script-file-commands">5 Script file commands</a></li> |
| 80 |
<li><a name="toc-Create-new-lessons-1" href="#Create-new-lessons">6 Create new lessons</a> |
| 81 |
<ul class="no-bullet"> |
| 82 |
<li><a name="toc-Ktouch-lessons-1" href="#Ktouch-lessons">6.1 Ktouch lessons</a></li> |
| 83 |
<li><a name="toc-Exercises-from-fortune-1" href="#Exercises-from-fortune">6.2 Exercises from fortune</a></li> |
| 84 |
<li><a name="toc-Design-patterns-for-lessons-1" href="#Design-patterns-for-lessons">6.3 Design patterns for lessons</a> |
| 85 |
<ul class="no-bullet"> |
| 86 |
<li><a name="toc-Structure-of-lesson-files" href="#Structure-of-lesson-files">6.3.1 Structure of lesson files</a></li> |
| 87 |
<li><a name="toc-Patterns-for-exercises" href="#Patterns-for-exercises">6.3.2 Patterns for exercises</a></li> |
| 88 |
</ul></li> |
| 89 |
<li><a name="toc-Findwords-script-1" href="#Findwords-script">6.4 Findwords script</a> |
| 90 |
<ul class="no-bullet"> |
| 91 |
<li><a name="toc-Purpose" href="#Purpose">6.4.1 Purpose</a></li> |
| 92 |
<li><a name="toc-Installing" href="#Installing">6.4.2 Installing</a></li> |
| 93 |
<li><a name="toc-Using-findwords" href="#Using-findwords">6.4.3 Using findwords</a></li> |
| 94 |
</ul></li> |
| 95 |
</ul></li> |
| 96 |
<li><a name="toc-Emacs-mode-1" href="#Emacs-mode">7 Emacs mode</a></li> |
| 97 |
<li><a name="toc-VIM-Syntax-highlighting-1" href="#VIM-Syntax-highlighting">8 VIM Syntax highlighting</a></li> |
| 98 |
<li><a name="toc-Environment-Variables-1" href="#Environment-Variables">9 Environment Variables</a></li> |
| 99 |
<li><a name="toc-Errors-and-omissions-1" href="#Errors-and-omissions">10 Errors and omissions</a></li> |
| 100 |
<li><a name="toc-History-of-GNU-Typist" href="#History">Appendix A History of GNU Typist</a></li> |
| 101 |
<li><a name="toc-GNU-Free-Documentation-License" href="#Copying-this-manual">Appendix B GNU Free Documentation License</a></li> |
| 102 |
</ul> |
| 103 |
</div> |
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
<a name="Top"></a> |
| 108 |
<a name="GNU-Typist-_002d-Typing-Tutor"></a> |
| 109 |
<h1 class="top">GNU Typist - Typing Tutor</h1> |
| 110 |
<p>This manual is for GNU Typist (version 2.9.5, 18 August 2013), |
| 111 |
a program to learn typing in several languages and for different |
| 112 |
keyboard layouts. |
| 113 |
</p> |
| 114 |
<p>Copyright © 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2008, |
| 115 |
2011, 2012 Free Software Foundation, Inc. |
| 116 |
</p> |
| 117 |
<blockquote> |
| 118 |
<p>Permission is granted to copy, distribute and/or modify this document |
| 119 |
under the terms of the GNU Free Documentation License, Version 1.3 or |
| 120 |
any later version published by the Free Software Foundation; with no |
| 121 |
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover |
| 122 |
Texts. A copy of the license is included in the section entitled |
| 123 |
“GNU Free Documentation License”. |
| 124 |
</p></blockquote> |
| 125 |
|
| 126 |
|
| 127 |
<p>GNU Typist is an interactive typing tutor that can help you to type |
| 128 |
correctly. It has several lessons for different keyboard layouts and in |
| 129 |
different languages. The lessons for gtypist are described in a easy-to-learn |
| 130 |
scripting language that the user can use to modify the existing lessons |
| 131 |
or create new ones. |
| 132 |
</p> |
| 133 |
|
| 134 |
|
| 135 |
<hr> |
| 136 |
<a name="Distribution"></a> |
| 137 |
<a name="Distribution-1"></a> |
| 138 |
<h2 class="unnumbered">Distribution</h2> |
| 139 |
|
| 140 |
<p>GNU Typist (or gtypist) is <em>free software</em>; this means that everyone |
| 141 |
is free to use it and free to redistribute it on certain conditions. |
| 142 |
The precise conditions are found in the GNU General Public License that |
| 143 |
comes with this program and also follows this section. |
| 144 |
</p> |
| 145 |
<p>You can obtain GNU Typist from a friend or from the Internet: |
| 146 |
</p> |
| 147 |
<dl compact="compact"> |
| 148 |
<dt>Official distribution site</dt> |
| 149 |
<dd><p><a href="ftp://ftp.gnu.org/gnu/gtypist/">ftp://ftp.gnu.org/gnu/gtypist/</a> |
| 150 |
</p> |
| 151 |
</dd> |
| 152 |
<dt>Official home page</dt> |
| 153 |
<dd><p><a href="http://www.gnu.org/software/gtypist/">http://www.gnu.org/software/gtypist/</a> |
| 154 |
</p> |
| 155 |
</dd> |
| 156 |
<dt>On-line manual (updates between program releases)</dt> |
| 157 |
<dd><p><a href="http://www.gnu.org/software/gtypist/doc/">http://www.gnu.org/software/gtypist/doc/</a> |
| 158 |
</p> |
| 159 |
</dd> |
| 160 |
<dt>Developers’ home page (Git repository, tasks, support...)</dt> |
| 161 |
<dd><p><a href="http://savannah.gnu.org/projects/gtypist/">http://savannah.gnu.org/projects/gtypist/</a> |
| 162 |
</p></dd> |
| 163 |
</dl> |
| 164 |
|
| 165 |
<hr> |
| 166 |
<a name="Copying"></a> |
| 167 |
<a name="GNU-GENERAL-PUBLIC-LICENSE"></a> |
| 168 |
<h2 class="unnumbered">GNU GENERAL PUBLIC LICENSE</h2> |
| 169 |
<div align="center">Version 3, 29 June 2007 |
| 170 |
</div> |
| 171 |
|
| 172 |
<div class="display"> |
| 173 |
<pre class="display">Copyright © 2007 Free Software Foundation, Inc. <a href="http://fsf.org/">http://fsf.org/</a> |
| 174 |
|
| 175 |
Everyone is permitted to copy and distribute verbatim copies of this |
| 176 |
license document, but changing it is not allowed. |
| 177 |
</pre></div> |
| 178 |
|
| 179 |
<a name="Preamble"></a> |
| 180 |
<h3 class="heading">Preamble</h3> |
| 181 |
|
| 182 |
<p>The GNU General Public License is a free, copyleft license for |
| 183 |
software and other kinds of works. |
| 184 |
</p> |
| 185 |
<p>The licenses for most software and other practical works are designed |
| 186 |
to take away your freedom to share and change the works. By contrast, |
| 187 |
the GNU General Public License is intended to guarantee your freedom |
| 188 |
to share and change all versions of a program—to make sure it remains |
| 189 |
free software for all its users. We, the Free Software Foundation, |
| 190 |
use the GNU General Public License for most of our software; it |
| 191 |
applies also to any other work released this way by its authors. You |
| 192 |
can apply it to your programs, too. |
| 193 |
</p> |
| 194 |
<p>When we speak of free software, we are referring to freedom, not |
| 195 |
price. Our General Public Licenses are designed to make sure that you |
| 196 |
have the freedom to distribute copies of free software (and charge for |
| 197 |
them if you wish), that you receive source code or can get it if you |
| 198 |
want it, that you can change the software or use pieces of it in new |
| 199 |
free programs, and that you know you can do these things. |
| 200 |
</p> |
| 201 |
<p>To protect your rights, we need to prevent others from denying you |
| 202 |
these rights or asking you to surrender the rights. Therefore, you |
| 203 |
have certain responsibilities if you distribute copies of the |
| 204 |
software, or if you modify it: responsibilities to respect the freedom |
| 205 |
of others. |
| 206 |
</p> |
| 207 |
<p>For example, if you distribute copies of such a program, whether |
| 208 |
gratis or for a fee, you must pass on to the recipients the same |
| 209 |
freedoms that you received. You must make sure that they, too, |
| 210 |
receive or can get the source code. And you must show them these |
| 211 |
terms so they know their rights. |
| 212 |
</p> |
| 213 |
<p>Developers that use the GNU GPL protect your rights with two steps: |
| 214 |
(1) assert copyright on the software, and (2) offer you this License |
| 215 |
giving you legal permission to copy, distribute and/or modify it. |
| 216 |
</p> |
| 217 |
<p>For the developers’ and authors’ protection, the GPL clearly explains |
| 218 |
that there is no warranty for this free software. For both users’ and |
| 219 |
authors’ sake, the GPL requires that modified versions be marked as |
| 220 |
changed, so that their problems will not be attributed erroneously to |
| 221 |
authors of previous versions. |
| 222 |
</p> |
| 223 |
<p>Some devices are designed to deny users access to install or run |
| 224 |
modified versions of the software inside them, although the |
| 225 |
manufacturer can do so. This is fundamentally incompatible with the |
| 226 |
aim of protecting users’ freedom to change the software. The |
| 227 |
systematic pattern of such abuse occurs in the area of products for |
| 228 |
individuals to use, which is precisely where it is most unacceptable. |
| 229 |
Therefore, we have designed this version of the GPL to prohibit the |
| 230 |
practice for those products. If such problems arise substantially in |
| 231 |
other domains, we stand ready to extend this provision to those |
| 232 |
domains in future versions of the GPL, as needed to protect the |
| 233 |
freedom of users. |
| 234 |
</p> |
| 235 |
<p>Finally, every program is threatened constantly by software patents. |
| 236 |
States should not allow patents to restrict development and use of |
| 237 |
software on general-purpose computers, but in those that do, we wish |
| 238 |
to avoid the special danger that patents applied to a free program |
| 239 |
could make it effectively proprietary. To prevent this, the GPL |
| 240 |
assures that patents cannot be used to render the program non-free. |
| 241 |
</p> |
| 242 |
<p>The precise terms and conditions for copying, distribution and |
| 243 |
modification follow. |
| 244 |
</p> |
| 245 |
<a name="TERMS-AND-CONDITIONS"></a> |
| 246 |
<h3 class="heading">TERMS AND CONDITIONS</h3> |
| 247 |
|
| 248 |
<ol> |
| 249 |
<li> Definitions. |
| 250 |
|
| 251 |
<p>“This License” refers to version 3 of the GNU General Public License. |
| 252 |
</p> |
| 253 |
<p>“Copyright” also means copyright-like laws that apply to other kinds |
| 254 |
of works, such as semiconductor masks. |
| 255 |
</p> |
| 256 |
<p>“The Program” refers to any copyrightable work licensed under this |
| 257 |
License. Each licensee is addressed as “you”. “Licensees” and |
| 258 |
“recipients” may be individuals or organizations. |
| 259 |
</p> |
| 260 |
<p>To “modify” a work means to copy from or adapt all or part of the work |
| 261 |
in a fashion requiring copyright permission, other than the making of |
| 262 |
an exact copy. The resulting work is called a “modified version” of |
| 263 |
the earlier work or a work “based on” the earlier work. |
| 264 |
</p> |
| 265 |
<p>A “covered work” means either the unmodified Program or a work based |
| 266 |
on the Program. |
| 267 |
</p> |
| 268 |
<p>To “propagate” a work means to do anything with it that, without |
| 269 |
permission, would make you directly or secondarily liable for |
| 270 |
infringement under applicable copyright law, except executing it on a |
| 271 |
computer or modifying a private copy. Propagation includes copying, |
| 272 |
distribution (with or without modification), making available to the |
| 273 |
public, and in some countries other activities as well. |
| 274 |
</p> |
| 275 |
<p>To “convey” a work means any kind of propagation that enables other |
| 276 |
parties to make or receive copies. Mere interaction with a user |
| 277 |
through a computer network, with no transfer of a copy, is not |
| 278 |
conveying. |
| 279 |
</p> |
| 280 |
<p>An interactive user interface displays “Appropriate Legal Notices” to |
| 281 |
the extent that it includes a convenient and prominently visible |
| 282 |
feature that (1) displays an appropriate copyright notice, and (2) |
| 283 |
tells the user that there is no warranty for the work (except to the |
| 284 |
extent that warranties are provided), that licensees may convey the |
| 285 |
work under this License, and how to view a copy of this License. If |
| 286 |
the interface presents a list of user commands or options, such as a |
| 287 |
menu, a prominent item in the list meets this criterion. |
| 288 |
</p> |
| 289 |
</li><li> Source Code. |
| 290 |
|
| 291 |
<p>The “source code” for a work means the preferred form of the work for |
| 292 |
making modifications to it. “Object code” means any non-source form |
| 293 |
of a work. |
| 294 |
</p> |
| 295 |
<p>A “Standard Interface” means an interface that either is an official |
| 296 |
standard defined by a recognized standards body, or, in the case of |
| 297 |
interfaces specified for a particular programming language, one that |
| 298 |
is widely used among developers working in that language. |
| 299 |
</p> |
| 300 |
<p>The “System Libraries” of an executable work include anything, other |
| 301 |
than the work as a whole, that (a) is included in the normal form of |
| 302 |
packaging a Major Component, but which is not part of that Major |
| 303 |
Component, and (b) serves only to enable use of the work with that |
| 304 |
Major Component, or to implement a Standard Interface for which an |
| 305 |
implementation is available to the public in source code form. A |
| 306 |
“Major Component”, in this context, means a major essential component |
| 307 |
(kernel, window system, and so on) of the specific operating system |
| 308 |
(if any) on which the executable work runs, or a compiler used to |
| 309 |
produce the work, or an object code interpreter used to run it. |
| 310 |
</p> |
| 311 |
<p>The “Corresponding Source” for a work in object code form means all |
| 312 |
the source code needed to generate, install, and (for an executable |
| 313 |
work) run the object code and to modify the work, including scripts to |
| 314 |
control those activities. However, it does not include the work’s |
| 315 |
System Libraries, or general-purpose tools or generally available free |
| 316 |
programs which are used unmodified in performing those activities but |
| 317 |
which are not part of the work. For example, Corresponding Source |
| 318 |
includes interface definition files associated with source files for |
| 319 |
the work, and the source code for shared libraries and dynamically |
| 320 |
linked subprograms that the work is specifically designed to require, |
| 321 |
such as by intimate data communication or control flow between those |
| 322 |
subprograms and other parts of the work. |
| 323 |
</p> |
| 324 |
<p>The Corresponding Source need not include anything that users can |
| 325 |
regenerate automatically from other parts of the Corresponding Source. |
| 326 |
</p> |
| 327 |
<p>The Corresponding Source for a work in source code form is that same |
| 328 |
work. |
| 329 |
</p> |
| 330 |
</li><li> Basic Permissions. |
| 331 |
|
| 332 |
<p>All rights granted under this License are granted for the term of |
| 333 |
copyright on the Program, and are irrevocable provided the stated |
| 334 |
conditions are met. This License explicitly affirms your unlimited |
| 335 |
permission to run the unmodified Program. The output from running a |
| 336 |
covered work is covered by this License only if the output, given its |
| 337 |
content, constitutes a covered work. This License acknowledges your |
| 338 |
rights of fair use or other equivalent, as provided by copyright law. |
| 339 |
</p> |
| 340 |
<p>You may make, run and propagate covered works that you do not convey, |
| 341 |
without conditions so long as your license otherwise remains in force. |
| 342 |
You may convey covered works to others for the sole purpose of having |
| 343 |
them make modifications exclusively for you, or provide you with |
| 344 |
facilities for running those works, provided that you comply with the |
| 345 |
terms of this License in conveying all material for which you do not |
| 346 |
control copyright. Those thus making or running the covered works for |
| 347 |
you must do so exclusively on your behalf, under your direction and |
| 348 |
control, on terms that prohibit them from making any copies of your |
| 349 |
copyrighted material outside their relationship with you. |
| 350 |
</p> |
| 351 |
<p>Conveying under any other circumstances is permitted solely under the |
| 352 |
conditions stated below. Sublicensing is not allowed; section 10 |
| 353 |
makes it unnecessary. |
| 354 |
</p> |
| 355 |
</li><li> Protecting Users’ Legal Rights From Anti-Circumvention Law. |
| 356 |
|
| 357 |
<p>No covered work shall be deemed part of an effective technological |
| 358 |
measure under any applicable law fulfilling obligations under article |
| 359 |
11 of the WIPO copyright treaty adopted on 20 December 1996, or |
| 360 |
similar laws prohibiting or restricting circumvention of such |
| 361 |
measures. |
| 362 |
</p> |
| 363 |
<p>When you convey a covered work, you waive any legal power to forbid |
| 364 |
circumvention of technological measures to the extent such |
| 365 |
circumvention is effected by exercising rights under this License with |
| 366 |
respect to the covered work, and you disclaim any intention to limit |
| 367 |
operation or modification of the work as a means of enforcing, against |
| 368 |
the work’s users, your or third parties’ legal rights to forbid |
| 369 |
circumvention of technological measures. |
| 370 |
</p> |
| 371 |
</li><li> Conveying Verbatim Copies. |
| 372 |
|
| 373 |
<p>You may convey verbatim copies of the Program’s source code as you |
| 374 |
receive it, in any medium, provided that you conspicuously and |
| 375 |
appropriately publish on each copy an appropriate copyright notice; |
| 376 |
keep intact all notices stating that this License and any |
| 377 |
non-permissive terms added in accord with section 7 apply to the code; |
| 378 |
keep intact all notices of the absence of any warranty; and give all |
| 379 |
recipients a copy of this License along with the Program. |
| 380 |
</p> |
| 381 |
<p>You may charge any price or no price for each copy that you convey, |
| 382 |
and you may offer support or warranty protection for a fee. |
| 383 |
</p> |
| 384 |
</li><li> Conveying Modified Source Versions. |
| 385 |
|
| 386 |
<p>You may convey a work based on the Program, or the modifications to |
| 387 |
produce it from the Program, in the form of source code under the |
| 388 |
terms of section 4, provided that you also meet all of these |
| 389 |
conditions: |
| 390 |
</p> |
| 391 |
<ol> |
| 392 |
<li> The work must carry prominent notices stating that you modified it, |
| 393 |
and giving a relevant date. |
| 394 |
|
| 395 |
</li><li> The work must carry prominent notices stating that it is released |
| 396 |
under this License and any conditions added under section 7. This |
| 397 |
requirement modifies the requirement in section 4 to “keep intact all |
| 398 |
notices”. |
| 399 |
|
| 400 |
</li><li> You must license the entire work, as a whole, under this License to |
| 401 |
anyone who comes into possession of a copy. This License will |
| 402 |
therefore apply, along with any applicable section 7 additional terms, |
| 403 |
to the whole of the work, and all its parts, regardless of how they |
| 404 |
are packaged. This License gives no permission to license the work in |
| 405 |
any other way, but it does not invalidate such permission if you have |
| 406 |
separately received it. |
| 407 |
|
| 408 |
</li><li> If the work has interactive user interfaces, each must display |
| 409 |
Appropriate Legal Notices; however, if the Program has interactive |
| 410 |
interfaces that do not display Appropriate Legal Notices, your work |
| 411 |
need not make them do so. |
| 412 |
</li></ol> |
| 413 |
|
| 414 |
<p>A compilation of a covered work with other separate and independent |
| 415 |
works, which are not by their nature extensions of the covered work, |
| 416 |
and which are not combined with it such as to form a larger program, |
| 417 |
in or on a volume of a storage or distribution medium, is called an |
| 418 |
“aggregate” if the compilation and its resulting copyright are not |
| 419 |
used to limit the access or legal rights of the compilation’s users |
| 420 |
beyond what the individual works permit. Inclusion of a covered work |
| 421 |
in an aggregate does not cause this License to apply to the other |
| 422 |
parts of the aggregate. |
| 423 |
</p> |
| 424 |
</li><li> Conveying Non-Source Forms. |
| 425 |
|
| 426 |
<p>You may convey a covered work in object code form under the terms of |
| 427 |
sections 4 and 5, provided that you also convey the machine-readable |
| 428 |
Corresponding Source under the terms of this License, in one of these |
| 429 |
ways: |
| 430 |
</p> |
| 431 |
<ol> |
| 432 |
<li> Convey the object code in, or embodied in, a physical product |
| 433 |
(including a physical distribution medium), accompanied by the |
| 434 |
Corresponding Source fixed on a durable physical medium customarily |
| 435 |
used for software interchange. |
| 436 |
|
| 437 |
</li><li> Convey the object code in, or embodied in, a physical product |
| 438 |
(including a physical distribution medium), accompanied by a written |
| 439 |
offer, valid for at least three years and valid for as long as you |
| 440 |
offer spare parts or customer support for that product model, to give |
| 441 |
anyone who possesses the object code either (1) a copy of the |
| 442 |
Corresponding Source for all the software in the product that is |
| 443 |
covered by this License, on a durable physical medium customarily used |
| 444 |
for software interchange, for a price no more than your reasonable |
| 445 |
cost of physically performing this conveying of source, or (2) access |
| 446 |
to copy the Corresponding Source from a network server at no charge. |
| 447 |
|
| 448 |
</li><li> Convey individual copies of the object code with a copy of the written |
| 449 |
offer to provide the Corresponding Source. This alternative is |
| 450 |
allowed only occasionally and noncommercially, and only if you |
| 451 |
received the object code with such an offer, in accord with subsection |
| 452 |
6b. |
| 453 |
|
| 454 |
</li><li> Convey the object code by offering access from a designated place |
| 455 |
(gratis or for a charge), and offer equivalent access to the |
| 456 |
Corresponding Source in the same way through the same place at no |
| 457 |
further charge. You need not require recipients to copy the |
| 458 |
Corresponding Source along with the object code. If the place to copy |
| 459 |
the object code is a network server, the Corresponding Source may be |
| 460 |
on a different server (operated by you or a third party) that supports |
| 461 |
equivalent copying facilities, provided you maintain clear directions |
| 462 |
next to the object code saying where to find the Corresponding Source. |
| 463 |
Regardless of what server hosts the Corresponding Source, you remain |
| 464 |
obligated to ensure that it is available for as long as needed to |
| 465 |
satisfy these requirements. |
| 466 |
|
| 467 |
</li><li> Convey the object code using peer-to-peer transmission, provided you |
| 468 |
inform other peers where the object code and Corresponding Source of |
| 469 |
the work are being offered to the general public at no charge under |
| 470 |
subsection 6d. |
| 471 |
|
| 472 |
</li></ol> |
| 473 |
|
| 474 |
<p>A separable portion of the object code, whose source code is excluded |
| 475 |
from the Corresponding Source as a System Library, need not be |
| 476 |
included in conveying the object code work. |
| 477 |
</p> |
| 478 |
<p>A “User Product” is either (1) a “consumer product”, which means any |
| 479 |
tangible personal property which is normally used for personal, |
| 480 |
family, or household purposes, or (2) anything designed or sold for |
| 481 |
incorporation into a dwelling. In determining whether a product is a |
| 482 |
consumer product, doubtful cases shall be resolved in favor of |
| 483 |
coverage. For a particular product received by a particular user, |
| 484 |
“normally used” refers to a typical or common use of that class of |
| 485 |
product, regardless of the status of the particular user or of the way |
| 486 |
in which the particular user actually uses, or expects or is expected |
| 487 |
to use, the product. A product is a consumer product regardless of |
| 488 |
whether the product has substantial commercial, industrial or |
| 489 |
non-consumer uses, unless such uses represent the only significant |
| 490 |
mode of use of the product. |
| 491 |
</p> |
| 492 |
<p>“Installation Information” for a User Product means any methods, |
| 493 |
procedures, authorization keys, or other information required to |
| 494 |
install and execute modified versions of a covered work in that User |
| 495 |
Product from a modified version of its Corresponding Source. The |
| 496 |
information must suffice to ensure that the continued functioning of |
| 497 |
the modified object code is in no case prevented or interfered with |
| 498 |
solely because modification has been made. |
| 499 |
</p> |
| 500 |
<p>If you convey an object code work under this section in, or with, or |
| 501 |
specifically for use in, a User Product, and the conveying occurs as |
| 502 |
part of a transaction in which the right of possession and use of the |
| 503 |
User Product is transferred to the recipient in perpetuity or for a |
| 504 |
fixed term (regardless of how the transaction is characterized), the |
| 505 |
Corresponding Source conveyed under this section must be accompanied |
| 506 |
by the Installation Information. But this requirement does not apply |
| 507 |
if neither you nor any third party retains the ability to install |
| 508 |
modified object code on the User Product (for example, the work has |
| 509 |
been installed in ROM). |
| 510 |
</p> |
| 511 |
<p>The requirement to provide Installation Information does not include a |
| 512 |
requirement to continue to provide support service, warranty, or |
| 513 |
updates for a work that has been modified or installed by the |
| 514 |
recipient, or for the User Product in which it has been modified or |
| 515 |
installed. Access to a network may be denied when the modification |
| 516 |
itself materially and adversely affects the operation of the network |
| 517 |
or violates the rules and protocols for communication across the |
| 518 |
network. |
| 519 |
</p> |
| 520 |
<p>Corresponding Source conveyed, and Installation Information provided, |
| 521 |
in accord with this section must be in a format that is publicly |
| 522 |
documented (and with an implementation available to the public in |
| 523 |
source code form), and must require no special password or key for |
| 524 |
unpacking, reading or copying. |
| 525 |
</p> |
| 526 |
</li><li> Additional Terms. |
| 527 |
|
| 528 |
<p>“Additional permissions” are terms that supplement the terms of this |
| 529 |
License by making exceptions from one or more of its conditions. |
| 530 |
Additional permissions that are applicable to the entire Program shall |
| 531 |
be treated as though they were included in this License, to the extent |
| 532 |
that they are valid under applicable law. If additional permissions |
| 533 |
apply only to part of the Program, that part may be used separately |
| 534 |
under those permissions, but the entire Program remains governed by |
| 535 |
this License without regard to the additional permissions. |
| 536 |
</p> |
| 537 |
<p>When you convey a copy of a covered work, you may at your option |
| 538 |
remove any additional permissions from that copy, or from any part of |
| 539 |
it. (Additional permissions may be written to require their own |
| 540 |
removal in certain cases when you modify the work.) You may place |
| 541 |
additional permissions on material, added by you to a covered work, |
| 542 |
for which you have or can give appropriate copyright permission. |
| 543 |
</p> |
| 544 |
<p>Notwithstanding any other provision of this License, for material you |
| 545 |
add to a covered work, you may (if authorized by the copyright holders |
| 546 |
of that material) supplement the terms of this License with terms: |
| 547 |
</p> |
| 548 |
<ol> |
| 549 |
<li> Disclaiming warranty or limiting liability differently from the terms |
| 550 |
of sections 15 and 16 of this License; or |
| 551 |
|
| 552 |
</li><li> Requiring preservation of specified reasonable legal notices or author |
| 553 |
attributions in that material or in the Appropriate Legal Notices |
| 554 |
displayed by works containing it; or |
| 555 |
|
| 556 |
</li><li> Prohibiting misrepresentation of the origin of that material, or |
| 557 |
requiring that modified versions of such material be marked in |
| 558 |
reasonable ways as different from the original version; or |
| 559 |
|
| 560 |
</li><li> Limiting the use for publicity purposes of names of licensors or |
| 561 |
authors of the material; or |
| 562 |
|
| 563 |
</li><li> Declining to grant rights under trademark law for use of some trade |
| 564 |
names, trademarks, or service marks; or |
| 565 |
|
| 566 |
</li><li> Requiring indemnification of licensors and authors of that material by |
| 567 |
anyone who conveys the material (or modified versions of it) with |
| 568 |
contractual assumptions of liability to the recipient, for any |
| 569 |
liability that these contractual assumptions directly impose on those |
| 570 |
licensors and authors. |
| 571 |
</li></ol> |
| 572 |
|
| 573 |
<p>All other non-permissive additional terms are considered “further |
| 574 |
restrictions” within the meaning of section 10. If the Program as you |
| 575 |
received it, or any part of it, contains a notice stating that it is |
| 576 |
governed by this License along with a term that is a further |
| 577 |
restriction, you may remove that term. If a license document contains |
| 578 |
a further restriction but permits relicensing or conveying under this |
| 579 |
License, you may add to a covered work material governed by the terms |
| 580 |
of that license document, provided that the further restriction does |
| 581 |
not survive such relicensing or conveying. |
| 582 |
</p> |
| 583 |
<p>If you add terms to a covered work in accord with this section, you |
| 584 |
must place, in the relevant source files, a statement of the |
| 585 |
additional terms that apply to those files, or a notice indicating |
| 586 |
where to find the applicable terms. |
| 587 |
</p> |
| 588 |
<p>Additional terms, permissive or non-permissive, may be stated in the |
| 589 |
form of a separately written license, or stated as exceptions; the |
| 590 |
above requirements apply either way. |
| 591 |
</p> |
| 592 |
</li><li> Termination. |
| 593 |
|
| 594 |
<p>You may not propagate or modify a covered work except as expressly |
| 595 |
provided under this License. Any attempt otherwise to propagate or |
| 596 |
modify it is void, and will automatically terminate your rights under |
| 597 |
this License (including any patent licenses granted under the third |
| 598 |
paragraph of section 11). |
| 599 |
</p> |
| 600 |
<p>However, if you cease all violation of this License, then your license |
| 601 |
from a particular copyright holder is reinstated (a) provisionally, |
| 602 |
unless and until the copyright holder explicitly and finally |
| 603 |
terminates your license, and (b) permanently, if the copyright holder |
| 604 |
fails to notify you of the violation by some reasonable means prior to |
| 605 |
60 days after the cessation. |
| 606 |
</p> |
| 607 |
<p>Moreover, your license from a particular copyright holder is |
| 608 |
reinstated permanently if the copyright holder notifies you of the |
| 609 |
violation by some reasonable means, this is the first time you have |
| 610 |
received notice of violation of this License (for any work) from that |
| 611 |
copyright holder, and you cure the violation prior to 30 days after |
| 612 |
your receipt of the notice. |
| 613 |
</p> |
| 614 |
<p>Termination of your rights under this section does not terminate the |
| 615 |
licenses of parties who have received copies or rights from you under |
| 616 |
this License. If your rights have been terminated and not permanently |
| 617 |
reinstated, you do not qualify to receive new licenses for the same |
| 618 |
material under section 10. |
| 619 |
</p> |
| 620 |
</li><li> Acceptance Not Required for Having Copies. |
| 621 |
|
| 622 |
<p>You are not required to accept this License in order to receive or run |
| 623 |
a copy of the Program. Ancillary propagation of a covered work |
| 624 |
occurring solely as a consequence of using peer-to-peer transmission |
| 625 |
to receive a copy likewise does not require acceptance. However, |
| 626 |
nothing other than this License grants you permission to propagate or |
| 627 |
modify any covered work. These actions infringe copyright if you do |
| 628 |
not accept this License. Therefore, by modifying or propagating a |
| 629 |
covered work, you indicate your acceptance of this License to do so. |
| 630 |
</p> |
| 631 |
</li><li> Automatic Licensing of Downstream Recipients. |
| 632 |
|
| 633 |
<p>Each time you convey a covered work, the recipient automatically |
| 634 |
receives a license from the original licensors, to run, modify and |
| 635 |
propagate that work, subject to this License. You are not responsible |
| 636 |
for enforcing compliance by third parties with this License. |
| 637 |
</p> |
| 638 |
<p>An “entity transaction” is a transaction transferring control of an |
| 639 |
organization, or substantially all assets of one, or subdividing an |
| 640 |
organization, or merging organizations. If propagation of a covered |
| 641 |
work results from an entity transaction, each party to that |
| 642 |
transaction who receives a copy of the work also receives whatever |
| 643 |
licenses to the work the party’s predecessor in interest had or could |
| 644 |
give under the previous paragraph, plus a right to possession of the |
| 645 |
Corresponding Source of the work from the predecessor in interest, if |
| 646 |
the predecessor has it or can get it with reasonable efforts. |
| 647 |
</p> |
| 648 |
<p>You may not impose any further restrictions on the exercise of the |
| 649 |
rights granted or affirmed under this License. For example, you may |
| 650 |
not impose a license fee, royalty, or other charge for exercise of |
| 651 |
rights granted under this License, and you may not initiate litigation |
| 652 |
(including a cross-claim or counterclaim in a lawsuit) alleging that |
| 653 |
any patent claim is infringed by making, using, selling, offering for |
| 654 |
sale, or importing the Program or any portion of it. |
| 655 |
</p> |
| 656 |
</li><li> Patents. |
| 657 |
|
| 658 |
<p>A “contributor” is a copyright holder who authorizes use under this |
| 659 |
License of the Program or a work on which the Program is based. The |
| 660 |
work thus licensed is called the contributor’s “contributor version”. |
| 661 |
</p> |
| 662 |
<p>A contributor’s “essential patent claims” are all patent claims owned |
| 663 |
or controlled by the contributor, whether already acquired or |
| 664 |
hereafter acquired, that would be infringed by some manner, permitted |
| 665 |
by this License, of making, using, or selling its contributor version, |
| 666 |
but do not include claims that would be infringed only as a |
| 667 |
consequence of further modification of the contributor version. For |
| 668 |
purposes of this definition, “control” includes the right to grant |
| 669 |
patent sublicenses in a manner consistent with the requirements of |
| 670 |
this License. |
| 671 |
</p> |
| 672 |
<p>Each contributor grants you a non-exclusive, worldwide, royalty-free |
| 673 |
patent license under the contributor’s essential patent claims, to |
| 674 |
make, use, sell, offer for sale, import and otherwise run, modify and |
| 675 |
propagate the contents of its contributor version. |
| 676 |
</p> |
| 677 |
<p>In the following three paragraphs, a “patent license” is any express |
| 678 |
agreement or commitment, however denominated, not to enforce a patent |
| 679 |
(such as an express permission to practice a patent or covenant not to |
| 680 |
sue for patent infringement). To “grant” such a patent license to a |
| 681 |
party means to make such an agreement or commitment not to enforce a |
| 682 |
patent against the party. |
| 683 |
</p> |
| 684 |
<p>If you convey a covered work, knowingly relying on a patent license, |
| 685 |
and the Corresponding Source of the work is not available for anyone |
| 686 |
to copy, free of charge and under the terms of this License, through a |
| 687 |
publicly available network server or other readily accessible means, |
| 688 |
then you must either (1) cause the Corresponding Source to be so |
| 689 |
available, or (2) arrange to deprive yourself of the benefit of the |
| 690 |
patent license for this particular work, or (3) arrange, in a manner |
| 691 |
consistent with the requirements of this License, to extend the patent |
| 692 |
license to downstream recipients. “Knowingly relying” means you have |
| 693 |
actual knowledge that, but for the patent license, your conveying the |
| 694 |
covered work in a country, or your recipient’s use of the covered work |
| 695 |
in a country, would infringe one or more identifiable patents in that |
| 696 |
country that you have reason to believe are valid. |
| 697 |
</p> |
| 698 |
<p>If, pursuant to or in connection with a single transaction or |
| 699 |
arrangement, you convey, or propagate by procuring conveyance of, a |
| 700 |
covered work, and grant a patent license to some of the parties |
| 701 |
receiving the covered work authorizing them to use, propagate, modify |
| 702 |
or convey a specific copy of the covered work, then the patent license |
| 703 |
you grant is automatically extended to all recipients of the covered |
| 704 |
work and works based on it. |
| 705 |
</p> |
| 706 |
<p>A patent license is “discriminatory” if it does not include within the |
| 707 |
scope of its coverage, prohibits the exercise of, or is conditioned on |
| 708 |
the non-exercise of one or more of the rights that are specifically |
| 709 |
granted under this License. You may not convey a covered work if you |
| 710 |
are a party to an arrangement with a third party that is in the |
| 711 |
business of distributing software, under which you make payment to the |
| 712 |
third party based on the extent of your activity of conveying the |
| 713 |
work, and under which the third party grants, to any of the parties |
| 714 |
who would receive the covered work from you, a discriminatory patent |
| 715 |
license (a) in connection with copies of the covered work conveyed by |
| 716 |
you (or copies made from those copies), or (b) primarily for and in |
| 717 |
connection with specific products or compilations that contain the |
| 718 |
covered work, unless you entered into that arrangement, or that patent |
| 719 |
license was granted, prior to 28 March 2007. |
| 720 |
</p> |
| 721 |
<p>Nothing in this License shall be construed as excluding or limiting |
| 722 |
any implied license or other defenses to infringement that may |
| 723 |
otherwise be available to you under applicable patent law. |
| 724 |
</p> |
| 725 |
</li><li> No Surrender of Others’ Freedom. |
| 726 |
|
| 727 |
<p>If conditions are imposed on you (whether by court order, agreement or |
| 728 |
otherwise) that contradict the conditions of this License, they do not |
| 729 |
excuse you from the conditions of this License. If you cannot convey |
| 730 |
a covered work so as to satisfy simultaneously your obligations under |
| 731 |
this License and any other pertinent obligations, then as a |
| 732 |
consequence you may not convey it at all. For example, if you agree |
| 733 |
to terms that obligate you to collect a royalty for further conveying |
| 734 |
from those to whom you convey the Program, the only way you could |
| 735 |
satisfy both those terms and this License would be to refrain entirely |
| 736 |
from conveying the Program. |
| 737 |
</p> |
| 738 |
</li><li> Use with the GNU Affero General Public License. |
| 739 |
|
| 740 |
<p>Notwithstanding any other provision of this License, you have |
| 741 |
permission to link or combine any covered work with a work licensed |
| 742 |
under version 3 of the GNU Affero General Public License into a single |
| 743 |
combined work, and to convey the resulting work. The terms of this |
| 744 |
License will continue to apply to the part which is the covered work, |
| 745 |
but the special requirements of the GNU Affero General Public License, |
| 746 |
section 13, concerning interaction through a network will apply to the |
| 747 |
combination as such. |
| 748 |
</p> |
| 749 |
</li><li> Revised Versions of this License. |
| 750 |
|
| 751 |
<p>The Free Software Foundation may publish revised and/or new versions |
| 752 |
of the GNU General Public License from time to time. Such new |
| 753 |
versions will be similar in spirit to the present version, but may |
| 754 |
differ in detail to address new problems or concerns. |
| 755 |
</p> |
| 756 |
<p>Each version is given a distinguishing version number. If the Program |
| 757 |
specifies that a certain numbered version of the GNU General Public |
| 758 |
License “or any later version” applies to it, you have the option of |
| 759 |
following the terms and conditions either of that numbered version or |
| 760 |
of any later version published by the Free Software Foundation. If |
| 761 |
the Program does not specify a version number of the GNU General |
| 762 |
Public License, you may choose any version ever published by the Free |
| 763 |
Software Foundation. |
| 764 |
</p> |
| 765 |
<p>If the Program specifies that a proxy can decide which future versions |
| 766 |
of the GNU General Public License can be used, that proxy’s public |
| 767 |
statement of acceptance of a version permanently authorizes you to |
| 768 |
choose that version for the Program. |
| 769 |
</p> |
| 770 |
<p>Later license versions may give you additional or different |
| 771 |
permissions. However, no additional obligations are imposed on any |
| 772 |
author or copyright holder as a result of your choosing to follow a |
| 773 |
later version. |
| 774 |
</p> |
| 775 |
</li><li> Disclaimer of Warranty. |
| 776 |
|
| 777 |
<p>THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY |
| 778 |
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT |
| 779 |
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT |
| 780 |
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT |
| 781 |
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 782 |
A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND |
| 783 |
PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE |
| 784 |
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR |
| 785 |
CORRECTION. |
| 786 |
</p> |
| 787 |
</li><li> Limitation of Liability. |
| 788 |
|
| 789 |
<p>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
| 790 |
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR |
| 791 |
CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, |
| 792 |
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES |
| 793 |
ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT |
| 794 |
NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR |
| 795 |
LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM |
| 796 |
TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER |
| 797 |
PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
| 798 |
</p> |
| 799 |
</li><li> Interpretation of Sections 15 and 16. |
| 800 |
|
| 801 |
<p>If the disclaimer of warranty and limitation of liability provided |
| 802 |
above cannot be given local legal effect according to their terms, |
| 803 |
reviewing courts shall apply local law that most closely approximates |
| 804 |
an absolute waiver of all civil liability in connection with the |
| 805 |
Program, unless a warranty or assumption of liability accompanies a |
| 806 |
copy of the Program in return for a fee. |
| 807 |
</p> |
| 808 |
</li></ol> |
| 809 |
|
| 810 |
<a name="END-OF-TERMS-AND-CONDITIONS"></a> |
| 811 |
<h3 class="heading">END OF TERMS AND CONDITIONS</h3> |
| 812 |
|
| 813 |
<a name="How-to-Apply-These-Terms-to-Your-New-Programs"></a> |
| 814 |
<h3 class="heading">How to Apply These Terms to Your New Programs</h3> |
| 815 |
|
| 816 |
<p>If you develop a new program, and you want it to be of the greatest |
| 817 |
possible use to the public, the best way to achieve this is to make it |
| 818 |
free software which everyone can redistribute and change under these |
| 819 |
terms. |
| 820 |
</p> |
| 821 |
<p>To do so, attach the following notices to the program. It is safest |
| 822 |
to attach them to the start of each source file to most effectively |
| 823 |
state the exclusion of warranty; and each file should have at least |
| 824 |
the “copyright” line and a pointer to where the full notice is found. |
| 825 |
</p> |
| 826 |
<div class="smallexample"> |
| 827 |
<pre class="smallexample"><var>one line to give the program's name and a brief idea of what it does.</var> |
| 828 |
Copyright (C) <var>year</var> <var>name of author</var> |
| 829 |
|
| 830 |
This program is free software: you can redistribute it and/or modify |
| 831 |
it under the terms of the GNU General Public License as published by |
| 832 |
the Free Software Foundation, either version 3 of the License, or (at |
| 833 |
your option) any later version. |
| 834 |
|
| 835 |
This program is distributed in the hope that it will be useful, but |
| 836 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
| 837 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 838 |
General Public License for more details. |
| 839 |
|
| 840 |
You should have received a copy of the GNU General Public License |
| 841 |
along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. |
| 842 |
</pre></div> |
| 843 |
|
| 844 |
<p>Also add information on how to contact you by electronic and paper mail. |
| 845 |
</p> |
| 846 |
<p>If the program does terminal interaction, make it output a short |
| 847 |
notice like this when it starts in an interactive mode: |
| 848 |
</p> |
| 849 |
<div class="smallexample"> |
| 850 |
<pre class="smallexample"><var>program</var> Copyright (C) <var>year</var> <var>name of author</var> |
| 851 |
This program comes with ABSOLUTELY NO WARRANTY; for details type ‘<samp>show w</samp>’. |
| 852 |
This is free software, and you are welcome to redistribute it |
| 853 |
under certain conditions; type ‘<samp>show c</samp>’ for details. |
| 854 |
</pre></div> |
| 855 |
|
| 856 |
<p>The hypothetical commands ‘<samp>show w</samp>’ and ‘<samp>show c</samp>’ should show |
| 857 |
the appropriate parts of the General Public License. Of course, your |
| 858 |
program’s commands might be different; for a GUI interface, you would |
| 859 |
use an “about box”. |
| 860 |
</p> |
| 861 |
<p>You should also get your employer (if you work as a programmer) or school, |
| 862 |
if any, to sign a “copyright disclaimer” for the program, if necessary. |
| 863 |
For more information on this, and how to apply and follow the GNU GPL, see |
| 864 |
<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. |
| 865 |
</p> |
| 866 |
<p>The GNU General Public License does not permit incorporating your |
| 867 |
program into proprietary programs. If your program is a subroutine |
| 868 |
library, you may consider it more useful to permit linking proprietary |
| 869 |
applications with the library. If this is what you want to do, use |
| 870 |
the GNU Lesser General Public License instead of this License. But |
| 871 |
first, please read <a href="http://www.gnu.org/philosophy/why-not-lgpl.html">http://www.gnu.org/philosophy/why-not-lgpl.html</a>. |
| 872 |
</p> |
| 873 |
<hr> |
| 874 |
<a name="Introduction"></a> |
| 875 |
<a name="Introduction-1"></a> |
| 876 |
<h2 class="chapter">1 Introduction</h2> |
| 877 |
|
| 878 |
<p>GNU Typist is an interactive typing tutor program. It uses an input |
| 879 |
file to create a series of typing tutorials, drills, and speed |
| 880 |
tests. It is intended to be used on raw terminals without graphics. It |
| 881 |
has been compiled and used on GNU/Linux and Unix (OpenBSD, AIX, |
| 882 |
Solaris) and also on Windows. |
| 883 |
</p> |
| 884 |
<p>The program reads lessons written in an easy-to-learn scripting |
| 885 |
language. It is distributed with several complete and good |
| 886 |
lessons. You can use them, modify them or create new lessons |
| 887 |
(see <a href="#Create-new-lessons">Create new lessons</a> and see <a href="#Script-file-commands">Script file commands</a>). |
| 888 |
</p> |
| 889 |
<p>If a script file is not specified on the command line, a default file |
| 890 |
<samp>gtypist.typ</samp> will be used. (See details about the path in the |
| 891 |
section see <a href="#Environment-Variables">Environment Variables</a>). |
| 892 |
</p> |
| 893 |
<p>The top line of the screen displays a banner. The bottom line of the |
| 894 |
screen displays a message line, queries, and other status information. |
| 895 |
The lines in between are used for the tutorials, drills, and speed |
| 896 |
tests. |
| 897 |
</p> |
| 898 |
<p>There are two types of typing exercises: <em>drills</em> and <em>speed |
| 899 |
tests</em>. |
| 900 |
</p> |
| 901 |
<p>In a <em>drill</em>, gtypist displays text in every other line on the |
| 902 |
screen, and waits for the user to correctly type the exact same text |
| 903 |
in the intermediate lines. |
| 904 |
Typing errors are indicated with an inverse ‘<samp>^</samp>’, or ‘<samp>></samp>’ if |
| 905 |
the character is a newline and at the end of the exercise it |
| 906 |
calculates the real and effective rate in Words Per Minute |
| 907 |
(<acronym>WPM</acronym>). If there were too many errors, it will re-run the |
| 908 |
drill. |
| 909 |
</p> |
| 910 |
<p>Backward deleting of previously typed characters to correct errors is |
| 911 |
not allowed. |
| 912 |
</p> |
| 913 |
<p>In a speed test, gtypist displays text on the screen, and waits for |
| 914 |
the user to correctly over-type the exact same text. It indicates |
| 915 |
typing errors, and at the end of the test it calculates the real and |
| 916 |
effective rate in <acronym>WPM</acronym>. |
| 917 |
If there were too many errors, it will re-run the speed test. |
| 918 |
Backward deleting of previously typed characters to correct errors is |
| 919 |
permitted, but errors still accumulate. |
| 920 |
</p> |
| 921 |
<p>If you already made too many mistakes, then you can use <tt class="key">ESC</tt> to |
| 922 |
give up and start again. You can also skip a lesson by pressing |
| 923 |
<tt class="key">ESC</tt> twice. Once you complete a lesson, you will be asked whether |
| 924 |
you want to repeat it. |
| 925 |
</p> |
| 926 |
<p>There are also “practice only” exercises (of both drills and speed |
| 927 |
tests) which you won’t have to repeat at all. But we won’t tell you |
| 928 |
when this is the case, so you’ll have to give your best anyway ;-) |
| 929 |
</p> |
| 930 |
<p>In typing speed reports, a <em>word</em> is deemed to be five characters, |
| 931 |
so the raw (gross) <acronym>WPM</acronym> is the number of characters in the |
| 932 |
test passage, divided by five, then divided again by the number of |
| 933 |
minutes elapsed in typing the passage. The adjusted <acronym>WPM</acronym> |
| 934 |
factors in the errors; each error is counted as a mistyped word. |
| 935 |
</p> |
| 936 |
<p>If preferred, speeds can be displayed in Characters Per Minute |
| 937 |
(<acronym>CPM</acronym>). This can be done by specifying “–scoring=cpm” at |
| 938 |
the command line. |
| 939 |
</p> |
| 940 |
<hr> |
| 941 |
<a name="Invoking"></a> |
| 942 |
<a name="Invoking-1"></a> |
| 943 |
<h2 class="chapter">2 Invoking</h2> |
| 944 |
|
| 945 |
<p>The syntax to invoke GNU Typist is: |
| 946 |
</p> |
| 947 |
<p><code>gtypist [ Options... ] [ script_file ]</code> |
| 948 |
</p> |
| 949 |
<dl compact="compact"> |
| 950 |
<dt><code>-b, --personal-best</code></dt> |
| 951 |
<dd><p>gtypist will keep track of your personal best typing speeds and tell |
| 952 |
you when you’ve beaten them. Best typing speeds are saved in a |
| 953 |
“bestlog” in the user’s home directory. |
| 954 |
</p> |
| 955 |
</dd> |
| 956 |
<dt><code>-e, --error-max</code></dt> |
| 957 |
<dd><p>Specifies the default maximum error percentage. The default value is |
| 958 |
3.0 and it must be between 0.0 and 100.0. There is a corresponding |
| 959 |
script file command (see <a href="#Script-file-commands">Script file commands</a>) which only |
| 960 |
overrides this if it is <em>stricter</em> (smaller). This value is |
| 961 |
ignored for “practice only” drills. |
| 962 |
</p> |
| 963 |
</dd> |
| 964 |
<dt><code>-n, --notimer</code></dt> |
| 965 |
<dd><p>gtypist will display the typing speeds in <acronym>WPM</acronym> after both |
| 966 |
drills and speed tests. However, the lessons appear to be written for |
| 967 |
a program that only does this for speed tests. To make gtypist behave |
| 968 |
in a manner that matches the lessons, that is, to sup <acronym>WPM</acronym> |
| 969 |
reports on drills, use <samp>-n</samp> or <samp>--notimer</samp>. |
| 970 |
</p> |
| 971 |
</dd> |
| 972 |
<dt><code>-t, --term-cursor</code></dt> |
| 973 |
<dd><p>gtypist creates its own flashing block cursor on the screen, to help |
| 974 |
distinguish between the cursor and reverse video error indications. |
| 975 |
Setting <samp>-t</samp> or <samp>--term-cursor</samp> suppresses this, and |
| 976 |
forces the program to use the terminal’s cursor instead. |
| 977 |
</p> |
| 978 |
</dd> |
| 979 |
<dt><code>-f, --curs-flash</code></dt> |
| 980 |
<dd><p>Sets the block cursor flash period in tenths of a second. A value of 0 |
| 981 |
indicates no cursor flashing. The default is 10, and the maximum is |
| 982 |
512. This option is ignored if <samp>-t</samp> or <samp>--term-cursor</samp> |
| 983 |
has been set. |
| 984 |
</p> |
| 985 |
</dd> |
| 986 |
<dt><code>-c, --colo[u]rs</code></dt> |
| 987 |
<dd><p>In normal operation, gtypist uses only normal and reverse video |
| 988 |
attributes in monochrome mode. This option may be used to specify the |
| 989 |
foreground and background colours on terminals that support colours. |
| 990 |
The colours are specified as two integers, in the range 0 to 7, |
| 991 |
separated by commas, setting the foreground and background |
| 992 |
colours. The colour codes 0 to 7 indicate black, red, green, yellow, |
| 993 |
blue, magenta, cyan, and white respectively. The default colours |
| 994 |
string is 7,0 - white on black. The option is ignored if the terminal |
| 995 |
does not support colours. |
| 996 |
</p> |
| 997 |
</dd> |
| 998 |
<dt><code>-s, --silent</code></dt> |
| 999 |
<dd><p>When gtypist detects a typing error, it will beep the terminal. Use |
| 1000 |
this option to silence the beep. |
| 1001 |
</p> |
| 1002 |
</dd> |
| 1003 |
<dt><code>-q, --quiet</code></dt> |
| 1004 |
<dd><p>Same as <samp>-s</samp> or <samp>--silent</samp>. |
| 1005 |
</p> |
| 1006 |
</dd> |
| 1007 |
<dt><code>-l, --start-label</code></dt> |
| 1008 |
<dd><p>Specifies the label in the script file at which gtypist begins |
| 1009 |
executing (see script files and commands below for information on |
| 1010 |
labels). If this option is not used, gtypist begins execution at the |
| 1011 |
first line of the file. |
| 1012 |
</p> |
| 1013 |
</dd> |
| 1014 |
<dt><code>-w, --word-processor</code></dt> |
| 1015 |
<dd><p>With this option, gtypist will try to mimic a word processor in |
| 1016 |
certain ways when executing an exercise. It will treat space at the |
| 1017 |
end of a line as a correctly typed character, and word wrap. It will |
| 1018 |
treat return at the end of a line as a signal to move to the start of |
| 1019 |
the next paragraph if applicable. It will compress multiple spaces |
| 1020 |
into a single space. And it will skip over hyphens found at the end of |
| 1021 |
a line. |
| 1022 |
</p> |
| 1023 |
</dd> |
| 1024 |
<dt><code>-k, --no-skip</code></dt> |
| 1025 |
<dd><p>Prohibit the user from skipping lessons or exiting from lessons via |
| 1026 |
<tt class="key">ESC ESC</tt>. |
| 1027 |
</p> |
| 1028 |
</dd> |
| 1029 |
<dt><code>-i, --show-errors</code></dt> |
| 1030 |
<dd><p>Highlight errors with reverse video. |
| 1031 |
</p> |
| 1032 |
</dd> |
| 1033 |
<dt><code>-S, --always-sure</code></dt> |
| 1034 |
<dd><p>Skips confirmation questions. |
| 1035 |
</p> |
| 1036 |
</dd> |
| 1037 |
<dt><code>--banner-colo[u]rs</code></dt> |
| 1038 |
<dd><p>Change the color of the banner at the top of the screen. Color values |
| 1039 |
are the same as for the –colo[u]rs command. The default value is |
| 1040 |
0,6,5,1 - black foreground, cyan background, magenta program name and |
| 1041 |
red version name. |
| 1042 |
</p> |
| 1043 |
</dd> |
| 1044 |
<dt><code>--scoring</code></dt> |
| 1045 |
<dd><p>Change the scoring mode. <acronym>WPM</acronym> and <acronym>CPM</acronym> modes are |
| 1046 |
available, with the default being <acronym>WPM</acronym>. |
| 1047 |
</p> |
| 1048 |
</dd> |
| 1049 |
</dl> |
| 1050 |
|
| 1051 |
<p>You also have to set the environment variable <code>LANG</code> if you want |
| 1052 |
to run gtypist in your native language. See <a href="#Environment-Variables">Environment Variables</a>. |
| 1053 |
</p> |
| 1054 |
<p>In some languages like French, some interface messages are longer than |
| 1055 |
in English. Therefore, you may need to make your terminal larger |
| 1056 |
before invoking the tool. Otherwise, the text on the lower left may |
| 1057 |
overlap with the string on the lower right. |
| 1058 |
</p> |
| 1059 |
<p><strong>Examples:</strong> |
| 1060 |
</p> |
| 1061 |
<p>To run the default lessons of lesson <samp>gtypist.typ</samp>:<br> |
| 1062 |
<code>gtypist</code> |
| 1063 |
</p> |
| 1064 |
|
| 1065 |
<p>To run the lesson in Spanish: <br> |
| 1066 |
<code>gtypist esp.typ</code> |
| 1067 |
</p> |
| 1068 |
|
| 1069 |
<p>To instruct gtypist to look for lesson bar.typ in a non |
| 1070 |
standard directory <samp>/home/foo</samp>: <br> |
| 1071 |
<code>export GTYPIST_PATH="/home/foo"</code> |
| 1072 |
<code>gtypist bar.typ</code> |
| 1073 |
</p> |
| 1074 |
|
| 1075 |
<p>To run the lessons in the file <samp>test.typ</samp> of directory |
| 1076 |
<samp>/tmp</samp>, starting at label <code>TEST1</code>, using the terminal’s |
| 1077 |
cursor, and running silently:<br> <code>gtypist -t -q -l TEST1 |
| 1078 |
/tmp/test.typ</code> |
| 1079 |
</p> |
| 1080 |
<hr> |
| 1081 |
<a name="Supplied-lessons"></a> |
| 1082 |
<a name="Supplied-lessons-1"></a> |
| 1083 |
<h2 class="chapter">3 Supplied lessons</h2> |
| 1084 |
|
| 1085 |
<p>The following lessons are supplied with GNU Typist : |
| 1086 |
</p><dl compact="compact"> |
| 1087 |
<dt><samp>q.typ</samp></dt> |
| 1088 |
<dd><p>Quick QWERTY course in English |
| 1089 |
</p></dd> |
| 1090 |
<dt><samp>r.typ</samp></dt> |
| 1091 |
<dd><p>Long QWERTY course in English |
| 1092 |
</p></dd> |
| 1093 |
<dt><samp>t.typ</samp></dt> |
| 1094 |
<dd><p>QWERTY touch typing in English |
| 1095 |
</p></dd> |
| 1096 |
<dt><samp>v.typ</samp></dt> |
| 1097 |
<dd><p>Yet Another QWERTY in English |
| 1098 |
</p></dd> |
| 1099 |
<dt><samp>u.typ</samp></dt> |
| 1100 |
<dd><p>QWERTY Review in English |
| 1101 |
</p></dd> |
| 1102 |
<dt><samp>d.typ</samp></dt> |
| 1103 |
<dd><p>Dvorak touch typing in English |
| 1104 |
</p></dd> |
| 1105 |
<dt><samp>c.typ</samp></dt> |
| 1106 |
<dd><p>Colemak touch typing in English |
| 1107 |
</p></dd> |
| 1108 |
<dt><samp>m.typ</samp></dt> |
| 1109 |
<dd><p>Typing drills in English |
| 1110 |
</p></dd> |
| 1111 |
<dt><samp>s.typ</samp></dt> |
| 1112 |
<dd><p>Speed drills in English |
| 1113 |
</p></dd> |
| 1114 |
<dt><samp>n.typ</samp></dt> |
| 1115 |
<dd><p>Calculator keypad in English |
| 1116 |
</p></dd> |
| 1117 |
<dt><samp>gtypist.typ</samp></dt> |
| 1118 |
<dd><p>Compendium of all previous lessons in English |
| 1119 |
</p></dd> |
| 1120 |
<dt><samp>cs.typ</samp></dt> |
| 1121 |
<dd><p>Lessons in Czech |
| 1122 |
</p></dd> |
| 1123 |
<dt><samp>esp.typ</samp></dt> |
| 1124 |
<dd><p>QWERTY course in Spanish |
| 1125 |
</p></dd> |
| 1126 |
<dt><samp>ru.typ</samp></dt> |
| 1127 |
<dd><p>Lessons in Russian |
| 1128 |
</p></dd> |
| 1129 |
<dt><samp>kt*.typ</samp></dt> |
| 1130 |
<dd><p>These lessons are the standard lessons from |
| 1131 |
<a href="http://ktouch.sourceforge.net/">Ktouch 1.6</a>, which have been |
| 1132 |
converted to gtypist’s file format with the included script, |
| 1133 |
<samp>tools/ktouch2typ.pl</samp>. |
| 1134 |
</p> |
| 1135 |
<p>The files are: |
| 1136 |
<samp>ktbg.typ</samp> (<samp>bulgarian.ktouch.xml</samp>), |
| 1137 |
<samp>ktbg_long.typ</samp> (<samp>bulgarian_long.ktouch.xml</samp>), |
| 1138 |
<samp>ktde.typ</samp> (<samp>german.ktouch.xml</samp>), |
| 1139 |
<samp>ktde2.typ</samp> (<samp>german3.ktouch.xml</samp>), |
| 1140 |
<samp>ktde_neo.typ</samp> (<samp>german.neo.ktouch.xml</samp>), |
| 1141 |
<samp>ktde_number.typ</samp> (<samp>german.number.ktouch.xml</samp>), |
| 1142 |
<samp>ktdk.typ</samp> (<samp>danish.ktouch.xml</samp>), |
| 1143 |
<samp>ktdk2.typ</samp> (<samp>danish2.ktouch.xml</samp>), |
| 1144 |
<samp>ktdvorak.typ</samp> (<samp>dvorak.ktouch.xml</samp>), |
| 1145 |
<samp>ktdvorak_es.typ</samp> (<samp>dvorak_es.ktouch.xml</samp>), |
| 1146 |
<samp>ktdvorak_abcd.typ</samp> (<samp>dvorak_ABCD.ktouch.xml</samp>), |
| 1147 |
<samp>kten.typ</samp> (<samp>english.ktouch.xml</samp>), |
| 1148 |
<samp>ktes.typ</samp> (<samp>spanish.ktouch.xml</samp>), |
| 1149 |
<samp>ktes_cat.typ</samp> (<samp>catalan.ktouch.xml</samp>), |
| 1150 |
<samp>ktfi.typ</samp> (<samp>finnish.ktouch.xml</samp>), |
| 1151 |
<samp>ktfi_kids.typ</samp> (<samp>finnish_for_kids.ktouch.xml</samp>), |
| 1152 |
<samp>ktfr.typ</samp> (<samp>french.ktouch.xml</samp>), |
| 1153 |
<samp>ktfr2.typ</samp> (<samp>french2.ktouch.xml</samp>), |
| 1154 |
<samp>kthu.typ</samp> (<samp>hungarian.ktouch.xml</samp>), |
| 1155 |
<samp>kthu_expert.typ</samp> (<samp>hungarian_expert.ktouch.xml</samp>), |
| 1156 |
<samp>ktit.typ</samp> (<samp>italian.ktouch.xml</samp>), |
| 1157 |
<samp>ktnl.typ</samp> (<samp>nederlands.ktouch.xml</samp>), |
| 1158 |
<samp>ktnl_junior.typ</samp> (<samp>nederlands_junior.ktouch.xml</samp>), |
| 1159 |
<samp>ktno.typ</samp> (<samp>norwegian.ktouch.xml</samp>), |
| 1160 |
<samp>ktpl.typ</samp> (<samp>polish.ktouch.xml</samp>), |
| 1161 |
<samp>ktru.typ</samp> (<samp>russian.ktouch.xml</samp>), |
| 1162 |
<samp>ktru_long.typ</samp> (<samp>russian_long.ktouch.xml</samp>), |
| 1163 |
<samp>ktru_slava.typ</samp> (<samp>russian_slava.ktouch.xml</samp>), |
| 1164 |
<samp>ktsi.typ</samp> (<samp>slovenian.ktouch.xml</samp>), |
| 1165 |
<samp>kttr.typ</samp> (<samp>tr.ktouch.xml</samp>), |
| 1166 |
</p> |
| 1167 |
<p><samp>german2.ktouch.xml</samp> has not been included because it is from the |
| 1168 |
same source as <samp>ttde.typ</samp> and <samp>ttde.typ</samp> contains more |
| 1169 |
information. |
| 1170 |
</p> |
| 1171 |
</dd> |
| 1172 |
<dt><samp>ttde.typ</samp></dt> |
| 1173 |
<dd><p>This is the German lesson of |
| 1174 |
<a href="http://www.pingos.schulnetz.org/tipptrainer/">tipptrainer |
| 1175 |
0.6.0</a>, which has been converted using <samp>tools/tt2typ.pl</samp>. It is |
| 1176 |
quite extensive and has good explanations along the way. |
| 1177 |
</p></dd> |
| 1178 |
</dl> |
| 1179 |
|
| 1180 |
<p>If you find errors in these lessons, if you modify any of them or if |
| 1181 |
you write a new lesson, please release it with a free license and tell |
| 1182 |
us about it, by writing an email to <a href="mailto:[email protected]">[email protected]</a>. |
| 1183 |
</p> |
| 1184 |
<hr> |
| 1185 |
<a name="Using-typefortune"></a> |
| 1186 |
<a name="Using-typefortune-1"></a> |
| 1187 |
<h2 class="chapter">4 Using typefortune</h2> |
| 1188 |
|
| 1189 |
<p><code>typefortune</code> lets you practice with text from |
| 1190 |
<code>fortune</code>. |
| 1191 |
</p> |
| 1192 |
<p><code>SYNTAX: typefortune [-dslh] [-n count] [-o <gtypist_opts>]</code> |
| 1193 |
</p> |
| 1194 |
<dl compact="compact"> |
| 1195 |
<dt><code>-d</code></dt> |
| 1196 |
<dd><p>Use <code>D:</code> instead of <code>S:</code>. |
| 1197 |
</p> |
| 1198 |
</dd> |
| 1199 |
<dt><code>-s</code></dt> |
| 1200 |
<dd><p>Run fortune with <code>-s</code>. |
| 1201 |
</p> |
| 1202 |
</dd> |
| 1203 |
<dt><code>-l</code></dt> |
| 1204 |
<dd><p>Run fortune with <code>-l</code>. |
| 1205 |
</p> |
| 1206 |
</dd> |
| 1207 |
<dt><code>-n <count></code></dt> |
| 1208 |
<dd><p>Practice <count> fortunes. |
| 1209 |
</p> |
| 1210 |
</dd> |
| 1211 |
<dt><code>-o <gtypist_options></code></dt> |
| 1212 |
<dd><p>Pass options to gtypist, in the form <samp>option</samp> (boolean option, |
| 1213 |
i.e. <code>-o word-processor</code>), <samp>option,value</samp> (option with |
| 1214 |
value, i.e. <code>-o e,1.0</code>) where <code>option</code> is the name of the |
| 1215 |
option (short or long) with all leading dashes removed. You need to |
| 1216 |
quote the argument to <samp>-o</samp> if you are specifying more than one |
| 1217 |
argument: <code>typefortune -n 3 -o 'silent e,5 word-processor'</code>. |
| 1218 |
</p> |
| 1219 |
</dd> |
| 1220 |
</dl> |
| 1221 |
|
| 1222 |
<hr> |
| 1223 |
<a name="Script-file-commands"></a> |
| 1224 |
<a name="Script-file-commands-1"></a> |
| 1225 |
<h2 class="chapter">5 Script file commands</h2> |
| 1226 |
|
| 1227 |
<p>GNU Typist reads in the data for its typing lessons from a script |
| 1228 |
file. With the exception of comments and blank lines, each line in |
| 1229 |
the file is of the format |
| 1230 |
</p> |
| 1231 |
<p><code>command_char : command_data</code> |
| 1232 |
</p> |
| 1233 |
<p>Here, <code>command_char</code> is a single character code that defines an |
| 1234 |
action for gtypist to take, and <code>command_data</code> is data for that |
| 1235 |
command. If <code>command_char</code> is a space character, this indicates |
| 1236 |
that the line is a continuation of the preceding non-space |
| 1237 |
command. The ‘<samp>:</samp>’ separator must be in column two of the line. |
| 1238 |
</p> |
| 1239 |
<p>Comment lines are lines beginning with a ‘<samp>#</samp>’ character, and are |
| 1240 |
ignored, as are blank lines. Comment lines may have any format |
| 1241 |
provided that they begin with ‘<samp>#</samp>’; other lines must have the |
| 1242 |
above format. |
| 1243 |
</p> |
| 1244 |
<p>You should read the introduction so that you are familiar with the |
| 1245 |
basics: See <a href="#Introduction">Introduction</a>. |
| 1246 |
</p> |
| 1247 |
<p>The following is a list of valid <code>command_char</code> values: |
| 1248 |
</p> |
| 1249 |
<dl compact="compact"> |
| 1250 |
<dt><code>B</code></dt> |
| 1251 |
<dd><p>This command clears the complete screen. If any <code>command_data</code> is |
| 1252 |
present, it is displayed in the one-line banner at the top of the |
| 1253 |
screen, and remains in place until the next <code>B</code> command. This |
| 1254 |
command may not be continued on the following line; it is a single |
| 1255 |
line command. |
| 1256 |
</p> |
| 1257 |
</dd> |
| 1258 |
<dt><code>T</code></dt> |
| 1259 |
<dd><p>This presents a tutorial, and is a multi-line command, up to the limit |
| 1260 |
of the screen length. Each line in the command is simply printed to |
| 1261 |
the screen. This command clears the screen beneath the top banner |
| 1262 |
line. After the display is done, the program waits before proceeding. |
| 1263 |
</p> |
| 1264 |
</dd> |
| 1265 |
<dt><code>*</code></dt> |
| 1266 |
<dd><p>This indicates a label in the file. The label may be the target of a |
| 1267 |
<code>G</code>, <code>Y</code>, <code>N</code> or <code>F</code> command. Labels may contain |
| 1268 |
any character except space (this restriction was added in gtypist |
| 1269 |
2.9), and are a single line command. Labels must be unique within |
| 1270 |
lesson files. White-space at the end of labels is ignored. |
| 1271 |
</p> |
| 1272 |
</dd> |
| 1273 |
<dt><code>I</code></dt> |
| 1274 |
<dd><p>The <code>I</code> command can display some brief instructions above a drill |
| 1275 |
or a speed test. Only two lines or less are permitted. Unlike the |
| 1276 |
<code>T</code> command, it does not wait for any further key-presses before |
| 1277 |
proceeding. So it should really always be followed by an exercise. |
| 1278 |
It clears the whole screen exercise area, so in this respect it’s just |
| 1279 |
like a two-line <code>T</code>. |
| 1280 |
</p> |
| 1281 |
</dd> |
| 1282 |
<dt><code>M</code></dt> |
| 1283 |
<dd><p>This command is the new way to create menus (since gtypist 2.7). Here |
| 1284 |
is the syntax: |
| 1285 |
</p><div class="example"> |
| 1286 |
<pre class="example">M: [UP=RETURN_LABEL|_EXIT] "title" |
| 1287 |
:LABEL1 "item1" |
| 1288 |
:LABEL2 "item2" |
| 1289 |
... |
| 1290 |
</pre></div> |
| 1291 |
|
| 1292 |
<p>This will display a convenient menu made from the specified items and |
| 1293 |
let the user to choose from them. If an item was selected, gtypist |
| 1294 |
will continue script execution from the corresponding label. If the |
| 1295 |
Escape key was pressed and <code>UP</code> label is defined, gtypist will go |
| 1296 |
to the <code>UP</code> label likewise, or quit from, if there is |
| 1297 |
<code>``_EXIT''</code> in the place of the label. If the <code>UP</code> label is |
| 1298 |
not defined, gtypist will try to return to the previous menu and jump |
| 1299 |
to the last label met in the script before previous <code>M</code> command. |
| 1300 |
If there is no such label and some menu was displayed before the |
| 1301 |
current one, gtypist will just go to the beginning of the script. If |
| 1302 |
none of the previous conditions were met, gtypist will just exit from |
| 1303 |
the script. |
| 1304 |
</p> |
| 1305 |
<p>The above details make it natural to create menu hierarchies without |
| 1306 |
using <code>UP</code> labels. |
| 1307 |
</p> |
| 1308 |
<p>The title and all descriptions must be wrapped in quotes (""). |
| 1309 |
Additionally, there must be at least one space between <code>UP=XXX</code> |
| 1310 |
and "title" and between the labels and the corresponding descriptions. |
| 1311 |
</p> |
| 1312 |
<p>This command was introduced as an easy way to arrange various parts of |
| 1313 |
lesson files into single menu hierarchy which can be easily navigated, |
| 1314 |
as well as a replacement for ancient <code>F</code>-key menus. See the |
| 1315 |
existing lesson-files for examples. |
| 1316 |
</p> |
| 1317 |
</dd> |
| 1318 |
<dt><code>D,d</code></dt> |
| 1319 |
<dd><p>This command is called <em>drill</em>, and it is one of two types of |
| 1320 |
typing exercises. |
| 1321 |
</p> |
| 1322 |
<p>It is a multi-line command. The text is displayed in every second |
| 1323 |
line, and you type in the intermediate lines. Because of this, you |
| 1324 |
cannot use more than 11 lines of drill content. |
| 1325 |
</p> |
| 1326 |
<p>This type of exercise is supposed to be used for finger training |
| 1327 |
(i.e. jfjfjjf), but may also contain complete words and sentences |
| 1328 |
if they are used to practice something (i.e. a |
| 1329 |
letter/syllable/"grip"), and aren’t real texts. |
| 1330 |
</p> |
| 1331 |
<p>The lowercase version <code>d</code> is a “practice only” drill - the user |
| 1332 |
will not have not repeat this drill if he/she made too many mistakes. |
| 1333 |
</p> |
| 1334 |
</dd> |
| 1335 |
<dt><code>S,s</code></dt> |
| 1336 |
<dd><p>This is the second type of typing exercise: the <em>speed test</em>. |
| 1337 |
</p> |
| 1338 |
<p>It is a multi-line command. It displays its text on the screen, and |
| 1339 |
prompts the user to type on top of it. That’s why you can use up to |
| 1340 |
22 lines of text for one speed test. In a speed test you can correct |
| 1341 |
your mistakes, but this will not decrease the error-count. |
| 1342 |
</p> |
| 1343 |
<p>Speed tests should be used for typing (mostly) complete sentences, |
| 1344 |
texts or files (i.e. a letter, texinfo/html/tex files). |
| 1345 |
</p> |
| 1346 |
<p>The lowercase version <code>s</code> is a <em>practice only speed test</em>: |
| 1347 |
the user will not have not repeat this drill if (s)he made too many |
| 1348 |
mistakes. |
| 1349 |
</p> |
| 1350 |
</dd> |
| 1351 |
<dt><code>G</code></dt> |
| 1352 |
<dd><p>This causes gtypist to go to the label in <code>command_data</code>, and |
| 1353 |
continue execution of the script there. This is a single line command. |
| 1354 |
</p> |
| 1355 |
</dd> |
| 1356 |
<dt><code>Q</code></dt> |
| 1357 |
<dd><p>This command command prompts its text on the message line, and waits |
| 1358 |
for a <tt class="key">Y</tt> or an <tt class="key">N</tt> before proceeding. Other characters are |
| 1359 |
ignored. |
| 1360 |
</p> |
| 1361 |
<p>As a side effect, you can hit an F-key if it is bound (a deprecated way |
| 1362 |
to create the prompt for menus). |
| 1363 |
</p> |
| 1364 |
</dd> |
| 1365 |
<dt><code>Y</code></dt> |
| 1366 |
<dd><p>This is like <code>G</code>, except that the goto is executed only if the |
| 1367 |
result of the last <code>Q</code> command was <tt class="key">Y</tt>. |
| 1368 |
</p> |
| 1369 |
</dd> |
| 1370 |
<dt><code>N</code></dt> |
| 1371 |
<dd><p>This is like <code>G</code>, except that the goto is executed only if the |
| 1372 |
result of the last <code>Q</code> command was <tt class="key">N</tt>. |
| 1373 |
</p> |
| 1374 |
</dd> |
| 1375 |
<dt><code>K</code></dt> |
| 1376 |
<dd><p><em>This command is deprecated in favor of M:</em> This binds a function |
| 1377 |
key to a label. The format of the data line following this command |
| 1378 |
must be <code>fkey_number:label</code>, where <code>fkey_number</code> is a |
| 1379 |
function key number in the range 1 to 12, and <code>label</code> is a label |
| 1380 |
to go to when this key is pressed. A value of NULL for label removes |
| 1381 |
any label binding from the key. |
| 1382 |
</p> |
| 1383 |
<p>If function keys are not available on the terminal other keys can be |
| 1384 |
used: <tt class="key">1</tt> to <tt class="key">9</tt> to replace <tt class="key">F1</tt> to <tt class="key">F9</tt>, <tt class="key">0</tt> to |
| 1385 |
replace <tt class="key">F10</tt>, <tt class="key">A</tt> for <tt class="key">F11</tt> and <tt class="key">S</tt> for <tt class="key">F12</tt>. |
| 1386 |
</p> |
| 1387 |
<p>Other alternatives for the keys <tt class="key">F1</tt> to <tt class="key">F12</tt> are the |
| 1388 |
combinations: <tt class="key">Ctrl-Q</tt>, <tt class="key">Ctrl-W</tt>, <tt class="key">Ctrl-E</tt>, <tt class="key">Ctrl-R</tt>, |
| 1389 |
<tt class="key">Ctrl-T</tt>, <tt class="key">Ctrl-Z</tt>, <tt class="key">Ctrl-U</tt>, <tt class="key">Ctrl-I</tt>, <tt class="key">Ctrl-O</tt>, |
| 1390 |
<tt class="key">Ctrl-P</tt>, <tt class="key">Ctrl-A</tt> and <tt class="key">Ctrl-S</tt>. |
| 1391 |
</p> |
| 1392 |
<p>This is also useful where function keys are intercepted by other |
| 1393 |
programs (for example by a window manager). |
| 1394 |
</p> |
| 1395 |
</dd> |
| 1396 |
<dt><code>E</code></dt> |
| 1397 |
<dd><p>This command is used to set the highest error-rate permitted for the |
| 1398 |
next drill (<code>E:<value>%</code>) or for all following drills until the |
| 1399 |
next <code>E:</code> (<code>E:<value>%*</code>). |
| 1400 |
</p> |
| 1401 |
<p>If <samp>--error-max/-e</samp> is specified then this command will only |
| 1402 |
have an effect if it is <em>stricter</em> than the value specified on |
| 1403 |
the command-line. |
| 1404 |
</p> |
| 1405 |
<p><code>command_data</code> consists of the value (between 0.0 and 100.0), |
| 1406 |
followed by ‘<samp>%</samp>’ (this is required so that scripts are more |
| 1407 |
readable). A special value of <code>default</code> or <code>Default</code> sets |
| 1408 |
the error-max value back to the default. |
| 1409 |
</p> |
| 1410 |
</dd> |
| 1411 |
<dt><code>F</code></dt> |
| 1412 |
<dd><p>This command (“set on-failure label”) is used to set the label (in |
| 1413 |
<code>command_data</code>) where the user will have to go to if (s)he fails |
| 1414 |
an exercise. |
| 1415 |
</p> |
| 1416 |
<p>Usually, this command only applies to the next exercise, but you can |
| 1417 |
make it persistent by putting a ‘<samp>*</samp>’ at the end of |
| 1418 |
<code>command_data</code>. |
| 1419 |
</p> |
| 1420 |
<p>If label is NULL then this resets the label. |
| 1421 |
</p> |
| 1422 |
</dd> |
| 1423 |
<dt><code>X</code></dt> |
| 1424 |
<dd><p>This command causes gtypist to exit. It is a single line command. Any |
| 1425 |
<code>command_data</code> is ignored. The program also exits if the end of |
| 1426 |
the file is found (so you could also place a label there and just |
| 1427 |
<code>G</code> to it) |
| 1428 |
</p> |
| 1429 |
</dd> |
| 1430 |
</dl> |
| 1431 |
|
| 1432 |
|
| 1433 |
<p>Here is a tiny example script to demonstrate the available commands |
| 1434 |
(<samp>tinydemo.typ</samp> lesson file): |
| 1435 |
</p> |
| 1436 |
<div class="example"> |
| 1437 |
<pre class="example"># Minimal demonstration |
| 1438 |
B: Typing tutor demonstration |
| 1439 |
*:LOOP |
| 1440 |
K:1:QDONE |
| 1441 |
T:This is a small example tutor script. A better |
| 1442 |
:example may be found in the demo.typ file that |
| 1443 |
:accompanies GNU Typist |
| 1444 |
I:Here is an example of a drill: |
| 1445 |
D:asdf ghjkl; |
| 1446 |
I:And here is an example of a speed test: |
| 1447 |
S:qwe rt yu iop |
| 1448 |
*:QDONE |
| 1449 |
Q:Seen enough yet? [Y/N] |
| 1450 |
N:LOOP |
| 1451 |
X: |
| 1452 |
</pre></div> |
| 1453 |
|
| 1454 |
|
| 1455 |
<hr> |
| 1456 |
<a name="Create-new-lessons"></a> |
| 1457 |
<a name="Create-new-lessons-1"></a> |
| 1458 |
<h2 class="chapter">6 Create new lessons</h2> |
| 1459 |
|
| 1460 |
<p>This section provides guidelines and hints for creating new lessons |
| 1461 |
(or improving existing ones). |
| 1462 |
</p> |
| 1463 |
|
| 1464 |
|
| 1465 |
<hr> |
| 1466 |
<a name="Ktouch-lessons"></a> |
| 1467 |
<a name="Ktouch-lessons-1"></a> |
| 1468 |
<h3 class="section">6.1 Ktouch lessons</h3> |
| 1469 |
|
| 1470 |
<p>A very easy way to write lessons is to write them in the format that |
| 1471 |
<code>ktouch</code> <strong>1.0</strong> uses, and then convert it to a gtypist |
| 1472 |
lesson using <code>tools/ktouchOLD2typ.pl</code>. This will take care of |
| 1473 |
writing “jump-tables”, a menu and a bit more. |
| 1474 |
</p> |
| 1475 |
<p>The ktouch-1.0-format consists only of lessons, which are preceded by |
| 1476 |
their names, and separated by blank lines and/or comments (‘<samp>#</samp>’ at |
| 1477 |
the beginning of the line). So the first non-blank, non-comment line |
| 1478 |
in the file is the name of the first lesson, and the first lesson |
| 1479 |
consists of all the lines up to the next comment or blank line. After |
| 1480 |
the separator (comment or blank line) the name of the second lesson |
| 1481 |
follows and so on. |
| 1482 |
</p> |
| 1483 |
<p>This is an example of a three-lesson ktouch file (excerpts from the |
| 1484 |
first three lessons of <samp>german.ktouch</samp>): |
| 1485 |
</p><div class="example"> |
| 1486 |
<pre class="example"># |
| 1487 |
# Deutsche Training-Datei für KTouch |
| 1488 |
# |
| 1489 |
|
| 1490 |
Grundstellung |
| 1491 |
f f f f f f fff fff fff f f f f f f fff fff fff f f f f f f f fff |
| 1492 |
j j j j j j jjj jjj jjj j j j j j j jjj jjj jjj j j j j j j j jjj |
| 1493 |
fff jjj fff jjj jjj fff jjj fff fjf fjf fjf jfj jfj jfj fjf jfjfj |
| 1494 |
|
| 1495 |
Grundstellung |
| 1496 |
fff jjj ddd kkk aaa ööö fff jjj ddd kkk aaa ööö fff jjj ddd kkkff |
| 1497 |
fda jkö fda jkö fda jkö fda jkö fda jkö fda jkö fda jkö fda jköfd |
| 1498 |
s s s s s s sss sss sss s s s s s s sss sss sss s s s s s s s sss |
| 1499 |
|
| 1500 |
#Zwei wichtige Vokale: e und i |
| 1501 |
e und i |
| 1502 |
asdf ölkj fdsa jklö asdf ölkj fdsa jklö asdf ölkj fdsa jklö asdfö |
| 1503 |
das dass lös fad dass lös als dass las lös fad dass als dass dass |
| 1504 |
ded ded ded dej dek del deö ded deö del dek dej ded dej dek delde |
| 1505 |
</pre></div> |
| 1506 |
|
| 1507 |
<p>Once you are done, use <code>tools/ktouchOLD2typ.pl</code> to convert the |
| 1508 |
file: ‘<samp>ktouchOLD2typ.pl lesson.ktouch</samp>’ converts |
| 1509 |
<samp>lesson.ktouch</samp> to <samp>lesson.typ</samp>. It is important that the |
| 1510 |
input file ends in ‘<samp>.ktouch</samp>’, otherwise |
| 1511 |
<code>ktouchOLD2typ.pl</code> will skip it. Warning: this will overwrite |
| 1512 |
<samp>lesson.typ</samp> without asking you ! |
| 1513 |
</p> |
| 1514 |
<p>You can customize the number of lines that <code>ktouchOLD2typ.pl</code> |
| 1515 |
uses for each drill by modifying the relevant variable in |
| 1516 |
<samp>tools/ktouchOLD2typ.pl</samp>. |
| 1517 |
</p> |
| 1518 |
<p>Obviously, the disadvantage of this is that you cannot make use of all |
| 1519 |
of gtypist’s features (but the output file is very readable, so you |
| 1520 |
can edit it to use more of gtypist’s features). |
| 1521 |
</p> |
| 1522 |
<p>If you prefer, you can use the new ktouch 1.6 XML file format, which |
| 1523 |
looks like this (from <samp>english.ktouch.xml</samp>: |
| 1524 |
</p><div class="example"> |
| 1525 |
<pre class="example"><KTouchLecture> |
| 1526 |
<Title>SAMPLE TITLE</Title> |
| 1527 |
<Comment>SAMPLE COMMENT</Comment> |
| 1528 |
<Levels> |
| 1529 |
<Level> |
| 1530 |
<NewCharacters>jf</NewCharacters> |
| 1531 |
<Line>ff jjj jf jfj j jff fjjf ff jfj j jff ff jjj fjj fjj fjf jfj jjj</Line> |
| 1532 |
<Line>f fjjf jjj fjjf jfj fjjf f j fjj jff j fjj jf jjj fjjf f f fjf</Line> |
| 1533 |
<Line>fjjf jff jjj ff jf fjjf fjjf f fjj fjj jf fjf j jj f j fjj jj jjj</Line> |
| 1534 |
<Line>...</Line> |
| 1535 |
</Level> |
| 1536 |
<Level> |
| 1537 |
<NewCharacters>kd</NewCharacters> |
| 1538 |
<Line>jjd fdfj rd djd jk jd k dd fjk fd fk k jfkd dkkf fk dkd dd jk k</Line> |
| 1539 |
<Line>dfj djd fkkk fk dff d dkkf fd fk fdfj fk k dkkf djd dff dkd dff</Line> |
| 1540 |
<Line>dkd kdk k dkkf k jk fkkk jd k jfkd fk fk jd k d dkd jd k dd rd dffd</Line> |
| 1541 |
<Line>...</Line> |
| 1542 |
</Level> |
| 1543 |
</Levels> |
| 1544 |
</KTouchLecture> |
| 1545 |
</pre></div> |
| 1546 |
<p>In this format, the content of the <NewCharacters> tag acts as a title |
| 1547 |
for the following drill. You can convert <samp>*.ktouch.xml</samp> to |
| 1548 |
<samp>*.typ</samp> with ‘<samp>ktouch2typ.pl lesson.ktouch.xml</samp>’, which will |
| 1549 |
create <samp>lesson.ktouch.typ</samp> (again, this may overwrite without asking you). |
| 1550 |
</p> |
| 1551 |
<hr> |
| 1552 |
<a name="Exercises-from-fortune"></a> |
| 1553 |
<a name="Exercises-from-fortune-1"></a> |
| 1554 |
<h3 class="section">6.2 Exercises from fortune</h3> |
| 1555 |
|
| 1556 |
<p>Using <samp>gtypist-mode.el</samp> you can quickly create lessons with text |
| 1557 |
from the program <code>fortune</code> (or the Emacs-internal |
| 1558 |
<code>yow</code> if <code>fortune</code> isn’t available, as is usually the |
| 1559 |
case on Windows). |
| 1560 |
</p> |
| 1561 |
<p>Once you installed <samp>gtypist-mode.el</samp> (see <a href="#Emacs-mode">Emacs mode</a>), you |
| 1562 |
can open a file with the ‘<samp>.typ</samp>’ extension and run <kbd>C-c C-f</kbd> |
| 1563 |
to create a drill (<code>D:</code> by default, use <kbd>C-u</kbd> or <kbd>C-u |
| 1564 |
C-u</kbd> prefix to change). |
| 1565 |
</p> |
| 1566 |
<hr> |
| 1567 |
<a name="Design-patterns-for-lessons"></a> |
| 1568 |
<a name="Design-patterns-for-lessons-1"></a> |
| 1569 |
<h3 class="section">6.3 Design patterns for lessons</h3> |
| 1570 |
|
| 1571 |
<a name="Structure-of-lesson-files"></a> |
| 1572 |
<h4 class="subsection">6.3.1 Structure of lesson files</h4> |
| 1573 |
|
| 1574 |
<ul> |
| 1575 |
<li> Use mixture of drills and speed tests (this is more fun for the user) |
| 1576 |
</li><li> Use some “practice-only” exercises (<code>d:</code>/<code>s:</code>) |
| 1577 |
(possibly mixed with “real” exercises) followed by a “final test”. |
| 1578 |
<samp>esp.typ</samp> uses this scheme. |
| 1579 |
|
| 1580 |
</li></ul> |
| 1581 |
|
| 1582 |
<a name="Patterns-for-exercises"></a> |
| 1583 |
<h4 class="subsection">6.3.2 Patterns for exercises</h4> |
| 1584 |
|
| 1585 |
<ul> |
| 1586 |
<li> When introducing a new key, start out by mixing other (known) keys |
| 1587 |
of the same finger in with the new key in the first drill(s). Here is |
| 1588 |
an example (from <samp>t.typ</samp>, line 237): |
| 1589 |
<div class="example"> |
| 1590 |
<pre class="example">I:Use your J-finger for the H key. |
| 1591 |
*:_T_R_L23 |
| 1592 |
D:jjj jhj jjj jhj jjj jhj |
| 1593 |
</pre></div> |
| 1594 |
</li><li> use ’word, word.’ repeatedly to practice ,/. |
| 1595 |
</li></ul> |
| 1596 |
|
| 1597 |
<hr> |
| 1598 |
<a name="Findwords-script"></a> |
| 1599 |
<a name="Findwords-script-1"></a> |
| 1600 |
<h3 class="section">6.4 Findwords script</h3> |
| 1601 |
|
| 1602 |
<p>The <samp>tools/findwords</samp> script in the GNU Typist sources is there |
| 1603 |
to assist you in creating new lessons. |
| 1604 |
</p> |
| 1605 |
<a name="Purpose"></a> |
| 1606 |
<h4 class="subsection">6.4.1 Purpose</h4> |
| 1607 |
|
| 1608 |
<p>In the beginning when you are creating a new tutorial from scratch, |
| 1609 |
it’s not very easy to form words and even sentences while the range of |
| 1610 |
letters you can use is restricted. Sometimes you want to insert some |
| 1611 |
paragraph “targeted” at some special combination of two or three |
| 1612 |
letters. This is even harder. |
| 1613 |
</p> |
| 1614 |
<p>For this purpose we created findwords. It uses the dictionaries from |
| 1615 |
the aspell database (free multilingual spellchecker). |
| 1616 |
</p> |
| 1617 |
<a name="Installing"></a> |
| 1618 |
<h4 class="subsection">6.4.2 Installing</h4> |
| 1619 |
|
| 1620 |
<p>You will need the <samp>aspell</samp> and <samp>aspell-LG</samp> packages, where |
| 1621 |
LG is the ISO language code for the language you want to use. |
| 1622 |
</p> |
| 1623 |
<p>After a successful installation, you will have to make a little change |
| 1624 |
in your configuration so that aspell’s master database is the one of |
| 1625 |
your language. This can be done two different ways: |
| 1626 |
</p> |
| 1627 |
<ol> |
| 1628 |
<li> In your home directory create the file <br> |
| 1629 |
.aspell.conf and add this line: <br> |
| 1630 |
<code>master LANGUAGE</code> |
| 1631 |
</li><li> Create /usr/share/pspell/LG-aspell.pwli <br> |
| 1632 |
and add this line: <br> |
| 1633 |
<code>/usr/lib/aspell/LG</code> <br> |
| 1634 |
Make sure your locale setting is LG. |
| 1635 |
</li></ol> |
| 1636 |
|
| 1637 |
<p>In the above, LG means ISO language code (eg. ‘en’, ‘fr’, ‘cs’) and |
| 1638 |
LANGUAGE means name of the database in /usr/lib/aspell |
| 1639 |
(eg. ‘english.multi’, ‘french’, ‘czech’). |
| 1640 |
</p> |
| 1641 |
<p>You can try if it works by typing: |
| 1642 |
</p><div class="example"> |
| 1643 |
<pre class="example"> aspell dump master | less |
| 1644 |
</pre></div> |
| 1645 |
|
| 1646 |
<a name="Using-findwords"></a> |
| 1647 |
<h4 class="subsection">6.4.3 Using findwords</h4> |
| 1648 |
|
| 1649 |
<p>The syntax is as follows: <br> |
| 1650 |
<code>./findwords letters [combination]</code> |
| 1651 |
</p> |
| 1652 |
<p>In the mandatory <samp>letters</samp> argument you must list the letters |
| 1653 |
that you want use without any spaces. You may use the dot (‘.’) to say |
| 1654 |
‘all letters’. The second argument combination is optional and you can |
| 1655 |
specify there what combination of letters are you searching for. |
| 1656 |
</p> |
| 1657 |
<p>Some examples: |
| 1658 |
</p><ul> |
| 1659 |
<li> <code>./findwords asdfjkleruio</code> <br> |
| 1660 |
We are looking for all words composed from the |
| 1661 |
listed letters. |
| 1662 |
</li><li> <code>./findwords asdfjkleruio sa</code> <br> |
| 1663 |
We search words containing the combination |
| 1664 |
‘sa’, but only these composed from specified |
| 1665 |
letters. |
| 1666 |
</li><li> <code>./findwords . col</code> <br> |
| 1667 |
Words can contain all letters, but must have |
| 1668 |
‘col’ somewhere inside. |
| 1669 |
</li></ul> |
| 1670 |
|
| 1671 |
<hr> |
| 1672 |
<a name="Emacs-mode"></a> |
| 1673 |
<a name="Emacs-mode-1"></a> |
| 1674 |
<h2 class="chapter">7 Emacs mode</h2> |
| 1675 |
|
| 1676 |
<p>gtypist now comes with an Emacs major-mode which does |
| 1677 |
syntax-highlighting, indentation and has some convenient commands for |
| 1678 |
counting labels, a goto-label-command, inserting properly centered |
| 1679 |
banners, special comments and a bit more. |
| 1680 |
</p> |
| 1681 |
<p>Copy this file from <samp>tools/gtypist-mode.el</samp> to wherever you put |
| 1682 |
your local elisp files (e.g. <samp>~/elisp</samp>) and put this in your |
| 1683 |
<samp>~/.emacs</samp> (adapt path!): |
| 1684 |
</p> |
| 1685 |
<div class="lisp"> |
| 1686 |
<pre class="lisp">(autoload 'gtypist-mode "~/elisp/gtypist-mode") |
| 1687 |
</pre></div> |
| 1688 |
|
| 1689 |
<p>or put it in <code>load-path</code> (‘<samp>make install</samp>’ in the sources |
| 1690 |
should take care of this for GNU Emacs, or if you are using the Debian |
| 1691 |
package, it installs it here for you) and use this instead: |
| 1692 |
</p> |
| 1693 |
<div class="lisp"> |
| 1694 |
<pre class="lisp">(autoload 'gtypist-mode "gtypist-mode") |
| 1695 |
</pre></div> |
| 1696 |
|
| 1697 |
<p><strong>and</strong> add this to your <samp>~/.emacs</samp>: |
| 1698 |
</p> |
| 1699 |
<div class="lisp"> |
| 1700 |
<pre class="lisp">(setq auto-mode-alist |
| 1701 |
(cons '("\\.typ\\'" . gtypist-mode) auto-mode-alist)) |
| 1702 |
</pre></div> |
| 1703 |
|
| 1704 |
|
| 1705 |
<p>All this is also mentioned in the README-section of |
| 1706 |
<samp>tools/gtypist-mode.el</samp>. |
| 1707 |
</p> |
| 1708 |
<p>Here are the commands along with the keybindings: |
| 1709 |
</p> |
| 1710 |
<dl compact="compact"> |
| 1711 |
<dt><kbd>C-c C-i, M-x gtypist-mode-info</kbd></dt> |
| 1712 |
<dd><p>This shows gtypist’s texinfo-documentation, starting at node “Script |
| 1713 |
file commands” (see <a href="#Script-file-commands">Script file commands</a>). With prefix, start at |
| 1714 |
the top-node. |
| 1715 |
</p> |
| 1716 |
</dd> |
| 1717 |
<dt><kbd>C-c M-g, M-x gtypist-mode-goto-label</kbd></dt> |
| 1718 |
<dd><p>Query for a label to go to (with completion). |
| 1719 |
</p> |
| 1720 |
</dd> |
| 1721 |
<dt><kbd>C-c C-l, M-x gtypist-mode-next-label</kbd></dt> |
| 1722 |
<dd><p>This command inserts the next label in a numbered sequence of labels. |
| 1723 |
For example, if you insert |
| 1724 |
</p><div class="example"> |
| 1725 |
<pre class="example">*:SERIES1_L1 |
| 1726 |
</pre></div> |
| 1727 |
<p>and hit <kbd>C-c C-l</kbd> then gtypist-mode will insert |
| 1728 |
</p><div class="example"> |
| 1729 |
<pre class="example">*:SERIES1_L2 |
| 1730 |
</pre></div> |
| 1731 |
|
| 1732 |
</dd> |
| 1733 |
<dt><kbd>C-c C-b, M-x gtypist-mode-insert-banner</kbd></dt> |
| 1734 |
<dd><p>This command inserts a centered <code>B:</code> command. It’s centered on 66 |
| 1735 |
columns because “gtypist <version>” is in the right corner (prompts |
| 1736 |
for content). |
| 1737 |
</p> |
| 1738 |
</dd> |
| 1739 |
<dt><kbd>C-c C-r, M-x gtypist-mode-insert-hrule</kbd></dt> |
| 1740 |
<dd><p>Inserts a horizontal rule (comment) consisting of dashes. |
| 1741 |
</p> |
| 1742 |
</dd> |
| 1743 |
<dt><kbd>C-c C-n, M-x gtypist-mode-new-lesson</kbd></dt> |
| 1744 |
<dd><p>Insert the comments (header) and a label to start a new lesson |
| 1745 |
(prompts for name). |
| 1746 |
</p> |
| 1747 |
</dd> |
| 1748 |
<dt><kbd>C-c C-f, M-x gtypist-mode-fortune-to-drill</kbd></dt> |
| 1749 |
<dd><p>Insert a drill (<code>D:</code>) with text from <code>fortune</code> (or |
| 1750 |
<code>yow</code> if <code>fortune</code> isn’t available). Use <kbd>C-u</kbd> |
| 1751 |
prefix to get <code>S:</code>, and <kbd>C-u C-u</kbd> to get <code>d:</code>. |
| 1752 |
</p> |
| 1753 |
</dd> |
| 1754 |
</dl> |
| 1755 |
|
| 1756 |
<p>Run <kbd>C-h m</kbd> for a complete list of commands and their keybindings. |
| 1757 |
</p> |
| 1758 |
<p>If you find bugs or if you think there’s something else this mode |
| 1759 |
could do, please write to <a href="mailto:[email protected]">[email protected]</a>. |
| 1760 |
</p> |
| 1761 |
<hr> |
| 1762 |
<a name="VIM-Syntax-highlighting"></a> |
| 1763 |
<a name="VIM-Syntax-highlighting-1"></a> |
| 1764 |
<h2 class="chapter">8 VIM Syntax highlighting</h2> |
| 1765 |
|
| 1766 |
<p>File <samp>tools/gtypist.vim</samp> provides vim syntax highlighting for |
| 1767 |
gtypist lesson files (vim 5.x, 6.x and 7.x (and higher)). |
| 1768 |
</p> |
| 1769 |
<p>To install it for version 5.x (or any version on Windows), copy the |
| 1770 |
file to where the syntax-files go (for example |
| 1771 |
<samp>/usr/share/vim/vim56/syntax/</samp> for Vim 5.6; if everything else |
| 1772 |
fails you can search for e.g. <samp>xml.vim</samp>) and add this to |
| 1773 |
<samp>~/.vimrc</samp> (<samp>$HOME/_vimrc</samp> on Windows): |
| 1774 |
</p><div class="example"> |
| 1775 |
<pre class="example">autocmd BufNewFile,BufRead *.typ set ft=gtypist |
| 1776 |
</pre></div> |
| 1777 |
|
| 1778 |
<p>Installation for Vim >= 6.x is simpler: first create <samp>~/.vim/syntax/</samp>: |
| 1779 |
<code>mkdir -p ~/.vim/syntax</code> and put <samp>tools/gtypist.vim</samp> in there. |
| 1780 |
Finally add this to <samp>~/.vimrc</samp>: |
| 1781 |
</p> |
| 1782 |
<div class="example"> |
| 1783 |
<pre class="example">autocmd BufNewFile,BufRead *.typ setf gtypist |
| 1784 |
</pre></div> |
| 1785 |
|
| 1786 |
<p>In case you are using the debian package, <samp>gtypist.vim</samp> will already |
| 1787 |
be installed for you, but you need to enable it explicitly: |
| 1788 |
</p><div class="example"> |
| 1789 |
<pre class="example">sudo apt-get install vim-addon-manager |
| 1790 |
vim-addons install gtypist |
| 1791 |
</pre></div> |
| 1792 |
|
| 1793 |
<p>In any case, make sure that the <samp>vimrc</samp> file has the following |
| 1794 |
command at the top ahead of all other <code>autocmd</code>-commands: |
| 1795 |
</p> |
| 1796 |
<div class="example"> |
| 1797 |
<pre class="example">autocmd! " Remove ALL autocommands for the current group |
| 1798 |
</pre></div> |
| 1799 |
|
| 1800 |
<p>(which avoids problems if <samp>vimrc</samp> is sourced more than once). |
| 1801 |
And if you haven\’t done it already, you need to enable syntax |
| 1802 |
highlighting (this may need to be <em>before</em> the autocmd ... gtypist). |
| 1803 |
</p> |
| 1804 |
<div class="example"> |
| 1805 |
<pre class="example">syntax on " turn on syntax highlighting |
| 1806 |
</pre></div> |
| 1807 |
|
| 1808 |
<p>You can verify that <samp>tools/gtypist.vim</samp> is active by running |
| 1809 |
<code>:set ft?</code> in vim, which should return <em>filetype=gtypist</em>. |
| 1810 |
</p> |
| 1811 |
<p>All of this is also mentioned in the README-section of <samp>tools/gtypist.vim</samp>. |
| 1812 |
</p> |
| 1813 |
<hr> |
| 1814 |
<a name="Environment-Variables"></a> |
| 1815 |
<a name="Environment-Variables-1"></a> |
| 1816 |
<h2 class="chapter">9 Environment Variables</h2> |
| 1817 |
<p>GNU Typist uses the following environment variables: |
| 1818 |
</p> |
| 1819 |
<dl compact="compact"> |
| 1820 |
<dt><code>LANG</code></dt> |
| 1821 |
<dd> |
| 1822 |
<p>GNU Typist offers Native Language Support (NLS) with support of the |
| 1823 |
gettext library, this means that if your system supports it, the |
| 1824 |
language of the messages shown by gtypist can be chosen. By now |
| 1825 |
gtypist is distributed with messages in English, Czech, Finnish, |
| 1826 |
French, German and Spanish. To use a particular NLS use the |
| 1827 |
environment variable LANG and set it to the appropriate ‘<samp>LL_CC</samp>’ |
| 1828 |
combination where ‘<samp>LL</samp>’ is an ISO 639 two-letter language code and |
| 1829 |
‘<samp>CC</samp>’ is an ISO 3166 two-letter country code (e.g. ‘<samp>es_ES</samp>’ |
| 1830 |
for Spain and <code>de_DE</code> for Germany). In some systems it will be |
| 1831 |
also necessary to set the environment variable LANGUAGE to the same |
| 1832 |
value. |
| 1833 |
</p> |
| 1834 |
<p>If you want to translate messages to a different language (or if you |
| 1835 |
want to correct a message), please communicate it to |
| 1836 |
<a href="mailto:[email protected]">[email protected]</a>. |
| 1837 |
</p> |
| 1838 |
|
| 1839 |
</dd> |
| 1840 |
<dt><code>GTYPIST_PATH</code></dt> |
| 1841 |
<dd><p>Lists the directories that the program will look in for script files. |
| 1842 |
It has the standard format for paths, that is, a list of directories |
| 1843 |
separated by ‘<samp>:</samp>’s. To open a script, gtypist will try the |
| 1844 |
following paths: (1) to use the script name alone (2) it will append |
| 1845 |
each one of the directories specified in the variable |
| 1846 |
<code>GTYPIST_PATH</code> and (3) it will append the directory used during |
| 1847 |
the installation process (e.g. <samp>/usr/local/share/gtypist</samp> or |
| 1848 |
<samp>/usr/share/gtypist</samp>). |
| 1849 |
</p> |
| 1850 |
</dd> |
| 1851 |
<dt><code>TERM</code></dt> |
| 1852 |
<dd><p>Used by curses to manage the display. |
| 1853 |
</p> |
| 1854 |
</dd> |
| 1855 |
<dt><code>TERMINFO</code></dt> |
| 1856 |
<dd><p>This may need to be set if the path to the <code>terminfo</code> database is |
| 1857 |
different between the system the binary was compiled on and the one it |
| 1858 |
is being run on. For example, in older Slackware systems, the terminfo |
| 1859 |
database resides in <samp>/usr/lib/terminfo</samp>. On RedHat Linux, it is |
| 1860 |
in <samp>/usr/share/terminfo</samp>. If the program complains about the |
| 1861 |
terminal type, and the value of <code>TERM</code> is correct, check into |
| 1862 |
this. |
| 1863 |
</p> |
| 1864 |
</dd> |
| 1865 |
</dl> |
| 1866 |
|
| 1867 |
<hr> |
| 1868 |
<a name="Errors-and-omissions"></a> |
| 1869 |
<a name="Errors-and-omissions-1"></a> |
| 1870 |
<h2 class="chapter">10 Errors and omissions</h2> |
| 1871 |
|
| 1872 |
<p>GNU Typist does not go to much effort to minimize terminal output. In |
| 1873 |
particular, the flashing block cursor can cause a lot of cursor |
| 1874 |
movement. Using the terminal’s own cursor will help if this becomes a |
| 1875 |
problem. |
| 1876 |
</p> |
| 1877 |
<p>In speed tests, the program does not allow backspacing or deletion |
| 1878 |
past the beginning of the screen line, or back through Tab |
| 1879 |
characters. This is purely to simplify screen updating. |
| 1880 |
</p> |
| 1881 |
<p>Colour curses modes do not seem to work well with UnixWare. In |
| 1882 |
particular, reverse video is not always rendered correctly on some |
| 1883 |
terminal types, and xterms. |
| 1884 |
</p> |
| 1885 |
<p>Please see the TODO file in the source distribution for more things |
| 1886 |
that need to be fixed. |
| 1887 |
</p> |
| 1888 |
<hr> |
| 1889 |
<a name="History"></a> |
| 1890 |
<a name="History-of-GNU-Typist"></a> |
| 1891 |
<h2 class="appendix">Appendix A History of GNU Typist</h2> |
| 1892 |
|
| 1893 |
<ul> |
| 1894 |
<li> The initial program was written for VAX/VMS BASIC by someone at Harris |
| 1895 |
Corp (Ft. Lauderdale, FL). |
| 1896 |
</li><li> <a href="mailto:[email protected]">D. Jason Penney</a> rewrote it for Microsoft BASICA |
| 1897 |
</li><li> <a href="mailto:[email protected]">D. Jason Penney</a> rewrote it in C and the curses |
| 1898 |
library |
| 1899 |
</li><li> <a href="mailto:[email protected]">Simon Baldwin</a> rewrote the version of D. Jason |
| 1900 |
Penney, his innovations are described in the NEWS file (versions 2.2 |
| 1901 |
to 2.2b). He is the holder of the copyright for GNU Typist (that is |
| 1902 |
distributed under the GPL). Simon also wrote a version of Typist in |
| 1903 |
Java that initially he called JTypist but that now is called Typist |
| 1904 |
again: |
| 1905 |
|
| 1906 |
<p><a href="http://www.geocities.com/simon_baldwin/typist/">http://www.geocities.com/simon_baldwin/typist/</a> |
| 1907 |
</p></li><li> Since 1997, <a href="mailto:[email protected]">Ben Armstrong</a> has |
| 1908 |
helped by fixing bugs and maintaining a |
| 1909 |
<a href="http://packages.debian.org/gtypist/">Debian package</a>. |
| 1910 |
</li><li> In 2000, <a href="mailto:[email protected]">Vladimir Támara</a> and |
| 1911 |
<a href="mailto:[email protected]">Igor Támara</a> became the |
| 1912 |
maintainers of the C version. Before November 2000, GNU Typist was |
| 1913 |
maintained as part of the Structio project. |
| 1914 |
</li><li> November 2000, accepted as a GNU package! Renamed to GNU Typist (or |
| 1915 |
gtypist). |
| 1916 |
</li><li> In May 2001, <a href="mailto:[email protected]">Michael Opdenacker</a>, |
| 1917 |
who learned touch typing with GNU Typist, became the new |
| 1918 |
maintainer. Project development is now hosted on |
| 1919 |
<a href="http://savannah.gnu.org/projects/gtypist/">http://savannah.gnu.org/projects/gtypist/</a>. |
| 1920 |
</li><li> In June 2001, <a href="mailto:[email protected]">Felix Natter</a> joined and made |
| 1921 |
major contributions to the project: lesson imports from other tutors, |
| 1922 |
tool enhancements, new tutorial capabilities, , Emacs mode, arrow key |
| 1923 |
based interface, and many more! |
| 1924 |
</li><li> In 2003, <a href="mailto:[email protected]">Dmitry Rutsky</a> joined |
| 1925 |
joined the development team and brought in a dramatic number ideas, |
| 1926 |
hacks and improvements, and he’s not done yet! |
| 1927 |
</li><li> In April 2008, <a href="mailto:[email protected]">Paul Goins</a> took over as |
| 1928 |
maintainer of GNU Typist, adding a few enhancements (especially |
| 1929 |
building under Windows with MinGW), making some documentation updates |
| 1930 |
and changing the license to GPL version 3. |
| 1931 |
</li><li> In December 2010, <a href="mailto:[email protected]">Tim Marston</a> took over |
| 1932 |
as maintainer of GNU Typist, adding some enhancements and support for |
| 1933 |
the Colemak keyboard layout. |
| 1934 |
</li></ul> |
| 1935 |
|
| 1936 |
<hr> |
| 1937 |
<a name="Copying-this-manual"></a> |
| 1938 |
<a name="GNU-Free-Documentation-License"></a> |
| 1939 |
<h2 class="appendix">Appendix B GNU Free Documentation License</h2> |
| 1940 |
<div align="center">Version 1.2, November 2002 |
| 1941 |
</div> |
| 1942 |
|
| 1943 |
<div class="display"> |
| 1944 |
<pre class="display">Copyright © 2000,2001,2002 Free Software Foundation, Inc. |
| 1945 |
51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
| 1946 |
|
| 1947 |
Everyone is permitted to copy and distribute verbatim copies |
| 1948 |
of this license document, but changing it is not allowed. |
| 1949 |
</pre></div> |
| 1950 |
|
| 1951 |
<ol> |
| 1952 |
<li> PREAMBLE |
| 1953 |
|
| 1954 |
<p>The purpose of this License is to make a manual, textbook, or other |
| 1955 |
functional and useful document <em>free</em> in the sense of freedom: to |
| 1956 |
assure everyone the effective freedom to copy and redistribute it, |
| 1957 |
with or without modifying it, either commercially or noncommercially. |
| 1958 |
Secondarily, this License preserves for the author and publisher a way |
| 1959 |
to get credit for their work, while not being considered responsible |
| 1960 |
for modifications made by others. |
| 1961 |
</p> |
| 1962 |
<p>This License is a kind of “copyleft”, which means that derivative |
| 1963 |
works of the document must themselves be free in the same sense. It |
| 1964 |
complements the GNU General Public License, which is a copyleft |
| 1965 |
license designed for free software. |
| 1966 |
</p> |
| 1967 |
<p>We have designed this License in order to use it for manuals for free |
| 1968 |
software, because free software needs free documentation: a free |
| 1969 |
program should come with manuals providing the same freedoms that the |
| 1970 |
software does. But this License is not limited to software manuals; |
| 1971 |
it can be used for any textual work, regardless of subject matter or |
| 1972 |
whether it is published as a printed book. We recommend this License |
| 1973 |
principally for works whose purpose is instruction or reference. |
| 1974 |
</p> |
| 1975 |
</li><li> APPLICABILITY AND DEFINITIONS |
| 1976 |
|
| 1977 |
<p>This License applies to any manual or other work, in any medium, that |
| 1978 |
contains a notice placed by the copyright holder saying it can be |
| 1979 |
distributed under the terms of this License. Such a notice grants a |
| 1980 |
world-wide, royalty-free license, unlimited in duration, to use that |
| 1981 |
work under the conditions stated herein. The “Document”, below, |
| 1982 |
refers to any such manual or work. Any member of the public is a |
| 1983 |
licensee, and is addressed as “you”. You accept the license if you |
| 1984 |
copy, modify or distribute the work in a way requiring permission |
| 1985 |
under copyright law. |
| 1986 |
</p> |
| 1987 |
<p>A “Modified Version” of the Document means any work containing the |
| 1988 |
Document or a portion of it, either copied verbatim, or with |
| 1989 |
modifications and/or translated into another language. |
| 1990 |
</p> |
| 1991 |
<p>A “Secondary Section” is a named appendix or a front-matter section |
| 1992 |
of the Document that deals exclusively with the relationship of the |
| 1993 |
publishers or authors of the Document to the Document’s overall |
| 1994 |
subject (or to related matters) and contains nothing that could fall |
| 1995 |
directly within that overall subject. (Thus, if the Document is in |
| 1996 |
part a textbook of mathematics, a Secondary Section may not explain |
| 1997 |
any mathematics.) The relationship could be a matter of historical |
| 1998 |
connection with the subject or with related matters, or of legal, |
| 1999 |
commercial, philosophical, ethical or political position regarding |
| 2000 |
them. |
| 2001 |
</p> |
| 2002 |
<p>The “Invariant Sections” are certain Secondary Sections whose titles |
| 2003 |
are designated, as being those of Invariant Sections, in the notice |
| 2004 |
that says that the Document is released under this License. If a |
| 2005 |
section does not fit the above definition of Secondary then it is not |
| 2006 |
allowed to be designated as Invariant. The Document may contain zero |
| 2007 |
Invariant Sections. If the Document does not identify any Invariant |
| 2008 |
Sections then there are none. |
| 2009 |
</p> |
| 2010 |
<p>The “Cover Texts” are certain short passages of text that are listed, |
| 2011 |
as Front-Cover Texts or Back-Cover Texts, in the notice that says that |
| 2012 |
the Document is released under this License. A Front-Cover Text may |
| 2013 |
be at most 5 words, and a Back-Cover Text may be at most 25 words. |
| 2014 |
</p> |
| 2015 |
<p>A “Transparent” copy of the Document means a machine-readable copy, |
| 2016 |
represented in a format whose specification is available to the |
| 2017 |
general public, that is suitable for revising the document |
| 2018 |
straightforwardly with generic text editors or (for images composed of |
| 2019 |
pixels) generic paint programs or (for drawings) some widely available |
| 2020 |
drawing editor, and that is suitable for input to text formatters or |
| 2021 |
for automatic translation to a variety of formats suitable for input |
| 2022 |
to text formatters. A copy made in an otherwise Transparent file |
| 2023 |
format whose markup, or absence of markup, has been arranged to thwart |
| 2024 |
or discourage subsequent modification by readers is not Transparent. |
| 2025 |
An image format is not Transparent if used for any substantial amount |
| 2026 |
of text. A copy that is not “Transparent” is called “Opaque”. |
| 2027 |
</p> |
| 2028 |
<p>Examples of suitable formats for Transparent copies include plain |
| 2029 |
<small>ASCII</small> without markup, Texinfo input format, LaTeX input |
| 2030 |
format, <acronym>SGML</acronym> or <acronym>XML</acronym> using a publicly available |
| 2031 |
<acronym>DTD</acronym>, and standard-conforming simple <acronym>HTML</acronym>, |
| 2032 |
PostScript or <acronym>PDF</acronym> designed for human modification. Examples |
| 2033 |
of transparent image formats include <acronym>PNG</acronym>, <acronym>XCF</acronym> and |
| 2034 |
<acronym>JPG</acronym>. Opaque formats include proprietary formats that can be |
| 2035 |
read and edited only by proprietary word processors, <acronym>SGML</acronym> or |
| 2036 |
<acronym>XML</acronym> for which the <acronym>DTD</acronym> and/or processing tools are |
| 2037 |
not generally available, and the machine-generated <acronym>HTML</acronym>, |
| 2038 |
PostScript or <acronym>PDF</acronym> produced by some word processors for |
| 2039 |
output purposes only. |
| 2040 |
</p> |
| 2041 |
<p>The “Title Page” means, for a printed book, the title page itself, |
| 2042 |
plus such following pages as are needed to hold, legibly, the material |
| 2043 |
this License requires to appear in the title page. For works in |
| 2044 |
formats which do not have any title page as such, “Title Page” means |
| 2045 |
the text near the most prominent appearance of the work’s title, |
| 2046 |
preceding the beginning of the body of the text. |
| 2047 |
</p> |
| 2048 |
<p>A section “Entitled XYZ” means a named subunit of the Document whose |
| 2049 |
title either is precisely XYZ or contains XYZ in parentheses following |
| 2050 |
text that translates XYZ in another language. (Here XYZ stands for a |
| 2051 |
specific section name mentioned below, such as “Acknowledgements”, |
| 2052 |
“Dedications”, “Endorsements”, or “History”.) To “Preserve the Title” |
| 2053 |
of such a section when you modify the Document means that it remains a |
| 2054 |
section “Entitled XYZ” according to this definition. |
| 2055 |
</p> |
| 2056 |
<p>The Document may include Warranty Disclaimers next to the notice which |
| 2057 |
states that this License applies to the Document. These Warranty |
| 2058 |
Disclaimers are considered to be included by reference in this |
| 2059 |
License, but only as regards disclaiming warranties: any other |
| 2060 |
implication that these Warranty Disclaimers may have is void and has |
| 2061 |
no effect on the meaning of this License. |
| 2062 |
</p> |
| 2063 |
</li><li> VERBATIM COPYING |
| 2064 |
|
| 2065 |
<p>You may copy and distribute the Document in any medium, either |
| 2066 |
commercially or noncommercially, provided that this License, the |
| 2067 |
copyright notices, and the license notice saying this License applies |
| 2068 |
to the Document are reproduced in all copies, and that you add no other |
| 2069 |
conditions whatsoever to those of this License. You may not use |
| 2070 |
technical measures to obstruct or control the reading or further |
| 2071 |
copying of the copies you make or distribute. However, you may accept |
| 2072 |
compensation in exchange for copies. If you distribute a large enough |
| 2073 |
number of copies you must also follow the conditions in section 3. |
| 2074 |
</p> |
| 2075 |
<p>You may also lend copies, under the same conditions stated above, and |
| 2076 |
you may publicly display copies. |
| 2077 |
</p> |
| 2078 |
</li><li> COPYING IN QUANTITY |
| 2079 |
|
| 2080 |
<p>If you publish printed copies (or copies in media that commonly have |
| 2081 |
printed covers) of the Document, numbering more than 100, and the |
| 2082 |
Document’s license notice requires Cover Texts, you must enclose the |
| 2083 |
copies in covers that carry, clearly and legibly, all these Cover |
| 2084 |
Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on |
| 2085 |
the back cover. Both covers must also clearly and legibly identify |
| 2086 |
you as the publisher of these copies. The front cover must present |
| 2087 |
the full title with all words of the title equally prominent and |
| 2088 |
visible. You may add other material on the covers in addition. |
| 2089 |
Copying with changes limited to the covers, as long as they preserve |
| 2090 |
the title of the Document and satisfy these conditions, can be treated |
| 2091 |
as verbatim copying in other respects. |
| 2092 |
</p> |
| 2093 |
<p>If the required texts for either cover are too voluminous to fit |
| 2094 |
legibly, you should put the first ones listed (as many as fit |
| 2095 |
reasonably) on the actual cover, and continue the rest onto adjacent |
| 2096 |
pages. |
| 2097 |
</p> |
| 2098 |
<p>If you publish or distribute Opaque copies of the Document numbering |
| 2099 |
more than 100, you must either include a machine-readable Transparent |
| 2100 |
copy along with each Opaque copy, or state in or with each Opaque copy |
| 2101 |
a computer-network location from which the general network-using |
| 2102 |
public has access to download using public-standard network protocols |
| 2103 |
a complete Transparent copy of the Document, free of added material. |
| 2104 |
If you use the latter option, you must take reasonably prudent steps, |
| 2105 |
when you begin distribution of Opaque copies in quantity, to ensure |
| 2106 |
that this Transparent copy will remain thus accessible at the stated |
| 2107 |
location until at least one year after the last time you distribute an |
| 2108 |
Opaque copy (directly or through your agents or retailers) of that |
| 2109 |
edition to the public. |
| 2110 |
</p> |
| 2111 |
<p>It is requested, but not required, that you contact the authors of the |
| 2112 |
Document well before redistributing any large number of copies, to give |
| 2113 |
them a chance to provide you with an updated version of the Document. |
| 2114 |
</p> |
| 2115 |
</li><li> MODIFICATIONS |
| 2116 |
|
| 2117 |
<p>You may copy and distribute a Modified Version of the Document under |
| 2118 |
the conditions of sections 2 and 3 above, provided that you release |
| 2119 |
the Modified Version under precisely this License, with the Modified |
| 2120 |
Version filling the role of the Document, thus licensing distribution |
| 2121 |
and modification of the Modified Version to whoever possesses a copy |
| 2122 |
of it. In addition, you must do these things in the Modified Version: |
| 2123 |
</p> |
| 2124 |
<ol> |
| 2125 |
<li> Use in the Title Page (and on the covers, if any) a title distinct |
| 2126 |
from that of the Document, and from those of previous versions |
| 2127 |
(which should, if there were any, be listed in the History section |
| 2128 |
of the Document). You may use the same title as a previous version |
| 2129 |
if the original publisher of that version gives permission. |
| 2130 |
|
| 2131 |
</li><li> List on the Title Page, as authors, one or more persons or entities |
| 2132 |
responsible for authorship of the modifications in the Modified |
| 2133 |
Version, together with at least five of the principal authors of the |
| 2134 |
Document (all of its principal authors, if it has fewer than five), |
| 2135 |
unless they release you from this requirement. |
| 2136 |
|
| 2137 |
</li><li> State on the Title page the name of the publisher of the |
| 2138 |
Modified Version, as the publisher. |
| 2139 |
|
| 2140 |
</li><li> Preserve all the copyright notices of the Document. |
| 2141 |
|
| 2142 |
</li><li> Add an appropriate copyright notice for your modifications |
| 2143 |
adjacent to the other copyright notices. |
| 2144 |
|
| 2145 |
</li><li> Include, immediately after the copyright notices, a license notice |
| 2146 |
giving the public permission to use the Modified Version under the |
| 2147 |
terms of this License, in the form shown in the Addendum below. |
| 2148 |
|
| 2149 |
</li><li> Preserve in that license notice the full lists of Invariant Sections |
| 2150 |
and required Cover Texts given in the Document’s license notice. |
| 2151 |
|
| 2152 |
</li><li> Include an unaltered copy of this License. |
| 2153 |
|
| 2154 |
</li><li> Preserve the section Entitled “History”, Preserve its Title, and add |
| 2155 |
to it an item stating at least the title, year, new authors, and |
| 2156 |
publisher of the Modified Version as given on the Title Page. If |
| 2157 |
there is no section Entitled “History” in the Document, create one |
| 2158 |
stating the title, year, authors, and publisher of the Document as |
| 2159 |
given on its Title Page, then add an item describing the Modified |
| 2160 |
Version as stated in the previous sentence. |
| 2161 |
|
| 2162 |
</li><li> Preserve the network location, if any, given in the Document for |
| 2163 |
public access to a Transparent copy of the Document, and likewise |
| 2164 |
the network locations given in the Document for previous versions |
| 2165 |
it was based on. These may be placed in the “History” section. |
| 2166 |
You may omit a network location for a work that was published at |
| 2167 |
least four years before the Document itself, or if the original |
| 2168 |
publisher of the version it refers to gives permission. |
| 2169 |
|
| 2170 |
</li><li> For any section Entitled “Acknowledgements” or “Dedications”, Preserve |
| 2171 |
the Title of the section, and preserve in the section all the |
| 2172 |
substance and tone of each of the contributor acknowledgements and/or |
| 2173 |
dedications given therein. |
| 2174 |
|
| 2175 |
</li><li> Preserve all the Invariant Sections of the Document, |
| 2176 |
unaltered in their text and in their titles. Section numbers |
| 2177 |
or the equivalent are not considered part of the section titles. |
| 2178 |
|
| 2179 |
</li><li> Delete any section Entitled “Endorsements”. Such a section |
| 2180 |
may not be included in the Modified Version. |
| 2181 |
|
| 2182 |
</li><li> Do not retitle any existing section to be Entitled “Endorsements” or |
| 2183 |
to conflict in title with any Invariant Section. |
| 2184 |
|
| 2185 |
</li><li> Preserve any Warranty Disclaimers. |
| 2186 |
</li></ol> |
| 2187 |
|
| 2188 |
<p>If the Modified Version includes new front-matter sections or |
| 2189 |
appendices that qualify as Secondary Sections and contain no material |
| 2190 |
copied from the Document, you may at your option designate some or all |
| 2191 |
of these sections as invariant. To do this, add their titles to the |
| 2192 |
list of Invariant Sections in the Modified Version’s license notice. |
| 2193 |
These titles must be distinct from any other section titles. |
| 2194 |
</p> |
| 2195 |
<p>You may add a section Entitled “Endorsements”, provided it contains |
| 2196 |
nothing but endorsements of your Modified Version by various |
| 2197 |
parties—for example, statements of peer review or that the text has |
| 2198 |
been approved by an organization as the authoritative definition of a |
| 2199 |
standard. |
| 2200 |
</p> |
| 2201 |
<p>You may add a passage of up to five words as a Front-Cover Text, and a |
| 2202 |
passage of up to 25 words as a Back-Cover Text, to the end of the list |
| 2203 |
of Cover Texts in the Modified Version. Only one passage of |
| 2204 |
Front-Cover Text and one of Back-Cover Text may be added by (or |
| 2205 |
through arrangements made by) any one entity. If the Document already |
| 2206 |
includes a cover text for the same cover, previously added by you or |
| 2207 |
by arrangement made by the same entity you are acting on behalf of, |
| 2208 |
you may not add another; but you may replace the old one, on explicit |
| 2209 |
permission from the previous publisher that added the old one. |
| 2210 |
</p> |
| 2211 |
<p>The author(s) and publisher(s) of the Document do not by this License |
| 2212 |
give permission to use their names for publicity for or to assert or |
| 2213 |
imply endorsement of any Modified Version. |
| 2214 |
</p> |
| 2215 |
</li><li> COMBINING DOCUMENTS |
| 2216 |
|
| 2217 |
<p>You may combine the Document with other documents released under this |
| 2218 |
License, under the terms defined in section 4 above for modified |
| 2219 |
versions, provided that you include in the combination all of the |
| 2220 |
Invariant Sections of all of the original documents, unmodified, and |
| 2221 |
list them all as Invariant Sections of your combined work in its |
| 2222 |
license notice, and that you preserve all their Warranty Disclaimers. |
| 2223 |
</p> |
| 2224 |
<p>The combined work need only contain one copy of this License, and |
| 2225 |
multiple identical Invariant Sections may be replaced with a single |
| 2226 |
copy. If there are multiple Invariant Sections with the same name but |
| 2227 |
different contents, make the title of each such section unique by |
| 2228 |
adding at the end of it, in parentheses, the name of the original |
| 2229 |
author or publisher of that section if known, or else a unique number. |
| 2230 |
Make the same adjustment to the section titles in the list of |
| 2231 |
Invariant Sections in the license notice of the combined work. |
| 2232 |
</p> |
| 2233 |
<p>In the combination, you must combine any sections Entitled “History” |
| 2234 |
in the various original documents, forming one section Entitled |
| 2235 |
“History”; likewise combine any sections Entitled “Acknowledgements”, |
| 2236 |
and any sections Entitled “Dedications”. You must delete all |
| 2237 |
sections Entitled “Endorsements.” |
| 2238 |
</p> |
| 2239 |
</li><li> COLLECTIONS OF DOCUMENTS |
| 2240 |
|
| 2241 |
<p>You may make a collection consisting of the Document and other documents |
| 2242 |
released under this License, and replace the individual copies of this |
| 2243 |
License in the various documents with a single copy that is included in |
| 2244 |
the collection, provided that you follow the rules of this License for |
| 2245 |
verbatim copying of each of the documents in all other respects. |
| 2246 |
</p> |
| 2247 |
<p>You may extract a single document from such a collection, and distribute |
| 2248 |
it individually under this License, provided you insert a copy of this |
| 2249 |
License into the extracted document, and follow this License in all |
| 2250 |
other respects regarding verbatim copying of that document. |
| 2251 |
</p> |
| 2252 |
</li><li> AGGREGATION WITH INDEPENDENT WORKS |
| 2253 |
|
| 2254 |
<p>A compilation of the Document or its derivatives with other separate |
| 2255 |
and independent documents or works, in or on a volume of a storage or |
| 2256 |
distribution medium, is called an “aggregate” if the copyright |
| 2257 |
resulting from the compilation is not used to limit the legal rights |
| 2258 |
of the compilation’s users beyond what the individual works permit. |
| 2259 |
When the Document is included in an aggregate, this License does not |
| 2260 |
apply to the other works in the aggregate which are not themselves |
| 2261 |
derivative works of the Document. |
| 2262 |
</p> |
| 2263 |
<p>If the Cover Text requirement of section 3 is applicable to these |
| 2264 |
copies of the Document, then if the Document is less than one half of |
| 2265 |
the entire aggregate, the Document’s Cover Texts may be placed on |
| 2266 |
covers that bracket the Document within the aggregate, or the |
| 2267 |
electronic equivalent of covers if the Document is in electronic form. |
| 2268 |
Otherwise they must appear on printed covers that bracket the whole |
| 2269 |
aggregate. |
| 2270 |
</p> |
| 2271 |
</li><li> TRANSLATION |
| 2272 |
|
| 2273 |
<p>Translation is considered a kind of modification, so you may |
| 2274 |
distribute translations of the Document under the terms of section 4. |
| 2275 |
Replacing Invariant Sections with translations requires special |
| 2276 |
permission from their copyright holders, but you may include |
| 2277 |
translations of some or all Invariant Sections in addition to the |
| 2278 |
original versions of these Invariant Sections. You may include a |
| 2279 |
translation of this License, and all the license notices in the |
| 2280 |
Document, and any Warranty Disclaimers, provided that you also include |
| 2281 |
the original English version of this License and the original versions |
| 2282 |
of those notices and disclaimers. In case of a disagreement between |
| 2283 |
the translation and the original version of this License or a notice |
| 2284 |
or disclaimer, the original version will prevail. |
| 2285 |
</p> |
| 2286 |
<p>If a section in the Document is Entitled “Acknowledgements”, |
| 2287 |
“Dedications”, or “History”, the requirement (section 4) to Preserve |
| 2288 |
its Title (section 1) will typically require changing the actual |
| 2289 |
title. |
| 2290 |
</p> |
| 2291 |
</li><li> TERMINATION |
| 2292 |
|
| 2293 |
<p>You may not copy, modify, sublicense, or distribute the Document except |
| 2294 |
as expressly provided for under this License. Any other attempt to |
| 2295 |
copy, modify, sublicense or distribute the Document is void, and will |
| 2296 |
automatically terminate your rights under this License. However, |
| 2297 |
parties who have received copies, or rights, from you under this |
| 2298 |
License will not have their licenses terminated so long as such |
| 2299 |
parties remain in full compliance. |
| 2300 |
</p> |
| 2301 |
</li><li> FUTURE REVISIONS OF THIS LICENSE |
| 2302 |
|
| 2303 |
<p>The Free Software Foundation may publish new, revised versions |
| 2304 |
of the GNU Free Documentation License from time to time. Such new |
| 2305 |
versions will be similar in spirit to the present version, but may |
| 2306 |
differ in detail to address new problems or concerns. See |
| 2307 |
<a href="http://www.gnu.org/copyleft/">http://www.gnu.org/copyleft/</a>. |
| 2308 |
</p> |
| 2309 |
<p>Each version of the License is given a distinguishing version number. |
| 2310 |
If the Document specifies that a particular numbered version of this |
| 2311 |
License “or any later version” applies to it, you have the option of |
| 2312 |
following the terms and conditions either of that specified version or |
| 2313 |
of any later version that has been published (not as a draft) by the |
| 2314 |
Free Software Foundation. If the Document does not specify a version |
| 2315 |
number of this License, you may choose any version ever published (not |
| 2316 |
as a draft) by the Free Software Foundation. |
| 2317 |
</p></li></ol> |
| 2318 |
|
| 2319 |
<a name="ADDENDUM_003a-How-to-use-this-License-for-your-documents"></a> |
| 2320 |
<h3 class="heading">ADDENDUM: How to use this License for your documents</h3> |
| 2321 |
|
| 2322 |
<p>To use this License in a document you have written, include a copy of |
| 2323 |
the License in the document and put the following copyright and |
| 2324 |
license notices just after the title page: |
| 2325 |
</p> |
| 2326 |
<div class="smallexample"> |
| 2327 |
<pre class="smallexample"> Copyright (C) <var>year</var> <var>your name</var>. |
| 2328 |
Permission is granted to copy, distribute and/or modify this document |
| 2329 |
under the terms of the GNU Free Documentation License, Version 1.2 |
| 2330 |
or any later version published by the Free Software Foundation; |
| 2331 |
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover |
| 2332 |
Texts. A copy of the license is included in the section entitled ``GNU |
| 2333 |
Free Documentation License''. |
| 2334 |
</pre></div> |
| 2335 |
|
| 2336 |
<p>If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, |
| 2337 |
replace the “with…Texts.” line with this: |
| 2338 |
</p> |
| 2339 |
<div class="smallexample"> |
| 2340 |
<pre class="smallexample"> with the Invariant Sections being <var>list their titles</var>, with |
| 2341 |
the Front-Cover Texts being <var>list</var>, and with the Back-Cover Texts |
| 2342 |
being <var>list</var>. |
| 2343 |
</pre></div> |
| 2344 |
|
| 2345 |
<p>If you have Invariant Sections without Cover Texts, or some other |
| 2346 |
combination of the three, merge those two alternatives to suit the |
| 2347 |
situation. |
| 2348 |
</p> |
| 2349 |
<p>If your document contains nontrivial examples of program code, we |
| 2350 |
recommend releasing these examples in parallel under your choice of |
| 2351 |
free software license, such as the GNU General Public License, |
| 2352 |
to permit their use in free software. |
| 2353 |
</p> |
| 2354 |
|
| 2355 |
<hr> |
| 2356 |
|
| 2357 |
|
| 2358 |
|
| 2359 |
</body> |
| 2360 |
</html> |