2025-12-01

This commit is contained in:
2026-03-17 14:58:51 -06:00
parent 183e865f8b
commit 4b82b57113
6846 changed files with 954887 additions and 162606 deletions
@@ -0,0 +1,23 @@
"""
Default implementations for error handlers
"""
import logging
from segments.util import REPLACEMENT_MARKER
log = logging.getLogger(__name__)
def strict(c):
log.debug('invalid grapheme: {0}'.format(c))
raise ValueError('invalid grapheme')
def replace(c):
log.debug('replacing grapheme: {0}'.format(c))
return REPLACEMENT_MARKER
def ignore(c):
log.debug('ignoring grapheme: {0}'.format(c))
return ''