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

special character, acrobat javascript, richText

Community Beginner ,
Nov 27, 2024 Nov 27, 2024

Copy link to clipboard

Copied

I'm trying to insert special characters into a rich textfield via javascript. The characters are from Enclosed Alphanumeric Supplement block, e.g. :

\u1F16D
\u1F16F
\u1F10E

Unfortunately, what I get is e.g. 1F10 + E or just gibberish. The selected font includes these cope-points. I can access these glyphs in a text editor and they show correctly. The rest of the text in the textfield (in a different font and different characters) is inserted correctly. Other, lower, code-points are inserted correctly.

How can I insert these characters?

Thank you for your help!

TOPICS
How to , JavaScript , PDF forms

Views

145

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

Community Expert , Nov 27, 2024 Nov 27, 2024

There isn't. But if you have a font that contains these symbols (with a different encoding) then you can use it in your code. And since it's an RTF text field, you can combine it with other text, using different fonts.

Votes

Translate

Translate
Community Expert ,
Nov 27, 2024 Nov 27, 2024

Copy link to clipboard

Copied

First, these ar not standare UNICODE values, and I do not believe they are supported by Acrobat. 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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 Beginner ,
Nov 27, 2024 Nov 27, 2024

Copy link to clipboard

Copied

Thank you for your reply. These cope-points have been part of the Unicode Standard for quite some time now.

https://creativecommons.org/2020/03/18/the-unicode-standard-now-includes-cc-license-symbols/

Unless you're referring to the "\u" part, which I have been using successfully with other values.

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 Beginner ,
Nov 27, 2024 Nov 27, 2024

Copy link to clipboard

Copied

And, apparently, Acrobat doesn't support adding characters from any Supplementary Multilingual Plane blocks, only from the Basic Multilingual Plane, up to FFFF. Unless there's another way to insert these characters via Javascript?

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 ,
Nov 27, 2024 Nov 27, 2024

Copy link to clipboard

Copied

There isn't. But if you have a font that contains these symbols (with a different encoding) then you can use it in your code. And since it's an RTF text field, you can combine it with other text, using different fonts.

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 Beginner ,
Nov 27, 2024 Nov 27, 2024

Copy link to clipboard

Copied

You mean different encoding = different code-points? Like symbols mapped to e.g. "A" (0041), "B" (0042), "C" (0043)?

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 ,
Nov 27, 2024 Nov 27, 2024

Copy link to clipboard

Copied

Correct. Like Wingdings, for example.

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 Beginner ,
Nov 27, 2024 Nov 27, 2024

Copy link to clipboard

Copied

LATEST

Yes.... It worked 30 years ago and it seems Adobe still forces us to use this workaround. This is in no way meant as a criticism of your idea! only of Adobe and their Unicode problems. I've really been hoping for a current-millenium solution 😄 but in the meantime I de-standardised my font to work within Acrobat's limitations. 😞 I really am grateful for your help though - even if it is confirming what I've suspected, it still saves time and futile effort.

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