Jump to content

Using Small Caps with accented characters


EricC

Recommended Posts

My data file contains a field called 'lastName'

the value of 'lastName' is 'Hernández'

 

In a rule, I am simply converting the field to Small Caps, like so:

 

return '<smallcap>' + Field("lastName") + '</smallcap>';

This rule converts all of the lower case letters to small caps, EXCEPT FOR the lower case a with the accent above it. It seems to ignore that character as if it doesn't know the equivalent 'upper case' version.

 

http://i50.tinypic.com/1kqyp.jpg

 

Now ... if I do this instead ...

return '<smallcap>' + Field("tpa_single_Doctor1").replace("á","Á") + '</smallcap>'

... the letter 'a' displays correctly. (Even though Á is already upper case, the rule doesn't see it as upper case. It displays properly at the Small Caps size.)

 

http://i46.tinypic.com/2i1gzk4.jpg

 

Is this a glitch in the 'smallcaps' tag? or an issue with the font encoding?

I tried 5 or 6 different fonts but I got the same result each time.

 

My solution is to use the JavaScript '.replace' function but this is cumbersome of I had to watch for all accented characters.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...