| 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 |
|
| 18 |
|
| 19 |
<head> |
| 20 |
<title>Manual de GNU Typist</title> |
| 21 |
|
| 22 |
<meta name="description" content="Manual de GNU Typist"> |
| 23 |
<meta name="keywords" content="Manual de GNU Typist"> |
| 24 |
<meta name="resource-type" content="document"> |
| 25 |
<meta name="distribution" content="global"> |
| 26 |
<meta name="Generator" content="makeinfo"> |
| 27 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 28 |
<link href="#Top" rel="start" title="Top"> |
| 29 |
<link href="#SEC_Contents" rel="contents" title="Índice General"> |
| 30 |
<link href="dir.html#Top" rel="up" title="(dir)"> |
| 31 |
<style type="text/css"> |
| 32 |
<!-- |
| 33 |
a.summary-letter {text-decoration: none} |
| 34 |
blockquote.smallquotation {font-size: smaller} |
| 35 |
div.display {margin-left: 3.2em} |
| 36 |
div.example {margin-left: 3.2em} |
| 37 |
div.indentedblock {margin-left: 3.2em} |
| 38 |
div.lisp {margin-left: 3.2em} |
| 39 |
div.smalldisplay {margin-left: 3.2em} |
| 40 |
div.smallexample {margin-left: 3.2em} |
| 41 |
div.smallindentedblock {margin-left: 3.2em; font-size: smaller} |
| 42 |
div.smalllisp {margin-left: 3.2em} |
| 43 |
kbd {font-style:oblique} |
| 44 |
pre.display {font-family: inherit} |
| 45 |
pre.format {font-family: inherit} |
| 46 |
pre.menu-comment {font-family: serif} |
| 47 |
pre.menu-preformatted {font-family: serif} |
| 48 |
pre.smalldisplay {font-family: inherit; font-size: smaller} |
| 49 |
pre.smallexample {font-size: smaller} |
| 50 |
pre.smallformat {font-family: inherit; font-size: smaller} |
| 51 |
pre.smalllisp {font-size: smaller} |
| 52 |
span.nocodebreak {white-space:nowrap} |
| 53 |
span.nolinebreak {white-space:nowrap} |
| 54 |
span.roman {font-family:serif; font-weight:normal} |
| 55 |
span.sansserif {font-family:sans-serif; font-weight:normal} |
| 56 |
ul.no-bullet {list-style: none} |
| 57 |
--> |
| 58 |
</style> |
| 59 |
|
| 60 |
|
| 61 |
</head> |
| 62 |
|
| 63 |
<body lang="es" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> |
| 64 |
<h1 class="settitle" align="center">Manual de GNU Typist</h1> |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
<a name="SEC_Contents"></a> |
| 70 |
<h2 class="contents-heading">Índice General</h2> |
| 71 |
|
| 72 |
<div class="contents"> |
| 73 |
|
| 74 |
<ul class="no-bullet"> |
| 75 |
<li><a name="toc-Distribucion-1" href="#Distribucion">Distribución</a></li> |
| 76 |
<li><a name="toc-GNU-GENERAL-PUBLIC-LICENSE" href="#Copiado">GNU GENERAL PUBLIC LICENSE</a></li> |
| 77 |
<li><a name="toc-Introduccion-1" href="#Introduccion">1 Introducción</a></li> |
| 78 |
<li><a name="toc-Invocacion-1" href="#Invocacion">2 Invocación</a></li> |
| 79 |
<li><a name="toc-Lecciones-suministradas-1" href="#Lecciones-suministradas">3 Lecciones suministradas</a></li> |
| 80 |
<li><a name="toc-Uso-de-typefortune-1" href="#Uso-de-typefortune">4 Uso de <code>typefortune</code></a></li> |
| 81 |
<li><a name="toc-Comandos-del-fichero-de-script" href="#Sintaxis-de-las-lecciones">5 Comandos del fichero de script</a></li> |
| 82 |
<li><a name="toc-Creacion-de-lecciones-nuevas" href="#Lecciones-nuevas">6 Creación de lecciones nuevas</a> |
| 83 |
<ul class="no-bullet"> |
| 84 |
<li><a name="toc-Lecciones-Ktouch-1" href="#Lecciones-Ktouch">6.1 Lecciones Ktouch</a></li> |
| 85 |
<li><a name="toc-Ejercicios-a-partir-de-fortune" href="#Ejercicios-de-fortune">6.2 Ejercicios a partir de <code>fortune</code></a></li> |
| 86 |
<li><a name="toc-Diseno-de-patrones-para-lecciones" href="#Patrones-para-lecciones">6.3 Diseño de patrones para lecciones</a> |
| 87 |
<ul class="no-bullet"> |
| 88 |
<li><a name="toc-Estructura-de-los-ficheros-de-lecciones" href="#Estructura-de-los-ficheros-de-lecciones">6.3.1 Estructura de los ficheros de lecciones</a></li> |
| 89 |
<li><a name="toc-Patrones-para-ejercicios" href="#Patrones-para-ejercicios">6.3.2 Patrones para ejercicios</a></li> |
| 90 |
</ul></li> |
| 91 |
<li><a name="toc-El-script-findwords" href="#Findwords">6.4 El script <code>findwords</code></a> |
| 92 |
<ul class="no-bullet"> |
| 93 |
<li><a name="toc-Proposito" href="#Proposito">6.4.1 Propósito</a></li> |
| 94 |
<li><a name="toc-Instalacion" href="#Instalacion">6.4.2 Instalación</a></li> |
| 95 |
<li><a name="toc-Uso-de-findwords" href="#Uso-de-findwords">6.4.3 Uso de <code>findwords</code></a></li> |
| 96 |
</ul></li> |
| 97 |
</ul></li> |
| 98 |
<li><a name="toc-El-modo-para-Emacs" href="#Modo-para-Emacs">7 El modo para Emacs</a></li> |
| 99 |
<li><a name="toc-Variables-de-entorno-1" href="#Variables-de-entorno">8 Variables de entorno</a></li> |
| 100 |
<li><a name="toc-Errores-y-omisiones-1" href="#Errores-y-omisiones">9 Errores y omisiones</a></li> |
| 101 |
<li><a name="toc-Historia-de-GNU-Typist" href="#Historia">Appendix A Historia de GNU Typist</a></li> |
| 102 |
<li><a name="toc-Licencia-de-Documentacion-Publica-de-GNU" href="#Copia-del-manual">Appendix B Licencia de Documentación Pública de GNU</a></li> |
| 103 |
</ul> |
| 104 |
</div> |
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
<a name="Top"></a> |
| 109 |
<a name="GNU-Typist_002c-el-tutor-mecanografico"></a> |
| 110 |
<h1 class="top">GNU Typist, el tutor mecanográfico</h1> |
| 111 |
<p>Este es el manual de GNU Typist (versión 2.9.5, |
| 112 |
18 August 2013), un programa para aprender a mecanografiar en varios |
| 113 |
idiomas y con distintas disposiciones de teclado. |
| 114 |
</p> |
| 115 |
<p>Copyright © 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2008, |
| 116 |
2011, 2012 Free Software Foundation, Inc. |
| 117 |
</p> |
| 118 |
<p>Copyright © de la traducción 2010-11, TMJQ, SL. |
| 119 |
</p> |
| 120 |
<blockquote> |
| 121 |
<p>Permission is granted to copy, distribute and/or modify this document |
| 122 |
under the terms of the GNU Free Documentation License, Version 1.3 or |
| 123 |
any later version published by the Free Software Foundation; with no |
| 124 |
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover |
| 125 |
Texts. A copy of the license is included in the section entitled |
| 126 |
“GNU Free Documentation License”. |
| 127 |
</p></blockquote> |
| 128 |
|
| 129 |
|
| 130 |
<p>GNU Typist es un tutor interactivo de mecanografiado que ayuda a |
| 131 |
escribir correctamente. Tiene varias lecciones para diversas |
| 132 |
disposiciones de teclado y en diferentes idiomas. Las lecciones de |
| 133 |
gtypist se describen en un lenguaje de script de fácil aprendizaje que |
| 134 |
el usuario puede emplear para modificar las lecciones existentes o |
| 135 |
crear nuevas. |
| 136 |
</p> |
| 137 |
|
| 138 |
|
| 139 |
<hr> |
| 140 |
<a name="Distribucion"></a> |
| 141 |
<a name="Distribucion-1"></a> |
| 142 |
<h2 class="unnumbered">Distribución</h2> |
| 143 |
|
| 144 |
<p>GNU Typist (o gtypist) es <em>software libre</em>; esto significa que |
| 145 |
cualquier persona es libre de usarlo y libre de redistribuirlo bajo |
| 146 |
ciertas condiciones. Las condiciones precisas se establecen en la |
| 147 |
Licencia General Pública de GNU que viene con este programa y sigue a |
| 148 |
esta sección. |
| 149 |
</p> |
| 150 |
<p>GNU Typist se puede obtener de un amigo o de Internet: |
| 151 |
</p> |
| 152 |
<dl compact="compact"> |
| 153 |
<dt>Sitio de distribución oficial</dt> |
| 154 |
<dd><p><a href="ftp://ftp.gnu.org/gnu/gtypist/">ftp://ftp.gnu.org/gnu/gtypist/</a> |
| 155 |
</p> |
| 156 |
</dd> |
| 157 |
<dt>Página web oficial</dt> |
| 158 |
<dd><p><a href="http://www.gnu.org/software/gtypist/gtypist.html">http://www.gnu.org/software/gtypist/gtypist.html</a> |
| 159 |
</p> |
| 160 |
</dd> |
| 161 |
<dt>Página web oficial replicada en castellano</dt> |
| 162 |
<dd><p><a href="http://gnu.manticore.es/paginas-replica/gtypist/gtypist.es.html">http://gnu.manticore.es/paginas-replica/gtypist/gtypist.es.html</a> |
| 163 |
</p> |
| 164 |
</dd> |
| 165 |
<dt>Manual en la web (en inglés)</dt> |
| 166 |
<dd><p><a href="http://www.gnu.org/software/gtypist/doc/gtypist.html">http://www.gnu.org/software/gtypist/doc/gtypist.html</a> |
| 167 |
</p> |
| 168 |
</dd> |
| 169 |
<dt>Manual en la web (en español)</dt> |
| 170 |
<dd><p><a href="http://www.manticore.es/cgi-bin/info2html.cgi?(gtypist.es-utf8)Top">http://www.manticore.es/cgi-bin/info2html.cgi?(gtypist.es-utf8)Top</a> |
| 171 |
</p> |
| 172 |
</dd> |
| 173 |
<dt>Página web de la sección de desarrollo (repositorio Git, tareas, asistencia...)</dt> |
| 174 |
<dd><p><a href="http://savannah.gnu.org/projects/gtypist/">http://savannah.gnu.org/projects/gtypist/</a> |
| 175 |
</p></dd> |
| 176 |
</dl> |
| 177 |
|
| 178 |
<hr> |
| 179 |
<a name="Copiado"></a> |
| 180 |
<a name="GNU-GENERAL-PUBLIC-LICENSE"></a> |
| 181 |
<h2 class="unnumbered">GNU GENERAL PUBLIC LICENSE</h2> |
| 182 |
<div align="center">Version 3, 29 June 2007 |
| 183 |
</div> |
| 184 |
|
| 185 |
<div class="display"> |
| 186 |
<pre class="display">Copyright © 2007 Free Software Foundation, Inc. <a href="http://fsf.org/">http://fsf.org/</a> |
| 187 |
|
| 188 |
Everyone is permitted to copy and distribute verbatim copies of this |
| 189 |
license document, but changing it is not allowed. |
| 190 |
</pre></div> |
| 191 |
|
| 192 |
<a name="Preamble"></a> |
| 193 |
<h3 class="heading">Preamble</h3> |
| 194 |
|
| 195 |
<p>The GNU General Public License is a free, copyleft license for |
| 196 |
software and other kinds of works. |
| 197 |
</p> |
| 198 |
<p>The licenses for most software and other practical works are designed |
| 199 |
to take away your freedom to share and change the works. By contrast, |
| 200 |
the GNU General Public License is intended to guarantee your freedom |
| 201 |
to share and change all versions of a program—to make sure it remains |
| 202 |
free software for all its users. We, the Free Software Foundation, |
| 203 |
use the GNU General Public License for most of our software; it |
| 204 |
applies also to any other work released this way by its authors. You |
| 205 |
can apply it to your programs, too. |
| 206 |
</p> |
| 207 |
<p>When we speak of free software, we are referring to freedom, not |
| 208 |
price. Our General Public Licenses are designed to make sure that you |
| 209 |
have the freedom to distribute copies of free software (and charge for |
| 210 |
them if you wish), that you receive source code or can get it if you |
| 211 |
want it, that you can change the software or use pieces of it in new |
| 212 |
free programs, and that you know you can do these things. |
| 213 |
</p> |
| 214 |
<p>To protect your rights, we need to prevent others from denying you |
| 215 |
these rights or asking you to surrender the rights. Therefore, you |
| 216 |
have certain responsibilities if you distribute copies of the |
| 217 |
software, or if you modify it: responsibilities to respect the freedom |
| 218 |
of others. |
| 219 |
</p> |
| 220 |
<p>For example, if you distribute copies of such a program, whether |
| 221 |
gratis or for a fee, you must pass on to the recipients the same |
| 222 |
freedoms that you received. You must make sure that they, too, |
| 223 |
receive or can get the source code. And you must show them these |
| 224 |
terms so they know their rights. |
| 225 |
</p> |
| 226 |
<p>Developers that use the GNU GPL protect your rights with two steps: |
| 227 |
(1) assert copyright on the software, and (2) offer you this License |
| 228 |
giving you legal permission to copy, distribute and/or modify it. |
| 229 |
</p> |
| 230 |
<p>For the developers’ and authors’ protection, the GPL clearly explains |
| 231 |
that there is no warranty for this free software. For both users’ and |
| 232 |
authors’ sake, the GPL requires that modified versions be marked as |
| 233 |
changed, so that their problems will not be attributed erroneously to |
| 234 |
authors of previous versions. |
| 235 |
</p> |
| 236 |
<p>Some devices are designed to deny users access to install or run |
| 237 |
modified versions of the software inside them, although the |
| 238 |
manufacturer can do so. This is fundamentally incompatible with the |
| 239 |
aim of protecting users’ freedom to change the software. The |
| 240 |
systematic pattern of such abuse occurs in the area of products for |
| 241 |
individuals to use, which is precisely where it is most unacceptable. |
| 242 |
Therefore, we have designed this version of the GPL to prohibit the |
| 243 |
practice for those products. If such problems arise substantially in |
| 244 |
other domains, we stand ready to extend this provision to those |
| 245 |
domains in future versions of the GPL, as needed to protect the |
| 246 |
freedom of users. |
| 247 |
</p> |
| 248 |
<p>Finally, every program is threatened constantly by software patents. |
| 249 |
States should not allow patents to restrict development and use of |
| 250 |
software on general-purpose computers, but in those that do, we wish |
| 251 |
to avoid the special danger that patents applied to a free program |
| 252 |
could make it effectively proprietary. To prevent this, the GPL |
| 253 |
assures that patents cannot be used to render the program non-free. |
| 254 |
</p> |
| 255 |
<p>The precise terms and conditions for copying, distribution and |
| 256 |
modification follow. |
| 257 |
</p> |
| 258 |
<a name="TERMS-AND-CONDITIONS"></a> |
| 259 |
<h3 class="heading">TERMS AND CONDITIONS</h3> |
| 260 |
|
| 261 |
<ol> |
| 262 |
<li> Definitions. |
| 263 |
|
| 264 |
<p>“This License” refers to version 3 of the GNU General Public License. |
| 265 |
</p> |
| 266 |
<p>“Copyright” also means copyright-like laws that apply to other kinds |
| 267 |
of works, such as semiconductor masks. |
| 268 |
</p> |
| 269 |
<p>“The Program” refers to any copyrightable work licensed under this |
| 270 |
License. Each licensee is addressed as “you”. “Licensees” and |
| 271 |
“recipients” may be individuals or organizations. |
| 272 |
</p> |
| 273 |
<p>To “modify” a work means to copy from or adapt all or part of the work |
| 274 |
in a fashion requiring copyright permission, other than the making of |
| 275 |
an exact copy. The resulting work is called a “modified version” of |
| 276 |
the earlier work or a work “based on” the earlier work. |
| 277 |
</p> |
| 278 |
<p>A “covered work” means either the unmodified Program or a work based |
| 279 |
on the Program. |
| 280 |
</p> |
| 281 |
<p>To “propagate” a work means to do anything with it that, without |
| 282 |
permission, would make you directly or secondarily liable for |
| 283 |
infringement under applicable copyright law, except executing it on a |
| 284 |
computer or modifying a private copy. Propagation includes copying, |
| 285 |
distribution (with or without modification), making available to the |
| 286 |
public, and in some countries other activities as well. |
| 287 |
</p> |
| 288 |
<p>To “convey” a work means any kind of propagation that enables other |
| 289 |
parties to make or receive copies. Mere interaction with a user |
| 290 |
through a computer network, with no transfer of a copy, is not |
| 291 |
conveying. |
| 292 |
</p> |
| 293 |
<p>An interactive user interface displays “Appropriate Legal Notices” to |
| 294 |
the extent that it includes a convenient and prominently visible |
| 295 |
feature that (1) displays an appropriate copyright notice, and (2) |
| 296 |
tells the user that there is no warranty for the work (except to the |
| 297 |
extent that warranties are provided), that licensees may convey the |
| 298 |
work under this License, and how to view a copy of this License. If |
| 299 |
the interface presents a list of user commands or options, such as a |
| 300 |
menu, a prominent item in the list meets this criterion. |
| 301 |
</p> |
| 302 |
</li><li> Source Code. |
| 303 |
|
| 304 |
<p>The “source code” for a work means the preferred form of the work for |
| 305 |
making modifications to it. “Object code” means any non-source form |
| 306 |
of a work. |
| 307 |
</p> |
| 308 |
<p>A “Standard Interface” means an interface that either is an official |
| 309 |
standard defined by a recognized standards body, or, in the case of |
| 310 |
interfaces specified for a particular programming language, one that |
| 311 |
is widely used among developers working in that language. |
| 312 |
</p> |
| 313 |
<p>The “System Libraries” of an executable work include anything, other |
| 314 |
than the work as a whole, that (a) is included in the normal form of |
| 315 |
packaging a Major Component, but which is not part of that Major |
| 316 |
Component, and (b) serves only to enable use of the work with that |
| 317 |
Major Component, or to implement a Standard Interface for which an |
| 318 |
implementation is available to the public in source code form. A |
| 319 |
“Major Component”, in this context, means a major essential component |
| 320 |
(kernel, window system, and so on) of the specific operating system |
| 321 |
(if any) on which the executable work runs, or a compiler used to |
| 322 |
produce the work, or an object code interpreter used to run it. |
| 323 |
</p> |
| 324 |
<p>The “Corresponding Source” for a work in object code form means all |
| 325 |
the source code needed to generate, install, and (for an executable |
| 326 |
work) run the object code and to modify the work, including scripts to |
| 327 |
control those activities. However, it does not include the work’s |
| 328 |
System Libraries, or general-purpose tools or generally available free |
| 329 |
programs which are used unmodified in performing those activities but |
| 330 |
which are not part of the work. For example, Corresponding Source |
| 331 |
includes interface definition files associated with source files for |
| 332 |
the work, and the source code for shared libraries and dynamically |
| 333 |
linked subprograms that the work is specifically designed to require, |
| 334 |
such as by intimate data communication or control flow between those |
| 335 |
subprograms and other parts of the work. |
| 336 |
</p> |
| 337 |
<p>The Corresponding Source need not include anything that users can |
| 338 |
regenerate automatically from other parts of the Corresponding Source. |
| 339 |
</p> |
| 340 |
<p>The Corresponding Source for a work in source code form is that same |
| 341 |
work. |
| 342 |
</p> |
| 343 |
</li><li> Basic Permissions. |
| 344 |
|
| 345 |
<p>All rights granted under this License are granted for the term of |
| 346 |
copyright on the Program, and are irrevocable provided the stated |
| 347 |
conditions are met. This License explicitly affirms your unlimited |
| 348 |
permission to run the unmodified Program. The output from running a |
| 349 |
covered work is covered by this License only if the output, given its |
| 350 |
content, constitutes a covered work. This License acknowledges your |
| 351 |
rights of fair use or other equivalent, as provided by copyright law. |
| 352 |
</p> |
| 353 |
<p>You may make, run and propagate covered works that you do not convey, |
| 354 |
without conditions so long as your license otherwise remains in force. |
| 355 |
You may convey covered works to others for the sole purpose of having |
| 356 |
them make modifications exclusively for you, or provide you with |
| 357 |
facilities for running those works, provided that you comply with the |
| 358 |
terms of this License in conveying all material for which you do not |
| 359 |
control copyright. Those thus making or running the covered works for |
| 360 |
you must do so exclusively on your behalf, under your direction and |
| 361 |
control, on terms that prohibit them from making any copies of your |
| 362 |
copyrighted material outside their relationship with you. |
| 363 |
</p> |
| 364 |
<p>Conveying under any other circumstances is permitted solely under the |
| 365 |
conditions stated below. Sublicensing is not allowed; section 10 |
| 366 |
makes it unnecessary. |
| 367 |
</p> |
| 368 |
</li><li> Protecting Users’ Legal Rights From Anti-Circumvention Law. |
| 369 |
|
| 370 |
<p>No covered work shall be deemed part of an effective technological |
| 371 |
measure under any applicable law fulfilling obligations under article |
| 372 |
11 of the WIPO copyright treaty adopted on 20 December 1996, or |
| 373 |
similar laws prohibiting or restricting circumvention of such |
| 374 |
measures. |
| 375 |
</p> |
| 376 |
<p>When you convey a covered work, you waive any legal power to forbid |
| 377 |
circumvention of technological measures to the extent such |
| 378 |
circumvention is effected by exercising rights under this License with |
| 379 |
respect to the covered work, and you disclaim any intention to limit |
| 380 |
operation or modification of the work as a means of enforcing, against |
| 381 |
the work’s users, your or third parties’ legal rights to forbid |
| 382 |
circumvention of technological measures. |
| 383 |
</p> |
| 384 |
</li><li> Conveying Verbatim Copies. |
| 385 |
|
| 386 |
<p>You may convey verbatim copies of the Program’s source code as you |
| 387 |
receive it, in any medium, provided that you conspicuously and |
| 388 |
appropriately publish on each copy an appropriate copyright notice; |
| 389 |
keep intact all notices stating that this License and any |
| 390 |
non-permissive terms added in accord with section 7 apply to the code; |
| 391 |
keep intact all notices of the absence of any warranty; and give all |
| 392 |
recipients a copy of this License along with the Program. |
| 393 |
</p> |
| 394 |
<p>You may charge any price or no price for each copy that you convey, |
| 395 |
and you may offer support or warranty protection for a fee. |
| 396 |
</p> |
| 397 |
</li><li> Conveying Modified Source Versions. |
| 398 |
|
| 399 |
<p>You may convey a work based on the Program, or the modifications to |
| 400 |
produce it from the Program, in the form of source code under the |
| 401 |
terms of section 4, provided that you also meet all of these |
| 402 |
conditions: |
| 403 |
</p> |
| 404 |
<ol> |
| 405 |
<li> The work must carry prominent notices stating that you modified it, |
| 406 |
and giving a relevant date. |
| 407 |
|
| 408 |
</li><li> The work must carry prominent notices stating that it is released |
| 409 |
under this License and any conditions added under section 7. This |
| 410 |
requirement modifies the requirement in section 4 to “keep intact all |
| 411 |
notices”. |
| 412 |
|
| 413 |
</li><li> You must license the entire work, as a whole, under this License to |
| 414 |
anyone who comes into possession of a copy. This License will |
| 415 |
therefore apply, along with any applicable section 7 additional terms, |
| 416 |
to the whole of the work, and all its parts, regardless of how they |
| 417 |
are packaged. This License gives no permission to license the work in |
| 418 |
any other way, but it does not invalidate such permission if you have |
| 419 |
separately received it. |
| 420 |
|
| 421 |
</li><li> If the work has interactive user interfaces, each must display |
| 422 |
Appropriate Legal Notices; however, if the Program has interactive |
| 423 |
interfaces that do not display Appropriate Legal Notices, your work |
| 424 |
need not make them do so. |
| 425 |
</li></ol> |
| 426 |
|
| 427 |
<p>A compilation of a covered work with other separate and independent |
| 428 |
works, which are not by their nature extensions of the covered work, |
| 429 |
and which are not combined with it such as to form a larger program, |
| 430 |
in or on a volume of a storage or distribution medium, is called an |
| 431 |
“aggregate” if the compilation and its resulting copyright are not |
| 432 |
used to limit the access or legal rights of the compilation’s users |
| 433 |
beyond what the individual works permit. Inclusion of a covered work |
| 434 |
in an aggregate does not cause this License to apply to the other |
| 435 |
parts of the aggregate. |
| 436 |
</p> |
| 437 |
</li><li> Conveying Non-Source Forms. |
| 438 |
|
| 439 |
<p>You may convey a covered work in object code form under the terms of |
| 440 |
sections 4 and 5, provided that you also convey the machine-readable |
| 441 |
Corresponding Source under the terms of this License, in one of these |
| 442 |
ways: |
| 443 |
</p> |
| 444 |
<ol> |
| 445 |
<li> Convey the object code in, or embodied in, a physical product |
| 446 |
(including a physical distribution medium), accompanied by the |
| 447 |
Corresponding Source fixed on a durable physical medium customarily |
| 448 |
used for software interchange. |
| 449 |
|
| 450 |
</li><li> Convey the object code in, or embodied in, a physical product |
| 451 |
(including a physical distribution medium), accompanied by a written |
| 452 |
offer, valid for at least three years and valid for as long as you |
| 453 |
offer spare parts or customer support for that product model, to give |
| 454 |
anyone who possesses the object code either (1) a copy of the |
| 455 |
Corresponding Source for all the software in the product that is |
| 456 |
covered by this License, on a durable physical medium customarily used |
| 457 |
for software interchange, for a price no more than your reasonable |
| 458 |
cost of physically performing this conveying of source, or (2) access |
| 459 |
to copy the Corresponding Source from a network server at no charge. |
| 460 |
|
| 461 |
</li><li> Convey individual copies of the object code with a copy of the written |
| 462 |
offer to provide the Corresponding Source. This alternative is |
| 463 |
allowed only occasionally and noncommercially, and only if you |
| 464 |
received the object code with such an offer, in accord with subsection |
| 465 |
6b. |
| 466 |
|
| 467 |
</li><li> Convey the object code by offering access from a designated place |
| 468 |
(gratis or for a charge), and offer equivalent access to the |
| 469 |
Corresponding Source in the same way through the same place at no |
| 470 |
further charge. You need not require recipients to copy the |
| 471 |
Corresponding Source along with the object code. If the place to copy |
| 472 |
the object code is a network server, the Corresponding Source may be |
| 473 |
on a different server (operated by you or a third party) that supports |
| 474 |
equivalent copying facilities, provided you maintain clear directions |
| 475 |
next to the object code saying where to find the Corresponding Source. |
| 476 |
Regardless of what server hosts the Corresponding Source, you remain |
| 477 |
obligated to ensure that it is available for as long as needed to |
| 478 |
satisfy these requirements. |
| 479 |
|
| 480 |
</li><li> Convey the object code using peer-to-peer transmission, provided you |
| 481 |
inform other peers where the object code and Corresponding Source of |
| 482 |
the work are being offered to the general public at no charge under |
| 483 |
subsection 6d. |
| 484 |
|
| 485 |
</li></ol> |
| 486 |
|
| 487 |
<p>A separable portion of the object code, whose source code is excluded |
| 488 |
from the Corresponding Source as a System Library, need not be |
| 489 |
included in conveying the object code work. |
| 490 |
</p> |
| 491 |
<p>A “User Product” is either (1) a “consumer product”, which means any |
| 492 |
tangible personal property which is normally used for personal, |
| 493 |
family, or household purposes, or (2) anything designed or sold for |
| 494 |
incorporation into a dwelling. In determining whether a product is a |
| 495 |
consumer product, doubtful cases shall be resolved in favor of |
| 496 |
coverage. For a particular product received by a particular user, |
| 497 |
“normally used” refers to a typical or common use of that class of |
| 498 |
product, regardless of the status of the particular user or of the way |
| 499 |
in which the particular user actually uses, or expects or is expected |
| 500 |
to use, the product. A product is a consumer product regardless of |
| 501 |
whether the product has substantial commercial, industrial or |
| 502 |
non-consumer uses, unless such uses represent the only significant |
| 503 |
mode of use of the product. |
| 504 |
</p> |
| 505 |
<p>“Installation Information” for a User Product means any methods, |
| 506 |
procedures, authorization keys, or other information required to |
| 507 |
install and execute modified versions of a covered work in that User |
| 508 |
Product from a modified version of its Corresponding Source. The |
| 509 |
information must suffice to ensure that the continued functioning of |
| 510 |
the modified object code is in no case prevented or interfered with |
| 511 |
solely because modification has been made. |
| 512 |
</p> |
| 513 |
<p>If you convey an object code work under this section in, or with, or |
| 514 |
specifically for use in, a User Product, and the conveying occurs as |
| 515 |
part of a transaction in which the right of possession and use of the |
| 516 |
User Product is transferred to the recipient in perpetuity or for a |
| 517 |
fixed term (regardless of how the transaction is characterized), the |
| 518 |
Corresponding Source conveyed under this section must be accompanied |
| 519 |
by the Installation Information. But this requirement does not apply |
| 520 |
if neither you nor any third party retains the ability to install |
| 521 |
modified object code on the User Product (for example, the work has |
| 522 |
been installed in ROM). |
| 523 |
</p> |
| 524 |
<p>The requirement to provide Installation Information does not include a |
| 525 |
requirement to continue to provide support service, warranty, or |
| 526 |
updates for a work that has been modified or installed by the |
| 527 |
recipient, or for the User Product in which it has been modified or |
| 528 |
installed. Access to a network may be denied when the modification |
| 529 |
itself materially and adversely affects the operation of the network |
| 530 |
or violates the rules and protocols for communication across the |
| 531 |
network. |
| 532 |
</p> |
| 533 |
<p>Corresponding Source conveyed, and Installation Information provided, |
| 534 |
in accord with this section must be in a format that is publicly |
| 535 |
documented (and with an implementation available to the public in |
| 536 |
source code form), and must require no special password or key for |
| 537 |
unpacking, reading or copying. |
| 538 |
</p> |
| 539 |
</li><li> Additional Terms. |
| 540 |
|
| 541 |
<p>“Additional permissions” are terms that supplement the terms of this |
| 542 |
License by making exceptions from one or more of its conditions. |
| 543 |
Additional permissions that are applicable to the entire Program shall |
| 544 |
be treated as though they were included in this License, to the extent |
| 545 |
that they are valid under applicable law. If additional permissions |
| 546 |
apply only to part of the Program, that part may be used separately |
| 547 |
under those permissions, but the entire Program remains governed by |
| 548 |
this License without regard to the additional permissions. |
| 549 |
</p> |
| 550 |
<p>When you convey a copy of a covered work, you may at your option |
| 551 |
remove any additional permissions from that copy, or from any part of |
| 552 |
it. (Additional permissions may be written to require their own |
| 553 |
removal in certain cases when you modify the work.) You may place |
| 554 |
additional permissions on material, added by you to a covered work, |
| 555 |
for which you have or can give appropriate copyright permission. |
| 556 |
</p> |
| 557 |
<p>Notwithstanding any other provision of this License, for material you |
| 558 |
add to a covered work, you may (if authorized by the copyright holders |
| 559 |
of that material) supplement the terms of this License with terms: |
| 560 |
</p> |
| 561 |
<ol> |
| 562 |
<li> Disclaiming warranty or limiting liability differently from the terms |
| 563 |
of sections 15 and 16 of this License; or |
| 564 |
|
| 565 |
</li><li> Requiring preservation of specified reasonable legal notices or author |
| 566 |
attributions in that material or in the Appropriate Legal Notices |
| 567 |
displayed by works containing it; or |
| 568 |
|
| 569 |
</li><li> Prohibiting misrepresentation of the origin of that material, or |
| 570 |
requiring that modified versions of such material be marked in |
| 571 |
reasonable ways as different from the original version; or |
| 572 |
|
| 573 |
</li><li> Limiting the use for publicity purposes of names of licensors or |
| 574 |
authors of the material; or |
| 575 |
|
| 576 |
</li><li> Declining to grant rights under trademark law for use of some trade |
| 577 |
names, trademarks, or service marks; or |
| 578 |
|
| 579 |
</li><li> Requiring indemnification of licensors and authors of that material by |
| 580 |
anyone who conveys the material (or modified versions of it) with |
| 581 |
contractual assumptions of liability to the recipient, for any |
| 582 |
liability that these contractual assumptions directly impose on those |
| 583 |
licensors and authors. |
| 584 |
</li></ol> |
| 585 |
|
| 586 |
<p>All other non-permissive additional terms are considered “further |
| 587 |
restrictions” within the meaning of section 10. If the Program as you |
| 588 |
received it, or any part of it, contains a notice stating that it is |
| 589 |
governed by this License along with a term that is a further |
| 590 |
restriction, you may remove that term. If a license document contains |
| 591 |
a further restriction but permits relicensing or conveying under this |
| 592 |
License, you may add to a covered work material governed by the terms |
| 593 |
of that license document, provided that the further restriction does |
| 594 |
not survive such relicensing or conveying. |
| 595 |
</p> |
| 596 |
<p>If you add terms to a covered work in accord with this section, you |
| 597 |
must place, in the relevant source files, a statement of the |
| 598 |
additional terms that apply to those files, or a notice indicating |
| 599 |
where to find the applicable terms. |
| 600 |
</p> |
| 601 |
<p>Additional terms, permissive or non-permissive, may be stated in the |
| 602 |
form of a separately written license, or stated as exceptions; the |
| 603 |
above requirements apply either way. |
| 604 |
</p> |
| 605 |
</li><li> Termination. |
| 606 |
|
| 607 |
<p>You may not propagate or modify a covered work except as expressly |
| 608 |
provided under this License. Any attempt otherwise to propagate or |
| 609 |
modify it is void, and will automatically terminate your rights under |
| 610 |
this License (including any patent licenses granted under the third |
| 611 |
paragraph of section 11). |
| 612 |
</p> |
| 613 |
<p>However, if you cease all violation of this License, then your license |
| 614 |
from a particular copyright holder is reinstated (a) provisionally, |
| 615 |
unless and until the copyright holder explicitly and finally |
| 616 |
terminates your license, and (b) permanently, if the copyright holder |
| 617 |
fails to notify you of the violation by some reasonable means prior to |
| 618 |
60 days after the cessation. |
| 619 |
</p> |
| 620 |
<p>Moreover, your license from a particular copyright holder is |
| 621 |
reinstated permanently if the copyright holder notifies you of the |
| 622 |
violation by some reasonable means, this is the first time you have |
| 623 |
received notice of violation of this License (for any work) from that |
| 624 |
copyright holder, and you cure the violation prior to 30 days after |
| 625 |
your receipt of the notice. |
| 626 |
</p> |
| 627 |
<p>Termination of your rights under this section does not terminate the |
| 628 |
licenses of parties who have received copies or rights from you under |
| 629 |
this License. If your rights have been terminated and not permanently |
| 630 |
reinstated, you do not qualify to receive new licenses for the same |
| 631 |
material under section 10. |
| 632 |
</p> |
| 633 |
</li><li> Acceptance Not Required for Having Copies. |
| 634 |
|
| 635 |
<p>You are not required to accept this License in order to receive or run |
| 636 |
a copy of the Program. Ancillary propagation of a covered work |
| 637 |
occurring solely as a consequence of using peer-to-peer transmission |
| 638 |
to receive a copy likewise does not require acceptance. However, |
| 639 |
nothing other than this License grants you permission to propagate or |
| 640 |
modify any covered work. These actions infringe copyright if you do |
| 641 |
not accept this License. Therefore, by modifying or propagating a |
| 642 |
covered work, you indicate your acceptance of this License to do so. |
| 643 |
</p> |
| 644 |
</li><li> Automatic Licensing of Downstream Recipients. |
| 645 |
|
| 646 |
<p>Each time you convey a covered work, the recipient automatically |
| 647 |
receives a license from the original licensors, to run, modify and |
| 648 |
propagate that work, subject to this License. You are not responsible |
| 649 |
for enforcing compliance by third parties with this License. |
| 650 |
</p> |
| 651 |
<p>An “entity transaction” is a transaction transferring control of an |
| 652 |
organization, or substantially all assets of one, or subdividing an |
| 653 |
organization, or merging organizations. If propagation of a covered |
| 654 |
work results from an entity transaction, each party to that |
| 655 |
transaction who receives a copy of the work also receives whatever |
| 656 |
licenses to the work the party’s predecessor in interest had or could |
| 657 |
give under the previous paragraph, plus a right to possession of the |
| 658 |
Corresponding Source of the work from the predecessor in interest, if |
| 659 |
the predecessor has it or can get it with reasonable efforts. |
| 660 |
</p> |
| 661 |
<p>You may not impose any further restrictions on the exercise of the |
| 662 |
rights granted or affirmed under this License. For example, you may |
| 663 |
not impose a license fee, royalty, or other charge for exercise of |
| 664 |
rights granted under this License, and you may not initiate litigation |
| 665 |
(including a cross-claim or counterclaim in a lawsuit) alleging that |
| 666 |
any patent claim is infringed by making, using, selling, offering for |
| 667 |
sale, or importing the Program or any portion of it. |
| 668 |
</p> |
| 669 |
</li><li> Patents. |
| 670 |
|
| 671 |
<p>A “contributor” is a copyright holder who authorizes use under this |
| 672 |
License of the Program or a work on which the Program is based. The |
| 673 |
work thus licensed is called the contributor’s “contributor version”. |
| 674 |
</p> |
| 675 |
<p>A contributor’s “essential patent claims” are all patent claims owned |
| 676 |
or controlled by the contributor, whether already acquired or |
| 677 |
hereafter acquired, that would be infringed by some manner, permitted |
| 678 |
by this License, of making, using, or selling its contributor version, |
| 679 |
but do not include claims that would be infringed only as a |
| 680 |
consequence of further modification of the contributor version. For |
| 681 |
purposes of this definition, “control” includes the right to grant |
| 682 |
patent sublicenses in a manner consistent with the requirements of |
| 683 |
this License. |
| 684 |
</p> |
| 685 |
<p>Each contributor grants you a non-exclusive, worldwide, royalty-free |
| 686 |
patent license under the contributor’s essential patent claims, to |
| 687 |
make, use, sell, offer for sale, import and otherwise run, modify and |
| 688 |
propagate the contents of its contributor version. |
| 689 |
</p> |
| 690 |
<p>In the following three paragraphs, a “patent license” is any express |
| 691 |
agreement or commitment, however denominated, not to enforce a patent |
| 692 |
(such as an express permission to practice a patent or covenant not to |
| 693 |
sue for patent infringement). To “grant” such a patent license to a |
| 694 |
party means to make such an agreement or commitment not to enforce a |
| 695 |
patent against the party. |
| 696 |
</p> |
| 697 |
<p>If you convey a covered work, knowingly relying on a patent license, |
| 698 |
and the Corresponding Source of the work is not available for anyone |
| 699 |
to copy, free of charge and under the terms of this License, through a |
| 700 |
publicly available network server or other readily accessible means, |
| 701 |
then you must either (1) cause the Corresponding Source to be so |
| 702 |
available, or (2) arrange to deprive yourself of the benefit of the |
| 703 |
patent license for this particular work, or (3) arrange, in a manner |
| 704 |
consistent with the requirements of this License, to extend the patent |
| 705 |
license to downstream recipients. “Knowingly relying” means you have |
| 706 |
actual knowledge that, but for the patent license, your conveying the |
| 707 |
covered work in a country, or your recipient’s use of the covered work |
| 708 |
in a country, would infringe one or more identifiable patents in that |
| 709 |
country that you have reason to believe are valid. |
| 710 |
</p> |
| 711 |
<p>If, pursuant to or in connection with a single transaction or |
| 712 |
arrangement, you convey, or propagate by procuring conveyance of, a |
| 713 |
covered work, and grant a patent license to some of the parties |
| 714 |
receiving the covered work authorizing them to use, propagate, modify |
| 715 |
or convey a specific copy of the covered work, then the patent license |
| 716 |
you grant is automatically extended to all recipients of the covered |
| 717 |
work and works based on it. |
| 718 |
</p> |
| 719 |
<p>A patent license is “discriminatory” if it does not include within the |
| 720 |
scope of its coverage, prohibits the exercise of, or is conditioned on |
| 721 |
the non-exercise of one or more of the rights that are specifically |
| 722 |
granted under this License. You may not convey a covered work if you |
| 723 |
are a party to an arrangement with a third party that is in the |
| 724 |
business of distributing software, under which you make payment to the |
| 725 |
third party based on the extent of your activity of conveying the |
| 726 |
work, and under which the third party grants, to any of the parties |
| 727 |
who would receive the covered work from you, a discriminatory patent |
| 728 |
license (a) in connection with copies of the covered work conveyed by |
| 729 |
you (or copies made from those copies), or (b) primarily for and in |
| 730 |
connection with specific products or compilations that contain the |
| 731 |
covered work, unless you entered into that arrangement, or that patent |
| 732 |
license was granted, prior to 28 March 2007. |
| 733 |
</p> |
| 734 |
<p>Nothing in this License shall be construed as excluding or limiting |
| 735 |
any implied license or other defenses to infringement that may |
| 736 |
otherwise be available to you under applicable patent law. |
| 737 |
</p> |
| 738 |
</li><li> No Surrender of Others’ Freedom. |
| 739 |
|
| 740 |
<p>If conditions are imposed on you (whether by court order, agreement or |
| 741 |
otherwise) that contradict the conditions of this License, they do not |
| 742 |
excuse you from the conditions of this License. If you cannot convey |
| 743 |
a covered work so as to satisfy simultaneously your obligations under |
| 744 |
this License and any other pertinent obligations, then as a |
| 745 |
consequence you may not convey it at all. For example, if you agree |
| 746 |
to terms that obligate you to collect a royalty for further conveying |
| 747 |
from those to whom you convey the Program, the only way you could |
| 748 |
satisfy both those terms and this License would be to refrain entirely |
| 749 |
from conveying the Program. |
| 750 |
</p> |
| 751 |
</li><li> Use with the GNU Affero General Public License. |
| 752 |
|
| 753 |
<p>Notwithstanding any other provision of this License, you have |
| 754 |
permission to link or combine any covered work with a work licensed |
| 755 |
under version 3 of the GNU Affero General Public License into a single |
| 756 |
combined work, and to convey the resulting work. The terms of this |
| 757 |
License will continue to apply to the part which is the covered work, |
| 758 |
but the special requirements of the GNU Affero General Public License, |
| 759 |
section 13, concerning interaction through a network will apply to the |
| 760 |
combination as such. |
| 761 |
</p> |
| 762 |
</li><li> Revised Versions of this License. |
| 763 |
|
| 764 |
<p>The Free Software Foundation may publish revised and/or new versions |
| 765 |
of the GNU General Public License from time to time. Such new |
| 766 |
versions will be similar in spirit to the present version, but may |
| 767 |
differ in detail to address new problems or concerns. |
| 768 |
</p> |
| 769 |
<p>Each version is given a distinguishing version number. If the Program |
| 770 |
specifies that a certain numbered version of the GNU General Public |
| 771 |
License “or any later version” applies to it, you have the option of |
| 772 |
following the terms and conditions either of that numbered version or |
| 773 |
of any later version published by the Free Software Foundation. If |
| 774 |
the Program does not specify a version number of the GNU General |
| 775 |
Public License, you may choose any version ever published by the Free |
| 776 |
Software Foundation. |
| 777 |
</p> |
| 778 |
<p>If the Program specifies that a proxy can decide which future versions |
| 779 |
of the GNU General Public License can be used, that proxy’s public |
| 780 |
statement of acceptance of a version permanently authorizes you to |
| 781 |
choose that version for the Program. |
| 782 |
</p> |
| 783 |
<p>Later license versions may give you additional or different |
| 784 |
permissions. However, no additional obligations are imposed on any |
| 785 |
author or copyright holder as a result of your choosing to follow a |
| 786 |
later version. |
| 787 |
</p> |
| 788 |
</li><li> Disclaimer of Warranty. |
| 789 |
|
| 790 |
<p>THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY |
| 791 |
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT |
| 792 |
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT |
| 793 |
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT |
| 794 |
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 795 |
A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND |
| 796 |
PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE |
| 797 |
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR |
| 798 |
CORRECTION. |
| 799 |
</p> |
| 800 |
</li><li> Limitation of Liability. |
| 801 |
|
| 802 |
<p>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
| 803 |
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR |
| 804 |
CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, |
| 805 |
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES |
| 806 |
ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT |
| 807 |
NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR |
| 808 |
LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM |
| 809 |
TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER |
| 810 |
PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
| 811 |
</p> |
| 812 |
</li><li> Interpretation of Sections 15 and 16. |
| 813 |
|
| 814 |
<p>If the disclaimer of warranty and limitation of liability provided |
| 815 |
above cannot be given local legal effect according to their terms, |
| 816 |
reviewing courts shall apply local law that most closely approximates |
| 817 |
an absolute waiver of all civil liability in connection with the |
| 818 |
Program, unless a warranty or assumption of liability accompanies a |
| 819 |
copy of the Program in return for a fee. |
| 820 |
</p> |
| 821 |
</li></ol> |
| 822 |
|
| 823 |
<a name="END-OF-TERMS-AND-CONDITIONS"></a> |
| 824 |
<h3 class="heading">END OF TERMS AND CONDITIONS</h3> |
| 825 |
|
| 826 |
<a name="How-to-Apply-These-Terms-to-Your-New-Programs"></a> |
| 827 |
<h3 class="heading">How to Apply These Terms to Your New Programs</h3> |
| 828 |
|
| 829 |
<p>If you develop a new program, and you want it to be of the greatest |
| 830 |
possible use to the public, the best way to achieve this is to make it |
| 831 |
free software which everyone can redistribute and change under these |
| 832 |
terms. |
| 833 |
</p> |
| 834 |
<p>To do so, attach the following notices to the program. It is safest |
| 835 |
to attach them to the start of each source file to most effectively |
| 836 |
state the exclusion of warranty; and each file should have at least |
| 837 |
the “copyright” line and a pointer to where the full notice is found. |
| 838 |
</p> |
| 839 |
<div class="smallexample"> |
| 840 |
<pre class="smallexample"><var>one line to give the program's name and a brief idea of what it does.</var> |
| 841 |
Copyright (C) <var>year</var> <var>name of author</var> |
| 842 |
|
| 843 |
This program is free software: you can redistribute it and/or modify |
| 844 |
it under the terms of the GNU General Public License as published by |
| 845 |
the Free Software Foundation, either version 3 of the License, or (at |
| 846 |
your option) any later version. |
| 847 |
|
| 848 |
This program is distributed in the hope that it will be useful, but |
| 849 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
| 850 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 851 |
General Public License for more details. |
| 852 |
|
| 853 |
You should have received a copy of the GNU General Public License |
| 854 |
along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. |
| 855 |
</pre></div> |
| 856 |
|
| 857 |
<p>Also add information on how to contact you by electronic and paper mail. |
| 858 |
</p> |
| 859 |
<p>If the program does terminal interaction, make it output a short |
| 860 |
notice like this when it starts in an interactive mode: |
| 861 |
</p> |
| 862 |
<div class="smallexample"> |
| 863 |
<pre class="smallexample"><var>program</var> Copyright (C) <var>year</var> <var>name of author</var> |
| 864 |
This program comes with ABSOLUTELY NO WARRANTY; for details type ‘<samp>show w</samp>’. |
| 865 |
This is free software, and you are welcome to redistribute it |
| 866 |
under certain conditions; type ‘<samp>show c</samp>’ for details. |
| 867 |
</pre></div> |
| 868 |
|
| 869 |
<p>The hypothetical commands ‘<samp>show w</samp>’ and ‘<samp>show c</samp>’ should show |
| 870 |
the appropriate parts of the General Public License. Of course, your |
| 871 |
program’s commands might be different; for a GUI interface, you would |
| 872 |
use an “about box”. |
| 873 |
</p> |
| 874 |
<p>You should also get your employer (if you work as a programmer) or school, |
| 875 |
if any, to sign a “copyright disclaimer” for the program, if necessary. |
| 876 |
For more information on this, and how to apply and follow the GNU GPL, see |
| 877 |
<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. |
| 878 |
</p> |
| 879 |
<p>The GNU General Public License does not permit incorporating your |
| 880 |
program into proprietary programs. If your program is a subroutine |
| 881 |
library, you may consider it more useful to permit linking proprietary |
| 882 |
applications with the library. If this is what you want to do, use |
| 883 |
the GNU Lesser General Public License instead of this License. But |
| 884 |
first, please read <a href="http://www.gnu.org/philosophy/why-not-lgpl.html">http://www.gnu.org/philosophy/why-not-lgpl.html</a>. |
| 885 |
</p> |
| 886 |
<hr> |
| 887 |
<a name="Introduccion"></a> |
| 888 |
<a name="Introduccion-1"></a> |
| 889 |
<h2 class="chapter">1 Introducción</h2> |
| 890 |
|
| 891 |
<p>GNU Typist es un programa tutor interactivo de mecanografiado. Emplea |
| 892 |
un fichero de entrada para crear una serie de tutorías de |
| 893 |
mecanografiado, ejercicios y pruebas de velocidad. Está pensado para |
| 894 |
su uso en terminales sin gráficos. Ha sido compilado y usado en |
| 895 |
GNU/Linux y Unix (OpenBSD, AIX, Solaris) y también en DOS/Windows (DOS |
| 896 |
6.22, Windows 95, 98, NT y XP). |
| 897 |
</p> |
| 898 |
<p>El programa lee lecciones escritas en un lenguaje de script de fácil |
| 899 |
aprendizaje. Se distribuye con unas cuantas lecciones completas y de |
| 900 |
calidad. Se pueden usar como están, modificarlas o crear lecciones |
| 901 |
nuevas (véase <a href="#Lecciones-nuevas">Lecciones nuevas</a> y véase <a href="#Sintaxis-de-las-lecciones">Sintaxis de las lecciones</a>). |
| 902 |
</p> |
| 903 |
<p>Si no se especifica un fichero de script en la línea de comandos, se |
| 904 |
usará uno predeterminado <samp>gtypist.typ</samp>. (Véanse los detalles |
| 905 |
acerca de la ruta en la sección véase <a href="#Variables-de-entorno">Variables de entorno</a>). |
| 906 |
</p> |
| 907 |
<p>La línea superior de la pantalla muestra una leyenda. La línea |
| 908 |
inferior muestra una línea de mensaje, consultas y otra información de |
| 909 |
estado. Las líneas intermedias se usan para las tutorías, los |
| 910 |
ejercicios y las pruebas de velocidad. |
| 911 |
</p> |
| 912 |
<p>Existen dos tipos de ejercicios de tecleado: <em>entrenamientos</em> y |
| 913 |
<em>pruebas de velocidad</em>. |
| 914 |
</p> |
| 915 |
<p>En un <em>entrenamiento</em>, gtypist muestra texto cada dos líneas de la |
| 916 |
pantalla y espera que el usuario teclee correctamente el mismo texto |
| 917 |
exacto en las líneas intermedias. |
| 918 |
Los errores de mecanografiado se indican con un ‘<samp>^</samp>’ inverso, o |
| 919 |
‘<samp>></samp>’ si el carácter es un salto de línea y al final del ejercicio |
| 920 |
calcula la tasa real y efectiva de palabras por minuto |
| 921 |
(<acronym>WPM</acronym>). Si hubiera demasiados errores, se re-ejecutará el |
| 922 |
entrenamiento. |
| 923 |
</p> |
| 924 |
<p>No se permite la corrección de errores cometidos. |
| 925 |
</p> |
| 926 |
<p>En las pruebas de velocidad, gtypist muestra texto en la pantalla, y |
| 927 |
espera a que el usuario sobre-escriba correctamente el mismo texto |
| 928 |
exacto. Indica los errores mecanográficos y al final de la prueba |
| 929 |
calcula la tasa real y efectiva en <acronym>WPM</acronym>. |
| 930 |
Si hubiera demasiados errores, se re-ejecuta la prueba de velocidad. |
| 931 |
Se permite la corrección de errores cometidos, pero aún así se |
| 932 |
acumulan. |
| 933 |
</p> |
| 934 |
<p>Si ya se han cometido demasiadas equivocaciones, se puede usar |
| 935 |
<tt class="key">ESC</tt> para salir y comenzar de nuevo. La manera de saltarse una |
| 936 |
lección es presionar dos veces <tt class="key">ESC</tt>. Cuando se completa una |
| 937 |
lección, se le pregunta al usuario si quiere repetirla. |
| 938 |
</p> |
| 939 |
<p>También hay unos ejercicios de “sólo prácticas” (tanto |
| 940 |
entrenamientos como pruebas de velocidad) que no se querrán repetir. |
| 941 |
Pero no decimos cuándo se presentan, así que habrá que seguir |
| 942 |
intentando superarse ;-) |
| 943 |
</p> |
| 944 |
<p>En los informes de velocidad de escritura, se considera que una |
| 945 |
<em>palabra</em> tiene cinco caracteres, así que las <acronym>WPM</acronym> son el |
| 946 |
número de caracteres del pasaje de la prueba dividido por cinco y |
| 947 |
nuevamente dividido por la cantidad de minutos transcurridos en su |
| 948 |
escritura. Cada error se cuenta como una palabra mal escrita. |
| 949 |
</p> |
| 950 |
<p>Si se prefiere, la velocidad se puede mostrar en Pulsaciones por |
| 951 |
Minuto (<acronym>CPM</acronym>) (caracteres por minuto, en inglés). Esto se |
| 952 |
puede especificar con “–scoring=cpm” en la línea de comandos. |
| 953 |
</p> |
| 954 |
<p>[NdT: en España nunca he oído hablar de “palabras por minuto”, |
| 955 |
siempre de “pulsaciones por minuto”. La obligación de especificar |
| 956 |
esa opción en la línea de comandos es engorrosa para aquellos que sólo |
| 957 |
cuentan ppm. Lo propio es que hubiera un fichero de configuración o |
| 958 |
alguna otra vía para elegir de manera permanente.] |
| 959 |
</p> |
| 960 |
|
| 961 |
<hr> |
| 962 |
<a name="Invocacion"></a> |
| 963 |
<a name="Invocacion-1"></a> |
| 964 |
<h2 class="chapter">2 Invocación</h2> |
| 965 |
|
| 966 |
<p>La sintaxis para invocar GNU Typist es: |
| 967 |
</p> |
| 968 |
<p><code>gtypist [ Opciones... ] [ fichero ]</code> |
| 969 |
</p> |
| 970 |
<p>A continuación se dan las opciones existentes (su forma larga no se |
| 971 |
admite en DOS): |
| 972 |
</p> |
| 973 |
<dl compact="compact"> |
| 974 |
<dt><code>-e, --error-max</code></dt> |
| 975 |
<dd><p>Especifica el porcentaje de error máximo. El valor predeterminado es |
| 976 |
3.0 y debe estar entre 0.0 y 100.0. Existe un comando de fichero de |
| 977 |
script (véase <a href="#Sintaxis-de-las-lecciones">Sintaxis de las lecciones</a>) que sólo sobre-escribe esto si |
| 978 |
es <em>estrictamente</em> (menor). Este valor se ignora en los |
| 979 |
ejercicios de “sólo práctica”. |
| 980 |
</p> |
| 981 |
</dd> |
| 982 |
<dt><code>-n, --notimer</code></dt> |
| 983 |
<dd><p>Gtypist muestra la velocidad de escritura en <acronym>WPM</acronym> después de |
| 984 |
los tests de prácticas y de velocidad. Sin embargo, las lecciones |
| 985 |
parecen haber sido escritas para un programa que sólo hace esto para |
| 986 |
tests de velocidad. Para hacer que gtypist se comporte de manera que |
| 987 |
concuerde con las lecciones, esto es, para suprimir los informes de |
| 988 |
<acronym>WPM</acronym> en las prácticas, se usa <samp>-n</samp> o |
| 989 |
<samp>--notimer</samp>. |
| 990 |
</p> |
| 991 |
</dd> |
| 992 |
<dt><code>-t, --term-cursor</code></dt> |
| 993 |
<dd><p>Gtypist crea su propio cursor parpadeante de bloque en la pantalla, |
| 994 |
para ayudar a distinguir entre el cursor y las indicaciones de error |
| 995 |
de vídeo inverso. Si se establece <samp>-t</samp> o |
| 996 |
<samp>--term-cursor</samp> se suprime esto y fuerza al programa a usar el |
| 997 |
cursor de la terminal. |
| 998 |
</p> |
| 999 |
</dd> |
| 1000 |
<dt><code>-f, --curs-flash</code></dt> |
| 1001 |
<dd><p>Establece el periodo de parpadeo del cursor de bloque en décimas de |
| 1002 |
segundo. El valor 0 indica que no haya parpadeo. El predeterminado |
| 1003 |
es 10 y el máximo 512. Esta opción queda ignorada si se han |
| 1004 |
establecido <samp>-t</samp> o <samp>--term-cursor</samp>. |
| 1005 |
</p> |
| 1006 |
</dd> |
| 1007 |
<dt><code>-c, --colo[u]rs</code></dt> |
| 1008 |
<dd><p>En su estado normal, gtypist sólo usa atributos de vídeo normal e |
| 1009 |
inverso en modo monocromo. Esta opción se puede usar para especificar |
| 1010 |
en este orden los colores delantero y de fondo en terminales que |
| 1011 |
admitan colores. Estos se especifican como dos enteros, en el |
| 1012 |
intervalo entre 0 y 7, separados por comas. Los códigos de color del |
| 1013 |
0 al 7 indican negro, rojo, verde, amarillo, azul, magenta, cian y |
| 1014 |
blanco, respectivamente. La cadena de colores predeterminada es 7,0 |
| 1015 |
(blanco sobre negro). Se ignora esta opción si la terminal no admite |
| 1016 |
colores. |
| 1017 |
</p> |
| 1018 |
</dd> |
| 1019 |
<dt><code>-s, --silent</code></dt> |
| 1020 |
<dd><p>Cuando gtypist detecta un error mecanográfico, sonará la terminal. |
| 1021 |
Esta opción se usa para silenciarla. |
| 1022 |
</p> |
| 1023 |
</dd> |
| 1024 |
<dt><code>-q, --quiet</code></dt> |
| 1025 |
<dd><p>Lo mismo que <samp>-s</samp> o <samp>--silent</samp>. |
| 1026 |
</p> |
| 1027 |
</dd> |
| 1028 |
<dt><code>-l, --start-label</code></dt> |
| 1029 |
<dd><p>Especifica la etiqueta del fichero de script en la que gtypist |
| 1030 |
comienza la ejecución (hay información acerca de las etiquetas más |
| 1031 |
abajo, donde se habla de los ficheros de script y de los comandos). |
| 1032 |
Si esta opción no se usa, gtypist comienza la ejecución en la primera |
| 1033 |
línea del fichero. |
| 1034 |
</p> |
| 1035 |
</dd> |
| 1036 |
<dt><code>-w, --word-processor</code></dt> |
| 1037 |
<dd><p>Con esta opción, gtypist procura imitar a los procesadores de texto en |
| 1038 |
ciertas maneras cuando ejecuta un ejercicio. Tratará el espacio al |
| 1039 |
final de una línea como un carácter tecleado correctamente y con |
| 1040 |
ajuste de párrafo. Tratará la tecla Retorno al final de una línea |
| 1041 |
como señal de que se mueva al comienzo del siguiente párrafo si fuera |
| 1042 |
de aplicación. Comprimirá los espacios múltiples en uno solo. Y se |
| 1043 |
saltará sobre los guiones que encuentre al final de línea. |
| 1044 |
</p> |
| 1045 |
</dd> |
| 1046 |
<dt><code>-k, --no-skip</code></dt> |
| 1047 |
<dd><p>Prohíbe al usuario saltarse las lecciones o salir de ellas por medio |
| 1048 |
de <tt class="key">ESC ESC</tt>. |
| 1049 |
</p> |
| 1050 |
</dd> |
| 1051 |
<dt><code>-i, --show-errors</code></dt> |
| 1052 |
<dd><p>Resalta los errores con vídeo inverso. |
| 1053 |
</p> |
| 1054 |
</dd> |
| 1055 |
<dt><code>-S, --always-sure</code></dt> |
| 1056 |
<dd><p>Salta las preguntas de confirmación. |
| 1057 |
</p> |
| 1058 |
</dd> |
| 1059 |
<dt><code>--banner-colo[u]rs</code></dt> |
| 1060 |
<dd><p>Cambia el color de las leyendas situadas en la parte superior de la |
| 1061 |
pantalla. Los valores de color son los mismos que los del comando |
| 1062 |
–colo[u]rs. El predeterminado es 0,6,5,1; delantero en negro, fondo |
| 1063 |
en cian, nombre de programa en magenta y nombre de la versión en rojo. |
| 1064 |
</p> |
| 1065 |
</dd> |
| 1066 |
<dt><code>--scoring</code></dt> |
| 1067 |
<dd><p>Cambia la manera de medición. Puede ser <acronym>WPM</acronym> y |
| 1068 |
<acronym>CPM</acronym>, siendo la predeterminada la <acronym>WPM</acronym>. |
| 1069 |
</p> |
| 1070 |
</dd> |
| 1071 |
</dl> |
| 1072 |
|
| 1073 |
<p>También se puede establecer la variable de entorno <code>LANG</code> si se |
| 1074 |
desea ejecutar gtypist en el idioma nativo. Véase <a href="#Variables-de-entorno">Variables de entorno</a>. |
| 1075 |
</p> |
| 1076 |
<p>En algunos idiomas como el español, los mensajes de la interfaz suelen |
| 1077 |
ser más largos que en inglés. Por tanto, quizás sea necesario |
| 1078 |
agrandar la terminal antes de invocar el programa. De lo contrario, |
| 1079 |
el texto de abajo a la izquierda puede solaparse con la cadena de |
| 1080 |
abajo a la derecha. |
| 1081 |
</p> |
| 1082 |
<p><strong>Ejemplos:</strong> |
| 1083 |
</p> |
| 1084 |
<p>Para ejecutar las lecciones predeterminadas <samp>gtypist.typ</samp>:<br> |
| 1085 |
<code>gtypist</code> |
| 1086 |
</p> |
| 1087 |
<p>Para ejecutar la lección en español: <br> |
| 1088 |
<code>gtypist esp.typ</code> |
| 1089 |
</p> |
| 1090 |
<p>Para indicarle a gtypist que busque una lección bar.typ en un |
| 1091 |
directorio no estándar <samp>/home/foo</samp>: <br> |
| 1092 |
<code>export GTYPIST_PATH="/home/foo"</code> |
| 1093 |
<code>gtypist bar.typ</code> |
| 1094 |
</p> |
| 1095 |
<p>Para ejecutar las lecciones del fichero <samp>test.typ</samp> del directorio |
| 1096 |
<samp>/tmp</samp>, comenzando con la etiqueta <code>TEST1</code> y empleando el |
| 1097 |
cursor de la terminal de manera silenciosa:<br> |
| 1098 |
<code>gtypist -t -q -l TEST1 /tmp/test.typ</code> |
| 1099 |
</p> |
| 1100 |
<hr> |
| 1101 |
<a name="Lecciones-suministradas"></a> |
| 1102 |
<a name="Lecciones-suministradas-1"></a> |
| 1103 |
<h2 class="chapter">3 Lecciones suministradas</h2> |
| 1104 |
|
| 1105 |
<p>GNU Typist viene con las siguientes lecciones: |
| 1106 |
</p><dl compact="compact"> |
| 1107 |
<dt><samp>q.typ</samp></dt> |
| 1108 |
<dd><p>Curso rápido de QWERTY en inglés. |
| 1109 |
</p></dd> |
| 1110 |
<dt><samp>r.typ</samp></dt> |
| 1111 |
<dd><p>Curso largo de QWERTY en inglés. |
| 1112 |
</p></dd> |
| 1113 |
<dt><samp>t.typ</samp></dt> |
| 1114 |
<dd><p>Mecanografía al tacto QWERTY en inglés. |
| 1115 |
</p></dd> |
| 1116 |
<dt><samp>v.typ</samp></dt> |
| 1117 |
<dd><p>Otro QWERTY en inglés. |
| 1118 |
</p></dd> |
| 1119 |
<dt><samp>w.typ</samp></dt> |
| 1120 |
<dd><p>Repaso de QWERTY en inglés. |
| 1121 |
</p></dd> |
| 1122 |
<dt><samp>d.typ</samp></dt> |
| 1123 |
<dd><p>Mecanografía al tacto Dvorak en inglés. |
| 1124 |
</p></dd> |
| 1125 |
<dt><samp>m.typ</samp></dt> |
| 1126 |
<dd><p>Entrenamiento mecanográfico en inglés. |
| 1127 |
</p></dd> |
| 1128 |
<dt><samp>s.typ</samp></dt> |
| 1129 |
<dd><p>Entrenamiento de velocidad en inglés. |
| 1130 |
</p></dd> |
| 1131 |
<dt><samp>n.typ</samp></dt> |
| 1132 |
<dd><p>Teclado numérico en inglés. |
| 1133 |
</p></dd> |
| 1134 |
<dt><samp>gtypist.typ</samp></dt> |
| 1135 |
<dd><p>Compendio de todas las lecciones anteriores en inglés. |
| 1136 |
</p></dd> |
| 1137 |
<dt><samp>esp.typ</samp></dt> |
| 1138 |
<dd><p>Curso QWERTY en español. |
| 1139 |
</p></dd> |
| 1140 |
<dt><samp>cs.typ</samp></dt> |
| 1141 |
<dd><p>Lecciones en checo. |
| 1142 |
</p></dd> |
| 1143 |
<dt><samp>ru.typ</samp></dt> |
| 1144 |
<dd><p>Lecciones en ruso. |
| 1145 |
</p></dd> |
| 1146 |
<dt><samp>kt*.typ</samp></dt> |
| 1147 |
<dd><p>Estas lecciones son las estándares de |
| 1148 |
<a href="http://ktouch.sourceforge.net/">Ktouch 1.0</a>, convertidas a |
| 1149 |
formato de fichero gtypist mediante <samp>tools/ktouch2typ.pl</samp>. |
| 1150 |
</p> |
| 1151 |
<p>Los ficheros se llaman <samp>ktde.typ</samp> (<samp>german.ktouch</samp>), |
| 1152 |
<samp>kten.typ</samp> (<samp>english.ktouch</samp>), |
| 1153 |
<samp>ktfr.typ</samp> (<samp>french.ktouch</samp>), |
| 1154 |
<samp>ktfr2.typ</samp> (<samp>french-2.ktouch</samp>), |
| 1155 |
<samp>ktno.typ</samp> (<samp>norwegian.ktouch</samp>) |
| 1156 |
<samp>ktdk.typ</samp> (<samp>danish.ktouch</samp>), |
| 1157 |
<samp>ktdk2.typ</samp> (<samp>danish-2.ktouch</samp>), |
| 1158 |
<samp>ktdvorak.typ</samp> (<samp>dvorak.ktouch</samp>) |
| 1159 |
and <samp>ktnumber.typ</samp> (<samp>number.ktouch</samp>). |
| 1160 |
</p></dd> |
| 1161 |
<dt><samp>ttde.typ</samp></dt> |
| 1162 |
<dd><p>Se trata de la lección en alemán de |
| 1163 |
<a href="http://www.pingos.schulnetz.org/tipptrainer/">tipptrainer</a>, |
| 1164 |
convertida mediante <samp>tools/tt2typ.pl</samp>. |
| 1165 |
</p></dd> |
| 1166 |
</dl> |
| 1167 |
|
| 1168 |
<p>De encontrarse errores en estas lecciones, o si se corrigen de algún |
| 1169 |
modo o se escriben lecciones nuevas, rogamos que se publiquen con una |
| 1170 |
licencia libre y nos lo comuniquen a <a href="mailto:[email protected]">[email protected]</a>. |
| 1171 |
</p> |
| 1172 |
<hr> |
| 1173 |
<a name="Uso-de-typefortune"></a> |
| 1174 |
<a name="Uso-de-typefortune-1"></a> |
| 1175 |
<h2 class="chapter">4 Uso de <code>typefortune</code></h2> |
| 1176 |
|
| 1177 |
<p><code>typefortune</code> permite practicar con textos del programa |
| 1178 |
<code>fortune</code>. |
| 1179 |
</p> |
| 1180 |
<p><code>SYNTAX: typefortune [-dslh] [-n count] [-o <gtypist_opts>]</code> |
| 1181 |
</p> |
| 1182 |
<dl compact="compact"> |
| 1183 |
<dt><code>-d</code></dt> |
| 1184 |
<dd><p>Usa <code>D:</code> en vez de <code>S:</code>. |
| 1185 |
</p> |
| 1186 |
</dd> |
| 1187 |
<dt><code>-s</code></dt> |
| 1188 |
<dd><p>Ejecuta <code>fortune</code> con <code>-s</code>. |
| 1189 |
</p> |
| 1190 |
</dd> |
| 1191 |
<dt><code>-l</code></dt> |
| 1192 |
<dd><p>Ejecuta <code>fortune</code> con <code>-l</code>. |
| 1193 |
</p> |
| 1194 |
</dd> |
| 1195 |
<dt><code>-n <var>cantidad</var></code></dt> |
| 1196 |
<dd><p>Practica esa <var>cantidad</var> de fortunas. |
| 1197 |
</p> |
| 1198 |
</dd> |
| 1199 |
<dt><code>-o <var>opción</var></code></dt> |
| 1200 |
<dd><p>Pasa opciones a <code>gtypist</code>, en la forma <var>opción</var> (opción |
| 1201 |
booleana, e.d. <code>-o word-processor</code>), <var>opción,valor</var> (opción |
| 1202 |
con valor, e.d. <code>-o e,1.0</code>) donde la <var>opción</var> es el nombre de |
| 1203 |
la opción (corta o larga) removidos todos los guiones antepuestos. |
| 1204 |
Hace falta entrecomillar el argumento de <samp>-o</samp> si se va a |
| 1205 |
especificar más de uno: <code>typefortune -n 3 -o 'silent e,5 |
| 1206 |
word-processor'</code>. |
| 1207 |
</p> |
| 1208 |
</dd> |
| 1209 |
</dl> |
| 1210 |
|
| 1211 |
<hr> |
| 1212 |
<a name="Sintaxis-de-las-lecciones"></a> |
| 1213 |
<a name="Comandos-del-fichero-de-script"></a> |
| 1214 |
<h2 class="chapter">5 Comandos del fichero de script</h2> |
| 1215 |
|
| 1216 |
<p>GNU Typist lee los datos de sus lecciones de mecanografía desde un |
| 1217 |
fichero. Con la excepción de los comentarios y de las líneas en |
| 1218 |
blanco, cada línea del fichero está en el formato |
| 1219 |
</p> |
| 1220 |
<p><code>carácter_del_comando : datos_del_comando</code> |
| 1221 |
</p> |
| 1222 |
<p>Aquí, <code>carácter_del_comando</code> es un código de carácter único que |
| 1223 |
define una acción que ha de hacer gtypist, y <code>datos_del_comando</code> |
| 1224 |
son los datos para ese comando. Si <code>carácter_del_comando</code> es un |
| 1225 |
carácter de espacio, eso indica que la línea es continuación del |
| 1226 |
comando precedente que no sea un espacio. El separador ‘<samp>:</samp>’ debe |
| 1227 |
estar en la columna dos de la línea. |
| 1228 |
</p> |
| 1229 |
<p>Las líneas de comentarios son aquellas que comienzan con un carácter |
| 1230 |
‘<samp>#</samp>’ y se ignoran, como se hace igualmente con las líneas en |
| 1231 |
blanco. Las líneas de comentario pueden tener cualquier formato |
| 1232 |
siempre que comiencen con ‘<samp>#</samp>’; las líneas restantes deben tener |
| 1233 |
el formato de arriba. |
| 1234 |
</p> |
| 1235 |
<p>Será conveniente leer la introducción para familiarizarse con los |
| 1236 |
fundamentos: Véase <a href="#Introduccion">Introduccion</a>. |
| 1237 |
</p> |
| 1238 |
<p>La siguiente es la lista de valores <code>carácter_del_comando</code> |
| 1239 |
válidos: |
| 1240 |
</p> |
| 1241 |
<dl compact="compact"> |
| 1242 |
<dt><code>B</code></dt> |
| 1243 |
<dd><p>Este comando limpia la pantalla entera. Si hay presente algún |
| 1244 |
<code>datos_del_comando</code>, se muestra en la leyenda de una línea que |
| 1245 |
hay en la parte superior de la pantalla y permanece ahí hasta el |
| 1246 |
siguiente comando <code>B</code>. Este comando no se puede continuar en la |
| 1247 |
línea siguiente; es un comando de una sola línea. |
| 1248 |
</p> |
| 1249 |
</dd> |
| 1250 |
<dt><code>T</code></dt> |
| 1251 |
<dd><p>Presenta una tutoría y se trata de un comando multi-línea, hasta el |
| 1252 |
límite de la longitud de la pantalla. Cada línea del comando |
| 1253 |
simplemente se imprime en la pantalla. Este comando limpia toda la |
| 1254 |
pantalla por debajo de la línea de la leyenda superior. Después de |
| 1255 |
producirse la visualización, el programa espera antes de proceder. |
| 1256 |
</p> |
| 1257 |
</dd> |
| 1258 |
<dt><code>*</code></dt> |
| 1259 |
<dd><p>Esto indica una etiqueta en el fichero. La etiqueta puede ser el |
| 1260 |
destino de un comando <code>G</code>, <code>Y</code>, <code>N</code> o <code>F</code>. Las |
| 1261 |
etiquetas pueden contener cualesquier caracteres, incluso espacios, y |
| 1262 |
son comandos de una sola línea. Han de ser únicas dentro de los |
| 1263 |
ficheros de lecciones. Se ignora el espacio en blanco al final de las |
| 1264 |
etiquetas. |
| 1265 |
</p> |
| 1266 |
</dd> |
| 1267 |
<dt><code>I</code></dt> |
| 1268 |
<dd><p>El comando <code>I</code> puede mostrar algunas breves instrucciones por |
| 1269 |
encima de un entrenamiento o prueba de velocidad. Sólo se permite |
| 1270 |
como máximo dos líneas. A diferencia del comando <code>T</code>, no espera |
| 1271 |
por ninguna otra pulsación de tecla antes de proceder. Así que |
| 1272 |
realmente siempre le debería seguir un ejercicio. Limpia el área |
| 1273 |
entera de ejercicios de la pantalla, así que en este sentido es como |
| 1274 |
un <code>T</code> de dos líneas. |
| 1275 |
</p> |
| 1276 |
</dd> |
| 1277 |
<dt><code>M</code></dt> |
| 1278 |
<dd><p>Este comando es la nueva vía para crear menús (desde gtypist 2.7). |
| 1279 |
Esta es la sintaxis: |
| 1280 |
</p> |
| 1281 |
<div class="example"> |
| 1282 |
<pre class="example">M: [UP=ETIQUETA_DE-RETORNO|_EXIT] "título" |
| 1283 |
:ETIQUETA1 "elemento1" |
| 1284 |
:ETIQUETA2 "elemento2" |
| 1285 |
... |
| 1286 |
</pre></div> |
| 1287 |
|
| 1288 |
<p>Esto muestra un menú conveniente compuesto por los elementos |
| 1289 |
especificados y deja que el usuario elija uno de ellos. Si se |
| 1290 |
selecciona un elemento, gtypist continúa la ejecución del script a |
| 1291 |
partir de la etiqueta correspondiente. Si se presionó la tecla Escape |
| 1292 |
y la etiqueta <code>UP</code> está definida, gtypist va igualmente a la |
| 1293 |
etiqueta <code>UP</code>, o sale de allí, si hay un <code>``_EXIT''</code> en |
| 1294 |
lugar de la etiqueta. Si la etiqueta <code>UP</code> no está definida, |
| 1295 |
gtypist intenta regresar al menú anterior y salta a la última etiqueta |
| 1296 |
encontrada en el script anterior al comando <code>M</code> previo. Si no |
| 1297 |
hubiera tal etiqueta y se mostró algún menú antes del actual, gtypist |
| 1298 |
se limitará a ir al comienzo del script. Si no se cumple ninguna de |
| 1299 |
las condiciones anteriores, gtypist sale del script. |
| 1300 |
</p> |
| 1301 |
<p>Los detalles de arriba hacen natural la creación de jerarquías de |
| 1302 |
menús sin tener que usar etiquetas <code>UP</code>. |
| 1303 |
</p> |
| 1304 |
<p>El título y todas las descripciones deben encerrarse entre comillas |
| 1305 |
(""). Además debe haber como mínimo un espacio entre <code>UP=XXX</code> y |
| 1306 |
"título" y entre las etiquetas y las descripciones correspondientes. |
| 1307 |
</p> |
| 1308 |
<p>Este comando se introdujo como una vía para disponer fácilmente |
| 1309 |
diversas partes de los ficheros de lecciones en una única jerarquía de |
| 1310 |
menú, así como reemplazo para los antiguos menús de la tecla <code>F</code>. |
| 1311 |
Hay ejemplos en los ficheros de lecciones. |
| 1312 |
</p> |
| 1313 |
</dd> |
| 1314 |
<dt><code>D,d</code></dt> |
| 1315 |
<dd><p>Este comando se llama <em>entrenamiento</em> y es uno de los dos tipos de |
| 1316 |
ejercicios mecanográficos. |
| 1317 |
</p> |
| 1318 |
<p>Es un comando multi-línea. El texto se muestra en cada línea alterna, |
| 1319 |
y el usuario escribe en las intermedias. Debido a ello, no se puede |
| 1320 |
usar más de 11 líneas de contenido. |
| 1321 |
</p> |
| 1322 |
<p>Este tipo de ejercicio se supone que está para el entrenamiento de los |
| 1323 |
dedos (e.d. jfjfjjf), pero también puede contener palabras y frases |
| 1324 |
completas |
| 1325 |
si se usan para practicar algo (e.d. una letra/sílaba/"grip") y no son |
| 1326 |
textos reales. |
| 1327 |
</p> |
| 1328 |
<p>La versión en minúscula <code>d</code> es un entrenamiento de “sólo |
| 1329 |
práctica”; el usuario no tiene que repetirlo si tiene demasiadas |
| 1330 |
equivocaciones. |
| 1331 |
</p> |
| 1332 |
</dd> |
| 1333 |
<dt><code>S,s</code></dt> |
| 1334 |
<dd><p>Este es el segundo tipo de ejercicio de mecanografía: la <em>prueba |
| 1335 |
de velocidad</em>. |
| 1336 |
</p> |
| 1337 |
<p>Es un comando multi-línea. Muestra su texto en pantalla y le pide al |
| 1338 |
usuario que escriba sobre él. Es el motivo por lo que se puede tener |
| 1339 |
hasta 22 líneas de texto en estos ejercicios. En las pruebas de |
| 1340 |
velocidad se pueden corregir los fallos, pero con ello no se disminuye |
| 1341 |
la cuenta de errores. |
| 1342 |
</p> |
| 1343 |
<p>Las pruebas de velocidad se deberían usar para mecanografiar |
| 1344 |
(principalmente) frases completas, textos o ficheros (e.d. cartas, |
| 1345 |
ficheros texinfo/html/tex). |
| 1346 |
</p> |
| 1347 |
<p>La versión en minúscula <code>s</code> es una <em>prueba de velocidad de |
| 1348 |
sólo práctica</em>: el usuario no tiene que repetirla en el caso de |
| 1349 |
cometer demasiados fallos. |
| 1350 |
</p> |
| 1351 |
</dd> |
| 1352 |
<dt><code>G</code></dt> |
| 1353 |
<dd><p>Causa que ‘<samp>gtypist</samp>’ vaya a la etiqueta que hay en |
| 1354 |
<code>datos_del_comando</code> y continúe allí la ejecución del script. |
| 1355 |
Consiste en una única línea de comandos. |
| 1356 |
</p> |
| 1357 |
</dd> |
| 1358 |
<dt><code>Q</code></dt> |
| 1359 |
<dd><p>Este comando presenta un texto en la línea de mensajes y espera por |
| 1360 |
una respuesta de <tt class="key">Y</tt> o <tt class="key">N</tt> antes de proceder. Se ignora el |
| 1361 |
resto de caracteres. |
| 1362 |
</p> |
| 1363 |
<p>Como efecto colateral, se puede presionar una tecla de función si está |
| 1364 |
asociada (una vía ya desaconsejada de crear el indicador de los |
| 1365 |
menús). |
| 1366 |
</p> |
| 1367 |
</dd> |
| 1368 |
<dt><code>Y</code></dt> |
| 1369 |
<dd><p>Es como <code>G</code>, excepto que el goto se ejecuta sólo si el resultado |
| 1370 |
del último comando <code>Q</code> fue <tt class="key">Y</tt>. |
| 1371 |
</p> |
| 1372 |
</dd> |
| 1373 |
<dt><code>N</code></dt> |
| 1374 |
<dd><p>Es como <code>G</code>, excepto que el goto se ejecuta sólo si el resultado |
| 1375 |
del último comando <code>Q</code> fue <tt class="key">N</tt>. |
| 1376 |
</p> |
| 1377 |
</dd> |
| 1378 |
<dt><code>K</code></dt> |
| 1379 |
<dd><p><em>Esta comando está desaconsejado en favor de <kbd>M</kbd>:</em> Este |
| 1380 |
comando asocia una tecla de función a una etiqueta. El formato de la |
| 1381 |
línea de datos que sigue a este comando debe ser |
| 1382 |
<code>fkey_number:label</code>, donde <code>fkey_number</code> es el número de una |
| 1383 |
tecla de función entre 1 y 12, y <code>label</code> es una etiqueta a la que |
| 1384 |
ir cuando se presiona este tecla. Si la etiqueta tiene el valor NULL, |
| 1385 |
se elimina cualquier asociación que la tecla tenga con alguna |
| 1386 |
etiqueta. |
| 1387 |
</p> |
| 1388 |
<p>Si las teclas de función no están disponibles en la terminal, se |
| 1389 |
pueden usar otras teclas: de <tt class="key">1</tt> a <tt class="key">9</tt> para reemplazar de |
| 1390 |
<tt class="key">F1</tt> a <tt class="key">F9</tt>, <tt class="key">0</tt> para reemplazar <tt class="key">F10</tt>, <tt class="key">A</tt> para |
| 1391 |
<tt class="key">F11</tt> y <tt class="key">S</tt> para <tt class="key">F12</tt>. |
| 1392 |
</p> |
| 1393 |
<p>Otras alternativas para las teclas <tt class="key">F1</tt>-<tt class="key">F12</tt> son las |
| 1394 |
combinaciones: <tt class="key">Ctrl-Q</tt>, <tt class="key">Ctrl-W</tt>, <tt class="key">Ctrl-E</tt>, <tt class="key">Ctrl-R</tt>, |
| 1395 |
<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>, |
| 1396 |
<tt class="key">Ctrl-P</tt>, <tt class="key">Ctrl-A</tt> y <tt class="key">Ctrl-S</tt>. |
| 1397 |
</p> |
| 1398 |
<p>Esto también es útil cuando las teclas de función quedan interceptadas |
| 1399 |
por otros programas (por ejemplo, algunos gestores de ventanas). |
| 1400 |
</p> |
| 1401 |
</dd> |
| 1402 |
<dt><code>E</code></dt> |
| 1403 |
<dd><p>Este comando se usa para establecer la tasa máxima de error permitida |
| 1404 |
para el siguiente entrenamiento (<code>E:<value>%</code>) o para todas las |
| 1405 |
prácticas posteriores hasta la siguiente <code>E:</code> |
| 1406 |
(<code>E:<value>%*</code>). |
| 1407 |
</p> |
| 1408 |
<p>Si se especifica <samp>--error-max/-e</samp>, entonces este comando sólo |
| 1409 |
surte efecto si es ——–> <em>stricter</em> que el valor especificado |
| 1410 |
en la línea de comandos. |
| 1411 |
</p> |
| 1412 |
<p>Los <code>datos_del_comando</code> consisten en el valor (entre 0.0 y 100.0), |
| 1413 |
seguido de ‘<samp>%</samp>’ (se requiere para que los scripts sean más |
| 1414 |
legibles). La palabra <code>default</code> o <code>Default</code> lo re-establece |
| 1415 |
en su valor predeterminado. |
| 1416 |
</p> |
| 1417 |
</dd> |
| 1418 |
<dt><code>F</code></dt> |
| 1419 |
<dd><p>Este comando (“etiqueta de al-fallar”) se usa para decidir la |
| 1420 |
etiqueta (en <code>datos_del_comando</code>) a donde el usuario habrá de ir |
| 1421 |
si falla un ejercicio. |
| 1422 |
</p> |
| 1423 |
<p>Lo habitual es que este comando sólo sea de aplicación en el ejercicio |
| 1424 |
siguiente, pero el usuario puede convertirlo en persistente si pone un |
| 1425 |
‘<samp>*</samp>’ al final de los <code>datos_del_comando</code>. |
| 1426 |
</p> |
| 1427 |
<p>Si se pone NULL, esto reinicia la etiqueta. |
| 1428 |
</p> |
| 1429 |
</dd> |
| 1430 |
<dt><code>X</code></dt> |
| 1431 |
<dd><p>Este comando causa que Gtypist finalice. Es de una sola línea. Se |
| 1432 |
ignoran los <code>datos_del_comando</code>. El programa también finaliza si |
| 1433 |
se encuentra el final del fichero (así que también se podría poner una |
| 1434 |
etiqueta allí y simplemente hacer <code>G</code> en ella) |
| 1435 |
</p> |
| 1436 |
</dd> |
| 1437 |
</dl> |
| 1438 |
|
| 1439 |
|
| 1440 |
<p>Este es un script de ejemplo para mostrar los comandos disponibles en |
| 1441 |
el fichero de lección (<samp>tinydemo.typ</samp>): |
| 1442 |
</p> |
| 1443 |
<div class="example"> |
| 1444 |
<pre class="example"># Demostración mínima |
| 1445 |
B: Demostración del tutor mecanográfico |
| 1446 |
*:LOOP |
| 1447 |
K:1:QDONE |
| 1448 |
T:Este es un pequeño ejemplo de tutoría. Un ejemplo |
| 1449 |
:mejor se encuentra en el fichero demo.typ que |
| 1450 |
:acompaña a GNU Typist |
| 1451 |
I:Este es un ejemplo de un ejercicio: |
| 1452 |
D:asdf ghjkl; |
| 1453 |
I:Y este lo es de una prueba de velocidad: |
| 1454 |
S:qwe rt yu iop |
| 1455 |
*:QDONE |
| 1456 |
Q:¿Ha visto suficiente? [Y/N] |
| 1457 |
N:LOOP |
| 1458 |
X: |
| 1459 |
</pre></div> |
| 1460 |
|
| 1461 |
|
| 1462 |
<hr> |
| 1463 |
<a name="Lecciones-nuevas"></a> |
| 1464 |
<a name="Creacion-de-lecciones-nuevas"></a> |
| 1465 |
<h2 class="chapter">6 Creación de lecciones nuevas</h2> |
| 1466 |
|
| 1467 |
<p>Esta sección proporciona indicaciones y sugerencias para la creación |
| 1468 |
de lecciones nuevas (o la mejora de las existentes). |
| 1469 |
</p> |
| 1470 |
|
| 1471 |
|
| 1472 |
<hr> |
| 1473 |
<a name="Lecciones-Ktouch"></a> |
| 1474 |
<a name="Lecciones-Ktouch-1"></a> |
| 1475 |
<h3 class="section">6.1 Lecciones Ktouch</h3> |
| 1476 |
|
| 1477 |
<p>Una vía muy fácil de escribir lecciones es hacerlo en el formato que |
| 1478 |
emplea <code>ktouch</code> y después convertirlas a lecciones de Gtypist |
| 1479 |
usando <code>tools/ktouch2typ.pl</code>. Este programa se cuida de |
| 1480 |
escribir las “tablas de saltos”, un menú y un poco más. |
| 1481 |
</p> |
| 1482 |
<p>El formato ktouch consiste sólo en lecciones, que están precedidas por |
| 1483 |
sus nombres y separadas por líneas en blanco y/o comentarios (‘<samp>#</samp>’ |
| 1484 |
al principio de las líneas). Así que la primera línea del fichero que |
| 1485 |
no esté en blanco y no sea un comentario es el nombre de la primera |
| 1486 |
lección y esta primera lección consiste en todas las líneas hasta la |
| 1487 |
siguiente que sea un comentario o esté en blanco. Tras el separador |
| 1488 |
(comentario o línea en blanco) sigue el nombre de la segunda lección y |
| 1489 |
así sucesivamente. |
| 1490 |
</p> |
| 1491 |
<p>Esta es una muestra de un fichero ktouch con tres lecciones (extraídas |
| 1492 |
de las tres primeras lecciones de <samp>german.ktouch</samp>): |
| 1493 |
</p> |
| 1494 |
<div class="example"> |
| 1495 |
<pre class="example"># |
| 1496 |
# Deutsche Training-Datei für KTouch |
| 1497 |
# |
| 1498 |
|
| 1499 |
Grundstellung |
| 1500 |
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 |
| 1501 |
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 |
| 1502 |
fff jjj fff jjj jjj fff jjj fff fjf fjf fjf jfj jfj jfj fjf jfjfj |
| 1503 |
|
| 1504 |
Grundstellung |
| 1505 |
fff jjj ddd kkk aaa ööö fff jjj ddd kkk aaa ööö fff jjj ddd kkkff |
| 1506 |
fda jkö fda jkö fda jkö fda jkö fda jkö fda jkö fda jkö fda jköfd |
| 1507 |
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 |
| 1508 |
|
| 1509 |
#Zwei wichtige Vokale: e und i |
| 1510 |
e und i |
| 1511 |
asdf ölkj fdsa jklö asdf ölkj fdsa jklö asdf ölkj fdsa jklö asdfö |
| 1512 |
das dass lös fad dass lös als dass las lös fad dass als dass dass |
| 1513 |
ded ded ded dej dek del deö ded deö del dek dej ded dej dek delde |
| 1514 |
</pre></div> |
| 1515 |
|
| 1516 |
<p>Una vez que esté hecha, se usa <code>tools/ktouch2typ.pl</code> para |
| 1517 |
convertir el fichero : ‘<samp>ktouch2typ.pl lesson.ktouch</samp>’ convierte |
| 1518 |
<samp>lesson.ktouch</samp> en <samp>lesson.typ</samp>. Es importante que el |
| 1519 |
fichero de entrada finalice en ‘<samp>.ktouch</samp>’, de lo contrario |
| 1520 |
<code>ktouch2typ.pl</code> lo saltará. Advertencia: esto sobre-escribe |
| 1521 |
<samp>lesson.typ</samp> sin comunicarlo. |
| 1522 |
</p> |
| 1523 |
<p>Se puede personalizar el número de líneas que emplea |
| 1524 |
<code>ktouch2typ.pl</code> para cada práctica, modificando la variable |
| 1525 |
pertinente en <samp>tools/ktouch2typ.pl</samp>. |
| 1526 |
</p> |
| 1527 |
<p>Obviamente, la desventaja de este método es que no se pueden |
| 1528 |
aprovechar todas las características de Gtypist (pero el fichero de |
| 1529 |
salida es muy legible, así que se puede editar para introducirle más |
| 1530 |
características del programa). |
| 1531 |
</p> |
| 1532 |
<hr> |
| 1533 |
<a name="Ejercicios-de-fortune"></a> |
| 1534 |
<a name="Ejercicios-a-partir-de-fortune"></a> |
| 1535 |
<h3 class="section">6.2 Ejercicios a partir de <code>fortune</code></h3> |
| 1536 |
|
| 1537 |
<p>Con <samp>gtypist-mode.el</samp> se pueden crear rápidamente lecciones con |
| 1538 |
texto del programa <code>fortune</code> (o el interno de Emacs |
| 1539 |
<code>yow</code> si ni se tiene <code>fortune</code>, lo habitual en |
| 1540 |
Windows). |
| 1541 |
</p> |
| 1542 |
<p>Una vez instalado <samp>gtypist-mode.el</samp> (véase <a href="#Modo-para-Emacs">Modo para Emacs</a>), se |
| 1543 |
puede abrir un fichero con la extensión ‘<samp>.typ</samp>’ y ejecutar |
| 1544 |
<kbd>C-c C-f</kbd> para crear una práctica (<code>D:</code> es la predeterminada, |
| 1545 |
se usa <kbd>C-u</kbd> o <kbd>C-u C-u</kbd> para cambiarla). |
| 1546 |
</p> |
| 1547 |
<hr> |
| 1548 |
<a name="Patrones-para-lecciones"></a> |
| 1549 |
<a name="Diseno-de-patrones-para-lecciones"></a> |
| 1550 |
<h3 class="section">6.3 Diseño de patrones para lecciones</h3> |
| 1551 |
|
| 1552 |
<p>[NdT: aquí se mezcla el contenido normal de un manual de uso del |
| 1553 |
programa con asuntos específicos pedagógicos acerca de la |
| 1554 |
mecanografía; y se hace de manera pobre. Sería preferible remitir a |
| 1555 |
otro documento.] |
| 1556 |
</p> |
| 1557 |
<a name="Estructura-de-los-ficheros-de-lecciones"></a> |
| 1558 |
<h4 class="subsection">6.3.1 Estructura de los ficheros de lecciones</h4> |
| 1559 |
|
| 1560 |
<ul> |
| 1561 |
<li> Empléese una mezcla de entrenamientos y pruebas de velocidad |
| 1562 |
(más divertido para el usuario). |
| 1563 |
|
| 1564 |
</li><li> Algunos ejercicios de “sólo práctica” (<code>d:</code>/<code>s:</code>) |
| 1565 |
(mezclados posiblemente con algunos ejercicios “reales”) seguidos |
| 1566 |
por un “test final”. <samp>esp.typ</samp> emplea este esquema. |
| 1567 |
</li></ul> |
| 1568 |
|
| 1569 |
<a name="Patrones-para-ejercicios"></a> |
| 1570 |
<h4 class="subsection">6.3.2 Patrones para ejercicios</h4> |
| 1571 |
|
| 1572 |
<ul> |
| 1573 |
<li> Cuando se introduce una tecla nueva, se comienza mezclando otras |
| 1574 |
teclas (ya conocidas) para el mismo dedo. Este es un ejemplo de |
| 1575 |
<samp>t.typ</samp>, línea 237: |
| 1576 |
|
| 1577 |
<div class="example"> |
| 1578 |
<pre class="example">I:Emplee el dedo J para la tecla H. |
| 1579 |
*:_T_R_L23 |
| 1580 |
D:jjj jhj jjj jhj jjj jhj |
| 1581 |
</pre></div> |
| 1582 |
|
| 1583 |
</li><li> usar ’palabra, palabra.’ de manera repetida para practicar la ,/. |
| 1584 |
</li></ul> |
| 1585 |
|
| 1586 |
<hr> |
| 1587 |
<a name="Findwords"></a> |
| 1588 |
<a name="El-script-findwords"></a> |
| 1589 |
<h3 class="section">6.4 El script <code>findwords</code></h3> |
| 1590 |
|
| 1591 |
<p>El script <samp>tools/findwords</samp> que se encuentra en las fuentes de |
| 1592 |
GNU Typist está para asistir en la creación de lecciones nuevas. |
| 1593 |
</p> |
| 1594 |
<a name="Proposito"></a> |
| 1595 |
<h4 class="subsection">6.4.1 Propósito</h4> |
| 1596 |
|
| 1597 |
<p>Al principio se crea un tutor desde cero, no es fácil formar palabras |
| 1598 |
ni frases cuando el intervalo de letras que se pueden usar está |
| 1599 |
restringido. A veces se quiere insertar algún párrafo “destinado” a |
| 1600 |
alguna combinación especial de dos o tres letras. Esto es incluso más |
| 1601 |
difícil. |
| 1602 |
</p> |
| 1603 |
<p>Por este motivo hemos creado <code>findwords</code>. Este programa |
| 1604 |
emplea los diccionarios de <code>aspell</code> (un corrector ortográfico |
| 1605 |
multi-lingüe y libre). |
| 1606 |
</p> |
| 1607 |
<a name="Instalacion"></a> |
| 1608 |
<h4 class="subsection">6.4.2 Instalación</h4> |
| 1609 |
|
| 1610 |
<p>Se necesitan los paquetes <samp>aspell</samp> y <samp>aspell-LG</samp>, donde LG |
| 1611 |
es el código de idioma ISO del idioma que se quiere usar. |
| 1612 |
</p> |
| 1613 |
<p>Tras su correcta instalación habrá que hacer un pequeño cambio en la |
| 1614 |
configuración para que el banco de datos maestro de aspell sea el del |
| 1615 |
idioma elegido. Esto se puede hacer por dos vías: |
| 1616 |
</p> |
| 1617 |
<ol> |
| 1618 |
<li> En el directorio personal se crea el fichero |
| 1619 |
<samp>.aspell.conf</samp> y se le añade esta línea: <br> <code>master |
| 1620 |
LANGUAGE</code> |
| 1621 |
|
| 1622 |
</li><li> Se crea <samp>/usr/share/pspell/LG-aspell.pwli</samp> y se le añade |
| 1623 |
esta línea: <br> <code>/usr/lib/aspell/LG</code> <br> Hay que asegurarse de que |
| 1624 |
el ajuste ‘<samp>locale</samp>’ es ‘<samp>LG</samp>’. |
| 1625 |
</li></ol> |
| 1626 |
|
| 1627 |
<p>En lo de arriba, LG significa código de idioma ISO (vg. ‘<samp>en</samp>’, |
| 1628 |
‘<samp>fr</samp>’, ‘<samp>cs</samp>’) y LANGUAGE significa nombre del banco de datos |
| 1629 |
que hay en <samp>/usr/lib/aspell</samp> (vg. <samp>english.multi</samp>, |
| 1630 |
<samp>french</samp>, <samp>czech</samp>). |
| 1631 |
</p> |
| 1632 |
<p>Se puede verificar si funciona escribiendo: |
| 1633 |
</p> |
| 1634 |
<div class="example"> |
| 1635 |
<pre class="example">aspell dump master | less |
| 1636 |
</pre></div> |
| 1637 |
|
| 1638 |
<a name="Uso-de-findwords"></a> |
| 1639 |
<h4 class="subsection">6.4.3 Uso de <code>findwords</code></h4> |
| 1640 |
|
| 1641 |
<p>La sintaxis es como sigue: <br> |
| 1642 |
</p> |
| 1643 |
<p><code>./findwords <var>letras</var> [<var>combinación</var>]</code> |
| 1644 |
</p> |
| 1645 |
<p>En el argumento <var>letras</var>, obligatorio, se deben listar las letras |
| 1646 |
que se quieren usar, sin ningún espacio. Si se pone un punto (‘.’) |
| 1647 |
nos referimos a ‘todas las letras’. El segundo argumento, |
| 1648 |
<var>combinación</var>, es optativo y con él se especifican las |
| 1649 |
combinaciones de teclas que se están buscando. |
| 1650 |
</p> |
| 1651 |
<p>Algunos ejemplos: |
| 1652 |
</p><ul> |
| 1653 |
<li> <code>./findwords asdfjkleruio</code> <br> |
| 1654 |
Buscamos todas las palabras compuestas con las letras listadas. |
| 1655 |
|
| 1656 |
</li><li> <code>./findwords asdfjkleruio sa</code> <br> |
| 1657 |
Buscamos palabras que contengan la combinación ‘<samp>sa</samp>’, pero sólo |
| 1658 |
aquellas compuestas con las letras especificadas. |
| 1659 |
|
| 1660 |
</li><li> <code>./findwords . col</code> <br> |
| 1661 |
Palabras que contengan todas las letras, pero que tengan ‘<samp>col</samp>’ en |
| 1662 |
alguna parte dentro de ellas. |
| 1663 |
</li></ul> |
| 1664 |
|
| 1665 |
<hr> |
| 1666 |
<a name="Modo-para-Emacs"></a> |
| 1667 |
<a name="El-modo-para-Emacs"></a> |
| 1668 |
<h2 class="chapter">7 El modo para Emacs</h2> |
| 1669 |
|
| 1670 |
<p>gtypist viene ahora con un modo mayor para Emacs que hace resaltado de |
| 1671 |
sintaxis, sangrado y posee algunos comandos convenientes para contar |
| 1672 |
etiquetas, ir a ellas, insertar leyendas centradas adecuadamente, |
| 1673 |
comentarios especiales y un poco más. |
| 1674 |
</p> |
| 1675 |
<p>Se copia el fichero <samp>tools/gtypist-mode.el</samp> a donde sea que se |
| 1676 |
tengan los ficheros elisp locales (v.g. <samp>~/elisp</samp>) y se pone |
| 1677 |
esto en al <samp>~/.emacs</samp> (adáptese la ruta): |
| 1678 |
</p> |
| 1679 |
<div class="lisp"> |
| 1680 |
<pre class="lisp">(autoload 'gtypist-mode "~/elisp/gtypist-mode") |
| 1681 |
</pre></div> |
| 1682 |
|
| 1683 |
<p>o se pone en la <code>load-path</code> (‘<samp>make install</samp>’ en las fuentes o |
| 1684 |
el paquete Debian, que ya lo hace solo) y se usa esto: |
| 1685 |
</p> |
| 1686 |
<div class="lisp"> |
| 1687 |
<pre class="lisp">(autoload 'gtypist-mode "gtypist-mode") |
| 1688 |
</pre></div> |
| 1689 |
|
| 1690 |
<p><strong>y</strong> se añade esto al <samp>~/.emacs</samp>: |
| 1691 |
</p> |
| 1692 |
<div class="lisp"> |
| 1693 |
<pre class="lisp">(setq auto-mode-alist |
| 1694 |
(cons '("\\.typ\\'" . gtypist-mode) auto-mode-alist)) |
| 1695 |
</pre></div> |
| 1696 |
|
| 1697 |
|
| 1698 |
<p>Todo esto también se menciona en la sección README del fichero |
| 1699 |
<samp>tools/gtypist-mode.el</samp>. |
| 1700 |
</p> |
| 1701 |
<p>Estos son los comandos junto con sus asociaciones de teclas: |
| 1702 |
</p> |
| 1703 |
<dl compact="compact"> |
| 1704 |
<dt><kbd>C-c C-i, M-x gtypist-mode-info</kbd></dt> |
| 1705 |
<dd><p>Con esto se muestra la documentación de gtypist, comenzando en el nodo |
| 1706 |
“Sintaxis de las lecciones” (véase <a href="#Sintaxis-de-las-lecciones">Sintaxis de las lecciones</a>). |
| 1707 |
Con prefijo, comienza en el nodo superior. |
| 1708 |
</p> |
| 1709 |
</dd> |
| 1710 |
<dt><kbd>C-c M-g, M-x gtypist-mode-goto-label</kbd></dt> |
| 1711 |
<dd><p>Pide una etiqueta a la que ir (con completado). |
| 1712 |
</p> |
| 1713 |
</dd> |
| 1714 |
<dt><kbd>C-c C-l, M-x gtypist-mode-next-label</kbd></dt> |
| 1715 |
<dd><p>Este comando inserta la siguiente etiqueta en una secuencia numerada. |
| 1716 |
Por ejemplo, si se inserta |
| 1717 |
</p> |
| 1718 |
<div class="example"> |
| 1719 |
<pre class="example">*:SERIES1_L1 |
| 1720 |
</pre></div> |
| 1721 |
|
| 1722 |
<p>y se presiona <kbd>C-c C-l</kbd>, entonces el modo gtypist insertará |
| 1723 |
</p> |
| 1724 |
<div class="example"> |
| 1725 |
<pre class="example">*:SERIES1_L2 |
| 1726 |
</pre></div> |
| 1727 |
|
| 1728 |
</dd> |
| 1729 |
<dt><kbd>C-c C-b, M-x gtypist-mode-insert-banner</kbd></dt> |
| 1730 |
<dd><p>Este comando inserta un comando <code>B:</code> centrado. Se centra en 66 |
| 1731 |
columnas porque “gtypist <version>” está en la esquema derecha (pide |
| 1732 |
el contenido). |
| 1733 |
</p> |
| 1734 |
</dd> |
| 1735 |
<dt><kbd>C-c C-r, M-x gtypist-mode-insert-hrule</kbd></dt> |
| 1736 |
<dd><p>Inserta una línea horizontal (comentario) consistente en guiones. |
| 1737 |
</p> |
| 1738 |
</dd> |
| 1739 |
<dt><kbd>C-c C-n, M-x gtypist-mode-new-lesson</kbd></dt> |
| 1740 |
<dd><p>Inserta los comentarios (cabecera) y una etiqueta para empezar una |
| 1741 |
lección nueva (pide el nombre). |
| 1742 |
</p> |
| 1743 |
</dd> |
| 1744 |
<dt><kbd>C-c C-f, M-x gtypist-mode-fortune-to-drill</kbd></dt> |
| 1745 |
<dd><p>Inserta un entrenamiento (<code>D:</code>) con texto de <code>fortune</code> (o |
| 1746 |
<code>yow</code> si <code>fortune</code> no está disponible). Se usa el |
| 1747 |
prefijo <kbd>C-u</kbd> para obtener <code>S:</code>, y <kbd>C-u C-u</kbd> para obtener |
| 1748 |
<code>d:</code>. |
| 1749 |
</p> |
| 1750 |
</dd> |
| 1751 |
</dl> |
| 1752 |
|
| 1753 |
<p>Ejecutando <kbd>C-h m</kbd> se consigue la lista completa de comandos y sus |
| 1754 |
asociaciones de teclas. |
| 1755 |
</p> |
| 1756 |
<p>Quien localice fallos o piense que hay alguna otra cosa que podría |
| 1757 |
introducirse, puede escribir a <a href="mailto:[email protected]">[email protected]</a>. |
| 1758 |
</p> |
| 1759 |
<hr> |
| 1760 |
<a name="Variables-de-entorno"></a> |
| 1761 |
<a name="Variables-de-entorno-1"></a> |
| 1762 |
<h2 class="chapter">8 Variables de entorno</h2> |
| 1763 |
|
| 1764 |
<p>GNU Typist emplea las siguientes variables de entorno: |
| 1765 |
</p> |
| 1766 |
<dl compact="compact"> |
| 1767 |
<dt><code>LANG</code></dt> |
| 1768 |
<dd> |
| 1769 |
<p>GNU Typist ofrece soporte en idioma nativo (Native Language Support, |
| 1770 |
NLS) mediante la biblioteca ‘<samp>gettext</samp>’, esto significa que si el |
| 1771 |
sistema lo admite, se puede elegir el idioma en que se muestren los |
| 1772 |
mensajes. Por ahora <code>gtypist</code> se distribuye con mensajes en |
| 1773 |
alemán, checo, español, francés, inglés y suomi. Para usar un NLS |
| 1774 |
particular se emplea la variable de entorno LANG y se pone en la |
| 1775 |
combinación apropiada de ‘<samp>LL_CC</samp>’, donde ‘<samp>LL</samp>’ es un código de |
| 1776 |
idioma ISO 639 de dos letras y ‘<samp>CC</samp>’ es un código de país ISO 3166 |
| 1777 |
de dos letras (v.g. ‘<samp>es_ES</samp>’ para España y <code>de_DE</code> para |
| 1778 |
Alemania). En algunos sistemas también será necesario poner la |
| 1779 |
variable de entorno LANGUAGE en el mismo valor. |
| 1780 |
</p> |
| 1781 |
<p>Quien desee traducir los mensajes a otros idiomas (o corregir los ya |
| 1782 |
traducidos), se puede comunicar con <a href="mailto:[email protected]">[email protected]</a>. |
| 1783 |
</p> |
| 1784 |
|
| 1785 |
</dd> |
| 1786 |
<dt><code>GTYPIST_PATH</code></dt> |
| 1787 |
<dd><p>Lista los directorios en donde buscará el programa los ficheros. |
| 1788 |
Tiene el formato estándar de las rutas, esto es, una lista de |
| 1789 |
directorios separados por ‘<samp>:</samp>’. Para visitar un fichero, gtypist |
| 1790 |
lo intentará como sigue: (1) usar sólo el nombre del fichero (2) |
| 1791 |
agregará cada uno de los directorios especificados en a variable |
| 1792 |
<code>GTYPIST_PATH</code> y (3) agregará el directorio usado durante el |
| 1793 |
proceso de instalación (v.g. <samp>/usr/local/share/gtypist</samp> o |
| 1794 |
<samp>/usr/share/gtypist</samp>). |
| 1795 |
</p> |
| 1796 |
</dd> |
| 1797 |
<dt><code>TERM</code></dt> |
| 1798 |
<dd><p>Lo emplea curses para manejarse con la terminal. |
| 1799 |
</p> |
| 1800 |
</dd> |
| 1801 |
<dt><code>TERMINFO</code></dt> |
| 1802 |
<dd><p>Es posible que esto tenga que establecerse si la ruta al banco de |
| 1803 |
datos <code>terminfo</code> es diferente entre el sistema en el que se |
| 1804 |
compiló el binario y aquel en que se ejecuta. Por ejemplo, en los |
| 1805 |
sistemas Slackware antiguos, el banco de datos terminfo reside en |
| 1806 |
<samp>/usr/lib/terminfo</samp>. En RedHat Linux, está en |
| 1807 |
<samp>/usr/share/terminfo</samp>. Si el programa se queja acerca del tipo |
| 1808 |
de terminal y el valor de <code>TERM</code> es correcto, hay que revisar |
| 1809 |
esta variable. |
| 1810 |
</p> |
| 1811 |
</dd> |
| 1812 |
</dl> |
| 1813 |
|
| 1814 |
<hr> |
| 1815 |
<a name="Errores-y-omisiones"></a> |
| 1816 |
<a name="Errores-y-omisiones-1"></a> |
| 1817 |
<h2 class="chapter">9 Errores y omisiones</h2> |
| 1818 |
|
| 1819 |
<p>GNU Typist aún no admite codificación de caracteres multi-byte (como |
| 1820 |
UTF-8). Para ver todos los caracteres de algunas de las lecciones, |
| 1821 |
hay que asegurarse de que la terminal se ejecute en un entorno en |
| 1822 |
donde la variable LANG no esté puesta en UTF-8. Los usuarios más |
| 1823 |
perezosos pueden probar a ejecutar GNU Typist en otro tipo de |
| 1824 |
terminal. A veces funciona. |
| 1825 |
</p> |
| 1826 |
<p>GNU Typist no hace muchos esfuerzos en minimizar la salida de la |
| 1827 |
terminal. En particular, el cursor de bloque que hace flash puede |
| 1828 |
causar un montón de movimiento de cursor. El uso del cursor de la |
| 1829 |
propia terminal puede ser de ayuda si esto se convierte en un |
| 1830 |
problema. |
| 1831 |
</p> |
| 1832 |
<p>En las pruebas de velocidad, el programa no permite el retroceso o |
| 1833 |
eliminación más allá del comienzo de la línea de pantalla o regresar a |
| 1834 |
través de caracteres de tabulación. Esto se debe puramente al deseo |
| 1835 |
de simplificar la actualización de la pantalla. |
| 1836 |
</p> |
| 1837 |
<p>Los modos de color de curses no parecen funcionar bien con UnixWare. |
| 1838 |
En particular, el vídeo inverso no siempre se procesa correctamente en |
| 1839 |
algunos tipos de terminales ni en xterms. |
| 1840 |
</p> |
| 1841 |
<hr> |
| 1842 |
<a name="Historia"></a> |
| 1843 |
<a name="Historia-de-GNU-Typist"></a> |
| 1844 |
<h2 class="appendix">Appendix A Historia de GNU Typist</h2> |
| 1845 |
|
| 1846 |
<ul> |
| 1847 |
<li> El programa inicial se escribió para VAX/VMS BASIC por alguien de |
| 1848 |
Harris Corp (Ft. Lauderdale, FL). |
| 1849 |
|
| 1850 |
</li><li> <a href="mailto:[email protected]">D. Jason Penney</a> lo re-escribió para |
| 1851 |
Microsoft BASICA |
| 1852 |
|
| 1853 |
</li><li> <a href="mailto:[email protected]">D. Jason Penney</a> lo re-escribió en C con la |
| 1854 |
biblioteca curses |
| 1855 |
|
| 1856 |
</li><li> <a href="mailto:[email protected]">Simon Baldwin</a> re-escribió la versión de |
| 1857 |
D. Jason Penney, con aportaciones descritas en el fichero NEWS |
| 1858 |
(versiones 2.2 a 2.2b). Fue el derecho-habiente del copyright de GNU |
| 1859 |
Typist (que se distribuía bajo la GPL). Simon también escribió una |
| 1860 |
versión de Typist en Java que se llamó inicialmente JTypist y |
| 1861 |
posteriormente volvió a llamarse de nuevo Typist: |
| 1862 |
|
| 1863 |
<p>[se ofrece una dirección en geocities que ya no existe] |
| 1864 |
</p></li><li> A partir de 1997, <a href="mailto:[email protected]">Ben Armstrong</a> |
| 1865 |
ayudó a corregir fallos y a mantener el |
| 1866 |
<a href="http://packages.debian.org/gtypist/">paquete Debian</a>. |
| 1867 |
|
| 1868 |
</li><li> En 2000, <a href="mailto:[email protected]">Vladimir Támara</a> y |
| 1869 |
<a href="mailto:[email protected]">Igor Támara</a> fueron los |
| 1870 |
mantenedores de la versión en C. Antes de Noviembre de 2000, GNU |
| 1871 |
Typist se mantenía como parte del proyecto Structio. |
| 1872 |
|
| 1873 |
</li><li> ¡En Noviembre de 2000 se aceptó como paquete GNU! Se renombró a GNU |
| 1874 |
Typist (o gtypist). |
| 1875 |
|
| 1876 |
</li><li> En Mayo de 2001, <a href="mailto:[email protected]">Michael Opdenacker</a>, |
| 1877 |
que aprendió a mecanografiar con GNU Typist, se hizo el nuevo |
| 1878 |
mantenedor. El desarrollo del proyecto pasa a alojarse en |
| 1879 |
<a href="http://savannah.gnu.org/projects/gtypist/">http://savannah.gnu.org/projects/gtypist/</a>. |
| 1880 |
|
| 1881 |
</li><li> En Junio de 2001, <a href="mailto:[email protected]">Felix Natter</a> se unió y |
| 1882 |
realizó contribuciones importantes al proyecto: importación de |
| 1883 |
lecciones de otros tutores, mejoras en las herramientas, nuevas |
| 1884 |
capacidades de tutoría, el modo para Emacs, la interfaz basada en |
| 1885 |
teclas de flechas y mucho más. |
| 1886 |
|
| 1887 |
</li><li> En 2003, <a href="mailto:[email protected]">Dmitry Rutsky</a> se unió |
| 1888 |
al equipo de desarrollo y difundió un número importante de ideas, |
| 1889 |
hacks y mejoras. |
| 1890 |
|
| 1891 |
</li><li> En Abril de 2008, <a href="mailto:[email protected]">Paul Goins</a> se hizo |
| 1892 |
cargo del mantenimiento de GNU Typist, al que le añadió unas cuantas |
| 1893 |
mejoras (especialmente la construcción bajo Windows con MinGW), |
| 1894 |
actualizó algo la documentación y cambió la licencia a la versión 3 de |
| 1895 |
la GPL. |
| 1896 |
</li></ul> |
| 1897 |
|
| 1898 |
<hr> |
| 1899 |
<a name="Copia-del-manual"></a> |
| 1900 |
<a name="Licencia-de-Documentacion-Publica-de-GNU"></a> |
| 1901 |
<h2 class="appendix">Appendix B Licencia de Documentación Pública de GNU</h2> |
| 1902 |
<div align="center">Version 1.2, November 2002 |
| 1903 |
</div> |
| 1904 |
|
| 1905 |
<div class="display"> |
| 1906 |
<pre class="display">Copyright © 2000,2001,2002 Free Software Foundation, Inc. |
| 1907 |
51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
| 1908 |
|
| 1909 |
Everyone is permitted to copy and distribute verbatim copies |
| 1910 |
of this license document, but changing it is not allowed. |
| 1911 |
</pre></div> |
| 1912 |
|
| 1913 |
<ol> |
| 1914 |
<li> PREAMBLE |
| 1915 |
|
| 1916 |
<p>The purpose of this License is to make a manual, textbook, or other |
| 1917 |
functional and useful document <em>free</em> in the sense of freedom: to |
| 1918 |
assure everyone the effective freedom to copy and redistribute it, |
| 1919 |
with or without modifying it, either commercially or noncommercially. |
| 1920 |
Secondarily, this License preserves for the author and publisher a way |
| 1921 |
to get credit for their work, while not being considered responsible |
| 1922 |
for modifications made by others. |
| 1923 |
</p> |
| 1924 |
<p>This License is a kind of “copyleft”, which means that derivative |
| 1925 |
works of the document must themselves be free in the same sense. It |
| 1926 |
complements the GNU General Public License, which is a copyleft |
| 1927 |
license designed for free software. |
| 1928 |
</p> |
| 1929 |
<p>We have designed this License in order to use it for manuals for free |
| 1930 |
software, because free software needs free documentation: a free |
| 1931 |
program should come with manuals providing the same freedoms that the |
| 1932 |
software does. But this License is not limited to software manuals; |
| 1933 |
it can be used for any textual work, regardless of subject matter or |
| 1934 |
whether it is published as a printed book. We recommend this License |
| 1935 |
principally for works whose purpose is instruction or reference. |
| 1936 |
</p> |
| 1937 |
</li><li> APPLICABILITY AND DEFINITIONS |
| 1938 |
|
| 1939 |
<p>This License applies to any manual or other work, in any medium, that |
| 1940 |
contains a notice placed by the copyright holder saying it can be |
| 1941 |
distributed under the terms of this License. Such a notice grants a |
| 1942 |
world-wide, royalty-free license, unlimited in duration, to use that |
| 1943 |
work under the conditions stated herein. The “Document”, below, |
| 1944 |
refers to any such manual or work. Any member of the public is a |
| 1945 |
licensee, and is addressed as “you”. You accept the license if you |
| 1946 |
copy, modify or distribute the work in a way requiring permission |
| 1947 |
under copyright law. |
| 1948 |
</p> |
| 1949 |
<p>A “Modified Version” of the Document means any work containing the |
| 1950 |
Document or a portion of it, either copied verbatim, or with |
| 1951 |
modifications and/or translated into another language. |
| 1952 |
</p> |
| 1953 |
<p>A “Secondary Section” is a named appendix or a front-matter section |
| 1954 |
of the Document that deals exclusively with the relationship of the |
| 1955 |
publishers or authors of the Document to the Document’s overall |
| 1956 |
subject (or to related matters) and contains nothing that could fall |
| 1957 |
directly within that overall subject. (Thus, if the Document is in |
| 1958 |
part a textbook of mathematics, a Secondary Section may not explain |
| 1959 |
any mathematics.) The relationship could be a matter of historical |
| 1960 |
connection with the subject or with related matters, or of legal, |
| 1961 |
commercial, philosophical, ethical or political position regarding |
| 1962 |
them. |
| 1963 |
</p> |
| 1964 |
<p>The “Invariant Sections” are certain Secondary Sections whose titles |
| 1965 |
are designated, as being those of Invariant Sections, in the notice |
| 1966 |
that says that the Document is released under this License. If a |
| 1967 |
section does not fit the above definition of Secondary then it is not |
| 1968 |
allowed to be designated as Invariant. The Document may contain zero |
| 1969 |
Invariant Sections. If the Document does not identify any Invariant |
| 1970 |
Sections then there are none. |
| 1971 |
</p> |
| 1972 |
<p>The “Cover Texts” are certain short passages of text that are listed, |
| 1973 |
as Front-Cover Texts or Back-Cover Texts, in the notice that says that |
| 1974 |
the Document is released under this License. A Front-Cover Text may |
| 1975 |
be at most 5 words, and a Back-Cover Text may be at most 25 words. |
| 1976 |
</p> |
| 1977 |
<p>A “Transparent” copy of the Document means a machine-readable copy, |
| 1978 |
represented in a format whose specification is available to the |
| 1979 |
general public, that is suitable for revising the document |
| 1980 |
straightforwardly with generic text editors or (for images composed of |
| 1981 |
pixels) generic paint programs or (for drawings) some widely available |
| 1982 |
drawing editor, and that is suitable for input to text formatters or |
| 1983 |
for automatic translation to a variety of formats suitable for input |
| 1984 |
to text formatters. A copy made in an otherwise Transparent file |
| 1985 |
format whose markup, or absence of markup, has been arranged to thwart |
| 1986 |
or discourage subsequent modification by readers is not Transparent. |
| 1987 |
An image format is not Transparent if used for any substantial amount |
| 1988 |
of text. A copy that is not “Transparent” is called “Opaque”. |
| 1989 |
</p> |
| 1990 |
<p>Examples of suitable formats for Transparent copies include plain |
| 1991 |
<small>ASCII</small> without markup, Texinfo input format, LaTeX input |
| 1992 |
format, <acronym>SGML</acronym> or <acronym>XML</acronym> using a publicly available |
| 1993 |
<acronym>DTD</acronym>, and standard-conforming simple <acronym>HTML</acronym>, |
| 1994 |
PostScript or <acronym>PDF</acronym> designed for human modification. Examples |
| 1995 |
of transparent image formats include <acronym>PNG</acronym>, <acronym>XCF</acronym> and |
| 1996 |
<acronym>JPG</acronym>. Opaque formats include proprietary formats that can be |
| 1997 |
read and edited only by proprietary word processors, <acronym>SGML</acronym> or |
| 1998 |
<acronym>XML</acronym> for which the <acronym>DTD</acronym> and/or processing tools are |
| 1999 |
not generally available, and the machine-generated <acronym>HTML</acronym>, |
| 2000 |
PostScript or <acronym>PDF</acronym> produced by some word processors for |
| 2001 |
output purposes only. |
| 2002 |
</p> |
| 2003 |
<p>The “Title Page” means, for a printed book, the title page itself, |
| 2004 |
plus such following pages as are needed to hold, legibly, the material |
| 2005 |
this License requires to appear in the title page. For works in |
| 2006 |
formats which do not have any title page as such, “Title Page” means |
| 2007 |
the text near the most prominent appearance of the work’s title, |
| 2008 |
preceding the beginning of the body of the text. |
| 2009 |
</p> |
| 2010 |
<p>A section “Entitled XYZ” means a named subunit of the Document whose |
| 2011 |
title either is precisely XYZ or contains XYZ in parentheses following |
| 2012 |
text that translates XYZ in another language. (Here XYZ stands for a |
| 2013 |
specific section name mentioned below, such as “Acknowledgements”, |
| 2014 |
“Dedications”, “Endorsements”, or “History”.) To “Preserve the Title” |
| 2015 |
of such a section when you modify the Document means that it remains a |
| 2016 |
section “Entitled XYZ” according to this definition. |
| 2017 |
</p> |
| 2018 |
<p>The Document may include Warranty Disclaimers next to the notice which |
| 2019 |
states that this License applies to the Document. These Warranty |
| 2020 |
Disclaimers are considered to be included by reference in this |
| 2021 |
License, but only as regards disclaiming warranties: any other |
| 2022 |
implication that these Warranty Disclaimers may have is void and has |
| 2023 |
no effect on the meaning of this License. |
| 2024 |
</p> |
| 2025 |
</li><li> VERBATIM COPYING |
| 2026 |
|
| 2027 |
<p>You may copy and distribute the Document in any medium, either |
| 2028 |
commercially or noncommercially, provided that this License, the |
| 2029 |
copyright notices, and the license notice saying this License applies |
| 2030 |
to the Document are reproduced in all copies, and that you add no other |
| 2031 |
conditions whatsoever to those of this License. You may not use |
| 2032 |
technical measures to obstruct or control the reading or further |
| 2033 |
copying of the copies you make or distribute. However, you may accept |
| 2034 |
compensation in exchange for copies. If you distribute a large enough |
| 2035 |
number of copies you must also follow the conditions in section 3. |
| 2036 |
</p> |
| 2037 |
<p>You may also lend copies, under the same conditions stated above, and |
| 2038 |
you may publicly display copies. |
| 2039 |
</p> |
| 2040 |
</li><li> COPYING IN QUANTITY |
| 2041 |
|
| 2042 |
<p>If you publish printed copies (or copies in media that commonly have |
| 2043 |
printed covers) of the Document, numbering more than 100, and the |
| 2044 |
Document’s license notice requires Cover Texts, you must enclose the |
| 2045 |
copies in covers that carry, clearly and legibly, all these Cover |
| 2046 |
Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on |
| 2047 |
the back cover. Both covers must also clearly and legibly identify |
| 2048 |
you as the publisher of these copies. The front cover must present |
| 2049 |
the full title with all words of the title equally prominent and |
| 2050 |
visible. You may add other material on the covers in addition. |
| 2051 |
Copying with changes limited to the covers, as long as they preserve |
| 2052 |
the title of the Document and satisfy these conditions, can be treated |
| 2053 |
as verbatim copying in other respects. |
| 2054 |
</p> |
| 2055 |
<p>If the required texts for either cover are too voluminous to fit |
| 2056 |
legibly, you should put the first ones listed (as many as fit |
| 2057 |
reasonably) on the actual cover, and continue the rest onto adjacent |
| 2058 |
pages. |
| 2059 |
</p> |
| 2060 |
<p>If you publish or distribute Opaque copies of the Document numbering |
| 2061 |
more than 100, you must either include a machine-readable Transparent |
| 2062 |
copy along with each Opaque copy, or state in or with each Opaque copy |
| 2063 |
a computer-network location from which the general network-using |
| 2064 |
public has access to download using public-standard network protocols |
| 2065 |
a complete Transparent copy of the Document, free of added material. |
| 2066 |
If you use the latter option, you must take reasonably prudent steps, |
| 2067 |
when you begin distribution of Opaque copies in quantity, to ensure |
| 2068 |
that this Transparent copy will remain thus accessible at the stated |
| 2069 |
location until at least one year after the last time you distribute an |
| 2070 |
Opaque copy (directly or through your agents or retailers) of that |
| 2071 |
edition to the public. |
| 2072 |
</p> |
| 2073 |
<p>It is requested, but not required, that you contact the authors of the |
| 2074 |
Document well before redistributing any large number of copies, to give |
| 2075 |
them a chance to provide you with an updated version of the Document. |
| 2076 |
</p> |
| 2077 |
</li><li> MODIFICATIONS |
| 2078 |
|
| 2079 |
<p>You may copy and distribute a Modified Version of the Document under |
| 2080 |
the conditions of sections 2 and 3 above, provided that you release |
| 2081 |
the Modified Version under precisely this License, with the Modified |
| 2082 |
Version filling the role of the Document, thus licensing distribution |
| 2083 |
and modification of the Modified Version to whoever possesses a copy |
| 2084 |
of it. In addition, you must do these things in the Modified Version: |
| 2085 |
</p> |
| 2086 |
<ol> |
| 2087 |
<li> Use in the Title Page (and on the covers, if any) a title distinct |
| 2088 |
from that of the Document, and from those of previous versions |
| 2089 |
(which should, if there were any, be listed in the History section |
| 2090 |
of the Document). You may use the same title as a previous version |
| 2091 |
if the original publisher of that version gives permission. |
| 2092 |
|
| 2093 |
</li><li> List on the Title Page, as authors, one or more persons or entities |
| 2094 |
responsible for authorship of the modifications in the Modified |
| 2095 |
Version, together with at least five of the principal authors of the |
| 2096 |
Document (all of its principal authors, if it has fewer than five), |
| 2097 |
unless they release you from this requirement. |
| 2098 |
|
| 2099 |
</li><li> State on the Title page the name of the publisher of the |
| 2100 |
Modified Version, as the publisher. |
| 2101 |
|
| 2102 |
</li><li> Preserve all the copyright notices of the Document. |
| 2103 |
|
| 2104 |
</li><li> Add an appropriate copyright notice for your modifications |
| 2105 |
adjacent to the other copyright notices. |
| 2106 |
|
| 2107 |
</li><li> Include, immediately after the copyright notices, a license notice |
| 2108 |
giving the public permission to use the Modified Version under the |
| 2109 |
terms of this License, in the form shown in the Addendum below. |
| 2110 |
|
| 2111 |
</li><li> Preserve in that license notice the full lists of Invariant Sections |
| 2112 |
and required Cover Texts given in the Document’s license notice. |
| 2113 |
|
| 2114 |
</li><li> Include an unaltered copy of this License. |
| 2115 |
|
| 2116 |
</li><li> Preserve the section Entitled “History”, Preserve its Title, and add |
| 2117 |
to it an item stating at least the title, year, new authors, and |
| 2118 |
publisher of the Modified Version as given on the Title Page. If |
| 2119 |
there is no section Entitled “History” in the Document, create one |
| 2120 |
stating the title, year, authors, and publisher of the Document as |
| 2121 |
given on its Title Page, then add an item describing the Modified |
| 2122 |
Version as stated in the previous sentence. |
| 2123 |
|
| 2124 |
</li><li> Preserve the network location, if any, given in the Document for |
| 2125 |
public access to a Transparent copy of the Document, and likewise |
| 2126 |
the network locations given in the Document for previous versions |
| 2127 |
it was based on. These may be placed in the “History” section. |
| 2128 |
You may omit a network location for a work that was published at |
| 2129 |
least four years before the Document itself, or if the original |
| 2130 |
publisher of the version it refers to gives permission. |
| 2131 |
|
| 2132 |
</li><li> For any section Entitled “Acknowledgements” or “Dedications”, Preserve |
| 2133 |
the Title of the section, and preserve in the section all the |
| 2134 |
substance and tone of each of the contributor acknowledgements and/or |
| 2135 |
dedications given therein. |
| 2136 |
|
| 2137 |
</li><li> Preserve all the Invariant Sections of the Document, |
| 2138 |
unaltered in their text and in their titles. Section numbers |
| 2139 |
or the equivalent are not considered part of the section titles. |
| 2140 |
|
| 2141 |
</li><li> Delete any section Entitled “Endorsements”. Such a section |
| 2142 |
may not be included in the Modified Version. |
| 2143 |
|
| 2144 |
</li><li> Do not retitle any existing section to be Entitled “Endorsements” or |
| 2145 |
to conflict in title with any Invariant Section. |
| 2146 |
|
| 2147 |
</li><li> Preserve any Warranty Disclaimers. |
| 2148 |
</li></ol> |
| 2149 |
|
| 2150 |
<p>If the Modified Version includes new front-matter sections or |
| 2151 |
appendices that qualify as Secondary Sections and contain no material |
| 2152 |
copied from the Document, you may at your option designate some or all |
| 2153 |
of these sections as invariant. To do this, add their titles to the |
| 2154 |
list of Invariant Sections in the Modified Version’s license notice. |
| 2155 |
These titles must be distinct from any other section titles. |
| 2156 |
</p> |
| 2157 |
<p>You may add a section Entitled “Endorsements”, provided it contains |
| 2158 |
nothing but endorsements of your Modified Version by various |
| 2159 |
parties—for example, statements of peer review or that the text has |
| 2160 |
been approved by an organization as the authoritative definition of a |
| 2161 |
standard. |
| 2162 |
</p> |
| 2163 |
<p>You may add a passage of up to five words as a Front-Cover Text, and a |
| 2164 |
passage of up to 25 words as a Back-Cover Text, to the end of the list |
| 2165 |
of Cover Texts in the Modified Version. Only one passage of |
| 2166 |
Front-Cover Text and one of Back-Cover Text may be added by (or |
| 2167 |
through arrangements made by) any one entity. If the Document already |
| 2168 |
includes a cover text for the same cover, previously added by you or |
| 2169 |
by arrangement made by the same entity you are acting on behalf of, |
| 2170 |
you may not add another; but you may replace the old one, on explicit |
| 2171 |
permission from the previous publisher that added the old one. |
| 2172 |
</p> |
| 2173 |
<p>The author(s) and publisher(s) of the Document do not by this License |
| 2174 |
give permission to use their names for publicity for or to assert or |
| 2175 |
imply endorsement of any Modified Version. |
| 2176 |
</p> |
| 2177 |
</li><li> COMBINING DOCUMENTS |
| 2178 |
|
| 2179 |
<p>You may combine the Document with other documents released under this |
| 2180 |
License, under the terms defined in section 4 above for modified |
| 2181 |
versions, provided that you include in the combination all of the |
| 2182 |
Invariant Sections of all of the original documents, unmodified, and |
| 2183 |
list them all as Invariant Sections of your combined work in its |
| 2184 |
license notice, and that you preserve all their Warranty Disclaimers. |
| 2185 |
</p> |
| 2186 |
<p>The combined work need only contain one copy of this License, and |
| 2187 |
multiple identical Invariant Sections may be replaced with a single |
| 2188 |
copy. If there are multiple Invariant Sections with the same name but |
| 2189 |
different contents, make the title of each such section unique by |
| 2190 |
adding at the end of it, in parentheses, the name of the original |
| 2191 |
author or publisher of that section if known, or else a unique number. |
| 2192 |
Make the same adjustment to the section titles in the list of |
| 2193 |
Invariant Sections in the license notice of the combined work. |
| 2194 |
</p> |
| 2195 |
<p>In the combination, you must combine any sections Entitled “History” |
| 2196 |
in the various original documents, forming one section Entitled |
| 2197 |
“History”; likewise combine any sections Entitled “Acknowledgements”, |
| 2198 |
and any sections Entitled “Dedications”. You must delete all |
| 2199 |
sections Entitled “Endorsements.” |
| 2200 |
</p> |
| 2201 |
</li><li> COLLECTIONS OF DOCUMENTS |
| 2202 |
|
| 2203 |
<p>You may make a collection consisting of the Document and other documents |
| 2204 |
released under this License, and replace the individual copies of this |
| 2205 |
License in the various documents with a single copy that is included in |
| 2206 |
the collection, provided that you follow the rules of this License for |
| 2207 |
verbatim copying of each of the documents in all other respects. |
| 2208 |
</p> |
| 2209 |
<p>You may extract a single document from such a collection, and distribute |
| 2210 |
it individually under this License, provided you insert a copy of this |
| 2211 |
License into the extracted document, and follow this License in all |
| 2212 |
other respects regarding verbatim copying of that document. |
| 2213 |
</p> |
| 2214 |
</li><li> AGGREGATION WITH INDEPENDENT WORKS |
| 2215 |
|
| 2216 |
<p>A compilation of the Document or its derivatives with other separate |
| 2217 |
and independent documents or works, in or on a volume of a storage or |
| 2218 |
distribution medium, is called an “aggregate” if the copyright |
| 2219 |
resulting from the compilation is not used to limit the legal rights |
| 2220 |
of the compilation’s users beyond what the individual works permit. |
| 2221 |
When the Document is included in an aggregate, this License does not |
| 2222 |
apply to the other works in the aggregate which are not themselves |
| 2223 |
derivative works of the Document. |
| 2224 |
</p> |
| 2225 |
<p>If the Cover Text requirement of section 3 is applicable to these |
| 2226 |
copies of the Document, then if the Document is less than one half of |
| 2227 |
the entire aggregate, the Document’s Cover Texts may be placed on |
| 2228 |
covers that bracket the Document within the aggregate, or the |
| 2229 |
electronic equivalent of covers if the Document is in electronic form. |
| 2230 |
Otherwise they must appear on printed covers that bracket the whole |
| 2231 |
aggregate. |
| 2232 |
</p> |
| 2233 |
</li><li> TRANSLATION |
| 2234 |
|
| 2235 |
<p>Translation is considered a kind of modification, so you may |
| 2236 |
distribute translations of the Document under the terms of section 4. |
| 2237 |
Replacing Invariant Sections with translations requires special |
| 2238 |
permission from their copyright holders, but you may include |
| 2239 |
translations of some or all Invariant Sections in addition to the |
| 2240 |
original versions of these Invariant Sections. You may include a |
| 2241 |
translation of this License, and all the license notices in the |
| 2242 |
Document, and any Warranty Disclaimers, provided that you also include |
| 2243 |
the original English version of this License and the original versions |
| 2244 |
of those notices and disclaimers. In case of a disagreement between |
| 2245 |
the translation and the original version of this License or a notice |
| 2246 |
or disclaimer, the original version will prevail. |
| 2247 |
</p> |
| 2248 |
<p>If a section in the Document is Entitled “Acknowledgements”, |
| 2249 |
“Dedications”, or “History”, the requirement (section 4) to Preserve |
| 2250 |
its Title (section 1) will typically require changing the actual |
| 2251 |
title. |
| 2252 |
</p> |
| 2253 |
</li><li> TERMINATION |
| 2254 |
|
| 2255 |
<p>You may not copy, modify, sublicense, or distribute the Document except |
| 2256 |
as expressly provided for under this License. Any other attempt to |
| 2257 |
copy, modify, sublicense or distribute the Document is void, and will |
| 2258 |
automatically terminate your rights under this License. However, |
| 2259 |
parties who have received copies, or rights, from you under this |
| 2260 |
License will not have their licenses terminated so long as such |
| 2261 |
parties remain in full compliance. |
| 2262 |
</p> |
| 2263 |
</li><li> FUTURE REVISIONS OF THIS LICENSE |
| 2264 |
|
| 2265 |
<p>The Free Software Foundation may publish new, revised versions |
| 2266 |
of the GNU Free Documentation License from time to time. Such new |
| 2267 |
versions will be similar in spirit to the present version, but may |
| 2268 |
differ in detail to address new problems or concerns. See |
| 2269 |
<a href="http://www.gnu.org/copyleft/">http://www.gnu.org/copyleft/</a>. |
| 2270 |
</p> |
| 2271 |
<p>Each version of the License is given a distinguishing version number. |
| 2272 |
If the Document specifies that a particular numbered version of this |
| 2273 |
License “or any later version” applies to it, you have the option of |
| 2274 |
following the terms and conditions either of that specified version or |
| 2275 |
of any later version that has been published (not as a draft) by the |
| 2276 |
Free Software Foundation. If the Document does not specify a version |
| 2277 |
number of this License, you may choose any version ever published (not |
| 2278 |
as a draft) by the Free Software Foundation. |
| 2279 |
</p></li></ol> |
| 2280 |
|
| 2281 |
<a name="ADDENDUM_003a-How-to-use-this-License-for-your-documents"></a> |
| 2282 |
<h3 class="heading">ADDENDUM: How to use this License for your documents</h3> |
| 2283 |
|
| 2284 |
<p>To use this License in a document you have written, include a copy of |
| 2285 |
the License in the document and put the following copyright and |
| 2286 |
license notices just after the title page: |
| 2287 |
</p> |
| 2288 |
<div class="smallexample"> |
| 2289 |
<pre class="smallexample"> Copyright (C) <var>year</var> <var>your name</var>. |
| 2290 |
Permission is granted to copy, distribute and/or modify this document |
| 2291 |
under the terms of the GNU Free Documentation License, Version 1.2 |
| 2292 |
or any later version published by the Free Software Foundation; |
| 2293 |
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover |
| 2294 |
Texts. A copy of the license is included in the section entitled ``GNU |
| 2295 |
Free Documentation License''. |
| 2296 |
</pre></div> |
| 2297 |
|
| 2298 |
<p>If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, |
| 2299 |
replace the “with…Texts.” line with this: |
| 2300 |
</p> |
| 2301 |
<div class="smallexample"> |
| 2302 |
<pre class="smallexample"> with the Invariant Sections being <var>list their titles</var>, with |
| 2303 |
the Front-Cover Texts being <var>list</var>, and with the Back-Cover Texts |
| 2304 |
being <var>list</var>. |
| 2305 |
</pre></div> |
| 2306 |
|
| 2307 |
<p>If you have Invariant Sections without Cover Texts, or some other |
| 2308 |
combination of the three, merge those two alternatives to suit the |
| 2309 |
situation. |
| 2310 |
</p> |
| 2311 |
<p>If your document contains nontrivial examples of program code, we |
| 2312 |
recommend releasing these examples in parallel under your choice of |
| 2313 |
free software license, such as the GNU General Public License, |
| 2314 |
to permit their use in free software. |
| 2315 |
</p> |
| 2316 |
|
| 2317 |
<hr> |
| 2318 |
|
| 2319 |
|
| 2320 |
|
| 2321 |
</body> |
| 2322 |
</html> |