Smart punctuation vs. Smart quotes/dashes

Hi :slight_smile:

I have a slightly weird issue. It looks like the “smart punctuation” feature that was added with iOS 11 is somehow clashing with the “Smart quotes” and “Smart dashes” feature in different ways depending on if you’re writing --- manually or with editor.setText.

Behavior for normal text input

  1. System setting enabled, Drafts setting disabled: No smart punctuation
  2. System setting enabled, Drafts setting enabled: Smart punctuation
  3. System setting disabled, Drafts setting disabled: No smart punctuation
  4. System setting disabled, Drafts setting enabled: No smart punctuation

Behavior for editor.setText (API)

  1. System setting enabled, Drafts setting disabled: Smart punctuation
  2. System setting enabled, Drafts setting enabled: Smart punctuation
  3. System setting disabled, Drafts setting disabled: No smart punctuation
  4. System setting disabled, Drafts setting enabled: No smart punctuation

Is this something that could be controlled by the application itself? Also: Would there perhaps be a way to completely disable smart punctuation just using the “Smart quotes” and “Smart dashes” setting inside the application instead of having to disable it system-wide?

Thank you :smiley:

Thanks for the details. Can confirm there seems to have been a system level regression in these behaviors. I’ve submitted a bug report to Apple.

Will also investigate a workaround.

Awesome, thank you :grinning: