Quantcast
Channel: PTC Community : All Content - Arbortext
Viewing all articles
Browse latest Browse all 1645

Using charent.cf to Alter Certain Characters (Arbortext 6.0)

$
0
0

Hi,

There are certain characters that show up in our raw data that we would like to automatically alter because they cause problems when we finally upload them to our website. Some examples of characters we needed to alter are the mdash (—, unicode  0x2014), rdquo (”, 0x201D), ldquo (“, 0x201C), rsquo (’, 0x2019), lsquo (‘, 0x2018), etc.

 

I understood that I could use charent.cf for this purpose. As a test, I followed the procedures and copied charent.cf from Arbortext-path\lib to Arbortext-path\custom\lib and edited the file here to replace the Left and Right Pointing Double Angle Quotation Marks (», 0x00BB and «, 0x00AB) with a quote mark ( ", unicode 34). It worked like a charm: when I opened a document containing the double angle quotation marks using Arbortext Editor, they were automatically converted to the quote mark and I was able to save the document with the changes. However, we didn't need this particular change after all so I restored the original lines and added my new conversions for the characters we needed to alter. However, when I opened the document in Arbortext Editor, there were no conversions and the document still contained the original characters.

 

I tried making changes to the file, rebooting my PC, etc. but no luck. I now have restarted by copying the original charent.cf file from Arbortext-path\lib to Arbortext-path\custom\lib and only changing one character but still no luck. Here are the 2 lines I've changed for mdash:

 

mdash           ascii           45      unicode         45     #replace 0x2014 (—) with 45 -

(for Windowsonly)

 

mdash           ps_ascii  45      unicode         45              psa ":\g151|"      #replace 0x2014 (—) with 45 -

(for unixonly)

 

No luck though. The mdash still remains in my test document when I open it in Arbortext Editor. It's probably something simple because it was working for me before ... but I just can't figure it out.

 

Any ideas? Thanks.


Viewing all articles
Browse latest Browse all 1645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>