feat(input): expand Araso Han/Eng contractions, acronyms, typo recovery, and fast cursor-tail replacement

This commit is contained in:
Yun Chan 2026-10-28 10:41:26 +09:00
parent 51bf664302
commit f403111256
80 changed files with 1449 additions and 458 deletions

View file

@ -249,16 +249,12 @@ async function initInputIntelligence(): Promise<void> {
typo.on('corrected', () => {
if (suggestion.isPresentationActive) suggestion.dismiss('stale')
})
// 제안이 켜져 있을 때도 한영 전환(Araso 방식 영→한·한→영·혼합어)은 기본 기능으로 즉시 고치고,
// 일반 철자·모델 오타는 제안 창에 "지운 글자 → 고친 글자" 로 함께 내놓는다.
// 인플레이스 자동 교정(handleTypingContext)은 타이핑과 절대 경합하지 않도록
// 0.1ms 결정적 한영·영문오타 엔진(layoutOnly: true, 커서 직전 어절만 교체)만 즉시 실행하고,
// 문장 단위 로컬 LLM(Gemma) 오타 교정은 키보드를 건드리지 않는 제안 팝업(propose)에서만 제시한다.
suggestion.setTypoProposer({ propose: (context, signal, options) => typo.propose(context, signal, options) })
telemetry.on('typed-context', (context) => {
if (suggestion.isEnabled()) {
const layoutVerdict = typo.handleTypingContext(context, { layoutOnly: true })
if (layoutVerdict === 'pass') suggestion.handleTypingContext(context)
return
}
const verdict = typo.handleTypingContext(context)
const verdict = typo.handleTypingContext(context, { layoutOnly: true, trailingWordOnly: true })
if (verdict === 'pass') suggestion.handleTypingContext(context)
})
telemetry.on('state-changed', (state) =>