음성 낭독: 영문 괄호 병기 생략, (수)→수요일, 4.00%→사퍼센트, 3.75%~4.00%→에서, 10월→시월·6월→유월
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
76ba4e86e9
commit
dda7a3b4d5
1 file changed
+11
@@ -450,6 +450,17 @@
|
||||
// 천 단위 쉼표(9,500 / 1,234,567)는 숫자 낭독 전에 제거한다. 안 그러면 "9"와 "500"이 따로 읽혀
|
||||
// "9,500원"이 "구, 오백원"이 되어 "천"이 통째로 사라진다(09-26 "단어가 한번씩 빠진다", 표의 가격 열).
|
||||
.replace(/(?<=\d),(?=\d{3}(?!\d))/g, '')
|
||||
// 낭독 전 정리(2026-10-19 "금리 읽는 게 이상"): 영문 괄호 병기는 한국어 음성으로 읽으면 어색해 뺀다,
|
||||
// (수)는 요일로, 4.00%의 뒤쪽 0은 떼고(사점영영 → 사), 3.75%~4.00%는 "에서"로, 10월·6월은 시월·유월로,
|
||||
// %포인트는 띄어 읽는다.
|
||||
.replace(/\(\s*([월화수목금토일])\s*\)/g, ' $1요일')
|
||||
.replace(/\s*\(\s*[A-Za-z][A-Za-z0-9 .,&'\/-]*\)/g, '')
|
||||
.replace(/(\d+\.\d*?[1-9])0+(?=\s*(?:%|°|원|달러|mm|cm))/g, '$1')
|
||||
.replace(/(\d+)\.0+(?=\s*(?:%|°|원|달러|mm|cm))/g, '$1')
|
||||
.replace(/%\s*포인트/g, '퍼센트 포인트')
|
||||
.replace(/(\d)\s*%\s*[~∼]\s*(?=\d)/g, '$1%에서 ')
|
||||
.replace(/(?<![\d.])10(\s*월)/g, '시$1')
|
||||
.replace(/(?<![\d.])6(\s*월)/g, '유$1')
|
||||
.replace(/```[\s\S]*?```/g, ' ')
|
||||
.replace(/`([^`]+)`/g, '$1')
|
||||
.replace(/!\[[^\]]*\]\([^)]*\)/g, ' ')
|
||||
|
||||
Reference in new issue
Block a user