Results 1 to 4 of 4
  1. #1
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Curly Quotes vs. Straight Quotes. (all, probably)

    A pox on this feature. It's done it to me again. Taken me 3 hours to track it down.

    I'm building a new web site, automatically.

    I have a macro that dumps out a series of 400 text files, and to each of the 400 files adds hyperlinks to common reference documents, adds header and tail "include files", saves as DOC format,

    So far so good.

    Then I feed the 400 generated pages through a web-page generator.

    CLANG!

    The web-page generator dies after processing 3 pages. There's a limit on usability? Crippleware? No. I wrote this code myself.

    natter natter natter ....

    (3 hours and 6 cups of tea pass ......)


    When last I installed Word I forgot to turn off curly quotes (Tools, AutoCorrect, Autoformat as you type etc.) so when I recorded a macro to insert Hyperlinks, the darned record of my typing used curly quotes. So the right-hand end of the HYPERLINK field was bounded by a curly quote instead of a straight quote. So the code in the web-page generator did not detect, during its parsing of the string, that although there wasn't really a double-quote there, there was a double-quote there, really.


    Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaargh!


    Yeah, yeah, I know. When I coded the pasring function I should have allowed for straight quotes, curly quotes, forward, backward, upside-down, spanish quotes, mis-quotes.


    Don't quote me on that.

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Curly Quotes vs. Straight Quotes. (all, probably)

    Hi Chris:

    You can use Find/Replace to change curly quotes to regular quotes. I know this works if you paste curly quotes in the "Find" box, change the option under Tools/AutoCorrect/"AutoFormat as you type", & then paste straight quotes in the Replace box.

    I'm not sure it works the same way with a macro; but you could try it. 400 files--yech.

  3. #3
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Curly Quotes vs. Straight Quotes. (all, probably)

    > You can use Find/Replace to change curly quotes

    yes, that's how I did it in the end.

    Turning off the darn option is the best bet.


    I suppose 95% of Word users make use of the feature.

  4. #4
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Sun Prairie, Wisconsin, Wisconsin, USA
    Posts
    2,049
    Thanks
    124
    Thanked 119 Times in 116 Posts

    Re: Curly Quotes vs. Straight Quotes. (all, probably)

    I like the feature just fine, but then I don't use Word to write web pages. (I use Front Page which is a different Microsoft product that gets me throwing things.)
    Charles Kyle Kenyon
    Madison, Wisconsin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •