Page 1 of 2

Coping with iOS11 punctuation changes

Posted: Mon Oct 09, 2017 10:22 pm
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 3281 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 3281 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 3281 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.
.

Re: Coping with iOS11 punctuation changes

Posted: Mon Oct 09, 2017 10:33 pm
by Mr. Kibernetik
Thank you for your solution!

Re: Coping with iOS11 punctuation changes

Posted: Tue Oct 10, 2017 10:21 am
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 549 times

Re: Coping with iOS11 punctuation changes

Posted: Tue Oct 10, 2017 2:47 pm
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.

Re: Coping with iOS11 punctuation changes

Posted: Tue Oct 10, 2017 3:49 pm
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.

Re: Coping with iOS11 punctuation changes

Posted: Tue Oct 10, 2017 5:32 pm
by Dutchman
I have updated the PDF-file.
I will not update to iOS 11 until there is a need for. ;)

Re: Coping with iOS11 punctuation changes

Posted: Wed Oct 11, 2017 3:18 pm
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 3267 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.

Re: Coping with iOS11 punctuation changes

Posted: Fri Oct 20, 2017 1:26 pm
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

Re: Coping with iOS11 punctuation changes

Posted: Fri Nov 24, 2017 1:21 am
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.

Re: Coping with iOS11 punctuation changes

Posted: Fri Nov 24, 2017 1:50 am
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.