Skip to main content
Inspiring
September 8, 2017
Question

Automatic unit conversion?

  • September 8, 2017
  • 1 reply
  • 337 views

Hi everyone,

Is there a way, using unstructured FrameMaker, to set up some kind of Conditional Text that will convert one unit of measure to another?

For example, if I have 120 mg/dL in my document - can I set up logic that will convert the number to 2162.4? (I know I can change the unit itself using conditional text.)

I am looking for something I can set up once and use 125 or so times throughout our manual.

Ideally I would like be able to be able to do something like: when Conditional Text Units is switched to mmoL, everyplace a number denoted as mg/dL is found (these numbers would have to be marked as such somehow), display = (variable) * 18.02

Companies must deal with this a lot when publishing manuals in other countries.

Thanks in advance,

Diane

This topic has been closed for replies.

1 reply

Jeff_Coatsworth
Community Expert
Community Expert
September 11, 2017

Never heard of any auto method - you might tackle it through scripting I guess. Most places I suspect just build a string of values up & apply conditions to each one of them depending on where they are wanted to appear - that's the quick & dirty way.

Inspiring
September 11, 2017

Thanks Jeff. I figured that was the answer but wanted to make sure before I put in all of those conditions.