3 ms·
Is my version of sed dumb, or is 's/^\[\|\] \?/\n/g' effectively a no-op? Or did HN garble something?
by cratermoon 4y ago
Is my version of sed dumb, or is 's/^\[\|\] \?/\n/g' effectively a no-op? Or did HN garble something?
- tuukkah 4y agoI used GNU sed on Ubuntu. The only difference I notice is that you have one space where I had two, but that difference shouldn't matter actually. Perhaps your sed has a different opinion on which of the backslashes should be there. You can access the resulting WebVTT files here: https://github.com/tuukka/fosdem2023whisper/tree/feat/webvtt/files https://github.com/tuukka/fosdem2023whisper/tree/feat/webvtt...
- cratermoon 4y agoOnce again macOS non-standard utilities bite me. -E Interpret regular expressions as extended (modern) regular expressions rather than basic regular expressions (BRE's) -r Same as -E for compatibility with GNU sed. Thanks for providing the complete set of vtt files. I found some interesting transcription errors in the talk on Elliptic curves in FOSS. For example "jealous two curves" instead of "genus two curves" and "ethyl curbs" instead of "elliptical curves"