mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
fix typo
This commit is contained in:
parent
2bb6149e6c
commit
395c13f1f1
@ -127,7 +127,7 @@ results from this filter.
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
Prefixes might be overriden by user preferences.
|
Prefixes might be overridden by user preferences.
|
||||||
|
|
||||||
.. seealso:: :py:func:`activePrefix`
|
.. seealso:: :py:func:`activePrefix`
|
||||||
%End
|
%End
|
||||||
|
@ -180,13 +180,13 @@ for I in $(seq -f '%02g' 0 $(($SPLIT-1)) ) ; do
|
|||||||
# also make error small case and escape special chars: () |
|
# also make error small case and escape special chars: () |
|
||||||
ERRORSMALLCASE=$(echo ${ERRORNOCOLOR,,} |${GP}sed -r 's/\(/\\(/g' | ${GP}sed -r 's/\)/\\)/g' | ${GP}sed -r 's/\|/\\|/g' )
|
ERRORSMALLCASE=$(echo ${ERRORNOCOLOR,,} |${GP}sed -r 's/\(/\\(/g' | ${GP}sed -r 's/\)/\\)/g' | ${GP}sed -r 's/\|/\\|/g' )
|
||||||
if [[ ! "${ERRORSMALLCASE}" =~ $IGNORECASE_INWORD ]]; then
|
if [[ ! "${ERRORSMALLCASE}" =~ $IGNORECASE_INWORD ]]; then
|
||||||
if [[ -n $(ag --nonumbers --case-sensitive "^${ERRORSMALLCASE:1:-1}${ERRORSMALLCASE: -1}?:" scripts/spell_check/spelling.dat) ]]; then
|
if [[ -n $(ag --noaffinity --nonumbers --case-sensitive "^${ERRORSMALLCASE:1:-1}${ERRORSMALLCASE: -1}?:" scripts/spell_check/spelling.dat) ]]; then
|
||||||
PREVCHAR=${ERROR::1}
|
PREVCHAR=${ERROR::1}
|
||||||
# remove first character
|
# remove first character
|
||||||
ERRORSMALLCASE=${ERRORSMALLCASE#?}
|
ERRORSMALLCASE=${ERRORSMALLCASE#?}
|
||||||
ERROR=${ERROR#?}
|
ERROR=${ERROR#?}
|
||||||
fi
|
fi
|
||||||
if [[ -n $(ag --nonumbers --case-sensitive "^${ERRORSMALLCASE::-1}:" scripts/spell_check/spelling.dat) ]]; then
|
if [[ -n $(ag --noaffinity --nonumbers --case-sensitive "^${ERRORSMALLCASE::-1}:" scripts/spell_check/spelling.dat) ]]; then
|
||||||
NEXTCHAR=${ERROR:${#ERROR}-1:1}
|
NEXTCHAR=${ERROR:${#ERROR}-1:1}
|
||||||
# remove last character
|
# remove last character
|
||||||
ERRORSMALLCASE=${ERRORSMALLCASE::-1}
|
ERRORSMALLCASE=${ERRORSMALLCASE::-1}
|
||||||
@ -196,9 +196,9 @@ for I in $(seq -f '%02g' 0 $(($SPLIT-1)) ) ; do
|
|||||||
ERRORSMALLCASE=$(${GP}sed -r 's/\./\\./g' <<< $ERRORSMALLCASE)
|
ERRORSMALLCASE=$(${GP}sed -r 's/\./\\./g' <<< $ERRORSMALLCASE)
|
||||||
|
|
||||||
# get correction from spelling.dat
|
# get correction from spelling.dat
|
||||||
CORRECTION=$(ag --nonumbers --case-sensitive "^${ERRORSMALLCASE}:" ${DIR}/spelling.dat | cut -d: -f2)
|
CORRECTION=$(ag --noaffinity --nonumbers --case-sensitive "^${ERRORSMALLCASE}:" ${DIR}/spelling.dat | cut -d: -f2)
|
||||||
# exclude script files
|
# exclude script files
|
||||||
if [[ "$(ag --nonumbers --case-sensitive "^${ERRORSMALLCASE}:" ${DIR}/spelling.dat | cut -d: -f3)" =~ "%" ]]; then
|
if [[ "$(ag --noaffinity --nonumbers --case-sensitive "^${ERRORSMALLCASE}:" ${DIR}/spelling.dat | cut -d: -f3)" =~ "%" ]]; then
|
||||||
if [[ "$FILE" =~ $EXCLUDE_SCRIPT_LIST ]]; then
|
if [[ "$FILE" =~ $EXCLUDE_SCRIPT_LIST ]]; then
|
||||||
echo "skipping script file for $(${GP}sed -r 's/\\//g' <<< $ERRORSMALLCASE)"
|
echo "skipping script file for $(${GP}sed -r 's/\\//g' <<< $ERRORSMALLCASE)"
|
||||||
continue
|
continue
|
||||||
@ -208,7 +208,7 @@ for I in $(seq -f '%02g' 0 $(($SPLIT-1)) ) ; do
|
|||||||
if [[ -z "$CORRECTION" ]]; then
|
if [[ -z "$CORRECTION" ]]; then
|
||||||
CORRECTION=$(perl -e "use strict; use warnings; while(<>) { chop; my(\$a,\$b) = split /:/; \$a = qr(\$a); if( my @matches = '${ERRORSMALLCASE}' =~ /^\$a\$/i ) { print sprintf(\$b, @matches); last; }}" ${DIR}/spelling.dat )
|
CORRECTION=$(perl -e "use strict; use warnings; while(<>) { chop; my(\$a,\$b) = split /:/; \$a = qr(\$a); if( my @matches = '${ERRORSMALLCASE}' =~ /^\$a\$/i ) { print sprintf(\$b, @matches); last; }}" ${DIR}/spelling.dat )
|
||||||
# exclude script files
|
# exclude script files
|
||||||
if [[ "$(ag --nonumbers --case-sensitive ":${CORRECTION}" ${DIR}/spelling.dat | cut -d: -f3)" =~ "%" ]]; then
|
if [[ "$(ag --noaffinity --nonumbers --case-sensitive ":${CORRECTION}" ${DIR}/spelling.dat | cut -d: -f3)" =~ "%" ]]; then
|
||||||
if [[ "$FILE" =~ $EXCLUDE_SCRIPT_LIST ]]; then
|
if [[ "$FILE" =~ $EXCLUDE_SCRIPT_LIST ]]; then
|
||||||
echo "skipping script file for $(${GP}sed -r 's/\\//g' <<< $ERRORSMALLCASE)"
|
echo "skipping script file for $(${GP}sed -r 's/\\//g' <<< $ERRORSMALLCASE)"
|
||||||
continue
|
continue
|
||||||
|
@ -155,7 +155,7 @@ class CORE_EXPORT QgsLocatorFilter : public QObject
|
|||||||
* as these are reserved for core QGIS functions. If a plugin registers
|
* as these are reserved for core QGIS functions. If a plugin registers
|
||||||
* a filter with a prefix shorter than 3 characters then the prefix will
|
* a filter with a prefix shorter than 3 characters then the prefix will
|
||||||
* be ignored.
|
* be ignored.
|
||||||
* \note Prefixes might be overriden by user preferences.
|
* \note Prefixes might be overridden by user preferences.
|
||||||
* \see activePrefix()
|
* \see activePrefix()
|
||||||
*/
|
*/
|
||||||
virtual QString prefix() const { return QString(); }
|
virtual QString prefix() const { return QString(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user