diff --git a/src/editor/formatter.ts b/src/editor/formatter.ts index 1bbd307..17ea394 100644 --- a/src/editor/formatter.ts +++ b/src/editor/formatter.ts @@ -125,8 +125,8 @@ export class IaraEditorInferenceFormatter { "(\\d+(?:,\\d+)?)(\\spor\\s|x)(\\d+(?:,\\d+)?)(\\spor\\s|x)(\\d+(?:,\\d+)?) (cm|mm)(?!\\s\\(|³)" ); - text = this._addTrailingSpaces(text, _wordAfter, _wordBefore); text = this._capitalize(text, _wordBefore); + text = this._addTrailingSpaces(text, _wordAfter, _wordBefore); return text; } diff --git a/src/syncfusion/index.ts b/src/syncfusion/index.ts index 6ddcd6d..df704b4 100644 --- a/src/syncfusion/index.ts +++ b/src/syncfusion/index.ts @@ -151,6 +151,8 @@ export class IaraSyncfusionAdapter } insertInference(inference: IaraSpeechRecognitionDetail): void { + if (inference.transcript == "") return; + if (inference.richTranscriptModifiers?.length && !inference.isFinal) return; if (inference.isFirst) {