Project

General

Profile

« Previous | Next » 

Revision 7490

redmine_synonyms: Don't require ambiguous terms to start with ?, because the ambiguous term for an alternative can be identified simply by choosing the last term that didn't have a type label (previously, this would have been the last term that wasn't h3 or h4)

View differences:

bin/redmine_synonyms
19 19
        term="$name"
20 20
        
21 21
        # Handle ambiguous terms
22
        if test "${term#\?}" != "$term"; then # ambiguous term (starts with ?)
22
        if test -n "$type"; then # alternative of ambiguous term
23
            echo "$ambigTerm,$term"
24
        else # potentially ambiguous term
23 25
            ambigTerm="$term"
24
        elif test -n "$type"; then # alternative of ambiguous term
25
            echo "$ambigTerm,$term"
26
        else # term not related to ambiguous terms
27
            ambigTerm= # clear any ambiguous term in effect
28 26
        fi
29 27
    fi
30 28
done

Also available in: Unified diff