Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
I am using Arbortext 8.3. Here is the simple function in question:
replace("ʼ", "’", 0x2000);The user has a file that contains a mix of apostrophes. We want a consistent character used. The first apostrophe is the U+02BC : MODIFIER LETTER APOSTROPHE {apostrophe} and the second (the desired one) is U+2019 : RIGHT SINGLE QUOTATION MARK {single comma quotation mark.
Using the following text, the last apostrophe is the one we want swapped.
la Loi sur les traitements, aux ministres d’État qui sont à la tête d’un département dʼÉtatUsing the replace function above, if I run from the command line in Arbortext Editor it works perfectly.
However, when I save that one line of code, as its own ApostropheSwap.acl file, and do a "source ApostropheSwap.acl", it does not find a match.
I have tried saving the .acl file as UTF-8 and ANSI, and both get the same result.
Any ideas would be greatly appreciated.
Thanks
If you open the map as a resolved document for editing (edit, edit resolved document) you can also do a find and replace that way.
Bryon
Yeah, the regular Find/Replace dialog works, but I really wanted a solution that doesn't require the user to have to do much. The users are lawyers and dont want to be copying different apostrophes into text boxes. At this point the simplest solution is for the user to paste the function in the command line. And that is not a very polished solution.
I am hoping someone knows how to get that little command to work from within .acl
