• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

ampersand causes underline

Contributor ,
Aug 12, 2020 Aug 12, 2020

Copy link to clipboard

Copied

I have a statictext that contains an ampersand.  This effects the underlining of the next character and no ampersand.

The 'fix' of doubling up the ampersands simply effects two ampersands (neither underlined).

Any ideas, please?

 

Win10 : ExtendScript Toolkit : Javascript

TOPICS
Actions and scripting , Windows

Views

710

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , Aug 12, 2020 Aug 12, 2020
var d = new Window("dialog");

d.add("statictext", undefined, "aaaa &&&& bbb");       // CS6
d.add("statictext", undefined, "aaaa &&&\u202B bbb");  // СС2018
d.add("statictext", undefined, "aaaa &&&\u200B bbb");  // СС2018

d.show();

Votes

Translate

Translate
Adobe
Community Expert ,
Aug 12, 2020 Aug 12, 2020

Copy link to clipboard

Copied

Try using two ampersands instead of one.

JJMack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 13, 2020 Aug 13, 2020

Copy link to clipboard

Copied

Quoting from my original: "The 'fix' of doubling up the ampersands simply effects two ampersands (neither underlined)."

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Aug 12, 2020 Aug 12, 2020

Copy link to clipboard

Copied

var d = new Window("dialog");

d.add("statictext", undefined, "aaaa &&&& bbb");       // CS6
d.add("statictext", undefined, "aaaa &&&\u202B bbb");  // СС2018
d.add("statictext", undefined, "aaaa &&&\u200B bbb");  // СС2018

d.show();

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 12, 2020 Aug 12, 2020

Copy link to clipboard

Copied

Adobe Replaced Flash based ScriptUI in CC 2015 with a HTML based version. There are  issues between versions scripts compatibility issues exists.

JJMack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 13, 2020 Aug 13, 2020

Copy link to clipboard

Copied

That's not material here, but thank you anyway.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 08, 2021 Mar 08, 2021

Copy link to clipboard

Copied

LATEST

I had the same problem in CS6 where I found solution for, but later was irritated it doesn't work in CC.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 13, 2020 Aug 13, 2020

Copy link to clipboard

Copied

Thank you for a quick and correct answer.  Rather ridiculous isn't it that to effect a single ampersand one has to enter "&&&\u200B"?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 07, 2021 Mar 07, 2021

Copy link to clipboard

Copied

Ha, I had the same problem in rather different context. When I produce a typeface with an ampersand in the descriptive name of stylistic sets, this will also underline the next character in the OpenType menu of the current InDesign CC. Using two ampersands helps for InDesign, but then other applications display && in the menu. I can't fix that dilemma, I hope Adobe does, soon.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines