forked from GitHub/gf-core
minibar documentation updates
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
<title>About Minibar</title>
|
<title>About Minibar</title>
|
||||||
<link rel=stylesheet type="text/css" href="minibar.css">
|
<link rel=stylesheet type="text/css" href="minibar.css">
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
<style>
|
||||||
|
:target .summary { font-weight: bold; background: white; }
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class=minibar>
|
<body class=minibar>
|
||||||
@@ -185,7 +188,9 @@ Some implementation details:
|
|||||||
the grammar menu. You can also add grammars from several directories on the
|
the grammar menu. You can also add grammars from several directories on the
|
||||||
same server of course. The included minibar configuration file adds the
|
same server of course. The included minibar configuration file adds the
|
||||||
user's own grammars from the grammar editor.
|
user's own grammars from the grammar editor.
|
||||||
<li>[Added 2012-04-02] Word-for-word replacement: when a complete and
|
<li id=wordforword>
|
||||||
|
[Added 2012-04-02] <span class=summary>Word-for-word replacements</span>:
|
||||||
|
when a complete and
|
||||||
unambiguous sentence has been entered, the words glow blue and when you
|
unambiguous sentence has been entered, the words glow blue and when you
|
||||||
click on one, possible replacements appear. (Replacements are shown as names
|
click on one, possible replacements appear. (Replacements are shown as names
|
||||||
of functions in the abstract syntax for now. They should be shown as words
|
of functions in the abstract syntax for now. They should be shown as words
|
||||||
@@ -212,7 +217,7 @@ Some implementation details:
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<div class=modtime><small>
|
<div class=modtime><small>
|
||||||
<!-- hhmts start --> Last modified: Thu Apr 19 14:28:52 CEST 2012 <!-- hhmts end -->
|
<!-- hhmts start -->Last modified: Mon Aug 27 16:28:25 CEST 2012 <!-- hhmts end -->
|
||||||
</small></div>
|
</small></div>
|
||||||
<address>
|
<address>
|
||||||
<a href="http://www.cse.chalmers.se/~hallgren/">TH</a>
|
<a href="http://www.cse.chalmers.se/~hallgren/">TH</a>
|
||||||
|
|||||||
@@ -70,14 +70,18 @@ For an example, see <a href="minibar.html">minibar.html</a>.
|
|||||||
can be set to override various default options:
|
can be set to override various default options:
|
||||||
<table class=border>
|
<table class=border>
|
||||||
<tr><th>Option<th>Default<th>Description
|
<tr><th>Option<th>Default<th>Description
|
||||||
<tr><td>show_abstract<td>false<td rowspan=3>See Translations,
|
<tr><td>show_abstract<td>false<td rowspan=5>See Translations,
|
||||||
not used directly by Minibar
|
not used directly by Minibar
|
||||||
<tr><td>show_trees<td>false
|
<tr><td>show_trees<td>false
|
||||||
|
<tr><td>tree_img_format<td>"png"
|
||||||
<tr><td>show_grouped_translations<td>true
|
<tr><td>show_grouped_translations<td>true
|
||||||
<tr><td>delete_button_text<td>"⌫"<td rowspan=3>See Input,
|
<tr><td>show_brackets<td>false
|
||||||
|
<tr><td>delete_button_text<td>"⌫"<td rowspan=5>See Input,
|
||||||
not used directly by Minibar
|
not used directly by Minibar
|
||||||
<tr><td>default_source_language<td>null
|
<tr><td>default_source_language<td>null
|
||||||
|
<tr><td>startcat_menu<td>true
|
||||||
<tr><td>random_button<td>true
|
<tr><td>random_button<td>true
|
||||||
|
<tr><td>word_replacements<td>false
|
||||||
<tr><td>try_google<td>true<td>Include a button to try the current
|
<tr><td>try_google<td>true<td>Include a button to try the current
|
||||||
sentence in Google Translate
|
sentence in Google Translate
|
||||||
<tr><td>feedback_url<td>null<td>Include a button to open a feedback
|
<tr><td>feedback_url<td>null<td>Include a button to open a feedback
|
||||||
@@ -124,13 +128,19 @@ HTML file, you would normally include at least the following:
|
|||||||
can be set to override various default options:
|
can be set to override various default options:
|
||||||
<table class=border>
|
<table class=border>
|
||||||
<tr><th>Option<th>Default<th>Description
|
<tr><th>Option<th>Default<th>Description
|
||||||
<tr><td>delete_button_text<td>"⌫"<td>the label for the button that deletes the last word
|
<tr><td>delete_button_text<td>"⌫"<td>The label for the button that deletes the last word.
|
||||||
<tr><td>default_source_language<td>null<td>the concrete language to
|
<tr><td>default_source_language<td>null<td>The concrete language to
|
||||||
use for input in case the user's browers doesn't supply a suitable
|
use for input in case the user's browers doesn't supply a suitable
|
||||||
default. If none is provided the first language in alphabetical
|
default. If none is provided the first language in alphabetical
|
||||||
order will be used.
|
order will be used.
|
||||||
<tr><td>random_button<td>true<td>include a button to generate a
|
<tr><td>startcat_menu<td>true<td>Include a menu to choose which start
|
||||||
random sentence
|
category to use for parsing (instead of the grammar's default start
|
||||||
|
category).
|
||||||
|
<tr><td>random_button<td>true<td>Include a button to generate a
|
||||||
|
random sentence.
|
||||||
|
<tr><td>word_replacements<td>false<td>Enable
|
||||||
|
<a href="about#wordforword">word-for-word replacements</a>.
|
||||||
|
(This is an experimental feature.)
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<li><code>translations</code> is the object that is notified when the input
|
<li><code>translations</code> is the object that is notified when the input
|
||||||
@@ -179,7 +189,7 @@ and <a href="support.js">support.js</a>, so to use it in an
|
|||||||
HTML file, you would normally include at least the following:
|
HTML file, you would normally include at least the following:
|
||||||
|
|
||||||
<blockquote><pre>
|
<blockquote><pre>
|
||||||
<script type="text/JavaScript" src="minibar_input.js"></script>
|
<script type="text/JavaScript" src="minibar_translations.js"></script>
|
||||||
<script type="text/JavaScript" src="minibar_support.js"></script>
|
<script type="text/JavaScript" src="minibar_support.js"></script>
|
||||||
<script type="text/JavaScript" src="support.js"></script>
|
<script type="text/JavaScript" src="support.js"></script>
|
||||||
</pre></blockquote>
|
</pre></blockquote>
|
||||||
@@ -196,8 +206,11 @@ HTML file, you would normally include at least the following:
|
|||||||
to the concrete syntax for the translations
|
to the concrete syntax for the translations
|
||||||
<tr><td>show_trees<td>false<td>add buttons to display syntax trees
|
<tr><td>show_trees<td>false<td>add buttons to display syntax trees
|
||||||
next to translations.
|
next to translations.
|
||||||
|
<tr><td>tree_img_format<td>"png"<td>format for trees & alignment images,
|
||||||
|
can be "gif", "png" or "svg"
|
||||||
<tr><td>show_grouped_translations<td>true<td>in case there are
|
<tr><td>show_grouped_translations<td>true<td>in case there are
|
||||||
multiple translations, group them by concrete language
|
multiple translations, group them by concrete language
|
||||||
|
<tr><td>show_brackets<td>false<td>show bracketed string
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
@@ -232,7 +245,7 @@ should add to the user interface:
|
|||||||
<hr>
|
<hr>
|
||||||
<div class=modtime>
|
<div class=modtime>
|
||||||
<small class=modtime>
|
<small class=modtime>
|
||||||
HTML <!-- hhmts start --> Last modified: Mon Jun 11 17:55:10 CEST 2012 <!-- hhmts end -->
|
HTML <!-- hhmts start -->Last modified: Mon Aug 27 16:46:46 CEST 2012 <!-- hhmts end -->
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user