|
Copy/paste from Word
Last post Fri, Feb 27 2009 14:14 by 01mx5. 23 replies.
-
-
Geoff Walton


- Forum member since...
Mon, May 26 2008
- Sunshine Coast Queensland Australia
- Posts 11,082


|
When I copy and paste from Word 2003 I get this effect
Normal
0
false
false
false
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
Rear number plate = 375 x 165mm Any ideas, Firefox problem?
Geoff Growing old disgracefully in Queensland. Founder of Eastern Region[HMF] Sunshine Coast Chapter. 1990 Mariner Blue and white Mk1 Roadster with JR supercharger Hofner Verithin Guitars
|
|
-
-
Geoff Walton


- Forum member since...
Mon, May 26 2008
- Sunshine Coast Queensland Australia
- Posts 11,082


|
Just done a test, and it's Firefox, IE7 posts ok......not what I wanted to find out really,as I do a lot of copy paste for the tech forums and I do not want to go back to that old clunker of browser
Geoff Growing old disgracefully in Queensland. Founder of Eastern Region[HMF] Sunshine Coast Chapter. 1990 Mariner Blue and white Mk1 Roadster with JR supercharger Hofner Verithin Guitars
|
|
-
-
HighLift


- Forum member since...
Tue, Nov 18 2008
- Portsmouth
- Posts 122
|
Bizzare
font
effects for
test
purposes. Paste from OpenOffice to FF3.
What are you trying to paste?
dirty BRG '95 1.8. Absolutely Shocks Gaz kit, BRP M45 coldside, MS diyPNP, 320cc's
|
|
-
-
Geoff Walton


- Forum member since...
Mon, May 26 2008
- Sunshine Coast Queensland Australia
- Posts 11,082


|
This is an example of a paragraph from a word .doc on my pc, whan you compose it, it looks fine, if you preview it you get all the Word embedded code, which you can't delete.
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
Supercharger fitted by Danny
Irvine
Jackson Racing M45 supercharger kit, plus
full standalone plug and play ECU (MSPNP). Other bits include:
- Jackson Racing BBK "Big Boost Kit" crank
overlay pulley (gives 10psi)
- Innovate LC-1 wideband oxygen sensor and
controller
- 4x Denso 330cc injectors with new O rings (swap
straight in)
- Bosch throttle position sensor (bolts onto
standard throttle body without modification)
Geoff Growing old disgracefully in Queensland. Founder of Eastern Region[HMF] Sunshine Coast Chapter. 1990 Mariner Blue and white Mk1 Roadster with JR supercharger Hofner Verithin Guitars
|
|
-
-
-
Geoff Walton


- Forum member since...
Mon, May 26 2008
- Sunshine Coast Queensland Australia
- Posts 11,082


|
1024x768
Normal
0
false
false
false
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
Lets see
Geoff Growing old disgracefully in Queensland. Founder of Eastern Region[HMF] Sunshine Coast Chapter. 1990 Mariner Blue and white Mk1 Roadster with JR supercharger Hofner Verithin Guitars
|
|
-
-
-
Andy


- Forum member since...
Thu, Nov 13 2008
- Cambridge
- Posts 316

|
<hijack>
But Word is rubbish anyway, and generates incredibly messy html text full of non-standard Microsoft-specific formatting code. That's what you're seeing in the pasted text for some reason.
Have you tried OpenOffice Writer? I find it works well, includes an excellent pdf export function, and it reads and writes Word format files. Best of all it's free.
</hijack>
(Runs away from starting flame wars about MS and Word.....)
Andy
1990 Mk1 Eunos 1.6, Mariner Blue
(Previously: 1996 Mk1 Eunos 1.8 S-Special type II, Montego Blue 2003 Mk2.5 1.8 S-VT Sport, Supreme Blue)
|
|
-
-
Geoff Walton


- Forum member since...
Mon, May 26 2008
- Sunshine Coast Queensland Australia
- Posts 11,082


|
Andy:
<hijack>
But Word is rubbish anyway, and generates incredibly messy html text full of non-standard Microsoft-specific formatting code. That's what you're seeing in the pasted text for some reason.
Have you tried OpenOffice Writer? I find it works well, includes an excellent pdf export function, and it reads and writes Word format files. Best of all it's free.
</hijack>
(Runs away from starting flame wars about MS and Word.....)
Downloading it now
Geoff Growing old disgracefully in Queensland. Founder of Eastern Region[HMF] Sunshine Coast Chapter. 1990 Mariner Blue and white Mk1 Roadster with JR supercharger Hofner Verithin Guitars
|
|
-
-
-
Andy


- Forum member since...
Thu, Nov 13 2008
- Cambridge
- Posts 316

|
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
Test pasting text from OpenOffice
Writer.
Andy
1990 Mk1 Eunos 1.6, Mariner Blue
(Previously: 1996 Mk1 Eunos 1.8 S-Special type II, Montego Blue 2003 Mk2.5 1.8 S-VT Sport, Supreme Blue)
|
|
-
-
-
Andy


- Forum member since...
Thu, Nov 13 2008
- Cambridge
- Posts 316

|
The html code pasted in appears to have converted one set of '<' and '>' into &< and &> symbols. What's inside this pair gets displayed instead of filtered.
<p> <meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" /> <title></title> <meta name="GENERATOR" content="OpenOffice.org 3.0 (Win32)" /> <style type="text/css"> &lt;!-- @page { margin: 2cm } P { margin-bottom: 0.21cm } --&gt; </style> </p> <p style="margin-bottom: 0cm;">Test pasting text from OpenOffice Writer.</p> <p> </p>
Could this be an error in the html or xml parser within the forum message editor?
If I copy/paste the same line of text into a simple plain text editor, like a code editor, all I get is the text I entered, none of the formatting stuff gets through. There must be something in the paste function that determines what is pasted, as clearly the result depends on the application into which it is pasted.
p.s. Forum wizards, please ignore me if I'm talking blx.
Andy
1990 Mk1 Eunos 1.6, Mariner Blue
(Previously: 1996 Mk1 Eunos 1.8 S-Special type II, Montego Blue 2003 Mk2.5 1.8 S-VT Sport, Supreme Blue)
|
|
-
-
-
Andy


- Forum member since...
Thu, Nov 13 2008
- Cambridge
- Posts 316

|
Same thing happens here, it's just that the side effects are much worse because of all the crap formatting info that Word puts in.
<p> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="ProgId" content="Word.Document" /> <meta name="Generator" content="Microsoft Word 11" /> <meta name="Originator" content="Microsoft Word 11" /> <link rel="File-List" href="/C:\DOCUME~1\ANDYCR~1\LOCALS~1\Temp\msohtml1\01\clip_filelist.xml" /> <!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--> <style> &lt;!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --&gt; </style> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--><span style="font-size: 12pt; font-family: 'Times New Roman';">Test pasting text from MS Word.</span></p>
Again, one pair of '<' '>' markers has been incorrectly converted to &< and &> then everything betwen these is displayed instead of filtered.
Andy
1990 Mk1 Eunos 1.6, Mariner Blue
(Previously: 1996 Mk1 Eunos 1.8 S-Special type II, Montego Blue 2003 Mk2.5 1.8 S-VT Sport, Supreme Blue)
|
|
|
|
|