Gerhard Mesenich twisted the bytes to say:
Gerhard> Regular grid: Gerhard> In addition to the angular restriction a good regular squared background Gerhard> is needed. After quite some testing a 2mm minor spacing with 10mm major Gerhard> spacing seems to be best suited for Xournal on a 12" screen. I have Gerhard> attached such a background as an example and for others to use. Hi Gerhard, Denis, (I guess I have attention deficit disorder :) This has been something that I have been wondering about... and after I read your message I tried to implement it. See: https://github.com/dmgerman/xournal/compare/snap-to-grid - Added variable snap_to_grid and snap_separation to ui. - Added menu option Snap to Gri_d - Added variable snap_separation to config (distance is in points) - snap_to_grip defaults to false (it can't be saved) The default is to 1mm. Some remaining issues: - We need a button for it. - To change the grid distance the user has to modify the config file - Current Grid only has effect for points that xournal reads from the canvas. I am not sure what areas the grid will not apply to. I have modified void get_pointer_coords(GdkEvent *event, gdouble *ret) I suspect that there are uses of this function that should not consider the grid. It will probably be more of a lets test it and see what happens. If something breaks we will just create two functions: one for grid and one without it. Or pass a flag on whether the grid should be taken into consideration for the calculation of the position. Gerhard, would it be too much to ask if you can generate the grid in A5 size? (that is the size I usually use for my notes :) here is an example of the output:
2014-03-23-Note-12-48.pdf
Description: Adobe PDF document
Gerhard> Using the regular grid and angular restricted straight lines, squares, Gerhard> triangles, nice arrow heads, hatchings, etc. can be drawn rapidly and Gerhard> precisely with very little effort. The grid takes care of the regular Gerhard> spacings. -- Daniel M. German "As Arthur C. Clarke didn't write, any sufficiently advanced lens David Pogue -> is indistinguishable from magic." http://turingmachine.org/ http://silvernegative.com/ dmg (at) uvic (dot) ca replace (at) with @ and (dot) with .
------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech
_______________________________________________ Xournal-devel mailing list Xournal-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xournal-devel