Tooltip properties

Post questions on how to use or achieve an effect in Inkscape.
Glenica
Posts: 2
Joined: Fri Nov 24, 2017 6:48 pm

Tooltip properties

Postby Glenica » Fri Nov 24, 2017 6:53 pm

Is it possible to alter tooltip properties (Object attributes > Title) within Inkscape, eg Image

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: Tooltip properties

Postby theozh » Fri Nov 24, 2017 10:18 pm

...from your question I assume that you already have an SVG which contains a tool tip?

maybe something something like this...?
http://www.petercollingridge.co.uk/site ... _basic.svg

Btw, seems to be a good tutorial/overview/examples about SVG and interactivity.
http://www.petercollingridge.co.uk/inte ... omponents/

Actually, about creating SVG with tooltip with a quick search so far I haven't found too much useful information in the Inkscape documentation. Let me know in case I missed anything...

In general, to change your text e.g. from "North East Scotland" to "Eastern North Scotland"
1. you can use the Inkscape XML editor (Shift+Ctrl+X)
2. or basically any reasonable text editor to edit your SVG

edit:
...ahem...well, if I open and modify for example the above linked SVG with Inkscape and save it with Inkscape it seems to get messed up and the tooltip does not show any more. I don't know why.
So, if you only have to change the tooltip text, just take a reasonable text editor, search for the tooltip text and change it.

edit2:
...a while later... if in Inkscape you "Save as" Optimized SVG with the default settings... it seems to work...
crazy... pretty confusing and not obvious to find...
Win7/64, Inkscape 0.92.2

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Tooltip properties

Postby tylerdurden » Sat Nov 25, 2017 12:00 am

If the tooltips are in fact just the object titles, the object properties panel can be used to revise and "set" the title and resulting tooltips.

Image
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Tooltip properties

Postby Moini » Sat Nov 25, 2017 1:00 am

To style a tooltip / title attribute for use with the web, you'd need to do that via a CSS rule that applies to your SVG file.

See also: https://developer.mozilla.org/de/docs/W ... ment/title
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Glenica
Posts: 2
Joined: Fri Nov 24, 2017 6:48 pm

Re: Tooltip properties

Postby Glenica » Sat Nov 25, 2017 2:14 am

Thanks for the responses guys. At the moment, the tooltip (which is also a link) is generated from the Object attributes window Image
If this can't be styled inside Inkscape or by css, perhaps there's a better way of doing it?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Tooltip properties

Postby Moini » Sat Nov 25, 2017 5:07 am

I thought the linked page said it can have styles applied... So it doesn't work?
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Help with using Inkscape”