auto-texts: slide title

Asked by Haldor on 2010-05-07

Each layer corresponds to one slide.
When giving a slide title with the auto-texts function, the slide title is taken from the layer name.
Since in inkscape there cannot be two layers with the same name,
it follows that there cannot be two slides having the same slide title.
But sometimes, I want to have two or more slides with the same name.
Is there a possibility to do so? Perhaps enter some extra code (some escape sequence...) to the layer name that makes layer names unique but which is not displayed in the output?

Question information

English Edit question
JessyInk Edit question
No assignee Edit question
Solved by:
Hannes Hochreiner
Last query:
Last reply:

Hi Haldor,

thanks for the idea. So far, I have not run into this problem because with topics that spanned more than one slide I simply appended "(cont.)" to the slide name. However, I can see that this is not a good solution in every case. I'll consider you suggestion for the redesign of the auto-text feature for the 2.0 release.


Haldor (haldor) said : #2

Thanks Hannes Hochreiner, that solved my question.

Haldor (haldor) said : #3

Hi Hannes, thanks a lot for answering my questions, and of course for providing such a great inkscape extension :-).

Andy Pascall (apascall) said : #4


I'm pretty sure Inkscape DOES allow for two layers to have the same name.

I'm using Inkscape 0.47 and have done numerous presentations that have layers with the same name. It seems to work fine for me.

Artiom Neganov (aneganov) said : #5

Also, using layer names for slide titles is not very good idea, since when layer names is "localized" slide transitions stop woring.
This happened on 1.4.0, haven't tested on 1.5.2 though

Hi Artiom,

could you provide an example file, because I could not reproduce the problem you described. I have tried using German "special" characters (such as ä and ß) could not find a problem in version 1.5.2.

If you could send me the file you are having trouble with, I could have a look at it and try to figure out, what the problem is.


Artiom Neganov (aneganov) said : #7

Hi Hannes,

Thank you for quick reply.
Ok, here is the link to the file:
I didn't user Russian letters, for layer name I used `"such as ä and ß"` phrase :)
If I try to add slide transition effect, entering this slide's name in the dialog, I get this message:

Traceback (most recent call last):
  File "/usr/share/inkscape/extensions/", line 74, in <module>
  File "/usr/share/inkscape/extensions/", line 207, in affect
  File "/usr/share/inkscape/extensions/", line 53, in effect
    nodes = self.document.xpath("//*[@inkscape:groupmode='layer' and @inkscape:label='" + self.options.layerName + "']", namespaces=inkex.NSS)
  File "lxml.etree.pyx", line 1833, in lxml.etree._ElementTree.xpath (src/lxml/lxml.etree.c:41739)
  File "xpath.pxi", line 327, in lxml.etree.XPathDocumentEvaluator.__call__ (src/lxml/lxml.etree.c:103493)
  File "apihelpers.pxi", line 1242, in lxml.etree._utf8 (src/lxml/lxml.etree.c:19848)
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes

Hi Artiom:

Thanks a lot for the example file and the error message. I was digging at the wrong end :-) I thought the problem was in playing the presentation in the browser. This seems to be an encoding (escaping) problem, as you said. I'll have a look at it.


Hi Artiom:

I think I found the problem and fixed it. I pushed a new version to launchpad. Could you test the fix by getting the newest version from "trunk" using "bzr branch lp:jessyink" and manually copying the extension files to the correct location on your system?


Artiom Neganov (aneganov) said : #10

Hi Hannes!

Thank you very much, everything works now!
I successfully applied some transition effects to several layers with cyrillic characters in names.

P.S. Special thanks for this great extension. I have been loving and using Inkscape/Sodipodi for about 7 years, and now can continue using it for presentations. This is the right thing, I swear! :)

Hi Artiom:

Glad to hear that things work for you now. I'll release the bug fix with the next version of JessyInk, so that all users can benefit from it.

Hope you continue to enjoy using Inkscape/JessyInk!