scribear / ScribeAR.github.io

Live Transcription for Augmented Reality Glasses
11 stars 16 forks source link

Webspeech transcripts in Edge don't always have spaces after periods #174

Open ammpr opened 8 months ago

ammpr commented 8 months ago

Often, but not always, there is no space after periods in Microsoft Edge. textfile (1).txt

angrave commented 8 months ago

Are we trimming (=removing spaces from the beginning and end of the string) each result before appending it to the display? If so, there would only be a space after a period if the period was in the middle of a result.

If not, we should add some logic to the append function to ensure there is one space between the last entry and the new entry.

ammpr commented 8 months ago

Strangely enough, there are 3 cases where spaces are preserved after starting a new sentence. Ctrl-f period then a space-- “. ” in the output text.

From: Lawrence Angrave @.> Sent: Wednesday, October 25, 2023 6:43 PM To: scribear/ScribeAR.github.io @.> Cc: Mehdipour, Arman Michael @.>; Author @.> Subject: Re: [scribear/ScribeAR.github.io] Webspeech transcripts in Edge don't always have spaces after periods (Issue #174)

Are we trimming (=removing spaces from the beginning and end of the string) each result before appending it to the display? If so, there would only be a space after a period if the period was in the middle of a result.

If not, we should add some logic to the append function to ensure there is one space between the last entry and the new entry.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/scribear/ScribeAR.github.io/issues/174*issuecomment-1780204029__;Iw!!DZ3fjg!8LMYhfZv_tuo4RWFzEVM6OSdG8ZV9dW2gkl7msuri6_bRyeblaqX_brYOlxhqrlBmDq-1Cf3qXKaA1RvrsMZMdSstYT3$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AUCFMWPQ2G4DXEPPO7YAB3TYBGPXPAVCNFSM6AAAAAA6QA6HA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBQGIYDIMBSHE__;!!DZ3fjg!8LMYhfZv_tuo4RWFzEVM6OSdG8ZV9dW2gkl7msuri6_bRyeblaqX_brYOlxhqrlBmDq-1Cf3qXKaA1RvrsMZMdZthNjm$. You are receiving this because you authored the thread.Message ID: @.**@.>>