Menu

#497 SVG title does not allow anything but alphanumeric characters

None
open
nobody
None
2020-03-30
2020-01-01
Anonymous
No

Setting the title for the resulting SVG document does not allow anything but alphanumeric characters. It would be great being able to set title containing spaces and internationlal characters as ÄÖÜäöü as well. Since the title is also used as id one could automatically change all unsupported characters to something supported (eg: space to underscore oder ä to ae or a) for the id but allow all other in title since it already supports UTF-8.

Not allowed:

set term svg name 'Populationgraph of Lüdenscheid (Germany)'

must be:

set term svg name 'PopulationgraphOfLuedenscheidGermany'

Discussion

  • Hans-Bernhard Broeker

    Ticket moved from /p/gnuplot/bugs/2221/

    Can't be converted:

    • _milestone:
    • _priority:
     
  • Hans-Bernhard Broeker

    Ticket moved from /p/cscope/feature-requests/52/

     
  • Hans-Bernhard Broeker

    This would be virtually impossible to implement. It would require gnuplot to apply transliteration to the given string, without even knowing the source language. That's essentially impossible. It may appear manageable for German umlauts, but just imagine trying this on Japanese or Chinese.

     
  • roger25

    roger25 - 2020-03-30

    hello,

    the "name" constraint nust not change since it is actually an svg id

    BUT

    could it be possible to add a "title" parameter to the svg term in order to exclusively populate the <title> tag of the svg file (of course if not present the "name" would keep being use instead)

     

    Last edit: roger25 2020-03-30

Log in to post a comment.