Difference between revisions of "Development Project Ideas"
Jump to navigation
Jump to search
(Created page with " ==General== * Improve startup time and initialization performance (i.e. improve font cache). * Improve icon cache: Convert the icon cache (widgets/icon.cpp) to create the PN...") |
|||
(18 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
See also [[Projects]] and [[Refactoring projects]]. | |||
==General== | ==General== | ||
* Improve startup time and initialization performance (i.e. improve font cache). | * Improve startup time and initialization performance (i.e. improve font cache). | ||
* Improve icon cache: Convert the icon cache (widgets/icon.cpp) to create the PNGs with a directory structure and index file matching the icon theme specification. Use this to get rid of customized classes InkAction, SPIcon, and so on. | * [Done?] Improve icon cache: Convert the icon cache (widgets/icon.cpp) to create the PNGs with a directory structure and index file matching the icon theme specification. Use this to get rid of customized classes InkAction, SPIcon, and so on. ''GTK supports SVG icons, no need to convert to PNGs.'' | ||
* Continue C++ migration: | * Continue C++ migration: | ||
** Use Glib::ustring for UTF-8 data and std::string for filenames and raw byte strings instead of C-strings (char*). | ** Use Glib::ustring for UTF-8 data and std::string for filenames and raw byte strings instead of C-strings (char*). | ||
** Replace uses of GList and GSList with STL containers. | ** [Done] <s>Replace uses of GList and GSList with STL containers.</s> | ||
* Extension system improvements: Refactor the extension API. Clean up the kludgy class hierarchy, possibly using multiple inheritance. Use GInputStream and GOutputStream as parameters instead of file paths, so that things like the clipboard can write data to memory without going through a temporary file. | * Extension system improvements: Refactor the extension API. Clean up the kludgy class hierarchy, possibly using multiple inheritance. Use GInputStream and GOutputStream as parameters instead of file paths, so that things like the clipboard can write data to memory without going through a temporary file. | ||
Line 17: | Line 17: | ||
== 2Geom geometry library == | == 2Geom geometry library == | ||
* Investigate whether it is possible to store subpath data in a more compact way and make the Curve objects only convenience facades. Right now, if the path has only linear segments, every point is stored twice. | |||
* Remove SPCurve: SPCurve is a thin wrapper around Geom::PathVector which exists for historical reasons. Its functionality should be added to PathVector, and SPCurve should be purged. | * Remove SPCurve: SPCurve is a thin wrapper around Geom::PathVector which exists for historical reasons. Its functionality should be added to PathVector, and SPCurve should be purged. | ||
* Provide a quick bounding box routine for stroked paths. | * Provide a quick bounding box routine for stroked paths. | ||
* Boolean operations and stroking: Add methods to PathVector objects: | * Boolean operations and stroking: Add methods to PathVector objects: | ||
** Set operators (& | - ^), which perform the relevant | ** Set operators (& | - ^), which perform the relevant Boolean operation on the paths. <s>Use the algorithm from CGAL or devise a new robust algorithm.</s> The CGAL implementation is horribly broken and doesn't work; there is an implementation of the Greiner-Hormann algorithm in 2Geom now, but it's not robust and runs pretty slow. | ||
** <tt>stroke(double line_width, LineJoin join, LineCap cap, double miter_limit)</tt>, which performs the stroke-to-path operation. | ** <tt>stroke(double line_width, LineJoin join, LineCap cap, double miter_limit)</tt>, which performs the stroke-to-path operation. | ||
** <tt> | ** <tt>dash(std::vector<double> const &dasharray)</tt>, which performs dashing. | ||
== User interface == | == User interface == | ||
Line 45: | Line 33: | ||
* Provide more actions in the context menu depending on the content of the selection, e.g. show "Put on Path", "Flow into Frame" etc. when the selection contains the appropriate objects. | * Provide more actions in the context menu depending on the content of the selection, e.g. show "Put on Path", "Flow into Frame" etc. when the selection contains the appropriate objects. | ||
* When right-clicking a control point, show a transient dialog which would allow one to key in its coordinates. | * When right-clicking a control point, show a transient dialog which would allow one to key in its coordinates. | ||
* | * Numeric input widgets with floating precision (instead of fixed field width like offered by GtkSpinButton and our derived classes). Potentially create a general implementation that [https://gitlab.com/inkscape/inkscape/merge_requests/200#note_58534331 can be included in GTK+4]). | ||
== Project infrastructure and platform support == | == Project infrastructure and platform support == | ||
* Migrate argument parsing to GOption and remove the dependency on popt. Update the devlibs version of Glib to one where this bug is fixed: [https://bugzilla.gnome.org/show_bug.cgi?id=522131]. Once this is done, port argument parsing to GOption. | * Migrate argument parsing to GOption and remove the dependency on popt. Update the devlibs version of Glib to one where this bug is fixed: [https://bugzilla.gnome.org/show_bug.cgi?id=522131]. Once this is done, port argument parsing to GOption. | ||
* Common build system for all platforms: Migrate the build system to | * [DONE] <s>Common build system for all platforms: Migrate the build system to CMake for all platforms and remove Autotools.</s> | ||
* GTK3 on Windows: Rebuild the Windows devlibs so that they contain GTK3. Make the Windows port work with them, possibly sending the appropriate patches to the GTK maintainers. | * [DONE] <s>GTK3 on Windows: Rebuild the Windows devlibs so that they contain GTK3. Make the Windows port work with them, possibly sending the appropriate patches to the GTK maintainers.</s> | ||
== Rendering Improvements == | == Rendering Improvements == | ||
Line 73: | Line 61: | ||
* Filling and Stroking | * Filling and Stroking | ||
** [http://www.w3.org/Graphics/SVG/WG/wiki/Proposals/Stroke_position Stroke position] | ** [http://www.w3.org/Graphics/SVG/WG/wiki/Proposals/Stroke_position Stroke position] Postponed to future SVG path module. | ||
** [http://www.w3.org/Graphics/SVG/WG/wiki/Proposals/Stroke_dash_adjustment Stroke dash adjustment] | ** [http://www.w3.org/Graphics/SVG/WG/wiki/Proposals/Stroke_dash_adjustment Stroke dash adjustment] | ||
** [https://svgwg.org/svg2-draft/painting.html#SpecifyingPaint Multiple fills] | ** [https://svgwg.org/svg2-draft/painting.html#SpecifyingPaint Multiple fills] Postponed to future spec (at CSS Working Group request). | ||
** [https://svgwg.org/svg2-draft/painting.html#PaintOrder Paint order] (Rendering | ** [https://svgwg.org/svg2-draft/painting.html#PaintOrder Paint order] (Rendering and GUI implemented, only Edge does not support property.) | ||
** Marker color matching stroke. | ** Marker color matching stroke. (Rendering implemented.) | ||
** Vector Effects (non-destructive boolean-ops would be a good start) | ** Vector Effects (non-destructive boolean-ops would be a good start) | ||
** [http://www.w3.org/TR/css3-color/ CSS3 color support] | ** [http://www.w3.org/TR/css3-color/ CSS3 color support] | ||
** [http://dev.w3.org/fxtf/compositing-1/ CSS3 blend modes] | ** [http://dev.w3.org/fxtf/compositing-1/ CSS3 blend modes] (Rendering implemented, needs GUI.) | ||
* Paint servers | * Paint servers | ||
** [https://svgwg.org/svg2-draft/pservers.html#SolidColors Solid-color support] (Named colors, would deprecate the single-stop gradient approach we currently use) | ** [https://svgwg.org/svg2-draft/pservers.html#SolidColors Solid-color support] (Named colors, would deprecate the single-stop gradient approach we currently use) | ||
** [https://svgwg.org/svg2-draft/pservers.html#MeshGradients Mesh gradient] ( | ** [https://svgwg.org/svg2-draft/pservers.html#MeshGradients Mesh gradient] (Done.) | ||
** [https://svgwg.org/svg2-draft/pservers.html#Hatches Hatched patterns] | ** [https://svgwg.org/svg2-draft/pservers.html#Hatches Hatched patterns] Needs GUI. | ||
* Text | * Text | ||
Line 91: | Line 78: | ||
* Misc | * Misc | ||
** [http://www.w3.org/TR/css3-transforms/ CSS3 2d and 3d transforms] | ** [http://www.w3.org/TR/css3-transforms/ CSS3 2d and 3d transforms] Partial browser support. Cairo 3d support in progress. | ||
Line 112: | Line 99: | ||
* [https://blueprints.launchpad.net/inkscape/+spec/lpe-blueprint More Live Path Effects] - There is a lengthy list of ideas to choose from here. | * [https://blueprints.launchpad.net/inkscape/+spec/lpe-blueprint More Live Path Effects] - There is a lengthy list of ideas to choose from here. | ||
== Extensions == | |||
=== Moved to [[Google Summer of Code#P14. Cached styles for inkex]] and following sections === | |||
== Import/export projects == | == Import/export projects == | ||
Line 126: | Line 115: | ||
* [https://blueprints.launchpad.net/inkscape/+spec/kidscape-project kidscape] - Condensed version of Inkscape aimed at young kids and small form factor devices | * [https://blueprints.launchpad.net/inkscape/+spec/kidscape-project kidscape] - Condensed version of Inkscape aimed at young kids and small form factor devices | ||
* [https://blueprints.launchpad.net/inkscape/+spec/cutter-control Cutter control] - Enable Inkscape's use with vinyl cutters. | * [https://blueprints.launchpad.net/inkscape/+spec/cutter-control Cutter control] - Enable Inkscape's use with vinyl cutters. | ||
[[Category:Developer Documentation]] | [[Category:Developer Documentation]] |
Latest revision as of 12:16, 11 March 2023
See also Projects and Refactoring projects.
General
- Improve startup time and initialization performance (i.e. improve font cache).
- [Done?] Improve icon cache: Convert the icon cache (widgets/icon.cpp) to create the PNGs with a directory structure and index file matching the icon theme specification. Use this to get rid of customized classes InkAction, SPIcon, and so on. GTK supports SVG icons, no need to convert to PNGs.
- Continue C++ migration:
- Use Glib::ustring for UTF-8 data and std::string for filenames and raw byte strings instead of C-strings (char*).
- [Done]
Replace uses of GList and GSList with STL containers.
- Extension system improvements: Refactor the extension API. Clean up the kludgy class hierarchy, possibly using multiple inheritance. Use GInputStream and GOutputStream as parameters instead of file paths, so that things like the clipboard can write data to memory without going through a temporary file.
XML tree
- SAX parser: Convert the current document parser from DOM to SAX, so that it creates our XML tree right away, instead of creating the libxml2 DOM tree, creating our tree to match it, then freeing the libxml2 tree. This should improve performance and allow more robust fixes for some problems.
- Typed XML tree: Improve XML tree so that it can store some attributes in parsed, binary form. The main target of this are the data URIs used to embed images, which could be stored as binary data only. This work should be done after completing the SAX parser, as this will make it easier.
2Geom geometry library
- Investigate whether it is possible to store subpath data in a more compact way and make the Curve objects only convenience facades. Right now, if the path has only linear segments, every point is stored twice.
- Remove SPCurve: SPCurve is a thin wrapper around Geom::PathVector which exists for historical reasons. Its functionality should be added to PathVector, and SPCurve should be purged.
- Provide a quick bounding box routine for stroked paths.
- Boolean operations and stroking: Add methods to PathVector objects:
- Set operators (& | - ^), which perform the relevant Boolean operation on the paths.
Use the algorithm from CGAL or devise a new robust algorithm.The CGAL implementation is horribly broken and doesn't work; there is an implementation of the Greiner-Hormann algorithm in 2Geom now, but it's not robust and runs pretty slow. - stroke(double line_width, LineJoin join, LineCap cap, double miter_limit), which performs the stroke-to-path operation.
- dash(std::vector<double> const &dasharray), which performs dashing.
- Set operators (& | - ^), which perform the relevant Boolean operation on the paths.
User interface
- Shape manipulators: The idea here is to rewrite shape tools in the same paradigm as the node tool. Instead of storing all information about the shape in knots which differ only by their callbacks, allow to store information in a higher-level manipulator object. This would enable things like dragging the side of a rectangle, consistent outlining / update preferences for all shapes, and editing more than one shape at once.
- Transformation Anchors
- Extend the Symbols dialog to include generic objects.
- Connector tool improvements - Expose new libavoid functionality: orthogonal routing, connector ports, curved connectors. (Mentor: Michael Wybrow)
- Fillet/Chamfer tool
- Provide more actions in the context menu depending on the content of the selection, e.g. show "Put on Path", "Flow into Frame" etc. when the selection contains the appropriate objects.
- When right-clicking a control point, show a transient dialog which would allow one to key in its coordinates.
- Numeric input widgets with floating precision (instead of fixed field width like offered by GtkSpinButton and our derived classes). Potentially create a general implementation that can be included in GTK+4).
Project infrastructure and platform support
- Migrate argument parsing to GOption and remove the dependency on popt. Update the devlibs version of Glib to one where this bug is fixed: [1]. Once this is done, port argument parsing to GOption.
- [DONE]
Common build system for all platforms: Migrate the build system to CMake for all platforms and remove Autotools. - [DONE]
GTK3 on Windows: Rebuild the Windows devlibs so that they contain GTK3. Make the Windows port work with them, possibly sending the appropriate patches to the GTK maintainers.
Rendering Improvements
- ICC Color Management for cairo outputs - Would allow Inkscape to produce CMYK PDFs and PSs with Cairo.
- Box blur: Currently we always use a very accurate method to compute the Gaussian blur filter. Add an alternate method which approximates Gaussian blur using three stacked box blurs (simple averages). This is detailed in the SVG 1.1 SE specification.
- Pluggable renderers - allow writing rendering backends which use something other than Cairo, e.g, OpenGL, Skia, Mozilla Azure or GEGL.
- OpenGL renderer - implement an OpenGL 3.x+ canvas which would render Beziers using this method: http://http.developer.nvidia.com/GPUGems3/gpugems3_ch25.html Investigate whether this generalizes to S-basis and circular arcs. Since the described method does not handle stroking, this work depends on implementing boolean operations and stroking. Also check how OpenGL path rendering is implemented in Qt, since apparently the performance there is very good. http://zrusin.blogspot.com/2011/09/nv-path-rendering.html
Better SVG standard coverage
- Full SVG viewbox support
- Multiple Page support
- Improve SVG compliance. Current status of W3C test suite compliance.
SVG 2 and CSS3
See: SVG2.
This includes providing suitable GUI and SVG 1.1 fallbacks.
- Filling and Stroking
- Stroke position Postponed to future SVG path module.
- Stroke dash adjustment
- Multiple fills Postponed to future spec (at CSS Working Group request).
- Paint order (Rendering and GUI implemented, only Edge does not support property.)
- Marker color matching stroke. (Rendering implemented.)
- Vector Effects (non-destructive boolean-ops would be a good start)
- CSS3 color support
- CSS3 blend modes (Rendering implemented, needs GUI.)
- Paint servers
- Solid-color support (Named colors, would deprecate the single-stop gradient approach we currently use)
- Mesh gradient (Done.)
- Hatched patterns Needs GUI.
- Text
- Misc
- CSS3 2d and 3d transforms Partial browser support. Cairo 3d support in progress.
Note: Some of the above items are somewhat low hanging fruit and would need a few of them to make a good proposal, others alone are worthy of a full GSoC project.
Improve Inkscape SVG for use on Web
A proposal should fix most if not all of these problems:
- Fix "plain" SVG to not remove <script> section, etc.
- Add option to set viewbox attribute to Document Properties.
- Easily add/edit hyperlinks.
- Better CSS support.
- Option to add title to SVG (searchability and accessibility).
- Remove XML prolog/DOCTYPE.
- Move sodipodi namespace items to Inkscape namespace.
- More Live Path Effects - There is a lengthy list of ideas to choose from here.
Extensions
Moved to Google Summer of Code#P14. Cached styles for inkex and following sections
Import/export projects
- Importing of 3D scene files in 16 file formats using Open Asset Import Library
- xar-to-svg converter - Converter for Xara Xtreme to Inkscape
- KML SVG translation - For use of Inkscape with Google Earth or Maps
Generic ideas
- Font editing and creation features, e.g. designing SVG fonts using styles
- kidscape - Condensed version of Inkscape aimed at young kids and small form factor devices
- Cutter control - Enable Inkscape's use with vinyl cutters.