Auto-punctuation should support closing brackets and quotes

Bug #1385312 reported by Michael Sheldon
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntu-keyboard
Triaged
Low
Unassigned
ubuntu-keyboard (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The auto-punctuation feature should be expanded to support closing brackets and quotes as well as inserting full-stops. For example typing the sentence:

Bob said "I like keyboard features (when they work

and then tapping Space twice should result in:

Bob said "I like keyboard features (when they work)."

<https://wiki.ubuntu.com/LanguageAndText#phone>: "Once it is implemented, the caption should be “Inserts a period, and any closing quotes or brackets, when you tap Space twice.”"

description: updated
Changed in ubuntu-keyboard:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

The previous description suggested that brackets, quotes, and sentences should be completed with separate double spaces, and therefore that completed periods should always go outside quotes. This is common amongst software developers such as myself, and in en-UK; but in en-US, a following comma/period should go inside the quote, even if it doesn't strictly belong to the quote.
<http://blog.apastyle.org/apastyle/2011/08/punctuating-around-quotation-marks.html>
<http://www.thepunctuationguide.com/quotation-marks.html#adjacentpunctuation>
<http://www.grammar-monster.com/lessons/quotation_%28speech%29_marks_punctuation_in_or_out.htm>
<http://www.grammarbook.com/punctuation/quotes.asp>

Partly because some locales don't use strict nesting, and partly because it's just more convenient, everything unclosed should be closed together with the period.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-keyboard (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.