Paul Oldham
Mon, 05 Jun 2006 00:39:28 -0700
If you paste text into a new article from another source and contains an apostrophe then Opus adds a backslash before it. Typically this happens when you're pasting from a Word document.
What's happening here is that Opus is reducing "handed" apostrophes and
double quotes and other ASCII characters above 128 to ASCII characters
below 128 to ensure cross platform compatibility however there is a bug
in the mapping which adds a backslash before apostrophes.
There will be a fix for this in the next release of Opus (which I really
must put out soon ;-)) but for now here's a patch as it's only one line
that needs to be changed.
You need to update php/bin/updatearticle.php
Look for the lines which define $attr_xlat and modify the mapping for
"\x92". It currently reads:
-----------------------------------
$attr_xlat = array(
"£" => "£",
"\x0D" => "",
"\x1A" => "",
"\x85" => "...",
"\x91" => "`",
"\x92" => "\\'",
-----------------------------------
You need to edit the last line removing the two backslashes so it reads:
-----------------------------------
$attr_xlat = array(
"£" => "£",
"\x0D" => "",
"\x1A" => "",
"\x85" => "...",
"\x91" => "`",
"\x92" => "'",
-----------------------------------
That should fix it.
--
Paul
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
List info and how to unsubscribe from opus-users at:
http://the-hug.net/lists/listinfo/opus-users