Sure!
Here it is:
local textIn
clip.copy
textIn = clip.GetHTML
textIn[?"(?is).+</head>"]=""
textIn[?"\r"]=" "
textIn[?"\n"]=""
textIn[?"<p [^>]+>"]="{p}"
textIn[?"<div [^>]+>"]="{p}"
textIn[?"</div>"]=""
textIn[?"<i>"]="{i}"
textIn[?"</i>"]="{/i}"
textIn[?"<b>"]="{b}"
textIn[?"</b>"]="{/b}"
textIn[?"<sup>"]="{sup}"
textIn[?"</sup>"]="{/sup}"
textIn[?"<sub>"]="{sub}"
textIn[?"</sub>"]="{/sub}"
textIn[?"(?i)<br>"]=" "
textIn[?"<[^>]+>"]=""
textIn[?"{"]="<"
textIn[?"}"]=">"
textIn[?"<p>"]="\r<p>"
textIn[?"—"]=" - " ;;em dash
textIn[?"–"]=" - " ;;em dash
textIn[?" "]=" " ;;em space
textIn[?"™"]="™"
textIn[?"(r)"]="®"
textIn[?"(c)"]="©"
clip.set(textIn)
Now if I stick ;;trademark sign
on the end of the textIn[?"™"]="™" line I get an PP error message about
bad expression; expecting operator. . .
at the same line.
On 26/09/06, brucexs <[EMAIL PROTECTED]> wrote:
> ;; only works in script files. It worked there when I checked. If
> you have a file where it is not work, can you post it?
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/power-pro/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/