Post Reply 
Matching Characters
Sep. 20, 2005, 03:22 AM (This post was last modified: Sep. 20, 2005 03:39 AM by Dekaritae.)
Post: #1
Matching Characters
I'm using a program called Plucker to import web pages for viewing on a handheld. The font I'm using to read pages doesn't render alternate quote characters correctly, so I'd like to replace them; This set (""') replacing these (“”&#8217Wink.

The first simple Proxo script I've tried doesn't appear to be triggered by the characters appearing in a document. I'm not quite what I've written incorrectly, or if I need to match these characters using some sort of unicode value.

Match = "\’"
Replace = "\'"

Match = "(“|&#8221Wink"
Replace = "\""


Edit: I just tried these expressions, and they don't appear to trigger either.

Match = "$UESC(%92)"
Replace = "\'"

Match = "($UESC(%93)|$UESC(%94))"
Replace = "\""

The page I am using to test is:
http://www.365tomorrows.com/09/12/the-ni...es-of-god/


Edit: I think I've solved this. I exported the text from Plucker and modified the filter to use the literal characters being displayed by Plucker, so "?€™" is replaced by "\'" and "?€œ|?€?" is replaced by "\"".
Add Thank You Quote this message in a reply
Sep. 20, 2005, 03:31 AM
Post: #2
 
Try this:

Code:
[Patterns]
Name = "Replace Quotations"
Active = TRUE
Limit = 1
Match = "(“|”)"
Replace = """

Smile!

Since they are not "s, but another character, you do not need to escape them Wink
Visit this user's website
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: