Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to give a title to the HTML document generated #519

Open
NedNet29 opened this issue May 12, 2021 · 4 comments
Open

Ability to give a title to the HTML document generated #519

NedNet29 opened this issue May 12, 2021 · 4 comments

Comments

@NedNet29
Copy link

Summary of feature request

When opening Sozi HTML generated document in a browser, the browser displays "Untitled" as the name of the page.
It would be cool if there was a simple field where we can type the title we wish to appear (I make this suggestion because I'm promoting Sozi to colleagues not skilled in IT, so I can't really ask them to edit the HTML page created by Sozi)

Version of Sozi and other relevant software

(not relevant since it's a feature request)

Steps to reproduce the problem

open a Sozi HTML generated document with a browser : it displays "Untitled - <frame ID>" as the name of the page

Hints and solutions (optional)

Editing the titleHTML markup isn't doing anything, but changing "Untitled" by the desired title in following part of JS code does the job :
[...] {key:"title",get:function(){var e=this.document.root.getElementsByTagNameNS("http://www.w3.org/2000/svg","title");return e.length?e[0].firstChild.wholeText.trim():"Untitled"}}, [...]

Obviously, anyone who does this has to be careful if the title wanted needs to include double-quote char ;-)

@aumouvantsillage
Copy link
Collaborator

Currently, the title of the presentation is taken from the SVG document. You can edit it in Inkscape (File / Document properties / Metadata).
I should add this info somewhere in the documentation.

@NedNet29
Copy link
Author

Thank's.
Still, being able to edit in Sozi would be great since SVG file can come from elsewhere than Inkscape

@amelillo
Copy link
Contributor

Though, you could still open it in Inkscape and edit the information you need to change.
Moreover, I solve this problem opening the html with an editor and replacing every occurrence (two, actually) of the string "Untitled" with my preferred title.
Quick and dirty but effective.

@NedNet29
Copy link
Author

I agree, but as I said elsewhere, I'm promoting Sozi to coworkers who don't want or have time to do such things (they work as adult professional trainers).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants