forked from OSGeo/PROJ
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a scripts/fix_typos.sh script and correct reported errors
- Loading branch information
Showing
45 changed files
with
131 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,7 +215,7 @@ | |
|
||
* src/cs2cs.c: Support -I when there is no +to projection. | ||
|
||
* src/PJ_ob_tran.c: Propogate ctx into sub-projection (#225). | ||
* src/PJ_ob_tran.c: Propagate ctx into sub-projection (#225). | ||
|
||
2013-10-03 Frank Warmerdam <[email protected]> | ||
|
||
|
@@ -293,7 +293,7 @@ | |
|
||
* src/geodesic.{c,h}: sync relative to GeographicLib 1.31. (#216) | ||
|
||
* src/pj_fileapi.c, etc: Implement a virtual file api accessable | ||
* src/pj_fileapi.c, etc: Implement a virtual file api accessible | ||
through the context for init file and grid shift file access. | ||
|
||
* src/mk_cheby.c: reformat, add braces to avoid warnings. | ||
|
@@ -415,7 +415,7 @@ | |
|
||
2012-02-08 Frank Warmerdam <[email protected]> | ||
|
||
* src/pj_apply_gridshift.c: Ensure that one amoung many points | ||
* src/pj_apply_gridshift.c: Ensure that one among many points | ||
falling outside the grid areas will not cause the remainder to not | ||
be datum shifted in a way that is hard to diagnose. (#45) | ||
|
||
|
@@ -564,7 +564,7 @@ | |
|
||
2011-01-11 Frank Warmerdam <[email protected]> | ||
|
||
* src/PJ_goode.c: fix propogation of es and ctx to sub-projections. | ||
* src/PJ_goode.c: fix propagation of es and ctx to sub-projections. | ||
|
||
2010-10-19 Frank Warmerdam <[email protected]> | ||
|
||
|
@@ -739,7 +739,7 @@ | |
* src/PJ_gstmerc.c: Correction of a bug in inv() function : | ||
the projected origin coordinates where descaled. | ||
|
||
* nad/testIGNF: Add a comment on the mandatory existance of the world grid | ||
* nad/testIGNF: Add a comment on the mandatory existence of the world grid | ||
in order to make the test. | ||
|
||
* ChangeLog: this comments | ||
|
@@ -934,7 +934,7 @@ | |
* src/projects.h: Ensure that WIN32 is defined on win32 systems. | ||
|
||
* src/pj_open_lib.c: support drive letter prefixes on absolute | ||
paths. Support either \ or / as a dir delimeter on windows (bug 1499) | ||
paths. Support either \ or / as a dir delimiter on windows (bug 1499) | ||
|
||
2007-03-07 Frank Warmerdam <[email protected]> | ||
|
||
|
@@ -1067,7 +1067,7 @@ Rel. 4.5.0 2006-04-21 | |
|
||
2006-01-12 Frank Warmerdam <[email protected]> | ||
|
||
* geocent.c: Make global variables static. Amoung other things | ||
* geocent.c: Make global variables static. Among other things | ||
this avoids conflicts for apps that link in geotrans. | ||
|
||
2005-12-04 Frank Warmerdam <[email protected]> | ||
|
@@ -1466,7 +1466,7 @@ Rel. 4.4.4 2001/09/15 | |
|
||
See http://bugzilla.remotesensing.org/show_bug.cgi?id=17 | ||
|
||
* nad/epsg: commited new updates with fixed units for us state plane | ||
* nad/epsg: committed new updates with fixed units for us state plane | ||
zones in feet, as reported by Marc-Andre. | ||
|
||
2001-08-23 Frank Warmerdam <[email protected]> | ||
|
@@ -1707,7 +1707,7 @@ Rel. 4.3.2 94/10/30 Base-line | |
Thanks to: Alejo Hausner ([email protected]) | ||
|
||
95/9/10 | ||
Some minor file/internal name changes to facilitate xport to primative | ||
Some minor file/internal name changes to facilitate xport to primitive | ||
systems. Documented entries unchanged. | ||
|
||
Rel. 4.3.1 94/2/16 Base-line | ||
|
@@ -1794,7 +1794,7 @@ Rel. 4.2.2 93/9/30 Base-line | |
DOS distribution. | ||
|
||
93/11/28 | ||
Added "Final" figure line to begining of -V option ouput. Allows | ||
Added "Final" figure line to beginning of -V option output. Allows | ||
user to see results of +ellps and +R_V, etc. arguments. "Feature," | ||
not an error. Mod to proj.c. | ||
|
||
|
@@ -1893,7 +1893,7 @@ Rel. 4.1.3 93/4/15 Base-line | |
93/8/19 | ||
Minor general corrections. | ||
Added nadcon conversion procedures and nad2nad program. | ||
Projects.h modified to reflect nadcon prototypes and stuctures. | ||
Projects.h modified to reflect nadcon prototypes and structures. | ||
pj_open_lib extracted from pj_init and made global for use in nad_init. | ||
|
||
93/8/25 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/sh | ||
# -*- coding: utf-8 -*- | ||
############################################################################### | ||
# $Id$ | ||
# | ||
# Project: GDAL | ||
# Purpose: (Interactive) script to identify and fix typos | ||
# Author: Even Rouault <even.rouault at spatialys.com> | ||
# | ||
############################################################################### | ||
# Copyright (c) 2016, Even Rouault <even.rouault at spatialys.com> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a | ||
# copy of this software and associated documentation files (the "Software"), | ||
# to deal in the Software without restriction, including without limitation | ||
# the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
# and/or sell copies of the Software, and to permit persons to whom the | ||
# Software is furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included | ||
# in all copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
# DEALINGS IN THE SOFTWARE. | ||
############################################################################### | ||
|
||
if ! test -d fix_typos; then | ||
# Get our fork of codespell that adds --words-white-list and full filename support for -S option | ||
mkdir fix_typos | ||
cd fix_typos | ||
git clone https://github.com/rouault/codespell | ||
cd codespell | ||
git checkout gdal_improvements | ||
cd .. | ||
# Aggregate base dictionary + QGIS one + Debian Lintian one | ||
curl https://raw.githubusercontent.com/qgis/QGIS/master/scripts/spelling.dat | sed "s/:/->/" | grep -v "colour->" | grep -v "colours->" > qgis.txt | ||
curl https://anonscm.debian.org/cgit/lintian/lintian.git/plain/data/spelling/corrections| grep "||" | grep -v "#" | sed "s/||/->/" > debian.txt | ||
cat codespell/data/dictionary.txt qgis.txt debian.txt | awk 'NF' > gdal_dict.txt | ||
echo "difered->deferred" >> gdal_dict.txt | ||
echo "differed->deferred" >> gdal_dict.txt | ||
cd .. | ||
fi | ||
|
||
EXCLUDED_FILES="*configure,config.status,config.sub,*/autom4te.cache/*,libtool,aclocal.m4,depcomp,ltmain.sh,*.pdf,./m4/*,./nad/epsg,./fix_typos/*" | ||
WORDS_WHITE_LIST="metres,als,lsat,twon,ang" | ||
|
||
python3 fix_typos/codespell/codespell.py -w -i 3 -q 2 -S $EXCLUDED_FILES \ | ||
-x scripts/typos_whitelist.txt --words-white-list=$WORDS_WHITE_LIST \ | ||
-D fix_typos/gdal_dict.txt . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.