Superscripts in variables
Moderators: Alexander Halser, Tim Green
- jeffbronks
- Posts: 214
- Joined: Fri Mar 04, 2005 12:39 pm
- Location: Cambridgeshire, UK
Superscripts in variables
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.
- Tim Green
- Site Admin
- Posts: 23182
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Superscripts in variables
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.
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.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
-
- Posts: 454
- Joined: Thu Nov 16, 2006 1:29 pm
- Location: London, UK
Re: Superscripts in variables
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
On the other hand if the look is very important, you could generate outlines in Illustrator and export them as an EMF.
Simon
- jeffbronks
- Posts: 214
- Joined: Fri Mar 04, 2005 12:39 pm
- Location: Cambridgeshire, UK
Re: Superscripts in variables
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.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.
Simon: interesting workaround, thanks, but I have to use the corporate font, which has a large (R) symbol sitting on the baseline.
-
- Posts: 454
- Joined: Thu Nov 16, 2006 1:29 pm
- Location: London, UK
Re: Superscripts in variables
It looks as though Tim's solution has completely solved the immediate problem, so this is just FYI...jeffbronks wrote:I have to use the corporate font, which has a large (R) symbol sitting on the baseline.
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: 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.
- jeffbronks
- Posts: 214
- Joined: Fri Mar 04, 2005 12:39 pm
- Location: Cambridgeshire, UK
Re: Superscripts in variables
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 wrote:It looks as though Tim's solution has completely solved the immediate problem, so this is just FYI...jeffbronks wrote:I have to use the corporate font, which has a large (R) symbol sitting on the baseline.
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: 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.
-
- Posts: 454
- Joined: Thu Nov 16, 2006 1:29 pm
- Location: London, UK
Re: Superscripts in variables
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.