Revision 7508
Added by Aaron Marcuse-Kubitza about 12 years ago
redmine_synonyms | ||
---|---|---|
8 | 8 |
|
9 | 9 |
ambigTerm= |
10 | 10 |
term= |
11 |
sed -n 's/^<h[1-4][^>]*>(<img [^>]*title="([^"]*):"[^>]*> *)?<a href="#[^>]+>([^<]+).*$/"\2" "\3"/p'\
|
|
11 |
sed -n 's/^<h[1-4][^>]*>(<img [^>]*title="([^"]*):"[^>]*>|(Alternative):)? *<a href="#[^>]+>([^<]+).*$/"\2\3" "\4"/p'\
|
|
12 | 12 |
|while read -r line; do |
13 | 13 |
eval set -- $line # split to $@ |
14 | 14 |
type="$1" name="$2" |
Also available in: Unified diff
redmine_synonyms: Support alternatives which contain the "Alternative" label as plain text rather than as an image title. This is done to include the "Alternative" label in the HTML anchor and thus prevent the anchor from conflicting with the actual definition of the alternative (which would otherwise have the same anchor text). This allows ambiguous terms to be placed before their alternatives as well as after, because there won't be anchor conflicts that need to be resolved with careful ordering.