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

Superscript and subscript notations in dropdown fields

Community Expert ,
May 08, 2020 May 08, 2020

I would need to put raw chemistry formulas in dropdown lists or values in scientific notation, it is therefore necessary for these two notations to access the superscript and subscript notations.

CH4 is not CH4 and even worse when writing 1.7.103 and 1.7.103!


Are there escape characters or encodings for the items in the dropdown fields?

 

Thank you.


Acrobate du PDF, InDesigner et Photoshoptographe
TOPICS
Acrobat SDK and JavaScript
3.0K
Translate
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

Community Expert , May 09, 2020 May 09, 2020

Sorry, just saw you were referring to drop-down fields... In that case the answer I provided above doesn't apply.

What you can do is use the special unicode characters for those symbols, but then you are limited to just those, of course.

For example, this is the SUPERSCRIPT THREE character: ³ 

Translate
Community Expert ,
May 09, 2020 May 09, 2020

up


Acrobate du PDF, InDesigner et Photoshoptographe
Translate
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 ,
May 09, 2020 May 09, 2020

Yes, this is possible to do in a text field, but you have to set it first as having Rich Text Formatting (under its Properties, Options tab).

Once you've done that you can enter the text as normal and then change it to super- (or sub-)script by pressing Ctrl+E, selecting the text you want to modify and clicking the relevant buttons in the floating toolbar that will appear, called "Form Field Text Properties". It should look like this:

 

try67_0-1589014558783.pngexpand image

 

Translate
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 ,
May 09, 2020 May 09, 2020

Sorry, just saw you were referring to drop-down fields... In that case the answer I provided above doesn't apply.

What you can do is use the special unicode characters for those symbols, but then you are limited to just those, of course.

For example, this is the SUPERSCRIPT THREE character: ³ 

Translate
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 ,
May 09, 2020 May 09, 2020

Thank you!

I will try that.


Acrobate du PDF, InDesigner et Photoshoptographe
Translate
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 ,
May 09, 2020 May 09, 2020

May be not possible.

Translate
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 ,
May 09, 2020 May 09, 2020

Subsidiary question: should it be possible to use Unicode caracters in a JavaScript popup menu?


Acrobate du PDF, InDesigner et Photoshoptographe
Translate
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 ,
May 09, 2020 May 09, 2020

Yes. You just need to find their correct code.

For the example I provided above it's "\u00B3".

See: https://www.fileformat.info/info/unicode/char/00b3/index.htm

Translate
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 ,
May 09, 2020 May 09, 2020

Mille mercis !


Acrobate du PDF, InDesigner et Photoshoptographe
Translate
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 ,
May 09, 2020 May 09, 2020

I just tried but it does not seem to work.

JavaScript popup menu only displays superscript 2 and 3, unlike the dropdown field that is OK.

 

See this file with two menus, filed as same: https://documentcloud.adobe.com/link/track?uri=urn%3Aaaid%3Ascds%3AUS%3A5476bc75-3516-422f-badc-32ae...


Acrobate du PDF, InDesigner et Photoshoptographe
Translate
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 ,
May 09, 2020 May 09, 2020

You'll notice that the SUPERSCRIPT SIX character, for example, belongs to a different "block" than the TWO or THREE versions (Superscripts and Subscripts vs. Latin-1 Supplement). My guess is the latter is supported by the font used for the pop-up menu, while the latter is not.

Translate
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 ,
May 10, 2020 May 10, 2020

Both fields uses the same standard font:

 

Capture_062.pngexpand image


Acrobate du PDF, InDesigner et Photoshoptographe
Translate
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 ,
May 10, 2020 May 10, 2020
LATEST

That's not the issue. The issue is the font used in the pop-up menu itself.

Translate
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