Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Smart Punctuation from altering DNS server addresses #357

Closed
ghost opened this issue Apr 19, 2024 · 3 comments
Closed

Prevent Smart Punctuation from altering DNS server addresses #357

ghost opened this issue Apr 19, 2024 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 19, 2024

Issue Details

When using a DNS server address with double hyphens, iOS’s Smart Punctuation feature turns the double hyphens into an emdash, which alters the server address, resulting in no connection.

Currently the only workaround is to copy and paste a server address in. Manually typing it won’t work.

image

image

Proposed solution

Programmatically prevent iOS Smart Punctuation from altering text when entering in DNS servers.

Something like the following in Swift may be a solution:

if #available(iOS 11.0, *) {
    textView.smartDashesType = .no
    textView.smartQuotesType = .no
    textView.smartInsertDeleteType = .no
} else {
    // Fallback on earlier versions
}

Alternative solution

No response

@PavelParkhomenko
Copy link

Hello! Thank you for your suggestion. We've forwarded the details to our development team for review. They will explore potential solutions.

In the meantime, as a temporary workaround, you can insert a space between hyphens and then remove it to prevent them from automatically converting to em dashes.

@ghost
Copy link
Author

ghost commented Apr 23, 2024

Hi @PavelParkhomenko, unfortunately the em dash doesn't get cancelled with a space, it puts a space between the two dashes. If the space is removed, Smart Punctuation takes over again.
The only workaround at the moment is to copy and paste it in.

@Natthaphonkanchaisri
Copy link

Natthaphon99.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants