Skip to content

Commit

Permalink
Fix typos [skip ci]
Browse files Browse the repository at this point in the history
Found via codespell v1.18.0.dev0  
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
  • Loading branch information
luzpaz authored and yorikvanhavre committed Jun 15, 2020
1 parent cf7c241 commit 720b0b9
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Draft/draftgeoutils/circles.py
Expand Up @@ -144,7 +144,7 @@ def circlefrom2Lines1Point(edge1, edge2, point):


def circleFrom2LinesRadius(edge1, edge2, radius):
"""Retun a list of circles from two edges and one radius.
"""Return a list of circles from two edges and one radius.
It calculates 4 centers.
"""
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Draft/draftgeoutils/offsets.py
Expand Up @@ -41,7 +41,7 @@


def pocket2d(shape, offset):
"""Return a list of wires obtained from offseting wires from the shape.
"""Return a list of wires obtained from offsetting wires from the shape.
Return a list of wires obtained from offsetting the wires
from the given shape by the given offset, and intersection if needed.
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Draft/draftguitools/gui_edit_draft_objects.py
Expand Up @@ -383,7 +383,7 @@ def recomputePointsBezier(obj, pts, idx, v,
if idx >= 1: #move left pole
knotidx = idx if idx < len(pts) else 0
pts[idx-1] = pts[idx-1] + v - pts[knotidx]
#if moveTrackers: # trackers are reseted after editing
#if moveTrackers: # trackers are reset after editing
# self.trackers[obj.Name][idx-1].set(pts[idx-1])
if idx < len(pts)-1: #move right pole
pts[idx+1] = pts[idx+1] + v - pts[idx]
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Draft/draftguitools/gui_patharray.py
Expand Up @@ -81,7 +81,7 @@ def Activated(self, name=_tr("Path array")):
"""Execute when the command is called."""
super(PathArray, self).Activated(name=name)
self.name = name
# This was deactivated becuase it doesn't work correctly;
# This was deactivated because it doesn't work correctly;
# the selection needs to be made on two objects, but currently
# it only selects one.

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Draft/draftguitools/gui_pointarray.py
Expand Up @@ -126,7 +126,7 @@ def proceed(self):
"App.ActiveDocument.recompute()"]
self.commit(_tr(self.name), _cmd_list)

# Commit the transaction and execute the comamnds
# Commit the transaction and execute the commands
# through the parent class
self.finish()

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Draft/draftmake/make_patharray.py
Expand Up @@ -114,7 +114,7 @@ def make_path_array(base_object, path_object, count=4,
`X` is curve tangent, `Y` is normal parameter, Z is the cross
product `X` x `Y`.
- Frenet. It defines a local coordinate system along the path.
`X` is tanget to curve, `Y` is curve normal, `Z` is curve binormal.
`X` is tangent to curve, `Y` is curve normal, `Z` is curve binormal.
If normal cannot be computed, for example, in a straight path,
a default is used.
- Tangent. It is similar to `'Original'` but includes a pre-rotation
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Draft/draftutils/utils.py
Expand Up @@ -1361,8 +1361,8 @@ def someFunction():
If we don't know when this command will be deprecated
then we should not give a version.
"""
text = "This function will be deprected in "
text2 = "This function will be deprected. "
text = "This function will be deprecated in "
text2 = "This function will be deprecated. "
text3 = "Please use "

if version:
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Idf/Idf.py
Expand Up @@ -76,7 +76,7 @@ def insert(filename,docname):
def process_emn(doc,filename):
"""process_emn(document, filename)-> adds emn geometry from emn file"""
emnfile=pythonopen(filename, "r")
emn_unit=1.0 #presume milimeter like emn unit
emn_unit=1.0 #presume millimeter like emn unit
emn_version=2 #presume emn_version 2
board_thickness=0 #presume 0 board height
board_outline=[] #no outline
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Path/PathScripts/PathSurfaceSupport.py
Expand Up @@ -57,7 +57,7 @@ class PathGeometryGenerator:
PathGeometryGenerator(obj, shape, pattern)
`obj` is the operation object, `shape` is the horizontal planar shape object,
and `pattern` is the name of the geometric pattern to apply.
Frist, call the getCenterOfPattern() method for the CenterOfMass for patterns allowing a custom center.
First, call the getCenterOfPattern() method for the CenterOfMass for patterns allowing a custom center.
Next, call the generatePathGeometry() method to request the path geometry shape.'''

# Register valid patterns here by name
Expand Down
8 changes: 4 additions & 4 deletions src/Mod/TechDraw/App/CosmeticEdgePyImp.cpp
Expand Up @@ -284,7 +284,7 @@ Py::Object CosmeticEdgePy::getRadius(void) const
TechDraw::GeomType gt = getCosmeticEdgePtr()->m_geometry->geomType;
if ( (gt != TechDraw::GeomType::CIRCLE) &&
(gt != TechDraw::GeomType::ARCOFCIRCLE) ) {
std::string error = "not a cirle. Can not set radius";
std::string error = "not a circle. Can not set radius";
throw Py::TypeError(error);
}
double r = getCosmeticEdgePtr()->permaRadius;
Expand All @@ -298,7 +298,7 @@ void CosmeticEdgePy::setRadius(Py::Object arg)
if ( (gt != TechDraw::GeomType::CIRCLE) &&
(gt != TechDraw::GeomType::ARCOFCIRCLE) ) {
std::string error = std::string(p->ob_type->tp_name);
error += " is not a cirle. Can not set radius";
error += " is not a circle. Can not set radius";
throw Py::TypeError(error);
}

Expand Down Expand Up @@ -326,7 +326,7 @@ Py::Object CosmeticEdgePy::getCenter(void) const
TechDraw::GeomType gt = getCosmeticEdgePtr()->m_geometry->geomType;
if ( (gt != TechDraw::GeomType::CIRCLE) &&
(gt != TechDraw::GeomType::ARCOFCIRCLE) ) {
std::string error = "not a cirle. Can not get center";
std::string error = "not a circle. Can not get center";
throw Py::TypeError(error);
}
Base::Vector3d point = getCosmeticEdgePtr()->permaStart;
Expand All @@ -340,7 +340,7 @@ void CosmeticEdgePy::setCenter(Py::Object arg)
if ( (gt != TechDraw::GeomType::CIRCLE) &&
(gt != TechDraw::GeomType::ARCOFCIRCLE) ) {
std::string error = std::string(p->ob_type->tp_name);
error += " is not a cirle. Can not set center";
error += " is not a circle. Can not set center";
throw Py::TypeError(error);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/App/PropertyCosmeticEdgeList.cpp
Expand Up @@ -78,7 +78,7 @@ int PropertyCosmeticEdgeList::getSize(void) const
}


//_lValueList is not const. so why do we pass a const paramter?
//_lValueList is not const. so why do we pass a const parameter?
void PropertyCosmeticEdgeList::setValue(CosmeticEdge* lValue)
{
if (lValue) {
Expand Down

0 comments on commit 720b0b9

Please sign in to comment.