Apply Web2C TCX tables to native byte streams

This commit is contained in:
gloamxun committed 2026-11-28 09:55:09 +08:00
1 parent 3bb2330676
commit 509f229a52
13 files changed
+393 -38

No files matched your search

@@ -497,7 +497,11 @@ impl Mouth {
self.line = match self.profile.characters(&self.data[start..trimmed]) {
Ok(characters) => characters
.map(|(index, value)| Character {
value,
value: if matches!(self.line_breaks, LineBreaks::Generated(_)) {
value
} else {
state.translate_input_character(value)
},
start: start + index,
end: start + index + self.profile.width(value),
})