Search the web
Sign In
New User? Sign Up
textpipe-discuss · TextPipe user discussion forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Literal/curly quote fix?   Message List  
Reply | Forward Message #524 of 525 |
Re: Literal/curly quote fix?

The trick is to replace only between >...< pairs.

The beauty of TextPipe is that you can restrict a set of changes to any region,
using either a pattern, or other subsets like a line range, columns range, a set
of CSV fields etc,

Use a search/replace for the EasyPattern:
>[ 1+ chars ]<

and set the Action to 'Send Matching Text to Subfilter'.

Then, use a search/replace as a subfilters, finding " and replacing
with nothing or &#8220;



--- In textpipe-discuss@yahoogroups.com, "Doug C" <subscribe@...> wrote:
>
> This is probably so simple that it's been solved a dozen times, but I'm
> stuck. How do I remove quote marks from content that are interfering
> with correct parsing of XML?
>
> I have a lousy translation to XML(XHTML) that has decided that all
> quotation marks need to be translated as ".
>
> Which of course leaves me with text that looks a bit like this:
>
> <p>I would <span class="annoy_reader">never</span> reveal the name of
> the <span class="so_called">"quality"</span> product that put me in
> this position, but it lacks a certain flare.</p>
>
> What I want to do is make sure I replace the quotes around quality
> with... well, anything except what they currently are, really (but in
> this case, &#8220; and &#8221; respectively). And of course, I want to
> leave the other quote marks alone, since they're correct.
>
> This has to be such a common problem that solutions exist by the
> handful, yes?
>





Mon Mar 26, 2007 10:31 pm

crystalsoftw...
Offline Offline
Send Email Send Email

Forward
Message #524 of 525 |
Expand Messages Author Sort by Date

This is probably so simple that it's been solved a dozen times, but I'm stuck. How do I remove quote marks from content that are interfering with correct...
Doug C
dgcuff
Offline Send Email
Mar 26, 2007
10:05 pm

The trick is to replace only between >...< pairs. The beauty of TextPipe is that you can restrict a set of changes to any region, using either a pattern, or...
crystalsoftwareau
crystalsoftw...
Offline Send Email
Mar 26, 2007
10:33 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help