Superscripts in variables

Nothing is perfect! This is where you can post your ideas and wishes for functions you'd like to see in Help & Manual. Current version only please (H&M7).

Moderators: Alexander Halser, Tim Green

Post Reply
User avatar
jeffbronks
Posts: 214
Joined: Fri Mar 04, 2005 12:39 pm
Location: Cambridgeshire, UK

Superscripts in variables

Unread post by jeffbronks »

I'd like to be able to put a superscript (R) symbol after the product name on the front page of my PDF template. The product name is in a variable and I can paste an (R) symbol into the variable text, but there is no way of making it a superscript. This sounds like quite a big change to H&M, but if you don't ask, you don't get. :)
User avatar
Tim Green
Site Admin
Posts: 23181
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Superscripts in variables

Unread post by Tim Green »

Hi Jeff,

Variables are plain text only, so there is no chance there and that can't really change. However, there is a solution: What you can do is insert the text block on the template page as a snippet from a project topic file with the Snippet option in the Insert menu in Manual Designer. This topic file can include multiple versions of the product name tagged with build options so that you can use different versions for your different builds (which I assume is why you have it in a variable).

You won't see the contents of the snippet box in the template until you publish, so you may need to experiment a bit to get the dimensions and position right. Create the topic file for this directly in the Topic Files section so that it doesn't have a TOC entry, and set its build options to PDF only so that it doesn't get exported to HTML formats as an invisible topic.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Simon Dismore
Posts: 454
Joined: Thu Nov 16, 2006 1:29 pm
Location: London, UK

Re: Superscripts in variables

Unread post by Simon Dismore »

Would it be practicable to change the font? In typefaces like Microsoft Calibri and Adobe Source Sans (a free family) the ® is already superscripted.

On the other hand if the look is very important, you could generate outlines in Illustrator and export them as an EMF.

Simon
User avatar
jeffbronks
Posts: 214
Joined: Fri Mar 04, 2005 12:39 pm
Location: Cambridgeshire, UK

Re: Superscripts in variables

Unread post by jeffbronks »

Tim Green wrote:Hi Jeff,

Variables are plain text only, so there is no chance there and that can't really change. However, there is a solution: What you can do is insert the text block on the template page as a snippet from a project topic file with the Snippet option in the Insert menu in Manual Designer. This topic file can include multiple versions of the product name tagged with build options so that you can use different versions for your different builds (which I assume is why you have it in a variable).

You won't see the contents of the snippet box in the template until you publish, so you may need to experiment a bit to get the dimensions and position right. Create the topic file for this directly in the Topic Files section so that it doesn't have a TOC entry, and set its build options to PDF only so that it doesn't get exported to HTML formats as an invisible topic.
By Jove, it works! We use one .mnl template for about a dozen different products - that's why the product name is a variable. I gave one project an invisible topic called front-page-product-name, containing the product name with the (R) symbol formatted as I want it. The PDF template picks up the snippet from the current project, so I can have a different product name in every manual with no need for build options. Thanks, Tim.

Simon: interesting workaround, thanks, but I have to use the corporate font, which has a large (R) symbol sitting on the baseline.
Simon Dismore
Posts: 454
Joined: Thu Nov 16, 2006 1:29 pm
Location: London, UK

Re: Superscripts in variables

Unread post by Simon Dismore »

jeffbronks wrote:I have to use the corporate font, which has a large (R) symbol sitting on the baseline.
It looks as though Tim's solution has completely solved the immediate problem, so this is just FYI...

If your font license permits you to edit the opentype/ttf files, it's not hard to re-scale the (R) symbol. I've just tried it in OTMaster and it was a piece of cake:
Chantilly with resized Registered Sign glyph.PNG
Modifying the font removes the need to superscript the (R) symbol manually, which in turn removes the potential issue of extra line spacing being added in the middle of paragraphs: see Why can't you superscript a registered mark? for details.
You do not have the required permissions to view the files attached to this post.
User avatar
jeffbronks
Posts: 214
Joined: Fri Mar 04, 2005 12:39 pm
Location: Cambridgeshire, UK

Re: Superscripts in variables

Unread post by jeffbronks »

Simon Dismore wrote:
jeffbronks wrote:I have to use the corporate font, which has a large (R) symbol sitting on the baseline.
It looks as though Tim's solution has completely solved the immediate problem, so this is just FYI...

If your font license permits you to edit the opentype/ttf files, it's not hard to re-scale the (R) symbol. I've just tried it in OTMaster and it was a piece of cake:
Chantilly with resized Registered Sign glyph.PNG
Modifying the font removes the need to superscript the (R) symbol manually, which in turn removes the potential issue of extra line spacing being added in the middle of paragraphs: see Why can't you superscript a registered mark? for details.
Interesting idea, thanks Simon. That would solve a lot of problems, not just with H&M. I can't find a licence agreement for my font, so would have to ask the publishers (SoftMaker GmbH).
Simon Dismore
Posts: 454
Joined: Thu Nov 16, 2006 1:29 pm
Location: London, UK

Re: Superscripts in variables

Unread post by Simon Dismore »

Good idea, they might even make the changes for you for less than the cost of buying an editing tool if you don't have any other use for one. FYI in my test I scaled the symbol to 0.7, aligned it to the top and left edges of the original glyph and changed the right side bearing to 77.
Post Reply