From: luz paz Date: Mon, 30 Nov 2020 09:55:48 +0000 (+0300) Subject: 0031939: Coding - correction of spelling errors in comments [part 2] X-Git-Tag: V7_6_0_beta~370 X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=commitdiff_plain;h=a110c4a3777de359b6bbe2b3baeb99fe34f2bdf7 0031939: Coding - correction of spelling errors in comments [part 2] Fix various typos Fixed via `codespell v2.0.dev` --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 100d61339d..b8c22b2c86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -219,7 +219,7 @@ if (NOT DEFINED INSTALL_DIR_BIN) endif() endif() -# define folder contaning all shell/batch scripts +# define folder containing all shell/batch scripts if (NOT DEFINED INSTALL_DIR_SCRIPT) if ("${INSTALL_DIR_LAYOUT}" STREQUAL "Unix") set (INSTALL_DIR_SCRIPT "${INSTALL_DIR_BIN}" CACHE PATH "${INSTALL_DIR_SCRIPT_DESCR}") @@ -311,7 +311,7 @@ if (NOT DEFINED INSTALL_DIR_DOC) endif() endif() -# define folder contaning CMake configuration files +# define folder containing CMake configuration files if (NOT DEFINED INSTALL_DIR_CMAKE) if ("${INSTALL_DIR_LAYOUT}" STREQUAL "Unix") if (INSTALL_DIR_WITH_VERSION) diff --git a/adm/cmake/cotire.cmake b/adm/cmake/cotire.cmake index 6cf0cb66a5..f0916e21f4 100644 --- a/adm/cmake/cotire.cmake +++ b/adm/cmake/cotire.cmake @@ -2402,7 +2402,7 @@ function (cotire_setup_target_pch_usage _languages _target _wholeTarget) message (STATUS "add_custom_command: TARGET ${_target} PRE_BUILD ${_cmds}") endif() # because CMake PRE_BUILD command does not support dependencies, - # we check dependencies explicity in cotire script mode when the pre-build action is run + # we check dependencies explicitly in cotire script mode when the pre-build action is run add_custom_command( TARGET "${_target}" PRE_BUILD ${_cmds} diff --git a/adm/cmake/occt_toolkit.cmake b/adm/cmake/occt_toolkit.cmake index 796050594b..12d6cd6025 100644 --- a/adm/cmake/occt_toolkit.cmake +++ b/adm/cmake/occt_toolkit.cmake @@ -95,7 +95,7 @@ foreach (OCCT_PACKAGE ${USED_PACKAGES}) # Note: files are generated in original source directory (not in patch!) set (FLEX_BISON_TARGET_DIR "${CMAKE_SOURCE_DIR}/${RELATIVE_SOURCES_DIR}/${OCCT_PACKAGE}") - # choose apropriate extension for generated files: "cxx" if source file contains + # choose appropriate extension for generated files: "cxx" if source file contains # instruction to generate C++ code, "c" otherwise set (BISON_OUTPUT_FILE_EXT "c") set (FLEX_OUTPUT_FILE_EXT "c") diff --git a/adm/cmake/tcl.cmake b/adm/cmake/tcl.cmake index f9cb8938df..77359a6204 100644 --- a/adm/cmake/tcl.cmake +++ b/adm/cmake/tcl.cmake @@ -245,7 +245,7 @@ if (BUILD_SHARED_LIBS) install (DIRECTORY "${3RDPARTY_TCL_LIBRARY_DIR}/tcl8" DESTINATION "${INSTALL_DIR_LIB}") install (DIRECTORY "${3RDPARTY_TCL_LIBRARY_DIR}/tcl${TCL_TCLSH_VERSION}" DESTINATION "${INSTALL_DIR_LIB}") else() - message (STATUS "\nWarning: tclX.X subdir won't be copyied during the installation process.") + message (STATUS "\nWarning: tclX.X subdir won't be copied during the installation process.") message (STATUS "Try seeking tcl within another folder by changing 3RDPARTY_TCL_DIR variable.") endif() diff --git a/adm/cmake/tk.cmake b/adm/cmake/tk.cmake index 5e6d4299f3..a30081270c 100644 --- a/adm/cmake/tk.cmake +++ b/adm/cmake/tk.cmake @@ -250,7 +250,7 @@ if (BUILD_SHARED_LIBS) # tk is required to install in lib folder (without) install (DIRECTORY "${3RDPARTY_TK_LIBRARY_DIR}/tk${TCL_TCLSH_VERSION}" DESTINATION "${INSTALL_DIR_LIB}") else() - message (STATUS "\nWarning: tkX.X subdir won't be copyied during the installation process.") + message (STATUS "\nWarning: tkX.X subdir won't be copied during the installation process.") message (STATUS "Try seeking tk within another folder by changing 3RDPARTY_TK_DIR variable.") endif() diff --git a/adm/genproj.tcl b/adm/genproj.tcl index 8a077ae8d5..d3a5c8a933 100644 --- a/adm/genproj.tcl +++ b/adm/genproj.tcl @@ -1885,7 +1885,7 @@ proc osutils:vcproj { theVcVer isUWP theOutDir theToolKit theGuidsMap theSrcDir set written([file tail $aSrcFile]) 1 append aFilesSection [osutils:vcxproj:cxxfile $aSrcFile $needparam 3] } else { - puts "Warning : in vcproj more than one occurences for [file tail $aSrcFile]" + puts "Warning : in vcproj more than one occurrences for [file tail $aSrcFile]" } if { ! [info exists aVcFilesCxx($xlo)] } { lappend aVcFilesCxx(units) $xlo } lappend aVcFilesCxx($xlo) $aSrcFile @@ -1895,7 +1895,7 @@ proc osutils:vcproj { theVcVer isUWP theOutDir theToolKit theGuidsMap theSrcDir set written([file tail $aHxxFile]) 1 append aFilesSection [osutils:vcxproj:hxxfile $aHxxFile] } else { - puts "Warning : in vcproj more than one occurences for [file tail $aHxxFile]" + puts "Warning : in vcproj more than one occurrences for [file tail $aHxxFile]" } if { ! [info exists aVcFilesHxx($xlo)] } { lappend aVcFilesHxx(units) $xlo } lappend aVcFilesHxx($xlo) $aHxxFile @@ -1905,7 +1905,7 @@ proc osutils:vcproj { theVcVer isUWP theOutDir theToolKit theGuidsMap theSrcDir set written([file tail $aGenFile]) 1 append aFilesSection [osutils:vcxproj:cxxfile $aGenFile $needparam 5] } else { - puts "Warning : in vcproj more than one occurences for [file tail $aGenFile]" + puts "Warning : in vcproj more than one occurrences for [file tail $aGenFile]" } if { ! [info exists aVcFilesCxx($xlo)] } { lappend aVcFilesCxx(units) $xlo } lappend aVcFilesCxx($xlo) $aGenFile @@ -1919,7 +1919,7 @@ proc osutils:vcproj { theVcVer isUWP theOutDir theToolKit theGuidsMap theSrcDir set written([file tail $aSrcFile]) 1 append aFilesSection [osutils:vcproj:file $theVcVer $aSrcFile $needparam] } else { - puts "Warning : in vcproj more than one occurences for [file tail $aSrcFile]" + puts "Warning : in vcproj more than one occurrences for [file tail $aSrcFile]" } } append aFilesSection "\t\t\t\n" @@ -2128,7 +2128,7 @@ proc osutils:vcprojx { theVcVer isUWP theOutDir theToolKit theGuidsMap theSrcDir append aFilesSection "\t\t\t" } } else { - puts "Warning : in vcproj there are more than one occurences for [file tail $f]" + puts "Warning : in vcproj there are more than one occurrences for [file tail $f]" } #puts "$aProjTmpl $aFilesSection" set anIncPaths "..\\..\\..\\inc" @@ -2326,7 +2326,7 @@ proc osutils:cbptk { theCmpl theOutDir theToolKit thePlatform} { set written([file tail $aSrcFile]) 1 lappend aTKSrcFiles "../../../[wokUtils:FILES:wtail $aSrcFile 3]" } else { - puts "Warning : more than one occurences for [file tail $aSrcFile]" + puts "Warning : more than one occurrences for [file tail $aSrcFile]" } } @@ -2446,7 +2446,7 @@ proc osutils:cbpx { theCmpl theOutDir theToolKit thePlatform } { set written([file tail $aSrcFile]) 1 lappend aTKSrcFiles "../../../[wokUtils:FILES:wtail $aSrcFile 3]" } else { - puts "Warning : in cbp there are more than one occurences for [file tail $aSrcFile]" + puts "Warning : in cbp there are more than one occurrences for [file tail $aSrcFile]" } # macros for correct DLL exports @@ -2946,7 +2946,7 @@ proc osutils:xcdtk:sources {theToolKit theTargetType theSrcFileRefSection theGro append aSrcFileGuids "\t\t\t\t$aGuidsMap($aSrcFile) ,\n" append aSrcFileRefGuids "\t\t\t\t$aGuidsMap($aSrcFileRef) ,\n" } else { - puts "Warning : more than one occurences for [file tail $aSrcFile]" + puts "Warning : more than one occurrences for [file tail $aSrcFile]" } } @@ -3008,26 +3008,26 @@ proc osutils:xcdtk { theOutDir theToolKit theGuidsMap theIsStatic thePlatform {t set aUserDataDir "${aToolkitDir}/xcuserdata" wokUtils:FILES:mkdir $aUserDataDir if { ! [file exists $aUserDataDir] } { - puts stderr "Error: Could not create xcuserdata directorty in \"$aToolkitDir\"" + puts stderr "Error: Could not create xcuserdata directory in \"$aToolkitDir\"" return } set aUserDataDir "${aUserDataDir}/${aUsername}.xcuserdatad" wokUtils:FILES:mkdir $aUserDataDir if { ! [file exists $aUserDataDir] } { - puts stderr "Error: Could not create ${aUsername}.xcuserdatad directorty in \"$aToolkitDir\"/xcuserdata" + puts stderr "Error: Could not create ${aUsername}.xcuserdatad directory in \"$aToolkitDir\"/xcuserdata" return } set aSchemesDir "${aUserDataDir}/xcschemes" wokUtils:FILES:mkdir $aSchemesDir if { ! [file exists $aSchemesDir] } { - puts stderr "Error: Could not create xcschemes directorty in \"$aUserDataDir\"" + puts stderr "Error: Could not create xcschemes directory in \"$aUserDataDir\"" return } # End of folders creation. - # Generating GUID for tookit. + # Generating GUID for toolkit. upvar $theGuidsMap aGuidsMap if { ! [info exists aGuidsMap($theToolKit)] } { set aGuidsMap($theToolKit) [OS:genGUID "xcd"] @@ -3460,26 +3460,26 @@ proc osutils:xcdx { theOutDir theExecutable theGuidsMap } { set aUserDataDir "${anExecutableDir}/xcuserdata" wokUtils:FILES:mkdir $aUserDataDir if { ! [file exists $aUserDataDir] } { - puts stderr "Error: Could not create xcuserdata directorty in \"$anExecutableDir\"" + puts stderr "Error: Could not create xcuserdata directory in \"$anExecutableDir\"" return } set aUserDataDir "${aUserDataDir}/${aUsername}.xcuserdatad" wokUtils:FILES:mkdir $aUserDataDir if { ! [file exists $aUserDataDir] } { - puts stderr "Error: Could not create ${aUsername}.xcuserdatad directorty in \"$anExecutableDir\"/xcuserdata" + puts stderr "Error: Could not create ${aUsername}.xcuserdatad directory in \"$anExecutableDir\"/xcuserdata" return } set aSchemesDir "${aUserDataDir}/xcschemes" wokUtils:FILES:mkdir $aSchemesDir if { ! [file exists $aSchemesDir] } { - puts stderr "Error: Could not create xcschemes directorty in \"$aUserDataDir\"" + puts stderr "Error: Could not create xcschemes directory in \"$aUserDataDir\"" return } # End folders creation. - # Generating GUID for tookit. + # Generating GUID for toolkit. upvar $theGuidsMap aGuidsMap if { ! [info exists aGuidsMap($theExecutable)] } { set aGuidsMap($theExecutable) [OS:genGUID "xcd"] diff --git a/adm/occaux.tcl b/adm/occaux.tcl index d41af9aa66..97217b3b3d 100644 --- a/adm/occaux.tcl +++ b/adm/occaux.tcl @@ -635,7 +635,7 @@ proc OCCDoc_MakeMainPage {outDir outFile modules {theProductsDir ""} } { foreach mod $modules { puts $fd "\\li \\subpage [string tolower $module_prefix$mod]" } - # insert modules relationship diagramm + # insert modules relationship diagram puts $fd "\\dotfile [OCCDoc_CreateModulesDependencyGraph $outDir/html schema_all_modules $modules $module_prefix]" puts $fd "**/\n" } diff --git a/adm/templates/custom.build.bat.in b/adm/templates/custom.build.bat.in index c03a7fc0d4..39ad45085b 100644 --- a/adm/templates/custom.build.bat.in +++ b/adm/templates/custom.build.bat.in @@ -40,7 +40,7 @@ if /I "%VCVER%" == "@COMPILER@" ( set "CSF_OCCTTestsPath=@CMAKE_SOURCE_DIR@/tests" set "CSF_OCCTDocPath=@CMAKE_SOURCE_DIR@/doc" - rem for compatability with external application using CASROOT + rem for compatibility with external application using CASROOT set "CASROOT=@CMAKE_SOURCE_DIR@" ) ) diff --git a/adm/templates/custom.build.sh.in b/adm/templates/custom.build.sh.in index 002a854951..1f3d2018be 100644 --- a/adm/templates/custom.build.sh.in +++ b/adm/templates/custom.build.sh.in @@ -29,7 +29,7 @@ if [ "$1" == "@BIN_LETTER@" ]; then export CSF_OCCTTestsPath="@CMAKE_SOURCE_DIR@/tests" export CSF_OCCTDocPath="@CMAKE_SOURCE_DIR@/doc" - # for compatability with external application using CASROOT + # for compatibility with external application using CASROOT export CASROOT="@CMAKE_SOURCE_DIR@" fi fi diff --git a/adm/templates/env.bat.in b/adm/templates/env.bat.in index ab85ae16f8..94e8db5cea 100644 --- a/adm/templates/env.bat.in +++ b/adm/templates/env.bat.in @@ -115,7 +115,7 @@ if /I "%VCFMT%" == "vc9" ( exit ) -rem ----- For compatability with external application using CASROOT ----- +rem ----- For compatibility with external application using CASROOT ----- if ["%CASROOT%"] == [""] set "CASROOT=%SCRIPTROOT%" rem ----- Define path to 3rdparty products ----- diff --git a/adm/templates/env.build.sh.in b/adm/templates/env.build.sh.in index 4e6f2f26d2..7e11c6299e 100644 --- a/adm/templates/env.build.sh.in +++ b/adm/templates/env.build.sh.in @@ -2,7 +2,7 @@ aScriptPath=${BASH_SOURCE%/*}; if [ -d "${aScriptPath}" ]; then cd "$aScriptPath"; fi; aScriptPath="$PWD"; -# ----- For compatability with external application using CASROOT ----- +# ----- For compatibility with external application using CASROOT ----- if [ "${CASROOT}" == "" ]; then export CASROOT="${aScriptPath}" fi diff --git a/adm/templates/env.install.sh.in b/adm/templates/env.install.sh.in index 07f203b4eb..bdb2dec2fb 100644 --- a/adm/templates/env.install.sh.in +++ b/adm/templates/env.install.sh.in @@ -2,7 +2,7 @@ aScriptPath=${BASH_SOURCE%/*}; if [ -d "${aScriptPath}" ]; then cd "$aScriptPath"; fi; aScriptPath="$PWD"; -# ----- For compatability with external application using CASROOT ----- +# ----- For compatibility with external application using CASROOT ----- if [ "${CASROOT}" == "" ]; then export CASROOT="@INSTALL_DIR@" fi diff --git a/adm/upgrade.tcl b/adm/upgrade.tcl index 77030716d6..8617165511 100644 --- a/adm/upgrade.tcl +++ b/adm/upgrade.tcl @@ -52,7 +52,7 @@ proc HelpInformation {} { loginfo " -$ArgName(Rename) - apply renaming of classes" loginfo "" loginfo "Advanced options:" - loginfo " -$ArgName(CompatibleMode) - preserve old RTTI macros for compatability with OCCT 6.x" + loginfo " -$ArgName(CompatibleMode) - preserve old RTTI macros for compatibility with OCCT 6.x" loginfo " -$ArgName(CheckOnly) - do check only, no modifications will be made" loginfo " -$ArgName(WLog) - show gui log of upgrade process" loginfo " -$ArgName(Log)= - put the log into a file" diff --git a/dox/upgrade/upgrade.md b/dox/upgrade/upgrade.md index f8221fc810..7a8e804c2e 100644 --- a/dox/upgrade/upgrade.md +++ b/dox/upgrade/upgrade.md @@ -1225,7 +1225,7 @@ Management of highlight attributes has been revised and might require modificati @subsection upgrade_720_implicit_viewer_update Elimination of implicit 3D Viewer updates -Most AIS_InteractiveContext methods are defined with a flag to update viewer immediatly or not. +Most AIS_InteractiveContext methods are defined with a flag to update viewer immediately or not. Within previous version of OCCT, this argument had default value TRUE. While immediate viewer updates are useful for beginners (the result is displayed as soon as possible), this approach is inefficent for batch viewer updates, and having default value as TRUE diff --git a/dox/user_guides/draw_test_harness/draw_test_harness.md b/dox/user_guides/draw_test_harness/draw_test_harness.md index d746707c3a..22641fa72b 100644 --- a/dox/user_guides/draw_test_harness/draw_test_harness.md +++ b/dox/user_guides/draw_test_harness/draw_test_harness.md @@ -2456,7 +2456,7 @@ vdimension name {-angle|-length|-radius|-diameter} -shapes shape1 [shape2 [shape Builds angle, length, radius or diameter dimension interactive object **name**. -**Attension:** length dimension can't be built without working plane. +**Attention:** length dimension can't be built without working plane. **Example:** ~~~~~ @@ -6243,7 +6243,7 @@ Code letters are not case-sensitive. **Example:** ~~~~~ -# to create a trianglular plane using a vertex at the +# to create a triangular plane using a vertex at the origin, in the xy plane profile p O 0 0 0 X 1 Y 0 x 1 y 1 ~~~~~ @@ -6833,7 +6833,7 @@ trotate [name ...] x y z dx dy dz angle **ttranslate** translates a set of shapes by a given vector, and **trotate** rotates them by a given angle around an axis. Both commands only modify the location of the shape. When creating multiple shapes, the same location is used for all the shapes. (See *toto.tcl* example below. Note that the code of this file can also be directly executed in interactive mode.) -Locations are very economic in the data structure because multiple occurences of an object share the topological description. +Locations are very economic in the data structure because multiple occurrences of an object share the topological description. **Example:** ~~~~~ @@ -7999,7 +7999,7 @@ Computes a draft angle surface from a wire. The surface is determined by the dra * The draft angle is measured in radians. * The draft direction is determined by the argument -INTERNAL - * The argument Ri/Ro deftermines wether the corner edges of the draft surfaces are angular or rounded. + * The argument Ri/Ro deftermines whether the corner edges of the draft surfaces are angular or rounded. * Arguments that can be used to define the surface distance are: * length, a defined distance * shape, until the surface contacts a shape @@ -10752,7 +10752,11 @@ Syntax: projpcurve [] ~~~~~ -**projpcurve** returns the projection of a given point on a given curve on surface. The curve on surface is defined by giving the edge and face names. Edge must have curve 2D repesentation on the face. Optional parameter \ is any parameter of pcurve, which is used by algoritm as start point for searching projection of given point with help of local Extrema algorithm. If this parameter is not set, algorithm uses whole parametric interval of pcurve for searching projection. +**projpcurve** returns the projection of a given point on a given curve on surface. +The curve on surface is defined by giving the edge and face names. +Edge must have curve 2D repesentation on the face. +Optional parameter \ is any parameter of pcurve, which is used by algorithm as start point for searching projection of given point with help of local Extrema algorithm. +If this parameter is not set, algorithm uses whole parametric interval of pcurve for searching projection. **Example:** diff --git a/samples/CSharp/WPF_D3D/OCCViewer.cs b/samples/CSharp/WPF_D3D/OCCViewer.cs index eb6df776f4..7ec4355bad 100644 --- a/samples/CSharp/WPF_D3D/OCCViewer.cs +++ b/samples/CSharp/WPF_D3D/OCCViewer.cs @@ -131,7 +131,7 @@ namespace IE_WPF_D3D if (!View.TranslateModel (aFileName, aFormat, true)) { - MessageBox.Show ("Cann't read this file", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Warning); + MessageBox.Show ("Can't read this file", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } View.ZoomAllView (); @@ -453,7 +453,7 @@ namespace IE_WPF_D3D if (Keyboard.IsKeyDown (Key.LeftCtrl) || Keyboard.IsKeyDown (Key.RightCtrl)) { - // start the dinamic zooming.... + // start the dynamic zooming.... CurrentMode = CurrentAction3d.CurAction3d_DynamicZooming; } else diff --git a/samples/CSharp/WPF_D3D/Simple Styles.xaml b/samples/CSharp/WPF_D3D/Simple Styles.xaml index b130cea606..3be3f557c0 100644 --- a/samples/CSharp/WPF_D3D/Simple Styles.xaml +++ b/samples/CSharp/WPF_D3D/Simple Styles.xaml @@ -3,7 +3,7 @@ + If you want to change the color of a control you can just change the brush; if you want to add a new shape or change arrangement then also edit the template --> @@ -402,7 +402,7 @@ - + @@ -974,7 +974,7 @@