Coping with iOS11 punctuation changes
Posted: Mon Oct 09, 2017 10:22 pm
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.
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.
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.
.
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!"
and added some images to show the changes.
You may have your own search and replace program. If not, try this one: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
To type the original quotation mark, hold down the " key
until a row of alternate choices appears. Press
the character directly above your finger.
To type the original apostrophe, hold down the ‘ key
until a row of alternate choices appears. Press
the character directly above your finger.
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!
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.
.