test(nlp): add case to ensure Catalan middle dot is preserved in audio text normalization

Add unit test verifying that U+00B7 middle dot is not stripped from Catalan
words during audio text preprocessing, reflecting multilingual requirements.
This commit is contained in:
Richard R 2026-06-10 09:38:41 -06:00
parent 5736419bdb
commit fd8d462d6e

View file

@ -41,6 +41,12 @@ describe('preprocessSentenceForAudio', () => {
input: '• Bullet ‣ marker ◦ list',
expected: 'Bullet marker list',
},
{
// U+00B7 middle dot is a real letter in Catalan ("col·legi") and must
// NOT be stripped like decorative bullets, since OpenReader is multilingual.
input: 'Col·legi de l·l',
expected: 'Col·legi de l·l',
},
{
input: 'Multiple spaces',
expected: 'Multiple spaces',