omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Pythonista not recognizing quotation marks, misinterpreting apostrophes?

    Pythonista
    3
    3
    3551
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ConfusedIdiot
      ConfusedIdiot last edited by ConfusedIdiot

      Simple problem, really. I type in quotation marks to denote multiline comments or strings, but the punctuation gets typed out as “smart” quotes. However, when I use an apostrophe by holding the ! key on my iPad, Pythonista recognizes it as quotation mark. This is very unfortunate because I using a bluetooth keyboard greatly increases my coding speed, and I would hate to keep dealing with this problem.

      So, long story short, Pythonista doesn't recognize quotation marks as valid punctuation for strings and such but when I use an apostrophe, which most keyboards wouldn't have, Pythonista thinks it's a legit quotation mark.

      Edit:
      Apostrophes which Pythonista recognizes as single quotes:
      '''
      Quotation marks that Pythonista doesn't recognize and so gives me an error:
      ‘’’
      See the difference?
      Also, holding the ? key gives me these double quotes " which are in fact functional.
      So essentially the only thing not working is the actual dedicated quotation mark key.

      Edit #2: Turns out iOS turns on Smart Punctuation by default, which caused this problem. If anyone is having the same problem, turning off Smart Punctuation in Settings > General > Keyboard will fix it!

      1 Reply Last reply Reply Quote 1
      • omz
        omz last edited by omz

        Edit #2: Turns out iOS turns on Smart Punctuation by default, which caused this problem. If anyone is having the same problem, turning off Smart Punctuation in Settings > General > Keyboard will fix it!

        Thanks for the workaround!

        Unfortunately, smart quotation marks are a new feature in iOS 11 that's enabled by default, even for apps that weren't built with iOS 11 in mind. :/

        1 Reply Last reply Reply Quote 0
        • Blanchot
          Blanchot last edited by

          Thanks for the tip! Turned off 'smart quotes' and all well again... Cheers!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors