Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ fn is_split_punct(c: char) -> bool {
fn is_interior_hard(c: char) -> bool {
matches!(
c,
'!' | '?' | '(' | ')' | '[' | ']' | '{' | '}' | '\'' | '\u{2013}'
'!' | '?' | '(' | ')' | '[' | ']' | '{' | '}' | '\'' | '\u{2013}' | '§'
)
}

Expand Down
14 changes: 12 additions & 2 deletions src/tn/en/word.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

use super::spell_digits;

/// Spoken name for a standalone symbol.
/// Spoken name for a standalone symbol (NeMo whitelist/symbol.tsv).
fn symbol_word(c: char) -> Option<&'static str> {
Some(match c {
'$' => "dollar",
Expand All @@ -23,8 +23,18 @@ fn symbol_word(c: char) -> Option<&'static str> {
'/' => "slash",
'&' => "and",
'+' => "plus",
'=' => "equals",
'=' => "equal sign",
'@' => "at",
'_' => "underscore",
'*' => "asterisk",
'~' => "tilde",
'^' => "circumflex",
'|' => "vertical bar",
'§' => "section",
'™' => "trademark",
'®' => "registered trademark",
'©' => "copyright",
'°' | 'º' => "degree",
_ => return None,
})
}
Expand Down
2 changes: 1 addition & 1 deletion tests/parity_baseline.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ en tn money 71 71
en tn normalize_with_audio 40 58
en tn ordinal 27 27
en tn punctuation 43 63
en tn punctuation_match_input 6 13
en tn punctuation_match_input 7 13
en tn range 20 20
en tn roman 4 4
en tn serial 29 32
Expand Down
Loading