Stack
November 5th, 2008, 09:14 AM
Hi all,
I'm setting up a job that requires author names to be small caps. I created a rule which takes care of that, however, one of the letters is accented. Even though the rule changes everything to small caps, what should be "É" is returning "é". I set up the original file in InDesign, and I've verified that the font (Berkeley Bold) does include special characters in both cases.
Here's the rule in JS to convert to small caps:
Var1="Author";
CaseSelection="smallcaps";
if(CaseSelection == "allcaps")
return ToUpper(Field(Var1));
if(CaseSelection == "smallcaps")
return "<smallcap>" + Field(Var1) + "</smallcap>";
if(CaseSelection == "propercase")
return ToTitleCase(Field(Var1));
if(CaseSelection == "lowercase")
return ToLower(Field(Var1));
Is it possible that additional coding can be added to this rule?
Thanks!
I'm setting up a job that requires author names to be small caps. I created a rule which takes care of that, however, one of the letters is accented. Even though the rule changes everything to small caps, what should be "É" is returning "é". I set up the original file in InDesign, and I've verified that the font (Berkeley Bold) does include special characters in both cases.
Here's the rule in JS to convert to small caps:
Var1="Author";
CaseSelection="smallcaps";
if(CaseSelection == "allcaps")
return ToUpper(Field(Var1));
if(CaseSelection == "smallcaps")
return "<smallcap>" + Field(Var1) + "</smallcap>";
if(CaseSelection == "propercase")
return ToTitleCase(Field(Var1));
if(CaseSelection == "lowercase")
return ToLower(Field(Var1));
Is it possible that additional coding can be added to this rule?
Thanks!