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?
-
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!
-
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. :/
-
Thanks for the tip! Turned off 'smart quotes' and all well again... Cheers!