Skip to main content

Posts

Showing posts from February, 2010

Ripping the English pre-translation text out of a Google translation with vim

This next line is not really broken, but Blogger’s editor refuses to agree: :%s:<SPAN class="google-src-text">.\{-}<SPAN>.\{-}</SPAN>.\{-}</SPAN>::g ...then... :%s:<SPAN class="google-src-text">.\{-}</SPAN>::g ...all done (minus a bit of tidying up of <SCRIPT> junk here & there within <HEAD> section). The point? You can then Insert File into OpenOffice Writer & wind up with only the translation text.