diff options
| author | Jabiertxof <jtx@jtx> | 2017-01-14 21:04:51 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2017-01-14 21:04:51 +0000 |
| commit | 8577338d1da18580f412cfb38013e3cc709570a2 (patch) | |
| tree | 6714a8cb09e9073428ba1b28fe0c7df107463029 /share/extensions | |
| parent | fixing crash on erase (diff) | |
| parent | [Bug #1654892] Few typos in Calligraphy tutorial. (diff) | |
| download | inkscape-8577338d1da18580f412cfb38013e3cc709570a2.tar.gz inkscape-8577338d1da18580f412cfb38013e3cc709570a2.zip | |
Update to trunk
(bzr r15392.1.4)
Diffstat (limited to 'share/extensions')
| -rw-r--r-- | share/extensions/CMakeLists.txt | 12 | ||||
| -rwxr-xr-x | share/extensions/draw_from_triangle.py | 19 | ||||
| -rwxr-xr-x | share/extensions/interp.py | 4 | ||||
| -rwxr-xr-x | share/extensions/plotter.py | 2 |
4 files changed, 24 insertions, 13 deletions
diff --git a/share/extensions/CMakeLists.txt b/share/extensions/CMakeLists.txt index b311c6cbf..47dfbe0a0 100644 --- a/share/extensions/CMakeLists.txt +++ b/share/extensions/CMakeLists.txt @@ -26,8 +26,18 @@ file(GLOB _SCRIPTS "*.sh" "*.rb" ) - +# These files don't need the +x bit +set(_SCRIPTS_NOEXEC + "hersheydata.py" + "hpgl_decoder.py" + "hpgl_encoder.py" + "simplepath.py" + "simplestyle.py" + "simpletransform.py" +) +list(REMOVE_ITEM _SCRIPTS ${_SCRIPTS_NOEXEC}) install(PROGRAMS ${_SCRIPTS} DESTINATION ${INKSCAPE_SHARE_INSTALL}/extensions) +install(FILES ${_SCRIPTS_NOEXEC} DESTINATION ${INKSCAPE_SHARE_INSTALL}/extensions) file(GLOB _FILES "alphabet_soup/*.svg") install(FILES ${_FILES} DESTINATION ${INKSCAPE_SHARE_INSTALL}/extensions/alphabet_soup) diff --git a/share/extensions/draw_from_triangle.py b/share/extensions/draw_from_triangle.py index 3146fe26e..fd966b1d1 100755 --- a/share/extensions/draw_from_triangle.py +++ b/share/extensions/draw_from_triangle.py @@ -176,16 +176,17 @@ def cot(x):#cotangent(x) def report_properties( params ):#report to the Inkscape console using errormsg # TODO: unit identifier needs solution for arbitrary document scale unit = Draw_From_Triangle.getDocumentUnit(e) - inkex.errormsg(_("Side Length 'a' (" + unit + "): " + str( params[0][0] ) )) - inkex.errormsg(_("Side Length 'b' (" + unit + "): " + str( params[0][1] ) )) - inkex.errormsg(_("Side Length 'c' (" + unit + "): " + str( params[0][2] ) )) - inkex.errormsg(_("Angle 'A' (radians): " + str( params[1][0] ) )) - inkex.errormsg(_("Angle 'B' (radians): " + str( params[1][1] ) )) - inkex.errormsg(_("Angle 'C' (radians): " + str( params[1][2] ) )) - inkex.errormsg(_("Semiperimeter (px): " + str( params[4][1] ) )) - inkex.errormsg(_("Area ("+ unit + "^2): " + str( params[4][0] ) )) + + inkex.errormsg(_("Side Length 'a' ({0}): {1}").format(unit, str(params[0][0])) ) + inkex.errormsg(_("Side Length 'b' ({0}): {1}").format(unit, str(params[0][1])) ) + inkex.errormsg(_("Side Length 'c' ({0}): {1}").format(unit, str(params[0][2])) ) + inkex.errormsg(_("Angle 'A' (radians): {}").format(str(params[1][0])) ) + inkex.errormsg(_("Angle 'B' (radians): {}").format(str(params[1][1])) ) + inkex.errormsg(_("Angle 'C' (radians): {}").format(params[1][2]) ) + inkex.errormsg(_("Semiperimeter (px): {}").format(params[4][1]) ) + inkex.errormsg(_("Area ({0}^2): {1}").format(unit, str(params[4][0])) ) return - + class Style(object): #container for style information def __init__(self, options): diff --git a/share/extensions/interp.py b/share/extensions/interp.py index a53ab07d9..fd80ab412 100755 --- a/share/extensions/interp.py +++ b/share/extensions/interp.py @@ -110,8 +110,8 @@ class Interp(inkex.Effect): def tweenstyleunit(self, property, start, end, time): # moved here so we can call 'unittouu' scale = self.unittouu('1px') - sp = self.unittouu(start[property]) / scale - ep = self.unittouu(end[property]) / scale + sp = self.unittouu(start.get(property, '1px')) / scale + ep = self.unittouu(end.get(property, '1px')) / scale return str(sp + (time * (ep - sp))) def effect(self): diff --git a/share/extensions/plotter.py b/share/extensions/plotter.py index 8a14d55bc..800142bb2 100755 --- a/share/extensions/plotter.py +++ b/share/extensions/plotter.py @@ -196,7 +196,7 @@ class Plot(inkex.Effect): try: mySerial.open() except Exception as inst: - if 'ould not open port' in inst.args[0]: + if 'ould not open port' in inst.strerror: inkex.errormsg(_("Could not open port. Please check that your plotter is running, connected and the settings are correct.")) return else: |
