MX-5 OC Forum

The UK MX-5 Owners Club Online Community
MX-5 Parts
MX5OC Home |  Club |  Areas |  Motorsport |  Store |  Links |  My Account   | Inbox  | Profile
Welcome to MX-5 OC Forum Sign in   Search
Home Forums Downloads Technical FAQs

Copy/paste from Word

Last post Fri, Feb 27 2009 14:14 by 01mx5. 23 replies.
Page 1 of 2 (24 items) 1 2 Next >
Sort Posts: Previous Next
  • Sat, Feb 21 2009 1:27
    • Geoff Walton
    • Top 10 Contributor
    • Forum member since...
      Mon, May 26 2008
    • Sunshine Coast Queensland Australia
    • Posts 11,082
    • Member
      SystemAdministrator

    Copy/paste from Word

     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
  • Sat, Feb 21 2009 1:33 In reply to
    • Geoff Walton
    • Top 10 Contributor
    • Forum member since...
      Mon, May 26 2008
    • Sunshine Coast Queensland Australia
    • Posts 11,082
    • Member
      SystemAdministrator

    Re: Copy/paste from Word

     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
  • Sat, Feb 21 2009 3:26 In reply to
    • HighLift
    • Top 500 Contributor
    • Forum member since...
      Tue, Nov 18 2008
    • Portsmouth
    • Posts 122

    Re: Copy/paste from Word

      

    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
  • Sat, Feb 21 2009 6:33 In reply to
    • Geoff Walton
    • Top 10 Contributor
    • Forum member since...
      Mon, May 26 2008
    • Sunshine Coast Queensland Australia
    • Posts 11,082
    • Member
      SystemAdministrator

    Re: Copy/paste from Word

     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
  • Fri, Feb 27 2009 1:33 In reply to
    • 01mx5
    • Top 25 Contributor
    • Forum member since...
      Thu, Jan 8 2009
    • Central Scotland
    • Posts 3,053
    • Committee
      Member
      Moderator
      System Developer
      SystemAdministrator

    Re: Copy/paste from Word

     Does the new "Paste from Word" button sort this, by any chance?

    Ramsay Ashby - Website & Forum Administrator

    Green 1991 Limited Edition BBR Turbo
  • Fri, Feb 27 2009 3:36 In reply to
    • Geoff Walton
    • Top 10 Contributor
    • Forum member since...
      Mon, May 26 2008
    • Sunshine Coast Queensland Australia
    • Posts 11,082
    • Member
      SystemAdministrator

    Re: Copy/paste from Word

    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
  • Fri, Feb 27 2009 3:37 In reply to
    • Geoff Walton
    • Top 10 Contributor
    • Forum member since...
      Mon, May 26 2008
    • Sunshine Coast Queensland Australia
    • Posts 11,082
    • Member
      SystemAdministrator

    Re: Copy/paste from Word

    No! see aboveHuh?

    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
  • Fri, Feb 27 2009 3:51 In reply to
    • Andy
    • Top 200 Contributor
    • Forum member since...
      Thu, Nov 13 2008
    • Cambridge
    • Posts 316
    • Member

    Re: Copy/paste from Word

    <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)
  • Fri, Feb 27 2009 6:37 In reply to
    • Geoff Walton
    • Top 10 Contributor
    • Forum member since...
      Mon, May 26 2008
    • Sunshine Coast Queensland Australia
    • Posts 11,082
    • Member
      SystemAdministrator

    Re: Copy/paste from Word

    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
  • Fri, Feb 27 2009 6:53 In reply to
    • Andy
    • Top 200 Contributor
    • Forum member since...
      Thu, Nov 13 2008
    • Cambridge
    • Posts 316
    • Member

    Re: Copy/paste from Word

    There are some useful tips here:

    http://www.linuxplanet.com/linuxplanet/tutorials/6506/3/
    http://www.linuxplanet.com/linuxplanet/tutorials/6515/3/
    http://www.linuxplanet.com/linuxplanet/tutorials/6519/3/
    http://www.linuxplanet.com/linuxplanet/tutorials/6532/1/
    http://www.linuxplanet.com/linuxplanet/tutorials/6532/3/

    Most of it is relevant, not specific to Linux.

    There is also a migration guide somewhere on the openoffice support site.
    PM me with your email address if you can't find it and I'll send you a copy.

    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)
  • Fri, Feb 27 2009 6:57 In reply to
    • Andy
    • Top 200 Contributor
    • Forum member since...
      Thu, Nov 13 2008
    • Cambridge
    • Posts 316
    • Member

    Re: Copy/paste from Word

    <!-- @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)
  • Fri, Feb 27 2009 6:58 In reply to
    • Andy
    • Top 200 Contributor
    • Forum member since...
      Thu, Nov 13 2008
    • Cambridge
    • Posts 316
    • Member

    Re: Copy/paste from Word

    Closer but still not perfect :-(

    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)
  • Fri, Feb 27 2009 7:07 In reply to
    • Andy
    • Top 200 Contributor
    • Forum member since...
      Thu, Nov 13 2008
    • Cambridge
    • Posts 316
    • Member

    Re: Copy/paste from Word

    The html code pasted in appears to have converted one set of '<' and '>' into &amp;&lt; and &amp;&gt; 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">
        &amp;lt;!--
            @page { margin: 2cm }
            P { margin-bottom: 0.21cm }
        --&amp;gt;
        </style>
    </p>
    <p style="margin-bottom: 0cm;">Test pasting text from OpenOffice Writer.</p>
    <p>&nbsp;</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)
  • Fri, Feb 27 2009 7:13 In reply to
    • Andy
    • Top 200 Contributor
    • Forum member since...
      Thu, Nov 13 2008
    • Cambridge
    • Posts 316
    • Member

    Re: Copy/paste from Word

    Normal 0 false false false MicrosoftInternetExplorer4 <!-- /* 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;} --> /* 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;} Test pasting text from MS 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)
  • Fri, Feb 27 2009 7:16 In reply to
    • Andy
    • Top 200 Contributor
    • Forum member since...
      Thu, Nov 13 2008
    • Cambridge
    • Posts 316
    • Member

    Re: Copy/paste from Word

    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>
    &amp;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;}
    --&amp;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 &amp;&lt; and &amp;&gt; 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)
Page 1 of 2 (24 items) 1 2 Next >