Question

How to get complex annotations interpreted, or is there a possibility to (re)-create the 'labels'?

  • 1 May 2023
  • 1 reply
  • 7 views

Userlevel 1
Badge +8

Within ArcGIS Pro 3.1 I am creating annotations with the help of Arcade (a lightweigth expression language). The outcome is as shown below, basically a fraction

fractions in AGPWhen I read the annotation layer from the file geodatabase, FME does not interpret the HTML tags in the text string, but counts them as part of the text.

HTML tags in annotationsI there a way to make FME interpret these tags correctly?

 

My final product should be a dgn file with a level holding these 'labels' and I was wondering if that is possible, and if I can achieve this with FME.

 

The 'fracture' consists basically of three parts as I see it:

  1. nominator that is underlined
  2. line break
  3. denominator without underline

1 reply

Userlevel 2
Badge +10

Hi @Thomas Becker​ you could use Regex to remove the HTML tags from the label to recreate the labels. The next step would be to reproduce the underlined text, the line break, and the denominator. To get you started, you could use the following Regex statement in a StringReplacer to remove the HTML tags:

<[^<]+?>

 image

Reply