diff --git a/ChangeLog b/ChangeLog
index ea8622b8..f9814391 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1849,7 +1849,7 @@
* libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
markers to avoid emitting a warning (even if, according to the TechNote,
- there are admitedly unusual/not recommended or even forbidden variants, but
+ there are admittedly unusual/not recommended or even forbidden variants, but
they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
SOF9 and SOF10).
Define in_color_space and input_components to the right values in
@@ -2432,7 +2432,7 @@
2012-05-19 Bob Friesenhahn
* man/TIFFGetField.3tiff: Correct the 'count' field type in the
- example for how to retreive the value of unsupported tags.
+ example for how to retrieve the value of unsupported tags.
2012-03-30 Frank Warmerdam
@@ -3039,7 +3039,7 @@
2010-04-21 Frank Warmerdam
- * libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime
+ * libtiff/tif_jpeg.c: avoid preparing jpeg tables every time
JPEGSetupEncode() is called if the tables already seem to be
established. This prevents spurious updates and rewriting of
directories with jpegtables when doing updates to existing images.
@@ -3371,7 +3371,7 @@
* test/common.sh - start verbose mode after common settings.
- * libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
+ * libtiff/tif_dirinfo.c: Replace lfind() with local equivalent to
avoid type mismatches on different platforms.
http://bugzilla.maptools.org/show_bug.cgi?id=1889
@@ -3518,7 +3518,7 @@
* tools/tiffdump.c: When compiling for Microsoft Windows, apply
consistent (__int64) casting when testing if _lseeki64 has
- successfully seeked as requested. This is necessary for large
+ successfully sought as requested. This is necessary for large
file support to work since off_t is only 32-bit.
2008-07-29 Frank Warmerdam
@@ -4316,7 +4316,7 @@ btiff/tif_win32.c: Replace custom Win32 memory api with generic
* libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
on subsampled images - this ought to get sorted when we feel brave
- enough to replace TIFFScanlineSize alltogether
+ enough to replace TIFFScanlineSize altogether
* libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
@@ -4974,7 +4974,7 @@ btiff/tif_win32.c: Replace custom Win32 memory api with generic
2005-06-03 Andrey Kiselev
- * libtiff/tif_open.c: Replace runtime endianess check with the compile
+ * libtiff/tif_open.c: Replace runtime endianness check with the compile
time one.
* libtiff/tif_predict.c: Floating point predictor now works on
@@ -6316,7 +6316,7 @@ btiff/tif_win32.c: Replace custom Win32 memory api with generic
2003-11-16 Andrey Kiselev
* libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
- datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes".
+ datatype, introduced in "Adobe PageMaker TIFF Tech. Notes".
2003-11-15 Frank Warmerdam
@@ -6627,7 +6627,7 @@ btiff/tif_win32.c: Replace custom Win32 memory api with generic
* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
configure, Makefile.in: Improved libtiff compilation with OJPEG
- support. Now no need for patching IJG JPEG library, hack requred by
+ support. Now no need for patching IJG JPEG library, hack required by
libtiff will be compiled and used in-place. Implemented with
suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
@@ -7485,7 +7485,7 @@ btiff/tif_win32.c: Replace custom Win32 memory api with generic
sizes. It fixes two problems:
Without scaling (-S) the fax is now centered on the page size specified
- with -H and/or -W. Before, fax2ps was using an obscure and practially
+ with -H and/or -W. Before, fax2ps was using an obscure and practically
useless algorithm to allocate the image relative to Letter sized paper
which sometime sled to useless whitespace on the paper, while at the
same time cutting of the faxes printable area at the opposite border.
diff --git a/contrib/iptcutil/iptcutil.c b/contrib/iptcutil/iptcutil.c
index ad0a79c5..621716df 100644
--- a/contrib/iptcutil/iptcutil.c
+++ b/contrib/iptcutil/iptcutil.c
@@ -782,7 +782,7 @@ int sindex(char ch,char *string)
char *cp;
for(cp=string;*cp;++cp)
if(ch==*cp)
- return (int)(cp-string); /* return postion of character */
+ return (int)(cp-string); /* return position of character */
return -1; /* eol ... no match found */
}
diff --git a/contrib/pds/README b/contrib/pds/README
index b9abc6b3..a36b0549 100644
--- a/contrib/pds/README
+++ b/contrib/pds/README
@@ -30,7 +30,7 @@ Your ReadRGBA() routine works well for reading many different formats
(TILED, STIP, compressed or not, etc.) of the most basic types of data
(RGB, 8-bit greyscale, 8-bit colormapped) into an SGI-style data array,
and serves as a good template for users with other needs. I used it as
-an exmaple of how to make an iterator which, rather than fill a data
+an example of how to make an iterator which, rather than fill a data
array, calls an arbitrary user-supplied callback function for each
"chunk" of data - that "chunk" might be a strip or a tile, and might
have one sample-per-pixel or two, and might be 8-bit data or 16-bit or
diff --git a/contrib/pds/tif_imageiter.c b/contrib/pds/tif_imageiter.c
index 9e7bd44a..243cfd65 100644
--- a/contrib/pds/tif_imageiter.c
+++ b/contrib/pds/tif_imageiter.c
@@ -114,7 +114,7 @@ TIFFImageIterBegin(TIFFImageIter* img, TIFF* tif, int stop, char emsg[1024])
TIFFErrorExt(tif->tif_clientdata, TIFFFileName(tif), "Missing required \"Colormap\" tag");
return (0);
}
- /* fall thru... */
+ /* fall through... */
case PHOTOMETRIC_MINISWHITE:
case PHOTOMETRIC_MINISBLACK:
/* This should work now so skip the check - BSR
@@ -181,7 +181,7 @@ TIFFImageIterBegin(TIFFImageIter* img, TIFF* tif, int stop, char emsg[1024])
case ORIENTATION_LEFTBOT: /* XXX */
TIFFWarning(TIFFFileName(tif), "using bottom-left orientation");
img->orientation = ORIENTATION_BOTLEFT;
- /* fall thru... */
+ /* fall through... */
case ORIENTATION_BOTLEFT:
break;
case ORIENTATION_TOPRIGHT:
@@ -190,7 +190,7 @@ TIFFImageIterBegin(TIFFImageIter* img, TIFF* tif, int stop, char emsg[1024])
default:
TIFFWarning(TIFFFileName(tif), "using top-left orientation");
img->orientation = ORIENTATION_TOPLEFT;
- /* fall thru... */
+ /* fall through... */
case ORIENTATION_TOPLEFT:
break;
}
diff --git a/contrib/pds/tif_imageiter.h b/contrib/pds/tif_imageiter.h
index e7dbe46c..4f4fd279 100644
--- a/contrib/pds/tif_imageiter.h
+++ b/contrib/pds/tif_imageiter.h
@@ -44,7 +44,7 @@ struct _TIFFImageIter {
uint16 samplesperpixel; /* image samples/pixel */
uint16 orientation; /* image orientation */
uint16 photometric; /* image photometric interp */
- uint16* redcmap; /* colormap pallete */
+ uint16* redcmap; /* colormap palette */
uint16* greencmap;
uint16* bluecmap;
/* get image data routine */
diff --git a/contrib/pds/tif_pdsdirread.c b/contrib/pds/tif_pdsdirread.c
index 567600c5..cc6231da 100644
--- a/contrib/pds/tif_pdsdirread.c
+++ b/contrib/pds/tif_pdsdirread.c
@@ -192,7 +192,7 @@ TIFFReadPrivateDataSubDirectory(TIFF* tif, toff_t pdir_offset,
* the fields to check type and tag information,
* and to extract info required to size data
* structures. A second pass is made afterwards
- * to read in everthing not taken in the first pass.
+ * to read in everything not taken in the first pass.
*/
td = &tif->tif_dir;
@@ -825,7 +825,7 @@ TIFFFetchNormalSubTag(TIFF* tif, TIFFDirEntry* dp, const TIFFFieldInfo* fip,
break;
}
}
- /* fall thru... */
+ /* fall through... */
case TIFF_LONG:
case TIFF_SLONG:
{ uint32 v32 =
diff --git a/contrib/tags/README b/contrib/tags/README
index 73c6c213..3220b7b1 100644
--- a/contrib/tags/README
+++ b/contrib/tags/README
@@ -2,7 +2,7 @@
NOTE: Sept/2004
The following described approach to managing tag extensions has been
-mostly superceeded since libtiff 3.6.0. The described approach requires
+mostly superseded since libtiff 3.6.0. The described approach requires
internal knowledge of the libtiff API and tends to be very fragile
in the face of libtiff upgrades.
diff --git a/contrib/tags/xtif_dir.c b/contrib/tags/xtif_dir.c
index e67a6abf..35295526 100644
--- a/contrib/tags/xtif_dir.c
+++ b/contrib/tags/xtif_dir.c
@@ -269,7 +269,7 @@ _XTIFFDefaultDirectory(TIFF *tif)
* Install into TIFF structure.
*/
TIFFMEMBER(tif,clientdir) = (tidata_t)xt;
- tif->tif_flags |= XTIFF_INITIALIZED; /* dont do this again! */
+ tif->tif_flags |= XTIFF_INITIALIZED; /* don't do this again! */
}
/* set up our own defaults */
diff --git a/contrib/win_dib/README.tiff2dib b/contrib/win_dib/README.tiff2dib
index 3e6075fb..ff70ca1a 100644
--- a/contrib/win_dib/README.tiff2dib
+++ b/contrib/win_dib/README.tiff2dib
@@ -40,7 +40,7 @@ it contain the function LoadTIFFinDIB that load
a TIFF file and build a memory DIB with it and return the
HANDLE (HDIB) of the memory bloc containing this DIB.
Since DIB is the "natural" bitmap format for Windows 3.1, 95 and NT,
-this function sould be usefull for some Windows 95 (or NT) developer.
+this function should be useful for some Windows 95 (or NT) developer.
Sorry for my approximate english ...
diff --git a/contrib/win_dib/Tiffile.cpp b/contrib/win_dib/Tiffile.cpp
index 9d958b1c..2f7965d6 100644
--- a/contrib/win_dib/Tiffile.cpp
+++ b/contrib/win_dib/Tiffile.cpp
@@ -360,7 +360,7 @@ setorientation(TIFFRGBAImage* img, uint32 h)
case ORIENTATION_LEFTBOT: /* XXX */
TIFFWarning(TIFFFileName(tif), "using bottom-left orientation");
img->orientation = ORIENTATION_BOTLEFT;
- /* fall thru... */
+ /* fall through... */
case ORIENTATION_BOTLEFT:
y = 0;
break;
@@ -370,7 +370,7 @@ setorientation(TIFFRGBAImage* img, uint32 h)
default:
TIFFWarning(TIFFFileName(tif), "using top-left orientation");
img->orientation = ORIENTATION_TOPLEFT;
- /* fall thru... */
+ /* fall through... */
case ORIENTATION_TOPLEFT:
y = h-1;
break;
diff --git a/html/addingtags.html b/html/addingtags.html
index 4e89205b..c61a2623 100644
--- a/html/addingtags.html
+++ b/html/addingtags.html
@@ -12,7 +12,7 @@ Defining New TIFF Tags
Libtiff has built-in knowledge of all the standard TIFF tags, as
-well as extentions. The following describes how to add knowledge of
+well as extensions. The following describes how to add knowledge of
new tags as builtins to libtiff, or how to application specific tags can
be used by applications without modifying libtiff.
@@ -113,7 +113,7 @@ their own tags to store information outside the core TIFF specification.
This is done by calling TIFFMergeFieldInfo() with one or more TIFFFieldInfos.
-The libgeotiff library provides geospatial information extentions within
+The libgeotiff library provides geospatial information extensions within
a TIFF file. First, a set of TIFFFieldInfo's is prepared with information
on the new tags:
diff --git a/html/bugs.html b/html/bugs.html
index 07fc78b8..643c3c6e 100644
--- a/html/bugs.html
+++ b/html/bugs.html
@@ -22,7 +22,7 @@ If you think you've discovered a bug, please first check to see if it is
already known by looking at the list of already reported bugs. You can do so
by visiting the buglist at
http://bugzilla.maptools.org/buglist.cgi?product=libtiff. Also verify that
-the problem is still reproducable with the current development software
+the problem is still reproducible with the current development software
from CVS.
If you'd like to enter a new bug, you can do so at
diff --git a/html/build.html b/html/build.html
index f52b0966..77fbc40b 100644
--- a/html/build.html
+++ b/html/build.html
@@ -689,7 +689,7 @@ libtiff/uvcode.h LogL/LogLuv codec-specific definitions
libtiff/version.h version string (generated by Makefile)
libtiff/tif_apple.c Apple-related OS support
libtiff/tif_atari.c Atari-related OS support
-libtiff/tif_aux.c auxilary directory-related functions
+libtiff/tif_aux.c auxiliary directory-related functions
libtiff/tif_close.c close an open TIFF file
libtiff/tif_codec.c configuration table of builtin codecs
libtiff/tif_compress.c compression scheme support
diff --git a/html/libtiff.html b/html/libtiff.html
index b1de7a27..9da85e3d 100644
--- a/html/libtiff.html
+++ b/html/libtiff.html
@@ -97,7 +97,7 @@
information.
The library include file <tiffio.h> contains a C pre-processor
define TIFFLIB_VERSION that can be used to check library
- version compatiblity at compile time.
+ version compatibility at compile time.
Library Datatypes
diff --git a/html/man/TIFFReadDirectory.3tiff.html b/html/man/TIFFReadDirectory.3tiff.html
index 1e32f7cd..5e4004db 100644
--- a/html/man/TIFFReadDirectory.3tiff.html
+++ b/html/man/TIFFReadDirectory.3tiff.html
@@ -151,23 +151,23 @@ specification. This error is not fatal.
unknown tag was encountered in the directory; the library
ignores all such tags.
-TIFF directory is missing requred
+
TIFF directory is missing required
"ImageLength" field. The image violates the
specification by not having a necessary field. There is no
way for the library to recover from this error.
-TIFF directory is missing requred
+
TIFF directory is missing required
"PlanarConfig" field. The image violates the
specification by not having a necessary field. There is no
way for the library to recover from this error.
-TIFF directory is missing requred
+
TIFF directory is missing required
"StripOffsets" field. The image has multiple
strips, but is missing the tag that specifies the file
offset to each strip of data. There is no way for the
library to recover from this error.
-TIFF directory is missing requred
+
TIFF directory is missing required
"TileOffsets" field. The image has multiple
tiles, but is missing the tag that specifies the file offset
to each tile of data. There is no way for the library to
diff --git a/html/man/TIFFWriteDirectory.3tiff.html b/html/man/TIFFWriteDirectory.3tiff.html
index 9aff8c4c..6483aa6a 100644
--- a/html/man/TIFFWriteDirectory.3tiff.html
+++ b/html/man/TIFFWriteDirectory.3tiff.html
@@ -69,7 +69,7 @@ have an established location in the file. It will rewrite
the directory, but instead of place it at it’s old
location (as TIFFWriteDirectory would) it will place
them at the end of the file, correcting the pointer from the
-preceeding directory or file header to point to it’s
+preceding directory or file header to point to it’s
new location. This is particularly important in cases where
the size of the directory and pointed to data has grown, so
it won’t fit in the space available at the old
diff --git a/html/man/TIFFmemory.3tiff.html b/html/man/TIFFmemory.3tiff.html
index 39fa7894..283be9bd 100644
--- a/html/man/TIFFmemory.3tiff.html
+++ b/html/man/TIFFmemory.3tiff.html
@@ -76,7 +76,7 @@ another memory location using _TIFFmemcpy, or
compared for equality using _TIFFmemcmp. These
routines conform to the equivalent ANSI C
routines: memset, memcpy, and memcmp,
-repsectively.
+respectively.
diff --git a/html/v3.5.3.html b/html/v3.5.3.html
index 78f46983..67da683e 100644
--- a/html/v3.5.3.html
+++ b/html/v3.5.3.html
@@ -49,7 +49,7 @@ From Burn All GIF's Day:
Unisys license to use LZW in free software that complies with the Open
Source Definition
-Unfortunatly, the removal of LZW compression means that saved image size has
+Unfortunately, the removal of LZW compression means that saved image size has
grown dramatically. Without a change in the TIFF spec to support
another lossless compression format, this is unavoidable.
diff --git a/html/v3.5.7.html b/html/v3.5.7.html
index 96f47916..d4285a8b 100644
--- a/html/v3.5.7.html
+++ b/html/v3.5.7.html
@@ -200,7 +200,7 @@ that corrects behaviour for non-Letter paper
sizes. (Bug 35) It fixes two problems:
Without scaling (-S) the fax is now centered on the page size specified
- with -H and/or -W. Before, fax2ps was using an obscure and practially
+ with -H and/or -W. Before, fax2ps was using an obscure and practically
useless algorithm to allocate the image relative to Letter sized paper
which sometime sled to useless whitespace on the paper, while at the
same time cutting of the faxes printable area at the opposite border.
diff --git a/html/v3.6.0.html b/html/v3.6.0.html
index c53cd155..affbe09a 100644
--- a/html/v3.6.0.html
+++ b/html/v3.6.0.html
@@ -64,12 +64,12 @@ TIFFDirectory structure would changing, breaking any dynamically linked
software that used the private data structures.
Also, any tag not recognised
-by libtiff would not be read and accessable to applications without some
+by libtiff would not be read and accessible to applications without some
fairly complicated work on the applications part to pre-register the tags
as exemplified by the support for "Geo"TIFF tags by libgeotiff layered on
libtiff.
-Amoung other things this approach required the extension code
+Among other things this approach required the extension code
to access the private libtiff structures ... which made the higher level
non-libtiff code be locked into a specific version of libtiff at compile time.
This caused no end of bug reports!
diff --git a/html/v3.6.1.html b/html/v3.6.1.html
index 3d6d838d..3e4e3fbc 100644
--- a/html/v3.6.1.html
+++ b/html/v3.6.1.html
@@ -116,7 +116,7 @@ Patch supplied by Ross Finlayson.
it was done in 3.6.0).
libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13) datatype,
-intruduced in "Adobe PageMaker TIFF Technical Notes".
+introduced in "Adobe PageMaker TIFF Technical Notes".
libtiff/{tif_color.c, tif_getimage.c, tiffio.h}: New color space
conversion code: CIE L*a*b* 1976 images now supported by the TIFFRGBAImage
diff --git a/html/v3.7.2.html b/html/v3.7.2.html
index 45347b72..1fa4cc8e 100644
--- a/html/v3.7.2.html
+++ b/html/v3.7.2.html
@@ -46,7 +46,7 @@ The following information is located here:
- - Maintainance release. Many bugfixes in the build environment
+
- Maintenance release. Many bugfixes in the build environment
and compatibility improvements.
diff --git a/html/v3.7.3.html b/html/v3.7.3.html
index 28981aef..771e1906 100644
--- a/html/v3.7.3.html
+++ b/html/v3.7.3.html
@@ -45,7 +45,7 @@ The following information is located here:
MAJOR CHANGES:
- - Replace runtime endianess check with the compile time one.
+
- Replace runtime endianness check with the compile time one.
- Added support for the new predictor type (floating point
predictor), defined at the TIFF Technical Note 3.
diff --git a/html/v3.9.0.html b/html/v3.9.0.html
index 1c8bf969..0e9ff9ae 100644
--- a/html/v3.9.0.html
+++ b/html/v3.9.0.html
@@ -154,7 +154,7 @@ information is located here:
- libtiff/tif_getimage.c,tiffio.h: removed all use of
UaToAa and Bitmap16to8 arrays in TIFFRGBAImage structure to
- restore ABI compatability. These were just an attempt to
+ restore ABI compatibility. These were just an attempt to
speed up processing with precalculated tables. http://bugzilla.maptools.org/show_bug.cgi?id=1979
diff --git a/man/TIFFmemory.3tiff b/man/TIFFmemory.3tiff
index 3947c86e..70a82123 100644
--- a/man/TIFFmemory.3tiff
+++ b/man/TIFFmemory.3tiff
@@ -77,7 +77,7 @@ C routines:
.IR memcpy ,
and
.IR memcmp ,
-repsectively.
+respectively.
.SH DIAGNOSTICS
None.
.SH "SEE ALSO"
diff --git a/tiff.spec b/tiff.spec
index 58ee3094..a94ec9f5 100644
--- a/tiff.spec
+++ b/tiff.spec
@@ -43,7 +43,7 @@ product tiff
exp "tiff.sw.tools"
endsubsys
subsys dev
- id "${TIFF_NAME} Developement Software"
+ id "${TIFF_NAME} Development Software"
exp "tiff.sw.dev"
endsubsys
endimage
diff --git a/tools/thumbnail.c b/tools/thumbnail.c
index 4e73df08..3d1adc78 100644
--- a/tools/thumbnail.c
+++ b/tools/thumbnail.c
@@ -525,15 +525,15 @@ setrow(uint8* row, uint32 nrows, const uint8* rows[])
default:
for (i = fw; i > 8; i--)
acc += bits[*src++];
- /* fall thru... */
- case 8: acc += bits[*src++]; /* fall thru */
- case 7: acc += bits[*src++]; /* fall thru */
- case 6: acc += bits[*src++]; /* fall thru */
- case 5: acc += bits[*src++]; /* fall thru */
- case 4: acc += bits[*src++]; /* fall thru */
- case 3: acc += bits[*src++]; /* fall thru */
- case 2: acc += bits[*src++]; /* fall thru */
- case 1: acc += bits[*src++]; /* fall thru */
+ /* fall through... */
+ case 8: acc += bits[*src++]; /* fall through */
+ case 7: acc += bits[*src++]; /* fall through */
+ case 6: acc += bits[*src++]; /* fall through */
+ case 5: acc += bits[*src++]; /* fall through */
+ case 4: acc += bits[*src++]; /* fall through */
+ case 3: acc += bits[*src++]; /* fall through */
+ case 2: acc += bits[*src++]; /* fall through */
+ case 1: acc += bits[*src++]; /* fall through */
case 0: break;
}
acc += bits[*src & mask1];
diff --git a/tools/tiff2ps.c b/tools/tiff2ps.c
index af62e4cc..d8d3da3a 100644
--- a/tools/tiff2ps.c
+++ b/tools/tiff2ps.c
@@ -61,7 +61,7 @@
* if not specified on the command line.
* Add new command line option to specify document creator
* as an alterntive to the string "tiff2ps" following model
- * of patch submitted by Thomas Jarosch for specifiying a
+ * of patch submitted by Thomas Jarosch for specifying a
* document title which is also supported now.
*
* 2009-Feb-11
@@ -71,7 +71,7 @@
* or landscape) if -h or -w is specified. Rotation is in
* degrees counterclockwise since that is how Postscript does
* it. The auto opption rotates the image 90 degrees ccw to
- * produce landscape if that is a better fit than portait.
+ * produce landscape if that is a better fit than portrait.
*
* Cleaned up code in TIFF2PS and broke into smaller functions
* to simplify rotations.
@@ -518,7 +518,7 @@ checkImage(TIFF* tif)
"PhotometricInterpretation=YCbCr");
return (0);
}
- /* fall thru... */
+ /* fall through... */
case PHOTOMETRIC_RGB:
if (alpha && bitspersample != 8) {
TIFFError(filename,
@@ -526,7 +526,7 @@ checkImage(TIFF* tif)
bitspersample);
return (0);
}
- /* fall thru... */
+ /* fall through... */
case PHOTOMETRIC_SEPARATED:
case PHOTOMETRIC_PALETTE:
case PHOTOMETRIC_MINISBLACK:
@@ -550,7 +550,7 @@ checkImage(TIFF* tif)
bitspersample = 8;
break;
case PHOTOMETRIC_CIELAB:
- /* fall thru... */
+ /* fall through... */
default:
TIFFError(filename,
"Can not handle image with PhotometricInterpretation=%d",
diff --git a/tools/tiffcp.c b/tools/tiffcp.c
index 482f5f4f..4638a905 100644
--- a/tools/tiffcp.c
+++ b/tools/tiffcp.c
@@ -657,7 +657,7 @@ tiffcp(TIFF* in, TIFF* out)
case ORIENTATION_RIGHTBOT: /* XXX */
TIFFWarning(TIFFFileName(in), "using bottom-left orientation");
orientation = ORIENTATION_BOTLEFT;
- /* fall thru... */
+ /* fall through... */
case ORIENTATION_LEFTBOT: /* XXX */
case ORIENTATION_BOTLEFT:
break;
@@ -666,7 +666,7 @@ tiffcp(TIFF* in, TIFF* out)
default:
TIFFWarning(TIFFFileName(in), "using top-left orientation");
orientation = ORIENTATION_TOPLEFT;
- /* fall thru... */
+ /* fall through... */
case ORIENTATION_LEFTTOP: /* XXX */
case ORIENTATION_TOPLEFT:
break;
diff --git a/tools/tiffcrop.c b/tools/tiffcrop.c
index e466dae6..a5e6061a 100644
--- a/tools/tiffcrop.c
+++ b/tools/tiffcrop.c
@@ -25,7 +25,7 @@
* ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE
* OR PERFORMANCE OF THIS SOFTWARE.
*
- * Some portions of the current code are derived from tiffcp, primarly in
+ * Some portions of the current code are derived from tiffcp, primarily in
* the areas of lowlevel reading and writing of TAGS, scanlines and tiles though
* some of the original functions have been extended to support arbitrary bit
* depths. These functions are presented at the top of this file.
@@ -1685,7 +1685,7 @@ void process_command_opts (int argc, char *argv[], char *mp, char *mode, uint32
*defconfig = PLANARCONFIG_CONTIG;
else
{
- TIFFError ("Unkown planar configuration", "%s", optarg);
+ TIFFError ("Unknown planar configuration", "%s", optarg);
TIFFError ("For valid options type", "tiffcrop -h");
exit (-1);
}
@@ -6782,12 +6782,12 @@ extractImageSection(struct image_data *image, struct pageseg *section,
#endif
bytebuff1 = bytebuff2 = 0;
- if (shift1 == 0) /* the region is byte and sample alligned */
+ if (shift1 == 0) /* the region is byte and sample aligned */
{
_TIFFmemcpy (sect_buff + dst_offset, src_buff + offset1, full_bytes);
#ifdef DEVELMODE
- TIFFError ("", " Alligned data src offset1: %8d, Dst offset: %8d\n", offset1, dst_offset);
+ TIFFError ("", " Aligned data src offset1: %8d, Dst offset: %8d\n", offset1, dst_offset);
sprintf(&bitarray[18], "\n");
sprintf(&bitarray[19], "\t");
for (j = 20, k = 7; j < 28; j++, k--)
@@ -7730,7 +7730,7 @@ createCroppedImage(struct image_data *image, struct crop_mask *crop,
* original code assumes we are always copying all samples.
* Use of global variables for config, compression and others
* should be replaced by addition to the crop_mask struct (which
- * will be renamed to proc_opts indicating that is controlls
+ * will be renamed to proc_opts indicating that is controls
* user supplied processing options, not just cropping) and
* then passed in as an argument.
*/
@@ -8425,7 +8425,7 @@ rotateImage(uint16 rotation, struct image_data *image, uint32 *img_width,
ibuff = *ibuff_ptr;
switch (rotation)
{
- case 180: if ((bps % 8) == 0) /* byte alligned data */
+ case 180: if ((bps % 8) == 0) /* byte aligned data */
{
src = ibuff;
pix_offset = (spp * bps) / 8;
diff --git a/tools/tiffinfo.c b/tools/tiffinfo.c
index aecbb91a..049e3a34 100644
--- a/tools/tiffinfo.c
+++ b/tools/tiffinfo.c
@@ -84,7 +84,7 @@ main(int argc, char* argv[])
break;
case 'd':
showdata++;
- /* fall thru... */
+ /* fall through... */
case 'D':
readdata++;
break;
diff --git a/tools/tiffinfoce.c b/tools/tiffinfoce.c
index 82ab330b..1822a550 100644
--- a/tools/tiffinfoce.c
+++ b/tools/tiffinfoce.c
@@ -73,7 +73,7 @@ main(int argc, char* argv[])
break;
case 'd':
showdata++;
- /* fall thru... */
+ /* fall through... */
case 'D':
readdata++;
break;