summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/elements/fill.py3
-rw-r--r--lib/elements/satin_column.py5
-rw-r--r--lib/elements/stroke.py4
-rw-r--r--lib/extensions/install.py6
-rw-r--r--lib/extensions/print_pdf.py5
-rw-r--r--lib/stitch_plan/stitch_plan.py4
-rw-r--r--lib/stitches/fill.py2
-rw-r--r--messages.po96
-rw-r--r--stub.py3
9 files changed, 69 insertions, 59 deletions
diff --git a/lib/elements/fill.py b/lib/elements/fill.py
index 672f4db8..77284414 100644
--- a/lib/elements/fill.py
+++ b/lib/elements/fill.py
@@ -44,7 +44,8 @@ class Fill(EmbroideryElement):
@param(
'flip',
_('Flip fill (start right-to-left)'),
- tooltip=_('The flip option can help you with routing your stitch path. When you enable flip, stitching goes from right-to-left instead of left-to-right.'),
+ tooltip=_('The flip option can help you with routing your stitch path. '
+ 'When you enable flip, stitching goes from right-to-left instead of left-to-right.'),
type='boolean',
default=False)
def flip(self):
diff --git a/lib/elements/satin_column.py b/lib/elements/satin_column.py
index e13e1118..9927a606 100644
--- a/lib/elements/satin_column.py
+++ b/lib/elements/satin_column.py
@@ -42,7 +42,8 @@ class SatinColumn(EmbroideryElement):
@param(
'pull_compensation_mm',
_('Pull compensation'),
- tooltip=_('Satin stitches pull the fabric together, resulting in a column narrower than you draw in Inkscape. This setting expands each pair of needle penetrations outward from the center of the satin column.'),
+ tooltip=_('Satin stitches pull the fabric together, resulting in a column narrower than you draw in Inkscape. '
+ 'This setting expands each pair of needle penetrations outward from the center of the satin column.'),
unit='mm',
type='float',
default=0)
@@ -174,7 +175,7 @@ class SatinColumn(EmbroideryElement):
# handle null intersections here?
linestrings = shops.split(rail, rungs)
- #print >> dbg, "rails and rungs", [str(rail) for rail in rails], [str(rung) for rung in rungs]
+ # print >> dbg, "rails and rungs", [str(rail) for rail in rails], [str(rung) for rung in rungs]
if len(linestrings.geoms) < len(rungs.geoms) + 1:
self.fatal(_("satin column: One or more of the rungs doesn't intersect both rails.") +
" " + _("Each rail should intersect both rungs once."))
diff --git a/lib/elements/stroke.py b/lib/elements/stroke.py
index 183ef23b..3ae2b143 100644
--- a/lib/elements/stroke.py
+++ b/lib/elements/stroke.py
@@ -41,7 +41,9 @@ class Stroke(EmbroideryElement):
@param(
'bean_stitch_repeats',
_('Bean stitch number of repeats'),
- tooltip=_('Backtrack each stitch this many times. A value of 1 would triple each stitch (forward, back, forward). A value of 2 would quintuple each stitch, etc. Only applies to running stitch.'),
+ tooltip=_('Backtrack each stitch this many times. '
+ 'A value of 1 would triple each stitch (forward, back, forward). '
+ 'A value of 2 would quintuple each stitch, etc. Only applies to running stitch.'),
type='int',
default=0,
sort_index=2)
diff --git a/lib/extensions/install.py b/lib/extensions/install.py
index 2863bef0..0745eddc 100644
--- a/lib/extensions/install.py
+++ b/lib/extensions/install.py
@@ -27,8 +27,10 @@ class InstallerFrame(wx.Frame):
text_sizer = wx.BoxSizer(wx.HORIZONTAL)
- text = _('Ink/Stitch can install files ("add-ons") that make it easier to use Inkscape to create machine embroidery designs. These add-ons will be installed:') + \
- "\n\n • " + _("thread manufacturer color palettes") + "\n • " + _("Ink/Stitch visual commands (Object -> Symbols...)")
+ text = (_('Ink/Stitch can install files ("add-ons") that make it easier to use Inkscape to create machine embroidery designs. '
+ 'These add-ons will be installed:') +
+ "\n\n • " + _("thread manufacturer color palettes") +
+ "\n • " + _("Ink/Stitch visual commands (Object -> Symbols...)"))
static_text = wx.StaticText(panel, label=text)
font = wx.Font(12, wx.DEFAULT, wx.NORMAL, wx.NORMAL)
diff --git a/lib/extensions/print_pdf.py b/lib/extensions/print_pdf.py
index ee3dc316..90ca83ae 100644
--- a/lib/extensions/print_pdf.py
+++ b/lib/extensions/print_pdf.py
@@ -262,7 +262,10 @@ class PrintInfoFrame(wx.Frame):
panel = wx.Panel(self)
sizer = wx.BoxSizer(wx.VERTICAL)
- text = wx.StaticText(panel, label=_("A print preview has been opened in your web browser. This window will stay open in order to communicate with the JavaScript code running in your browser.\n\nThis window will close after you close the print preview in your browser, or you can close it manually if necessary."))
+ message = _("A print preview has been opened in your web browser. "
+ "This window will stay open in order to communicate with the JavaScript code running in your browser.\n\n"
+ "This window will close after you close the print preview in your browser, or you can close it manually if necessary.")
+ text = wx.StaticText(panel, label=message)
font = wx.Font(14, wx.DEFAULT, wx.NORMAL, wx.NORMAL)
text.SetFont(font)
sizer.Add(text, proportion=1, flag=wx.ALL | wx.EXPAND, border=20)
diff --git a/lib/stitch_plan/stitch_plan.py b/lib/stitch_plan/stitch_plan.py
index 682ea09f..c713b42e 100644
--- a/lib/stitch_plan/stitch_plan.py
+++ b/lib/stitch_plan/stitch_plan.py
@@ -209,8 +209,8 @@ class ColorBlock(object):
# Don't consider jumps, stops, color changes, or trims as candidates for filtering
pass
else:
- l = (stitch - stitches[-1]).length()
- if l <= 0.1 * PIXELS_PER_MM:
+ length = (stitch - stitches[-1]).length()
+ if length <= 0.1 * PIXELS_PER_MM:
# duplicate stitch, skip this one
continue
diff --git a/lib/stitches/fill.py b/lib/stitches/fill.py
index ac8b52ee..b6b97e1b 100644
--- a/lib/stitches/fill.py
+++ b/lib/stitches/fill.py
@@ -120,7 +120,7 @@ def intersect_region_with_grating(shape, angle, row_spacing, end_row_spacing=Non
height = abs(end - start)
- #print >> dbg, "grating:", start, end, height, row_spacing, end_row_spacing
+ # print >> dbg, "grating:", start, end, height, row_spacing, end_row_spacing
# offset start slightly so that rows are always an even multiple of
# row_spacing_px from the origin. This makes it so that abutting
diff --git a/messages.po b/messages.po
index a5abfb66..94de4c34 100644
--- a/messages.po
+++ b/messages.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2018-08-21 20:32-0400\n"
+"POT-Creation-Date: 2018-08-21 20:50-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -156,35 +156,35 @@ msgid ""
"enable flip, stitching goes from right-to-left instead of left-to-right."
msgstr ""
-#: lib/elements/fill.py:55
+#: lib/elements/fill.py:56
msgid "Spacing between rows"
msgstr ""
-#: lib/elements/fill.py:56
+#: lib/elements/fill.py:57
msgid "Distance between rows of stitches."
msgstr ""
-#: lib/elements/fill.py:69
+#: lib/elements/fill.py:70
msgid "Maximum fill stitch length"
msgstr ""
-#: lib/elements/fill.py:70
+#: lib/elements/fill.py:71
msgid ""
"The length of each stitch in a row. Shorter stitch may be used at the "
"start or end of a row."
msgstr ""
-#: lib/elements/fill.py:79
+#: lib/elements/fill.py:80
msgid "Stagger rows this many times before repeating"
msgstr ""
-#: lib/elements/fill.py:80
+#: lib/elements/fill.py:81
msgid ""
"Setting this dictates how many rows apart the stitches will be before "
"they fall in the same column position."
msgstr ""
-#: lib/elements/fill.py:113
+#: lib/elements/fill.py:114
#, python-format
msgid ""
"shape %s is so small that it cannot be filled with stitches. Please make"
@@ -203,7 +203,7 @@ msgstr ""
msgid "\"E\" stitch"
msgstr ""
-#: lib/elements/satin_column.py:32 lib/elements/stroke.py:53
+#: lib/elements/satin_column.py:32 lib/elements/stroke.py:55
msgid "Zig-zag spacing (peak-to-peak)"
msgstr ""
@@ -222,93 +222,93 @@ msgid ""
"penetrations outward from the center of the satin column."
msgstr ""
-#: lib/elements/satin_column.py:56
+#: lib/elements/satin_column.py:57
msgid "Contour underlay"
msgstr ""
-#: lib/elements/satin_column.py:56 lib/elements/satin_column.py:63
-#: lib/elements/satin_column.py:72
+#: lib/elements/satin_column.py:57 lib/elements/satin_column.py:64
+#: lib/elements/satin_column.py:73
msgid "Contour Underlay"
msgstr ""
-#: lib/elements/satin_column.py:63 lib/elements/satin_column.py:87
+#: lib/elements/satin_column.py:64 lib/elements/satin_column.py:88
msgid "Stitch length"
msgstr ""
-#: lib/elements/satin_column.py:69
+#: lib/elements/satin_column.py:70
msgid "Contour underlay inset amount"
msgstr ""
-#: lib/elements/satin_column.py:70
+#: lib/elements/satin_column.py:71
msgid ""
"Shrink the outline, to prevent the underlay from showing around the "
"outside of the satin column."
msgstr ""
-#: lib/elements/satin_column.py:80
+#: lib/elements/satin_column.py:81
msgid "Center-walk underlay"
msgstr ""
-#: lib/elements/satin_column.py:80 lib/elements/satin_column.py:87
+#: lib/elements/satin_column.py:81 lib/elements/satin_column.py:88
msgid "Center-Walk Underlay"
msgstr ""
-#: lib/elements/satin_column.py:92
+#: lib/elements/satin_column.py:93
msgid "Zig-zag underlay"
msgstr ""
-#: lib/elements/satin_column.py:92 lib/elements/satin_column.py:101
-#: lib/elements/satin_column.py:112
+#: lib/elements/satin_column.py:93 lib/elements/satin_column.py:102
+#: lib/elements/satin_column.py:113
msgid "Zig-zag Underlay"
msgstr ""
-#: lib/elements/satin_column.py:98
+#: lib/elements/satin_column.py:99
msgid "Zig-Zag spacing (peak-to-peak)"
msgstr ""
-#: lib/elements/satin_column.py:99
+#: lib/elements/satin_column.py:100
msgid "Distance between peaks of the zig-zags."
msgstr ""
-#: lib/elements/satin_column.py:109
+#: lib/elements/satin_column.py:110
msgid "Inset amount"
msgstr ""
-#: lib/elements/satin_column.py:110
+#: lib/elements/satin_column.py:111
msgid "default: half of contour underlay inset"
msgstr ""
-#: lib/elements/satin_column.py:147
+#: lib/elements/satin_column.py:148
#, python-format
msgid "satin column: %(id)s: at least two subpaths required (%(num)d found)"
msgstr ""
-#: lib/elements/satin_column.py:172
+#: lib/elements/satin_column.py:173
msgid ""
"One or more rails crosses itself, and this is not allowed. Please split "
"into multiple satin columns."
msgstr ""
-#: lib/elements/satin_column.py:179
+#: lib/elements/satin_column.py:180
msgid "satin column: One or more of the rungs doesn't intersect both rails."
msgstr ""
-#: lib/elements/satin_column.py:180 lib/elements/satin_column.py:183
+#: lib/elements/satin_column.py:181 lib/elements/satin_column.py:184
msgid "Each rail should intersect both rungs once."
msgstr ""
-#: lib/elements/satin_column.py:182
+#: lib/elements/satin_column.py:183
msgid ""
"satin column: One or more of the rungs intersects the rails more than "
"once."
msgstr ""
-#: lib/elements/satin_column.py:223
+#: lib/elements/satin_column.py:224
#, python-format
msgid "satin column: object %s has a fill (but should not)"
msgstr ""
-#: lib/elements/satin_column.py:227
+#: lib/elements/satin_column.py:228
#, python-format
msgid ""
"satin column: object %(id)s has two paths with an unequal number of "
@@ -338,29 +338,29 @@ msgid ""
"stitch, etc. Only applies to running stitch."
msgstr ""
-#: lib/elements/stroke.py:54
+#: lib/elements/stroke.py:56
msgid "Length of stitches in zig-zag mode."
msgstr ""
-#: lib/elements/stroke.py:65
+#: lib/elements/stroke.py:67
msgid "Repeats"
msgstr ""
-#: lib/elements/stroke.py:66
+#: lib/elements/stroke.py:68
msgid "Defines how many times to run down and back along the path."
msgstr ""
-#: lib/elements/stroke.py:90
+#: lib/elements/stroke.py:92
msgid "Manual stitch placement"
msgstr ""
-#: lib/elements/stroke.py:91
+#: lib/elements/stroke.py:93
msgid ""
"Stitch every node in the path. Stitch length and zig-zag spacing are "
"ignored."
msgstr ""
-#: lib/elements/stroke.py:125
+#: lib/elements/stroke.py:127
msgid ""
"Legacy running stitch setting detected!\n"
"\n"
@@ -416,45 +416,45 @@ msgid ""
"installed:"
msgstr ""
-#: lib/extensions/install.py:31
+#: lib/extensions/install.py:32
msgid "thread manufacturer color palettes"
msgstr ""
-#: lib/extensions/install.py:31
+#: lib/extensions/install.py:33
msgid "Ink/Stitch visual commands (Object -> Symbols...)"
msgstr ""
-#: lib/extensions/install.py:40
+#: lib/extensions/install.py:42
msgid "Install"
msgstr ""
-#: lib/extensions/install.py:43 lib/extensions/params.py:380
+#: lib/extensions/install.py:45 lib/extensions/params.py:380
msgid "Cancel"
msgstr ""
-#: lib/extensions/install.py:57
+#: lib/extensions/install.py:59
msgid "Choose Inkscape directory"
msgstr ""
-#: lib/extensions/install.py:67
+#: lib/extensions/install.py:69
msgid "Inkscape add-on installation failed"
msgstr ""
-#: lib/extensions/install.py:68
+#: lib/extensions/install.py:70
msgid "Installation Failed"
msgstr ""
-#: lib/extensions/install.py:72
+#: lib/extensions/install.py:74
msgid ""
"Inkscape add-on files have been installed. Please restart Inkscape to "
"load the new add-ons."
msgstr ""
-#: lib/extensions/install.py:73
+#: lib/extensions/install.py:75
msgid "Installation Completed"
msgstr ""
-#: lib/extensions/install.py:103
+#: lib/extensions/install.py:105
msgid "Ink/Stitch Add-ons Installer"
msgstr ""
@@ -596,7 +596,7 @@ msgid ""
" or you can close it manually if necessary."
msgstr ""
-#: lib/extensions/print_pdf.py:411
+#: lib/extensions/print_pdf.py:414
msgid "Ink/Stitch Print"
msgstr ""
diff --git a/stub.py b/stub.py
index 6daaf5ae..3d873196 100644
--- a/stub.py
+++ b/stub.py
@@ -36,7 +36,8 @@ try:
stdout, stderr = extension.communicate()
except BaseException:
print >> sys.stderr, "Unexpected error launching Ink/Stitch."
- print >> sys.stderr, "If you're having trouble, please file an issue here, including the text below: https://github.com/inkstitch/inkstitch/issues\n"
+ print >> sys.stderr, "If you're having trouble, please file an issue here, including the text below:"
+ print >> sys.stderr, " https://github.com/inkstitch/inkstitch/issues\n"
print >> sys.stderr, "Tried to launch:", binary_path
print >> sys.stderr, "Arguments:", args
print >> sys.stderr, "Debugging information:\n"