From 67141c8266f31b813ac660179f9268e1d9b9efe7 Mon Sep 17 00:00:00 2001
From: luz paz <luzpaz@pm.me>
Date: Sun, 8 May 2022 07:52:31 -0400
Subject: [PATCH] Fix various typos

Found via `codespell -q 3 -S *.ts,*.po,./scribus/third_party,./doc,./ChangeLog,./codegen/cheetah,./resources/templates/template.de.xml,./resources/templates/template.es.xml,./resources/unicodemap/unicodenameslist.txt,./resources/loremipsum  -L ba,dum,fo,nd,pres,te`
---
 scribus/pageitem_table.h                            | 2 +-
 scribus/plugins/barcodegenerator/barcode.ps         | 6 +++---
 scribus/plugins/scripter/python/safe_eval.py        | 8 ++++----
 scribus/plugins/scripter/python/scripter_runtime.py | 2 +-
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/scribus/pageitem_table.h b/scribus/pageitem_table.h
index eefbc95f2..f81024763 100644
--- a/scribus/pageitem_table.h
+++ b/scribus/pageitem_table.h
@@ -702,7 +702,7 @@ private:
 	// Undo/redo row height action
 	void restoreTableRowHeight(SimpleState *state, bool isUndo);
 
-	// Undo/redo column widht action
+	// Undo/redo column width action
 	void restoreTableColumnWidth(SimpleState *state, bool isUndo);
 
 private:
diff --git a/scribus/plugins/barcodegenerator/barcode.ps b/scribus/plugins/barcodegenerator/barcode.ps
index f491910c6..b53036b07 100644
--- a/scribus/plugins/barcodegenerator/barcode.ps
+++ b/scribus/plugins/barcodegenerator/barcode.ps
@@ -19969,7 +19969,7 @@ begin
             /fid () def
         } ifelse
 
-        % Read the postcode, country code and service code fields seperated by GS
+        % Read the postcode, country code and service code fields separated by GS
         barcode <1d> search pop /pcode exch def
         pop <1d> search pop /ccode exch def
         pop <1d> search pop /scode exch def
@@ -20408,7 +20408,7 @@ begin
     % Recompose the secondary parity codewords
     /secchk [ 0 1 scodes 1 sub { dup secochk exch get exch secechk exch get } for ] def
 
-    % Concatinate the data into final codewords
+    % Concatenate the data into final codewords
     /codewords [
         pri aload pop
         pri 10 rscodes aload pop
@@ -23996,7 +23996,7 @@ begin
         } if
 
         % Check for groups of blank rows unless data is encoded horizontally
-        % in a symbol of sufficent width to overcome up to six consecutive 0s
+        % in a symbol of sufficient width to overcome up to six consecutive 0s
         % in two neighbouring 5 of 9 dot patterns
         rows 2 mod 0 eq columns 12 le or {
             /sum 0 def  /p 0 def
diff --git a/scribus/plugins/scripter/python/safe_eval.py b/scribus/plugins/scripter/python/safe_eval.py
index 4b45b9adc..005c7ce01 100644
--- a/scribus/plugins/scripter/python/safe_eval.py
+++ b/scribus/plugins/scripter/python/safe_eval.py
@@ -475,16 +475,16 @@ class TestSafeEval(unittest.TestCase):
             timed_safe_eval, "().__class__.mro()[1].__subclasses__()")
 
     def test_timeout_ok(self):
-        # attempt to exectute 'slow' code which finishes within timelimit
+        # attempt to execute 'slow' code which finishes within timelimit
         def test(): time.sleep(2)
         env = {'test':test}
         timed_safe_eval("test()", env, timeout_secs = 5)
 
     def test_timeout_exceed(self):
-        # attempt to exectute code which never teminates
+        # attempt to execute code which never teminates
         self.assertRaises(SafeEvalException, \
-            timed_safe_eval, "while 1: pass")
-
+            timed_safe_eval, "while 1: pass")
+
     def test_invalid_context(self):
         # can't pass an environment with modules or builtins
         env = {'f' : __builtins__.open, 'g' : time}
diff --git a/scribus/plugins/scripter/python/scripter_runtime.py b/scribus/plugins/scripter/python/scripter_runtime.py
index 87cbdf2ba..856609815 100644
--- a/scribus/plugins/scripter/python/scripter_runtime.py
+++ b/scribus/plugins/scripter/python/scripter_runtime.py
@@ -164,7 +164,7 @@ def check_python(filename):
 
     problems = checkCode(code)
     if problems and len(problems) == 1 and isinstance(problems[0], SyntaxError):
-        return True # let's ignore it and let excepthook hande the error later
+        return True # let's ignore it and let excepthook handle the error later
     elif problems:
         ok = permitdlg.ask(filename, problems)
         if ok == -2: # deny and remember
-- 
2.35.1

