Fantasy Grounds Forums > Create and Share > The Workshop > The
PDA

View Full Version : The



Zane_Marlowe
June 17th, 2005, 16:14
Hey developers and friends.

I'm trying to work out whether or not the <sup> (for Superscript) tag can be supported in FG. Is there a different tag in the <formattedtext> that describes superscripts?

Thanks,
ZM

DrClarke
January 11th, 2007, 23:15
Wow, this is a really old post, but I was doing a search for utilizing superscript in the FG XML and this is the only thread a search would yield, so I'll update it a wee bit.

First I was trying the old HTML commands such as:

<sup>1</sup>
But this would not work.

I did find out that the three Superscript Unicodes actually work:

&sup1;

&sup2;

&sup3;
So your target XML code might look something like:

<tr><td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;Unarmed strike</td><td>-</td><td>1d2&sup3;</td><td>1d3&sup3;</td><td>x2</td><td>-</td><td>-</td><td>Bludgeoning</td></tr>
The problem here, is that in Unicode, you can only Superscript from 1 to 3. You will be unable to go higher than 3.

Does anyone have a solution to Superscript better in XML for FG that will let us go to any number we want?

Oberoten
January 12th, 2007, 00:20
Unicode... Pretty useful stuff.

&crlf; Linefeed.
&nel; Newline
... Might work as well.

*ponders this and tests quickly*

... Nope. None of them seem to work unless I am doing something wrong here?

What Unicodes CAN FantasyGrounds accept in formated text?
Some kind of simple line-break would be wonderful.

Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.