1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-18 15:05:46 +01:00

Make 'extendedhinttags' a regexmap.

--HG--
extra : rebase_source : 1058b785925fd37bd73019b36da91e551e0f9206
This commit is contained in:
Kris Maglione
2010-09-25 14:57:12 -04:00
parent 6eb58f63c3
commit 4a2c703854
6 changed files with 72 additions and 60 deletions

View File

@@ -116,17 +116,11 @@
<li tag=";I"><em>I</em> to open an image in a new tab.</li>
</ul>
<!-- TODO: These are completely arbitrary and need to be
- changed before release. Hopefully they will be...
-->
<p>
Of the previous modes, the value of the <o>hinttags</o>
option is used to choose the highlighted elements for
the modes, <k>;;</k>, <k>;?</k>, <k>;w</k>, <k>;v</k>,
<k>;V</k>, <k>;Y</k> and <k>;c</k>. The value of
<o>extendedhinttags</o> is used to choose the elements
for, <k>;s</k>, <k>;a</k>, <k>;o</k>, <k>;t</k>,
<k>;b</k>, <k>;O</k>, <k>;T</k>, <k>;W</k>, <k>;y</k>,
option is used to choose the highlighted elements,
unless an override can be found in
<o>extendedhinttags</o>.
</p>
</description>
</item>

View File

@@ -51,10 +51,11 @@
<dd>
A comma-separated list of regular expressions. Expressions may be
prefixed with a <em>!</em>, in which case the match will be negated. A
literal <em>!</em> at the begining of the expression may be matched with
<em>[!]</em>. Generally, the first matching regular expression is
used. Any comma appearing within single or double quotes, or prefixed
with a <em>\</em>, will not be treated as an item separator.
literal <em>!</em> at the begining of the expression may be matched
with <em>[!]</em> or by placing the regular expression in quotes.
Generally, the first matching regular expression is used. Any comma
appearing within single or double quotes, or prefixed with a
<em>\</em>, will not be treated as an item separator.
</dd>
<dt/><dd tag="regexmap"/>
@@ -559,10 +560,14 @@
<tags>'eht' 'extendedhinttags'</tags>
<spec>'extendedhinttags' 'eht'</spec>
<strut/>
<type>string</type>
<default>&hinttags;</default>
<type>regexmap</type>
<default>[iI]:'//img | //xhtml:img'</default>
<description>
<p>The XPath string of hintable elements activated by <k>;</k>.</p>
<p>
Defines specialized XPath expressions for arbitrary
<t>extended-hints</t> modes. If no matches are found, the value of
<o>hinttags</o> is used.
</p>
</description>
</item>
@@ -756,7 +761,12 @@
<type>string</type>
<default>&hinttags;</default>
<description>
<p>XPath string of hintable elements activated by <k>f</k> and <k>F</k></p>
<p>
The XPath string used to select for
<link topic="hints">hinting</link>. Can be overridden for
individual <t>extended-hints</t> modes with the
<o>extendedhinttags</o> option.
</p>
</description>
</item>