Coping with iOS11 punctuation changes

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Coping with iOS11 punctuation changes

Post by rbytes »

Here is a short piece of code to illustrate the changes Apple made to punctuation in iOS11, how they may affect Smart Basic, and what you can do to cope.

Code: Select all

print "Punctuation changes with iOS 11,"
print " affecting the US and Canadian Standard keyboards (and likely others)"
print
a$= "'"
print a$& " has always been the standard ASCII apostrophe "
print " Its ASCII value is "& asc(a$)
print
b$= """"
print b$& " has always been the standard ASCII quotation mark"
print " Its ASCII value is "& asc(b$)
print
print "In iOS 11, Apple has changed these characters!!! "
print
c$= "‘"
print c$& " is now the default apostrophe on the US keyboard"
print " Its ASCII value is "& asc(c$)
print
d$="”"
e$="“"
print d$& " is now the default quotation mark on the US keyboard"
print " It is an end quote"
print " Its ASCII value is "& asc(d$)
print
print "Apple now automatically adds a different"
print " quote character , "&e$&", at the beginning of a quotation."
print " Its ASCII value is "& asc(e$)
print
print "To type the new opening quote, hold down the ‘ key until"
print "   a row of alternate choices appears above it. Press the"
print "   character just left of the one directly above your finger."
print
print "To type the original quotation mark, hold down the "& """"& " key"
print "   until a row of alternate choices appears. Press"
print "   the character directly above your finger."
print
print "To type the original apostrophe, hold down the ‘ key"
print "   until a row of alternate choices appears. Press"
print "   the character directly above your finger."
print
print "When Capsyntax is on, it will convert the old characters to the new, and they"
print "will not be recognized by Smart Basic. You have two choices:"
print
print "1. Keep Capsyntax off all the time"
print "2. Turn it on only while writing your program. Then switch it off,"
print "    do a search and replace for the new characters"
print "    and change them back to the old."
print "3. Remember to search for and replace both quote characters!"
You might want to copy and save the printed output. To make it easier for you, I put it in quotes here
and added some images to show the changes.
Punctuation changes with iOS 11,
affecting the US and Canadian Standard keyboards (and likely others)

' has always been the standard ASCII apostrophe
Its ASCII value is 39

" has always been the standard ASCII quotation mark
Its ASCII value is 34

In iOS 11, Apple has changed these characters!!!

‘ is now the default apostrophe on the US keyboard
Its ASCII value is 8216

” is now the default quotation mark on the US keyboard
Its ASCII value is 8221

A ” is an end quote. It is now the default quote on
the US keyboard (and probably all others, although
I have not tested them.)

Apple now automatically substitutes a
special quote character , “, at the beginning of a quote.
Its ASCII value is 8220. You can see it here when
you hold down the quote key

23CAADF3-0D16-47FD-9F08-8FBB80700BB7.jpeg
23CAADF3-0D16-47FD-9F08-8FBB80700BB7.jpeg (31.72 KiB) Viewed 3332 times

To type the original quotation mark, hold down the " key
until a row of alternate choices appears. Press
the character directly above your finger.

AF5E9735-EA81-4359-BC13-B2D9DA3B733B.jpeg
AF5E9735-EA81-4359-BC13-B2D9DA3B733B.jpeg (34.6 KiB) Viewed 3332 times

To type the original apostrophe, hold down the ‘ key
until a row of alternate choices appears. Press
the character directly above your finger.

9FD03538-E0A9-4C57-A994-84E40D2CBFB0.jpeg
9FD03538-E0A9-4C57-A994-84E40D2CBFB0.jpeg (30.54 KiB) Viewed 3332 times

When Capsyntax is on, it will convert the old characters to the new, and they
will not be recognized by Smart Basic. You have two choices:

1. Keep Capsyntax off all the time
2. Turn it on only while writing your program. Then switch it off,
do a search and replace for the new characters
and change them back to the old.
3. Remember to search for and replace both quote characters!
You may have your own search and replace program. If not, try this one:
viewtopic.php?f=20&t=1867

When replacing the quotes and apostrophes, three replacements must be done, not just two, since there are now two different quote characters that need to be converted back to the old quote character.
.
Last edited by rbytes on Tue Nov 21, 2017 3:54 pm, edited 10 times in total.
The only thing that gets me down is gravity...

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Coping with iOS11 punctuation changes

Post by Mr. Kibernetik »

Thank you for your solution!

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: Coping with iOS11 punctuation changes

Post by Dutchman »

Thank you very much. I don't have the problem yet, but made a PDF-file for future use ;)
Coping with iOS11 punctuation changes.pdf
(65.5 KiB) Downloaded 553 times
Last edited by Dutchman on Tue Oct 10, 2017 5:30 pm, edited 1 time in total.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Coping with iOS11 punctuation changes

Post by rbytes »

I should have made the additional point that when replacing the quotes and apostrophes, three replacements must be done on the code, not just two, since there are now two different quote characters that need to be converted back to the old quote character.

I have added this information to my original post, along with some photos of the US keyboard.
Last edited by rbytes on Tue Oct 10, 2017 5:40 pm, edited 3 times in total.
The only thing that gets me down is gravity...

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Coping with iOS11 punctuation changes

Post by rbytes »

Thank you very much. I don't have the problem yet, but made a PDF-file for future use ;)
Thanks for the PDF conversion, Ton. Note that I made a small addition to the information in my first post.

Have you upgraded to iOS 11? It would be very interesting to know if Apple left keyboards of some countries unchanged while implementing a punctuation change on the US and Canadian keyboards in iOS 11.
The only thing that gets me down is gravity...

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: Coping with iOS11 punctuation changes

Post by Dutchman »

I have updated the PDF-file.
I will not update to iOS 11 until there is a need for. ;)

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Coping with iOS11 punctuation changes

Post by rbytes »

Probably a good idea. Here is an image that shows a “before and after” screenshot of the changes to quotes and apostrophes in iOS 11.
0D5A670A-0B33-43BE-B37E-D92BB89FA96C.png
0D5A670A-0B33-43BE-B37E-D92BB89FA96C.png (62.37 KiB) Viewed 3318 times
The ones made of straight vertical lines are the traditional ones we are used to. The curly or angled ones are Apple’s
changed characters. They do look look more professional. Too bad they cause such a nuisance in programming. It is not just Smart Basic that has the problem. Virtually every programming app on the App Store is having to deal with the issue.
The only thing that gets me down is gravity...

User avatar
Dav
Posts: 279
Joined: Tue Dec 30, 2014 5:12 pm
My devices: iPad Mini, iPod Touch.
Location: North Carolina, USA
Contact:

Re: Coping with iOS11 punctuation changes

Post by Dav »

I'm going to avoid ios 11 for a while too, not just because of this, but I'm afraid it will affect my music apps I have to use daily (cubasis, auria).

Thanks for the heads up, rbytes.

- Dav

XVI1959
Posts: 1
Joined: Fri Nov 24, 2017 12:48 am
My devices: IMac, MacBook, iPad, iPhone
Flag: United States of America

Re: Coping with iOS11 punctuation changes

Post by XVI1959 »

I don't see it discussed in this topic, but maybe I missed it. Anyhow -- if you're using an iPad or iPhone, go to settings>General>keyboard and switch off "smart punctuation". That seems to solve the problem.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Coping with iOS11 punctuation changes

Post by rbytes »

That solution fixes the problem with Smart Basic, but I have to keep switching it on and off, since I like the Smart Punctuation in my text editing and web design apps. I hope we get a Smart Basic update soon that fixes the issue.
The only thing that gets me down is gravity...

Post Reply