Hi Dan. The below code you wrote works really well for bringing in each graphic element. The only thing I haven't been able to figure out is the spacing between each object.
var symbols =
{
DC: 'g',
W30: 'w',
CI: 'c',
DNB: 'd',
DNTD: 'n',
// add any other mappings you want here
};
function GetSymbol(incode)
{
return symbols[incode] || incode;
}
var codestring = Field("Cleaning Codes");
var codes = codestring.split(/\s/);
return '<f name="Your Font Name">' + codes.map(GetSymbol).join(' ');
With the .join(' '); at the end there is no space between regardless of how many spaces are put in. If you insert a character .join(','); it will put that character in between. I thought I might be able to insert a tab character but no luck. Is there a way to control the spacing with this script?
https://owncloud.ricoh.co.nz/index.php/s/c7g89v7tLF5SBto
https://owncloud.ricoh.co.nz/index.php/s/6RjdhkT7fZFDGUv