HeliBoard icon indicating copy to clipboard operation
HeliBoard copied to clipboard

Autospace before punctuation

Open alexandre-abrioux opened this issue 9 months ago • 0 comments

Hi! First of all, thank you for maintaining this awesome project 🙂

Is your feature request related to a problem? Please describe.

  • When typing English sentences on a multilingual config based on the French layout, spaces are added before punctuations: Are you OK ? <-- bad space!
  • Conversely, when typing French sentences on a multilingual config based on the English layout, spaces are missing before punctuations: Comment allez-vous? <-- space is missing

Describe the solution you'd like

  • Solution 1 (simpler): Remember the language of the last word inserted from predictions. When adding punctuation, prepend a space depending on this language. From my experience, this is how Swiftkey does it.
  • Solution 2 (harder): When adding punctuation, prepend a space depending on the language of the preceding word.

Use case When using a multilingual config, punctuation should follow the norms of the current language, depending on context.

Describe alternatives you've considered (if any) Coming from Swiftkey, this use-case was usually well handled.

Thanks a lot for your help 😇

alexandre-abrioux avatar May 02 '24 16:05 alexandre-abrioux