[rkward] doc/rkwardplugins: Fix minor typos
Yuri Chornoivan
yurchor at ukr.net
Mon Jan 11 17:12:38 UTC 2016
Git commit b9d2d164f48ad43d7d5a6aa6bdc1c341c2ac908b by Yuri Chornoivan.
Committed on 11/01/2016 at 17:12.
Pushed by yurchor into branch 'master'.
Fix minor typos
M +15 -15 doc/rkwardplugins/index.docbook
http://commits.kde.org/rkward/b9d2d164f48ad43d7d5a6aa6bdc1c341c2ac908b
diff --git a/doc/rkwardplugins/index.docbook b/doc/rkwardplugins/index.docbook
index 14a039a..7860958 100644
--- a/doc/rkwardplugins/index.docbook
+++ b/doc/rkwardplugins/index.docbook
@@ -174,7 +174,7 @@ This is a guide to writing plugins for &rkward;.
<component type="standard" id="t_test_two_vars" file="t_test_two_vars.xml" label="Two Variable t-Test" />
</programlisting>
<para>
- First the <parameter>type</parameter> attribute: Leave this to <replaceable>"standard"</replaceable> for now. Further types are not yet implemented. The <parameter>id</parameter> we've already hinted at. Each component has to be given a unique (in its namespace) identifier. Pick one that is easily recognizable. Avoid spaces and any special characters. Those are not banned, so far, but might have special meanings. With the <parameter>file</parameter> attribute, you specify where the <link linkend="mainxml">description of the actual plugin itself</link> is located. This is relative to the directory the &pluginmap; file is in, and the <parameter>base_prefix</parameter> above. Finally, give the component a label. This label will be shown whereever the plugin is placed in the menu (or in the future perhaps in other places as well).
+ First the <parameter>type</parameter> attribute: Leave this to <replaceable>"standard"</replaceable> for now. Further types are not yet implemented. The <parameter>id</parameter> we've already hinted at. Each component has to be given a unique (in its namespace) identifier. Pick one that is easily recognizable. Avoid spaces and any special characters. Those are not banned, so far, but might have special meanings. With the <parameter>file</parameter> attribute, you specify where the <link linkend="mainxml">description of the actual plugin itself</link> is located. This is relative to the directory the &pluginmap; file is in, and the <parameter>base_prefix</parameter> above. Finally, give the component a label. This label will be shown wherever the plugin is placed in the menu (or in the future perhaps in other places as well).
</para>
<para>
Typically a &pluginmap; file will contain several components, so here are a few more:
@@ -488,7 +488,7 @@ This is a guide to writing plugins for &rkward;.
<page id="secondpage">
<text>Below are some advanced options. It's generally safe not to assume the
variables have equal variances. An appropriate correction will be applied then.
- Chosing "assume equal variances" may increase test-strength, however.</text>
+ Choosing "assume equal variances" may increase test-strength, however.</text>
<copy id="varequal"/>
<text>Sometimes it's helpful to get an estimate of the confidence interval of
the difference in means. Below you can specify whether one should be shown, and
@@ -521,7 +521,7 @@ This is a guide to writing plugins for &rkward;.
If you find yourself creating a <command><radio></command> or <command><dropdown></command> with only two options, ask yourself, whether the question is essentially a yes / no type of question. E.g. a choice between <quote>adjust results</quote> and <quote>do not adjust results</quote>, or between <quote>remove missing values</quote> and <quote>keep missing values</quote>. In this case a <command><checkbox></command> is the best choice: It uses little space, will have the least words of labels, and is easiest to read for the user. There are very few situations where you should chose a <command><radio></command> over a <command><checkbox></command>, when there are only two options. An example of that might be: <quote>Method of calculation: 'pearson'/'spearman'</quote>. Here, more methods might be thinkable, and they don't really form a pair of opposites.
</para>
<para>
- Chosing between a <command><radio></command> and a <command><dropdown></command> is mostly a question of space. The <command><dropdown></command> has the advantage of using little space, even if there are a lot of options to chose from. On the other hand, a <command><radio></command> has the advantage of making all possible choices visible to the user at once, without clicking on the dropdown arrow. Generally, if there are six or more options to chose from, a <command><dropdown></command> is preferable. If there are five or less options, a <command><radio></command> is the better choice.
+ Choosing between a <command><radio></command> and a <command><dropdown></command> is mostly a question of space. The <command><dropdown></command> has the advantage of using little space, even if there are a lot of options to chose from. On the other hand, a <command><radio></command> has the advantage of making all possible choices visible to the user at once, without clicking on the dropdown arrow. Generally, if there are six or more options to chose from, a <command><dropdown></command> is preferable. If there are five or less options, a <command><radio></command> is the better choice.
</para>
</sect2>
</sect1>
@@ -1320,7 +1320,7 @@ This chapter contains information on some topics that are useful only to certain
<title>Drawing a plot to the output window</title>
<para>
In order to draw a plot to the output window, use <function>rk.graph.on()</function> directly before creating the plot, and
- <function>rk.graph.off()</function>, directly afterwards. This is similar to ⪚ callling <function>postscript()</function> and
+ <function>rk.graph.off()</function>, directly afterwards. This is similar to ⪚ calling <function>postscript()</function> and
<function>dev.off()</function> in a regular R session.
</para>
<para>
@@ -1336,7 +1336,7 @@ This chapter contains information on some topics that are useful only to certain
A very useful feature for all plugins generating a plot/graph is to provide an automatically updating preview. To do so, you will need two things: Adding a <command><preview></command> check box to your <link linkend="mainxml">GUI definition</link>, and adjusting the <link linkend="jstemplate">generated code</link> for the preview.
</para>
<para>
- Adding a <command><preview></command> check box is simple. Just place the following somewhere in your GUI. It will take care of all the behind-the-scenes magic of creating a preview device, updaing the preview whenever the setting have changed, &etc; Example:
+ Adding a <command><preview></command> check box is simple. Just place the following somewhere in your GUI. It will take care of all the behind-the-scenes magic of creating a preview device, updating the preview whenever the setting have changed, &etc; Example:
</para>
<programlisting>
<document>
@@ -1689,9 +1689,9 @@ This chapter contains information on some topics that are useful only to certain
the command string to run, and as second parameter the name of a function to call, when the command has finished. Note that the command is running asynchronously, and this makes things
a bit more complex. For one thing you want to make sure, that your <command><valueselector></command> remains disabled, while it does not contain up-to-date information. Another
thing is that you could potentially have queued more than one command, before you get the first results. This is why every command is given an "id", and we store that in <parameter>last_command_id</parameter> for later reference.</para>
- <para>When the command is done, the specified callback is called (<parameter>commandFinished</parameter>, in this case) with two parameters: The result itself, and the id of the correspoding
+ <para>When the command is done, the specified callback is called (<parameter>commandFinished</parameter>, in this case) with two parameters: The result itself, and the id of the corresponding
command. The result will be of a type resembling the representation in R, &ie; a numeric Array, if the result is numeric, &etc; It can even be an R <command>list()</command>, but in this case
- it will be represented as a JS <command>Array()</command> whithout names.</para>
+ it will be represented as a JS <command>Array()</command> without names.</para>
<para>Note that even this example is somewhat simplified. In reality you should take additional precautions, ⪚ to avoid putting an extreme amount of levels into the selector. The good news
is that probably you do not have to do all this yourself. The above example is taken from the <command>rkward::level_select</command> plugin, for instance, which you can simply <link linkend="embedding">embed</link> in your own
plugin. This even allows you to specify a different expression to run in place of <command>levels()</command>.</para>
@@ -1840,7 +1840,7 @@ This chapter contains information on some topics that are useful only to certain
<para>
Optionsets are a powerful tool, but they can sometimes do more harm than good, as they add considerable complexity, both
from the perspective of a plugin developer, and from the perspective of a user. Thus, think twice, when using them. Here's
- some adivce:
+ some advice:
</para>
<itemizedlist>
<listitem><para>For some simple cases, the <command><matrix></command> element may provide a useful lightweight alternative.</para></listitem>
@@ -1974,7 +1974,7 @@ x </components ...>
<title>Plugin translations</title>
<para>
So far we have used a few concepts regarding translations or "i18n" (short for "internationaliation", which has 18 characters between i and n) in passing. In this chapter we
- give a more in-depth account of what i18n functionaliy for &rkward; plugins. For the most part you will <emphasis>not</emphasis> need all of this in your plugins. However,
+ give a more in-depth account of what i18n functionally for &rkward; plugins. For the most part you will <emphasis>not</emphasis> need all of this in your plugins. However,
it may be a good idea to read over this chapter in full, as understanding these concept should help you creating plugins that are fully translatable, and that allow for a high
quality of translations.
</para>
@@ -2486,7 +2486,7 @@ full.wizard <- rk.XML.wizard(
rk.XML.page(
rk.XML.text("Below are some advanced options. It's generally safe not to assume the
variables have equal variances. An appropriate correction will be applied then.
- Chosing \"assume equal variances\" may increase test-strength, however."),
+ Choosing \"assume equal variances\" may increase test-strength, however."),
rk.XML.copy(check.eqvar),
rk.XML.text("Sometimes it's helpful to get an estimate of the confidence interval of
the difference in means. Below you can specify whether one should be shown, and
@@ -2624,7 +2624,7 @@ local({
rk.XML.page(
rk.XML.text("Below are some advanced options. It's generally safe not to assume the
variables have equal variances. An appropriate correction will be applied then.
- Chosing \"assume equal variances\" may increase test-strength, however."),
+ Choosing \"assume equal variances\" may increase test-strength, however."),
rk.XML.copy(check.eqvar),
rk.XML.text("Sometimes it's helpful to get an estimate of the confidence interval of
the difference in means. Below you can specify whether one should be shown, and
@@ -2685,7 +2685,7 @@ variables <- rk.XML.varselector(
The text given to the <parameter>help</parameter> parameter can then be fetched by <function>rk.rkh.scan()</function> and written to the help page of this plugin component. For this to work technically, however, <function>rk.rkh.scan()</function> must know which &r; objects belong to one plugin component. This is why you must also provide the <parameter>component</parameter> parameter and make sure it is identical for all objects belonging together.
</para>
<para>
- Since you will usually combine many objects into one dialog and might also like to be able to re-use objects like the <command><varslot></command> in multiple components of your plugins, it is possible to globally define a component with the <function>rk.set.comp()</function>. If set, it is assumend that all the following objects used in your script belong to that particular component, until <function>rk.set.comp()</function> is being called again with a different component name. You can then omit the <parameter>component</parameter> parameter:
+ Since you will usually combine many objects into one dialog and might also like to be able to re-use objects like the <command><varslot></command> in multiple components of your plugins, it is possible to globally define a component with the <function>rk.set.comp()</function>. If set, it is assumed that all the following objects used in your script belong to that particular component, until <function>rk.set.comp()</function> is being called again with a different component name. You can then omit the <parameter>component</parameter> parameter:
</para>
<programlisting>
rk.set.comp("Data")
@@ -2947,7 +2947,7 @@ new Header(i18n("Test results")).print();
</varlistentry>
<varlistentry>
<term><parameter>copy_element_tag_name</parameter></term>
- <listitem><para>In some few cases, you will want an almost literal copy, but change the tag-name of the element to copy. The most important example of this is, when you want to copy an entire <tab> from a dialog interface to the <page> of a wizard interface. In this case, you'd set coyp_elemnent_tag_name="page" to do this conversion automatically.</para></listitem>
+ <listitem><para>In some few cases, you will want an almost literal copy, but change the tag-name of the element to copy. The most important example of this is, when you want to copy an entire <tab> from a dialog interface to the <page> of a wizard interface. In this case, you'd set copy_element_tag_name="page" to do this conversion automatically.</para></listitem>
</varlistentry>
</variablelist></para></listitem>
</varlistentry>
@@ -3314,7 +3314,7 @@ made checkable, thus acting like a simple check box at the same time.
</varlistentry>
<varlistentry>
<term><parameter>horiz_headers</parameter></term>
- <listitem><para>Strings to ues for the horiztonal header, separated by ";". The header will be hidden, if set to "". (optional, defaults to column number).</para></listitem>
+ <listitem><para>Strings to ues for the horizontal header, separated by ";". The header will be hidden, if set to "". (optional, defaults to column number).</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>vert_headers</parameter></term>
@@ -4362,7 +4362,7 @@ Child elements:
</varlistentry>
<varlistentry>
<term><require></term>
-<listitem><para>Include another &pluginmap; file. This &pluginmap; file is only loaded once, even if it is <require>d from several other files. The most important use case is to include a pluginmap file, which declares some comopnents, which are embedded by components declared in this &pluginmap;. <require>-elements are only allowed as direct children of the <document>-node. Attributes:
+<listitem><para>Include another &pluginmap; file. This &pluginmap; file is only loaded once, even if it is <require>d from several other files. The most important use case is to include a pluginmap file, which declares some components, which are embedded by components declared in this &pluginmap;. <require>-elements are only allowed as direct children of the <document>-node. Attributes:
<variablelist>
<varlistentry>
<term>file</term>
More information about the rkward-tracker
mailing list