Non-printable unicode characters are inserted at the beginning of the transcript
- Dominant language
- Swift
- Stars
- 2.9k
- Forks
- 226
- PR merge metrics
- No merged PRs in 30d
Description
When transcribing audio, non-readable characters are continuously inserted at the beginning of the transcribed text. Like this:
```
Let's try this.
```
**Edit:** It seems like GitHub removes these characters when creating an issue, [here's a gist with the characters preserved.](https://gist.github.com/kolaente/3d82f20b9b67e9199991d04e2236c1c0)
I have no idea what these are so I've asked Claude:
> Those characters at the beginning are **combining diacritical marks** - specifically, they appear to be combining macron below marks (Unicode U+0331).
>
> These are special characters that are meant to be combined with base letters to add marks below them, but when they appear without a base character (or stacked multiple times), they can show up as a series of underlines or marks. In your text, there are about 15 of them before "Let's try this."
>
> This kind of thing can happen when:
> - Text is copied from certain sources that use Unicode combining characters
> - There's a formatting or encoding issue
> - Someone intentionally adds them for visual effect (sometimes called "Zalgo text" when taken to extremes)
>
> In most contexts, these would just be removed or cleaned up since they're not adding any meaningful content to your text.
To me, this seems like a bug. Maybe an easy solution would be to trim characters like this when they are included? I assume they are coming from the transcription itself.
Contributor guide
No contributing guide indexed for this repository
Research direction
No file, test, or entry point is named. Start by tracing the macOS app's audio transcription flow and inspect where the returned transcript is converted or inserted into text. Done means reproducing the issue no longer adds the reported non-printable characters at the beginning of transcripts, with a regression test if the project has coverage for this path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100