Skip to content

Commit

Permalink
Misc. documentation and source comment typo fixes
Browse files Browse the repository at this point in the history
Found via `codespell -q 3 -L ,ang,ba,childs,eiter,forse,objext,pevent,shouldbe,thru,uint,unselect,vertexes --skip="./synfig-studio/po,./synfig-core/po,/synfig-core/m4,./synfig-osx/,./gtkmm-osx,./bugs,.*.eps,*.sif"`
  • Loading branch information
luzpaz authored and morevnaproject committed Jun 1, 2019
1 parent 20e922e commit 99f3efa
Show file tree
Hide file tree
Showing 122 changed files with 227 additions and 227 deletions.
2 changes: 1 addition & 1 deletion 1-setup-linux-native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ elif which pacman >/dev/null; then
sudo pacman -S --needed --noconfirm $PKG_LIST || true

else
echo "WARNING: This build script does not works with package mangement systems other than yum, zypper or apt! You should install dependent packages manually."
echo "WARNING: This build script does not works with package management systems other than yum, zypper or apt! You should install dependent packages manually."
echo "REQUIRED PACKAGES: "
echo "libpng-devel libjpeg-devel freetype-devel fontconfig-devel atk-devel pango-devel cairo-devel gtk3-devel gettext-devel libxml2-devel libxml++-devel gcc-c++ autoconf automake libtool libtool-ltdl-devel shared-mime-info OpenEXR-devel libmng-devel ImageMagick-c++-devel gtkmm30-devel glibmm24-devel"
echo ""
Expand Down
2 changes: 1 addition & 1 deletion 1-setup-osx-brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export OS=`uname -r | cut -d "." -f1`
if [ $OS -lt 15 ] && [ -z "$TRAVIS_BUILD_DIR" ]; then # For OSX < 10.11
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/
git fetch --unshallow || true
git checkout a91becd6afc177b0cada2cf9cce2e3bde514053b # librsvg 2.40.20 (wothout rust) 2017.12.16
git checkout a91becd6afc177b0cada2cf9cce2e3bde514053b # librsvg 2.40.20 (without rust) 2017.12.16
cd /usr/local/Homebrew/
git checkout 1.4.1
brew info gobject-introspection | grep --quiet 'Not installed' && brew install ${WORKDIR}/autobuild/osx/gobject-introspection.rb
Expand Down
2 changes: 1 addition & 1 deletion 2-build-cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ build_synfig_studio
write_portable_run_code

# Print success, restore the current directory and exit
echo "Build successfull to: ${absolute_base_dir}/${cmake_build_dir}/${out_dir}"
echo "Build successful to: ${absolute_base_dir}/${cmake_build_dir}/${out_dir}"
cd "$pwd_dir"
4 changes: 2 additions & 2 deletions 2-build-debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
#
# = Examples: =
#
# == Standart mode ==
# == Standard mode ==
# Configure and (re)build:
# ./build.sh
# Configure and make clean build:
# ./build.sh all full
# Quick rebuild (without configure):
# ./build.sh all make
# Quick rebuild od synfig-core (without configure):
# Quick rebuild of synfig-core (without configure):
# ./build.sh core make

set -e
Expand Down
2 changes: 1 addition & 1 deletion 2-build-production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# = Examples: =
#
# == Standart mode ==
# == Standard mode ==
# Configure and (re)build:
# ./build.sh
# Configure and make clean build:
Expand Down
2 changes: 1 addition & 1 deletion ETL/ETL/_bit_rotate.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
** This is an internal header file, included by other ETL headers.
** You should not attempt to use it directly.
**
** These template functions have not yet been throughly tested,
** These template functions have not yet been thoroughly tested,
** and may be inaccurate or just plain wrong. You have been warned.
**
** ========================================================================= */
Expand Down
4 changes: 2 additions & 2 deletions ETL/ETL/_handle.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class shared_object
}

//! Decrease reference counter without deletion of object
//! Returns \c false if references exeed and object should be deleted
//! Returns \c false if references exceed and object should be deleted
virtual bool unref_inactive()const
{
return (bool)(--refcount);
Expand Down Expand Up @@ -201,7 +201,7 @@ class handle
{
if(x.get()==obj)
return *this;
// add referense before detach
// add reference before detach
pointer xobj(x.get());
if(xobj) xobj->ref();
detach();
Expand Down
2 changes: 1 addition & 1 deletion ETL/ETL/_rect.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class rect
};


//! We wan to do the edge compare test
//! We want to do the edge compare test
//! |-----|
//! |------| intersecting
//!
Expand Down
2 changes: 1 addition & 1 deletion ETL/ETL/_smart_ptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class smart_ptr
/*! A new smart_ptr is created with a pointer
to a newly allocated object. We need
to be explicit with this so we don't
accidently have two smart_ptrs for one
accidentally have two smart_ptrs for one
object -- that would be bad. */
explicit smart_ptr(value_type* x):obj(x),refcount(x?true:false) { }

Expand Down
2 changes: 1 addition & 1 deletion ETL/ETL/_stringf.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ vstrprintf(const char *format, va_list args)
#ifdef HAVE_VASPRINTF // This is the preferred method (and safest)
char *buffer;
int count = vasprintf(&buffer,format,args);
if (count < 0) return ""; // error occured
if (count < 0) return ""; // error occurred

std::string rv(buffer, count); // passing size (count) for faster copying
free(buffer);
Expand Down
2 changes: 1 addition & 1 deletion autobuild/build-cmake-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ print_build_settings() {
echo "Build jobs: $make_jobs"
[ ! $synfigstudio_data_prefix == "" ] && echo "Custom data prefix: $synfigstudio_data_prefix"

# If script was startet with '-p' stop the script here
# If script was started with '-p' stop the script here
if [ $print_build_settings_and_exit == "true" ]
then
exit
Expand Down
4 changes: 2 additions & 2 deletions autobuild/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
#
# = Examples: =
#
# == Standart mode ==
# == Standard mode ==
# Configure and (re)build:
# ./build.sh
# Configure and make clean build:
# ./build.sh all full
# Quick rebuild (without configure):
# ./build.sh all make
# Quick rebuild od synfig-core (without configure):
# Quick rebuild of synfig-core (without configure):
# ./build.sh core make

set -e
Expand Down
4 changes: 2 additions & 2 deletions autobuild/update-languages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ update_languages_inc() {
NAME_MAP[$CODE]="$NAME"
COMMENT_MAP[$CODE]="$COMMENT"
else
# write all unknown rows to begining of file
# write all unknown rows to beginning of file
echo "$LINE" >> "$TMPFILE"
fi
done < "$LANGUAGES_FILE"

# fit the colums to make beautifulest table in the world
# fit the columns to make beautifulest table in the world
local CODE_LEN=0
local NAME_LEN=0
for i in ${!CODE_MAP[@]}; do
Expand Down
4 changes: 2 additions & 2 deletions synfig-core/config/package
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /bin/csh -ef
# this file was orignally distributed by Apple in the Developer Tools package
# this file was originally distributed by Apple in the Developer Tools package
#it is distributed under the Apple Open Source License
set version=0.2
set prog = `/usr/bin/basename $0`
Expand Down Expand Up @@ -76,7 +76,7 @@ while ( $#argv > 0 )
breaksw
endif
case -traditional:
echo useing standard tar
echo using standard tar
set usetar
unset usegnutar
unset usepax
Expand Down
2 changes: 1 addition & 1 deletion synfig-core/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ AC_LIBLTDL_CONVENIENCE
AC_SUBST(INCLTDL)
AC_SUBST(LIBLTDL)

AC_DEFINE(LT_SCOPE,[extern],[LibLTDL is linked staticly])
AC_DEFINE(LT_SCOPE,[extern],[LibLTDL is linked statically])

# -- V A R I A B L E S ----------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions synfig-core/doc/tangentproblem.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ There are some solutions to solve that:



1) PROPOSAL FOR TANGENTS 'CALCULATED' BASED ON NEIGBOUR VERTICES
1) PROPOSAL FOR TANGENTS 'CALCULATED' BASED ON NEIGHBOR VERTICES
================================================================

param convert type value type
Expand Down Expand Up @@ -59,7 +59,7 @@ global position of the tangent:
TG=V+T
TG'=V'+T'

T'=TG'-V' = (V+T)' -V' where ' means tranformed by bones.
T'=TG'-V' = (V+T)' -V' where ' means transformed by bones.

param convert type value type
----- ------------ ----------
Expand Down
8 changes: 4 additions & 4 deletions synfig-core/m4/libxml.m4
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ main()
printf("*** being found. The easiest way to fix this is to remove the old version\n");
printf("*** of LIBXML, but you can also set the XML_CONFIG environment to point to the\n");
printf("*** correct copy of xml-config. (In this case, you will have to\n");
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n");
printf("*** so that the correct libraries are found at run-time))\n");
}
return 1;
Expand Down Expand Up @@ -176,7 +176,7 @@ main()
echo "*** If you have an old version installed, it is best to remove it, although"
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
[ echo "*** The test program failed to compile or link. See the file config.log for the"
echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
echo "*** exact error that occurred. This usually means LIBXML was incorrectly installed"
echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
echo "*** may want to edit the xml-config script: $XML_CONFIG" ])
CFLAGS="$ac_save_CFLAGS"
Expand Down Expand Up @@ -323,7 +323,7 @@ main()
printf("*** being found. The easiest way to fix this is to remove the old version\n");
printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
printf("*** correct copy of xml2-config. (In this case, you will have to\n");
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n");
printf("*** so that the correct libraries are found at run-time))\n");
}
return 1;
Expand Down Expand Up @@ -367,7 +367,7 @@ main()
echo "*** If you have an old version installed, it is best to remove it, although"
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
[ echo "*** The test program failed to compile or link. See the file config.log for the"
echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
echo "*** exact error that occurred. This usually means LIBXML was incorrectly installed"
echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
echo "*** may want to edit the xml2-config script: $XML2_CONFIG" ])
CFLAGS="$ac_save_CFLAGS"
Expand Down
2 changes: 1 addition & 1 deletion synfig-core/src/modules/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ set(MODS_ENABLED
mod_ppm
mod_svg
mod_yuv420p
# mptr_mplayer - "This code has vulnerabilites"
# mptr_mplayer - "This code has vulnerabilities"
)

## Magick++ support
Expand Down
2 changes: 1 addition & 1 deletion synfig-core/src/modules/lyr_std/sphere_distort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Layer_SphereDistort::get_param_vocab()const

ret.push_back(ParamDesc("clip")
.set_local_name(_("Clip"))
.set_description(_("When cheked, the area outside the Radius are not distorted"))
.set_description(_("When checked, the area outside the Radius are not distorted"))
);

ret.push_back(ParamDesc("type")
Expand Down
2 changes: 1 addition & 1 deletion synfig-core/src/modules/lyr_std/timeloop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Layer_TimeLoop::get_param_vocab()const

ret.push_back(ParamDesc("duration")
.set_local_name(_("Duration"))
.set_description(_("Lenght of the loop"))
.set_description(_("Length of the loop"))
.set_static(true)
);

Expand Down
28 changes: 14 additions & 14 deletions synfig-core/src/modules/mod_geometry/advanced_outline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Advanced_Outline::sync_vfunc()
vector<DashItem> dilist(dilist_.get_list_of(DashItem()));
// This is the list of widthpoints created for the dashed outlines
vector<WidthPoint> dwplist;
// This is the temporarly filtered (removed unused) list of dash widthpoints
// This is the temporarily filtered (removed unused) list of dash widthpoints
// it is a partial filtered of the previous dwplist and merged with wplist
// only allowing visible widthpoints.
vector<WidthPoint> fdwplist;
Expand Down Expand Up @@ -212,7 +212,7 @@ Advanced_Outline::sync_vfunc()
// last tangent: used to remember second tangent of the previous bezier
// when doing the cusp at the first blinepoint of the current bezier
Vector last_tangent;
// Bezier size is differnt depending on whether the bline is looped or not.
// Bezier size is different depending on whether the bline is looped or not.
// For one single blinepoint, bezier size is always 1.0
Real bezier_size = 1.0/(blineloop?bline_size:(bline_size==1?1.0:(bline_size-1)));
const vector<BLinePoint>::const_iterator bend(bline.end());
Expand Down Expand Up @@ -296,7 +296,7 @@ Advanced_Outline::sync_vfunc()
if(wpfront.get_side_type_before() == WidthPoint::TYPE_INTERPOLATE && wpfront.get_position()!=0.0)
// Add a fake widthpoint at position 0.0
wplist.push_back(WidthPoint(0.0, wpfront.get_width() , start_tip_, WidthPoint::TYPE_INTERPOLATE));
// if last widhtpoint interpolation after is INTERPOLATE and it is not exactly at 1.0
// if last widthpoint interpolation after is INTERPOLATE and it is not exactly at 1.0
if(wpback.get_side_type_after() == WidthPoint::TYPE_INTERPOLATE && wpback.get_position()!=1.0)
// Add a fake withpoint at position 1.0
wplist.push_back(WidthPoint(1.0, wpback.get_width() , WidthPoint::TYPE_INTERPOLATE, end_tip_));
Expand Down Expand Up @@ -370,7 +370,7 @@ Advanced_Outline::sync_vfunc()
// i.e.: where in the bline, and where in wplist so we could go
// faster or slower when needed.
Real step(1.0/SAMPLES/bline_size);
//////////////////// prepare the widhtpoints from the dash list
//////////////////// prepare the widthpoints from the dash list
if(dash_enabled)
{
Real blinelength(bline_length(bline, blineloop, NULL));
Expand Down Expand Up @@ -411,7 +411,7 @@ Advanced_Outline::sync_vfunc()
if(diter==dilist.end())
diter=dilist.begin();
};
// Correct the two last widthpoints triming its position to be <= 1.0
// Correct the two last widthpoints trimming its position to be <= 1.0
if(inserted_to_blinelength)
{
after=dwplist.back();
Expand Down Expand Up @@ -440,7 +440,7 @@ Advanced_Outline::sync_vfunc()
}
int inserted_to_zero(0);
//
// Now insert the widhtpoints from Dash Offset to 0.0
// Now insert the widthpoints from Dash Offset to 0.0
dpos=dash_offset>=0?dash_offset:dashes_length+dash_offset;;
while(dpos > 0.0)
{
Expand All @@ -459,7 +459,7 @@ Advanced_Outline::sync_vfunc()
if(rditer==dilist.rend())
rditer=dilist.rbegin();
};
// Correct the two first widthpoints triming its position to be >= 0.0
// Correct the two first widthpoints trimming its position to be >= 0.0
if(inserted_to_zero)
{
before=dwplist.front();
Expand Down Expand Up @@ -581,7 +581,7 @@ Advanced_Outline::sync_vfunc()
if(dash_enabled)
{
// ... replace the original widthpoint list
// with the filtered one, inlcuding the visible dash withpoints and
// with the filtered one, including the visible dash withpoints and
// the visible regular widthpoints.
wplist.assign(fdwplist.begin(), fdwplist.end());
// sort again the wplist
Expand Down Expand Up @@ -702,7 +702,7 @@ Advanced_Outline::sync_vfunc()
first_tangent=iter_t;
first=false;
}
// get the position of the next widhtpoint.
// get the position of the next widthpoint.
// Remember that it is the first widthpoint the first time
// code passes by here.
Real wnext_pos(wnext->get_position());
Expand Down Expand Up @@ -805,12 +805,12 @@ Advanced_Outline::sync_vfunc()
// widthpoint in the list, if the current one has not
// interpolate side after the interpolated width is zero.
// see synfig::interpolate_width
// This modification fixes bad render when first widht
// point is not interpolate after and next widhtpoint is
// interpolate before. Noticiable for the FLAT case
// This modification fixes bad render when first width
// point is not interpolate after and next widthpoint is
// interpolate before. Noticeable for the FLAT case
// or when the width is smaller than the step on the bezier.
ipos=ipos+EPSILON;
// If we have just done a tip width side tipe after not interpolate
// If we have just done a tip width side type after not interpolate
if(witer->get_side_type_after()!=WidthPoint::TYPE_INTERPOLATE)
done_tip=true;
else
Expand Down Expand Up @@ -875,7 +875,7 @@ Advanced_Outline::sync_vfunc()
// If we stopped on an intermediate blinepoint (middle corner=true)...
if(middle_corner==true)
{
// ... do cusp at ipos if tangents are splitted
// ... do cusp at ipos if tangents are split
// Notice that if we are in the second blinepoint
// for the last bezier, we will be over a widthpoint
// artificially inserted, so here we only insert cusps
Expand Down
2 changes: 1 addition & 1 deletion synfig-core/src/modules/mod_jpeg/mptr_jpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jpeg_mptr::get_frame(synfig::Surface &surface, const synfig::RendDesc &/*renddes
/* Now we can initialize the JPEG decompression object. */
jpeg_create_decompress(&cinfo);

/* Step 2: specify data source (eg, from memory thrue a String) */
/* Step 2: specify data source (eg, from memory thru a String) */

std::ostringstream tmp;
tmp << stream->rdbuf();
Expand Down
2 changes: 1 addition & 1 deletion synfig-core/src/modules/mod_png/trgt_png_spritesheet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ png_trgt_spritesheet::read_png_file()
//Also see gamma.h and gamma.cpp
Gamma gamma_png(2.2);

//From png bytes to synfig::Color convertion
//From png bytes to synfig::Color conversion
for (unsigned int y = 0; y < in_image.height; y++)
{
png_byte* row = row_pointers[y];
Expand Down
4 changes: 2 additions & 2 deletions synfig-core/src/modules/mod_svg/svg_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ using namespace synfig;

//PARSER PREFERENCES

//Seperate transformations: apply transformations on a per-layer basis, rather than on canvases
//Separate transformations: apply transformations on a per-layer basis, rather than on canvases
#define SVG_SEP_TRANSFORMS 1

//Resolve BLine transformations: resolve transformations instead of creating transformation layers
Expand Down Expand Up @@ -1203,7 +1203,7 @@ Svg_parser::parser_radialGradient(const xmlpp::Node* node){

std::list<ColorStop*> *stops=NULL;
if(!link.empty()){
//inkscape always use link, i dont need parser stops here, but it's posible
//inkscape always use link, i don't need parser stops here, but it's possible
stops=find_colorStop (link);
}
if(stops)
Expand Down
Loading

0 comments on commit 99f3efa

Please sign in to comment.