Code Monkey home page Code Monkey logo

sk1-wx's Introduction

sK1 2.0

Build Status platform platform License: GPL v3

sK1 2.0 under Ubuntu 14.04

sK1 2.0 is a cross-platform open source vector graphics editor similar to CorelDRAW, Adobe Illustrator, or Freehand. sK1 is oriented for prepress industry, so it works with CMYK color space and produces CMYK-based PDF and PS output.

sK1 Project (https://sk1project.net)

How to install:


  • to build package: python setup.py build
  • to install package: python setup.py install
  • to remove installation: python setup.py uninstall

  • to create source distribution: python setup.py sdist

  • to create binary RPM distribution: python setup.py bdist_rpm
  • to create binary DEB distribution: python setup.py bdist_deb

  • help on available distribution formats: python setup.py bdist --help-formats

DETAILS

If you wish testing sK1 you have two installation ways. First option is a distutils install with commands:

python setup.py build
python setup.py install

But this way is not recommended. The most preferred option is a package installation (deb or rpm). You can create package using command:

python setup.py bdist_deb (for Ubuntu|Mint|Debian etc.)
python setup.py bdist_rpm (for Fedora|OpenSuse|Mageia etc.)

By installing the package you have full control over all the installed files and can easily remove them from the system (it's important for application preview).

Dependencies

Please note that application uses Python 2.x version. So Python interpreter and python based dependencies should be for 2.x, but not 3.x

For successful build either distutils or deb|rpm package you need installing some development packages. We describe dev-packages for Ubuntu|Debian, but for other distros they have similar names. So, you need:

git
gettext
curl
libcairo2-dev
liblcms2-dev
libmagickwand-dev
libpango1.0-dev
python-dev
python-cairo-dev

To run application you need installing also:

python-wxgtk3.0
python-pil 
python-reportlab
python-cairo
python-cups

Also the project depends on several subprojects: uniconvertor, wal, build-utils. You don't need to clone these sources manualy because setup.py does it for you automatically.

sk1-wx's People

Contributors

albanobattistella avatar ambientlighter avatar coffee5 avatar joaolimaneto avatar k-bronski avatar maxim-s-barabash avatar raboof avatar sk1project avatar sk1project-build-bot avatar ths-on avatar tomsv-gh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sk1-wx's Issues

Cross layer grouping

Allow group objects on different layers without need move them to single layer.

Export or save formats

Hi. I'm using Windows version. Is there possible to export or save in formats compatible with standard software, for example Illustrator, Corel, Inkscape? Can I save or export in *.svg format as well? Moreover, I think that copy in the clipboard in *.svg format, as programs such as Affinity Designer do, could be a great idea. This is a great software, but the saving and exporting formats it handles are very limitant in my opinion.
Thanks in advance

Error "list index out of range" while draw new curve

Вот собственно отчет одного "блика" canvas

mint@mint-SR58P ~ $ sk1
list index out of range
['  File "/usr/lib/sk1-wx-2.0rc2/sk1/document/canvas.py", line 532, in on_paint\n    if not self.controller is None: self.controller.repaint()\n',  '  File "/usr/lib/sk1-wx-2.0rc/sk1/document/controllers/paint_ctrl.py", line 140, in repaint\n    self.timer_callback()\n', '  File "/usr/lib/sk1-wx-2.0rc2/sk1/document/controllers/paint_ctrl.py", line 404, in repaint_draw\n    self.curve_point)\n',  '  File "/usr/lib/sk1-wx-2.0rc2/uc2/libgeom/points.py", line 43, in contra_point\n    return [2.0 * p1[0] - p0[0], 2.0 * p1[1] - p0[1]]\n

Запустил программу, начал рисовать кривую рисую точки. При добавлении точки возникает "блик" canvas'а рабочей области программы и вывод данного сообщения, при этом дальше программа работает.
Кстати, некоторые точки новой кривой создаються без мерцания и соответственно без вывода данной ошибки.

Inkscape to Uniconvertor: .plt file output scale discrepancy - UC/Sk1 still inputs at 90dpi?

Greetings,

Thank you for the Uniconvertor patches for Inkscape. The recent change in Inkscape to 96dpi may combine with code in Uniconvertor/SK1 to result in output scale issues:

Events:
Successful installation of Inkscape patch files for Uniconvertor.
Successful output of .plt file from Inkscape via Uniconvertor.
However, scale of .plt file is larger than original... 1:1.06667.

Using:
Win 8.1, 64bit,
Inkscape 0.92.0 r15299 (now has default scale of 96dpi)
Uniconvertor 1.1.5 (most recent, AFAICT)

More info:
https://bugs.launchpad.net/inkscape/+bug/1658260
Comment number 18 +

Any insights are greatly appreciated.

Regards,
TD
tylerdurden (8thrule)

plotters.zip

Full screen mode (Ctrl+F11)

Make full screen mode for increase usefull workspace to maximum size. This is especially needed for non-retina and displays such as 1280*800 px.

Document's visual tabs now cut line near 1280*28 px of possible workspace, but if add "Window" submenu for list opened documents as in other software, it could be possible optionally hide Documents tabs.

Drawing a straight line with Polyline tool

  • Maybe pressing "Crtl" or "Shitf" and use Polyline draw it in degrees, helping when need draw a straight line.
  • Editing Nodes too, help a lot move a nodes in straight line, with Ctrl or Shift pressed.

Manjaro (Arch derivative) build

Greetings, and sorry for bad English. I've succeded in compiling but had to change sources a bit. If the following changes are not ruining anything for other distros, I'd ask to include them to project.

First (according to http://reinout.vanrees.org/weblog/2013/09/24/pil-pillow-image-import.html )

sk1-wx/src/uc2/formats/sk1/model.py (line 19)
import Image -> from PIL import Image

and (just in case, I've got an error only with model.py file)

sk1-wx/unit-tests/image_tests/init.py (line 19)
import Image -> from PIL import Image

Second (according to http://www.wxpython.org/docs/api/wxversion-module.html )

sk1-wx/src/script/sk1.tmpl (somewhere at the beginning, let's say line 9, insert 2 new lines)
import wxversion
wxversion.select("2.8")

'coz by default Manjaro installs both wxgtk2.8 and 3.0 and treats 3.0 as a default one (via /usr/lib/python2.7/site-packages/wx.pth file), which also leads to error

Bye!

ROADMAP

ROADMAP (update it)

  • sK1 2.0rc1
    • rewrite sK1 0.xx to wxPython
    • SK2 format specification
    • ...
  • sK1 2.0rc2
    • SK & SK1 import/export
    • ...
  • sK1 2.0rc3
    • SVG import/export
    • ...
  • sK1 2.0rc4
    • task 1
    • task 2
    • task 3
      • sub-task
      • ...
  • sK1 2.0 (release)
  • ...

Wiki page

Crashing issues

Crashing issues on Ubuntu 15.10 4.2.0-18-generic x86_64

bar@bar-desktop:~$ sk1
Traceback (most recent call last):
File "/usr/bin/sk1", line 15, in
sk1_run()
File "/usr/lib/sk1-wx-2.0rc1/sk1/init.py", line 57, in sk1_run
app.run()
File "/usr/lib/sk1-wx-2.0rc1/wal/basic.py", line 66, in run
self.mw.build()
File "/usr/lib/sk1-wx-2.0rc1/sk1/parts/mw.py", line 47, in build
self.menubar = AppMenuBar(self.app, self)
File "/usr/lib/sk1-wx-2.0rc1/sk1/parts/menubar.py", line 35, in init
(
("Open &Recent"), (HistoryMenu(self.app, self.mw),)),
File "/usr/lib/sk1-wx-2.0rc1/sk1/parts/menubar.py", line 180, in init
self.empty_item.Enable(False)
File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 12507, in Enable
return core.MenuItem_Enable(_args, *_kwargs)
wx.core.PyAssertionError: C++ assertion "m_menuItem" failed at ../src/gtk/menu.cpp(751) in Enable(): invalid menu item

import SVG filter?

Your editor looks very promising! Way faster than Inkscape

Do you have an ETA for the SVG import?

Thanks for the hard work!

Loosing dependencies

I just tried to install python-sk1-2.0rc2_0ubuntu1_16.10_amd64.deb on a 17.04 machine.

It fails because python-sk1-2.0rc2_0ubuntu1_16.10_amd64.deb depends on libmagickwand-6.q16-2 and 17.04 provides libmagickwand-6.q16-3.

Couldn't python-sk1-2.0rc2_0ubuntu1_16.10_amd64.deb depend on libmagickwand-6.q16 instead of on libmagickwand-6.q16-2? This way it would be easier to use the provided packages.

implicit-pointer-decl

Hi!
I bumped into rpmlint warnings, when tried to build rpm in OBS:

[  214s] I: Program is using implicit definitions of functions getting
[  214s]    pointers or implemented by macros. These functions need to use their
[  214s]    correct prototypes to allow correct argument passing on e.g. x86_64 .
[  214s]      - Implicit memory/string functions need #include <string.h>.
[  214s]      - Implicit *printf functions need #include <stdio.h>.
[  214s]      - Implicit *printf functions need #include <stdio.h>.
[  214s]      - Implicit *read* functions need #include <unistd.h>.
[  214s]      - Implicit *recv* functions need #include <sys/socket.h>.
[  214s] W: sk1 implicit-pointer-decl src/uc2/formats/sk1/sk1objs/curvelow.c:51

Translation

Hello, I found the project in a survey, I do some graphic work and I was very interested in the software. Would you like to know how to help translate it into Brazilian Portuguese?


Olá, encontrei o projeto numa pesquisa, faço alguns trabalhos gráficos e me interessei muito pelo software. Gostaria de saber como ajudar a traduzi-lo para português do Brasil?

UC2 build with MacOSX Homebrew

Here is the homebrew formula: https://gist.github.com/luzpaz/c65c2d55773965f3b3cf
Here are the logs: https://gist.github.com/8bddb3f69ae46816e9c3

Some issues:

  • setup*.cfg files don't play nice with --prefix=#{prefix} flag (see example). So before every compilation the following code is needed to run:
    %w[setup.cfg_sk1 setup.cfg_uc2].each do |f|
      rm f
      touch f
    end

If one doesn't do this then they get this error:

python setup-sk1.py install --prefix=/usr/local/Cellar/uniconverter/HEAD
running install
error: must supply either prefix/exec-prefix/home or install-base/install-platbase -- not both
  • Lets not hardcode directories in to the building process:
running install_scripts
creating /usr/local/Cellar/uniconverter/HEAD/bin
copying build/scripts-2.7/sk1 -> /usr/local/Cellar/uniconverter/HEAD/bin
changing mode of /usr/local/Cellar/uniconverter/HEAD/bin/sk1 to 755
running install_data
creating /usr/share/applications
error: could not create '/usr/share/applications': Permission denied

CC @errordeveloper

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.