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

special character, acrobat javascript, richText

Community Beginner ,
Nov 27, 2024 Nov 27, 2024

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
922
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
1 ACCEPTED SOLUTION
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.

View solution in original post

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

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

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

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.

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

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?

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 ,
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.

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

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

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

Correct. Like Wingdings, for example.

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

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