vikach / svg-edit

Automatically exported from code.google.com/p/svg-edit
0 stars 0 forks source link

Support tspan elements #127

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
SVG-edit should support styling segments of text differently via the tspan
element.  The obvious way to do this is to be able to select a fragment of
text on the canvas and change its properties.

Note that Firefox does not support text selection in SVG.

Original issue reported on code.google.com by codedr...@gmail.com on 25 Aug 2009 at 11:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi, i found your tool very useful. But i was also missing tspan support. So i 
am about to finish patch for such things. Currently it supports multi line 
text, left and right justification. I fill post it when the selection drawing 
is fixed. are you interested in such patch or have you start working on it? 

Original comment by pavel.sm...@gmail.com on 8 Dec 2011 at 1:40

GoogleCodeExporter commented 9 years ago
Hi there!  I had a much earlier patch for this that was not very satisfactory 
(this was before the days of Alexis adding text selection too).

So it would be great to see your patch!  Typically we attach patches by svn 
diff'ing and then attaching the patch file to the bug.

Original comment by codedr...@gmail.com on 8 Dec 2011 at 4:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi again. Initial version is done. I just realize that this path is solving 
something else ... but i think that it can be extended to support also issue. 

what was added:
1. support for multi line text, when you press enter it make new line
2. exit text edit mode when ESC is pressed
3. plugin for zooming by mouse wheel
4. event "context_changed" which allows you to not enter sub context (when dbl 
clicking on group or text)
5. possibility to effect element attribute wish list

Original comment by pavel.sm...@gmail.com on 10 Dec 2011 at 11:35

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Pavel, 

he have incorporated this patch to SVG 2.6 actual version to solve multi_line 
text issue.

We can see your patch use the next extensions: "/ext-wheel-zoom.js" , 
"ext-mapeditor.js" , "ext-multiline.js">, but the patch code only have code for 
ext-wheel-zoom.js and ext-multiline.js.

Please, can you tell us about ext-mapeditor.js?. Actually, with this patch the 
issue is not solved.

Do you've another version of this correction?.

Thanks!!

Regards,

Original comment by danibe...@gmail.com on 12 Dec 2013 at 6:13