MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Removing strange characters from mathgroup postings

  • To: mathgroup at smc.vnet.net
  • Subject: [mg118222] Re: Removing strange characters from mathgroup postings
  • From: DrMajorBob <btreat1 at austin.rr.com>
  • Date: Sun, 17 Apr 2011 07:52:03 -0400 (EDT)

It usually works to highlight the code (in Mathematica) and select (from  
the menus) Edit>Copy As>Plain Text. Sometimes Input Text works better.

It's nice to have a way to recover if a poster didn't do that, but I will  
(generally) continue to skip posts like that.

Bobby

On Sat, 16 Apr 2011 06:35:05 -0500, Sjoerd C. de Vries  
<sjoerd.c.devries at gmail.com> wrote:

> Oftentimes copying from Mathematica to the mathgroup goes awry and
> strange characters combinations that look like "=AE" and such are
> sprinkled throughout the text.
>
> If you ever encounter this situation (e.g., as in
> http://forums.wolfram.com/mathgroup/archive/2009/Feb/msg00250.html)
> the following function will decode it (in all the cases that I
> tested).
>
>     translateQuotedPrintable[str_String] :=
>       StringReplace[str, {"=" ~~
> c1:HexadecimalCharacter~~c2:HexadecimalCharacter :>
>         FromCharacterCode[FromDigits[c1 <> c2, 16], "Math1"],"=" ~~
> EndOfLine -> ""}]
>
> Just paste the whole posting between quotes in
> translateQuotedPrintable[" ... "] and the post will be cleaned up.
>
> Cheers -- Sjoerd
>


-- 
DrMajorBob at yahoo.com


  • Prev by Date: Re: trouble printing to PDF
  • Next by Date: ImageMargins and Frame Labels
  • Previous by thread: Removing strange characters from mathgroup postings
  • Next by thread: How to define FrontEndEventActions for keyboard combinations with Shift and Alt?