From eab17ddff59180535f189ebfdc715728a0635631 Mon Sep 17 00:00:00 2001 From: luz paz Date: Fri, 30 Jul 2021 11:24:33 -0400 Subject: [PATCH] Fix various typos --- src/Gui/Macro.h | 2 +- src/Mod/Arch/ArchComponent.py | 2 +- src/Mod/Fem/App/FemPostPipeline.cpp | 8 ++++---- src/Mod/Fem/feminout/importCcxFrdResults.py | 2 +- src/Mod/Material/MaterialEditor.py | 4 ++-- src/Mod/PartDesign/App/FeatureSketchBased.cpp | 4 ++-- src/Mod/Robot/App/kdl_cp/velocityprofile_dirac.hpp | 2 +- src/Mod/Sketcher/App/Sketch.cpp | 2 +- src/Mod/TechDraw/App/DrawDimHelper.cpp | 2 +- src/Mod/TechDraw/Gui/TaskCenterLine.cpp | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Gui/Macro.h b/src/Gui/Macro.h index b2771cf2b5..44dab4aa50 100644 --- a/src/Gui/Macro.h +++ b/src/Gui/Macro.h @@ -77,7 +77,7 @@ public: void commit(void); /// cancels the recording session void cancel(void); - /// indicates if a macro recording in in progress + /// indicates if a macro recording is in progress bool isOpen(void) const {return openMacro;} /// insert a new line in the macro void addLine(LineType Type,const char* sLine,bool pending=false); diff --git a/src/Mod/Arch/ArchComponent.py b/src/Mod/Arch/ArchComponent.py index 16e6870d42..69b063a04b 100644 --- a/src/Mod/Arch/ArchComponent.py +++ b/src/Mod/Arch/ArchComponent.py @@ -1537,7 +1537,7 @@ class ViewProviderComponent: return False def colorize(self,obj,force=False): - """If an object is a clone, set it it to copy the color of its parent. + """If an object is a clone, set it to copy the color of its parent. Only change the color of the clone if the clone and its parent have colors that are distinguishably different from each other. diff --git a/src/Mod/Fem/App/FemPostPipeline.cpp b/src/Mod/Fem/App/FemPostPipeline.cpp index ee9efb5eb2..529942538c 100644 --- a/src/Mod/Fem/App/FemPostPipeline.cpp +++ b/src/Mod/Fem/App/FemPostPipeline.cpp @@ -60,11 +60,11 @@ const char* FemPostPipeline::ModeEnums[]= {"Serial","Parallel",NULL}; FemPostPipeline::FemPostPipeline() { - ADD_PROPERTY_TYPE(Filter, (0), "Pipeline", App::Prop_None, "The filter used in in this pipeline"); + ADD_PROPERTY_TYPE(Filter, (0), "Pipeline", App::Prop_None, "The filter used in this pipeline"); ADD_PROPERTY_TYPE(Functions, (0), "Pipeline", App::Prop_Hidden, "The function provider which groups all pipeline functions"); - ADD_PROPERTY_TYPE(Mode,(long(0)), "Pipeline", App::Prop_None, "Selects the pipeline data transition mode. In serial every filter" - "gets the output of the previous one as input, in parallel every" - "filter gets the pipelien source as input."); + ADD_PROPERTY_TYPE(Mode,(long(0)), "Pipeline", App::Prop_None, "Selects the pipeline data transition mode. In serial, every filter" + "gets the output of the previous one as input. In parallel, every" + "filter gets the pipeline source as input."); Mode.setEnums(ModeEnums); } diff --git a/src/Mod/Fem/feminout/importCcxFrdResults.py b/src/Mod/Fem/feminout/importCcxFrdResults.py index 60b3c8f625..e5e93df382 100644 --- a/src/Mod/Fem/feminout/importCcxFrdResults.py +++ b/src/Mod/Fem/feminout/importCcxFrdResults.py @@ -397,7 +397,7 @@ def read_frd_result( CalculiX uses a different node order in input file *.inp and result file *.frd for hexa20 (C3D20) according to Guido (the developer of ccx): - see note in in first line of cgx manuel part element types + see note in the first line of cgx manual part element types ccx (and thus the *.inp) follows the ABAQUS convention documented in the ccx-documentation cgx (and thus the *.frd) follows the FAM2 convention diff --git a/src/Mod/Material/MaterialEditor.py b/src/Mod/Material/MaterialEditor.py index 0dd7d10d1d..c546ab199c 100644 --- a/src/Mod/Material/MaterialEditor.py +++ b/src/Mod/Material/MaterialEditor.py @@ -709,7 +709,7 @@ def matProperWidget(parent=None, matproperty=None, Type="String", Value=None, "Not known unit for property: {}. Probably the Quantity does not have a unit.\n" .format(matproperty) ) - # the Gui::InputField is used for Floats too, because of the diggits + # the Gui::InputField is used for Floats too, because of the digits elif Type == "Integer": @@ -718,7 +718,7 @@ def matProperWidget(parent=None, matproperty=None, Type="String", Value=None, # elif Type == "Float": # widget = ui.createWidget("Gui::PrefDoubleSpinBox") - # has only 2 diggits precision, but for example RelativePermittivity needs much more + # has only 2 digit precision, but for example RelativePermittivity needs much more # see material card for Air, thus Workaround # a "Gui::InputField" without unit is used diff --git a/src/Mod/PartDesign/App/FeatureSketchBased.cpp b/src/Mod/PartDesign/App/FeatureSketchBased.cpp index bee0e7242b..a0db850e05 100644 --- a/src/Mod/PartDesign/App/FeatureSketchBased.cpp +++ b/src/Mod/PartDesign/App/FeatureSketchBased.cpp @@ -759,8 +759,8 @@ bool ProfileBased::checkLineCrossesFace(const gp_Lin &line, const TopoDS_Face &f return false; #else // This is not as easy as it looks, because a distance of zero might be OK if - // the axis touches the sketchshape in in a linear edge or a vertex - // Note: This algorithm does not catch cases where the sketchshape touches the + // the axis touches the sketchshape in a linear edge or a vertex + // Note: This algorithm doesn't catch cases where the sketchshape touches the // axis in two or more points // Note: And it only works on closed outer wires TopoDS_Wire outerWire = ShapeAnalysis::OuterWire(face); diff --git a/src/Mod/Robot/App/kdl_cp/velocityprofile_dirac.hpp b/src/Mod/Robot/App/kdl_cp/velocityprofile_dirac.hpp index ce06b6d440..82a55eb99b 100644 --- a/src/Mod/Robot/App/kdl_cp/velocityprofile_dirac.hpp +++ b/src/Mod/Robot/App/kdl_cp/velocityprofile_dirac.hpp @@ -35,7 +35,7 @@ namespace KDL { /** * A Dirac VelocityProfile generates an infinite velocity - * so that the position jumps from A to B in in infinite short time. + * so that the position jumps from A to B in an infinite short time. * In practice, this means that the maximum values are ignored and * for any t : Vel(t) == 0 and Acc(t) == 0. * Further Pos( -0 ) = pos1 and Pos( +0 ) = pos2. diff --git a/src/Mod/Sketcher/App/Sketch.cpp b/src/Mod/Sketcher/App/Sketch.cpp index f783918c27..e1880af526 100644 --- a/src/Mod/Sketcher/App/Sketch.cpp +++ b/src/Mod/Sketcher/App/Sketch.cpp @@ -2359,7 +2359,7 @@ int Sketch::addTangentConstraint(int geoId1, int geoId2) //This function handles any type of tangent, perpendicular and angle // constraint that involves a point. // i.e. endpoint-to-curve, endpoint-to-endpoint and tangent-via-point -//geoid1, geoid2 and geoid3 as in in the constraint object. +//geoid1, geoid2 and geoid3 as in the constraint object. //For perp-ty and tangency, angle is used to lock the direction. //angle==0 - autodetect direction. +pi/2, -pi/2 - specific direction. int Sketch::addAngleAtPointConstraint( diff --git a/src/Mod/TechDraw/App/DrawDimHelper.cpp b/src/Mod/TechDraw/App/DrawDimHelper.cpp index 250c069971..ffaf75c8b6 100644 --- a/src/Mod/TechDraw/App/DrawDimHelper.cpp +++ b/src/Mod/TechDraw/App/DrawDimHelper.cpp @@ -85,7 +85,7 @@ hTrimCurve::hTrimCurve(Handle(Geom2d_Curve) hCurveIn, //just a convenient struct for now. } -//All this OCC math is being done on on edges(&vertices) that have been through the center/scale/mirror process. +//All this OCC math is being done on edges(&vertices) that have been through the center/scale/mirror process. //TODO: this needs to be exposed to Python void DrawDimHelper::makeExtentDim(DrawViewPart* dvp, diff --git a/src/Mod/TechDraw/Gui/TaskCenterLine.cpp b/src/Mod/TechDraw/Gui/TaskCenterLine.cpp index 02cab650ef..fceb1b7ff1 100644 --- a/src/Mod/TechDraw/Gui/TaskCenterLine.cpp +++ b/src/Mod/TechDraw/Gui/TaskCenterLine.cpp @@ -106,7 +106,7 @@ TaskCenterLine::TaskCenterLine(TechDraw::DrawViewPart* partFeat, setUiEdit(); // connect the dialog objects setUiConnect(); - // save the existing centerline to restore in in case the user rejects the changes + // save the existing centerline to restore in case the user rejects the changes orig_cl = *m_cl; }