Skip to content

Commit

Permalink
fix pronunciation pronunciation of noun "wind"
Browse files Browse the repository at this point in the history
Refs #80
  • Loading branch information
rkusa committed Jan 22, 2021
1 parent 3809b80 commit cb3b56c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http:https://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Fixed pronunciation pronunciation of noun "wind" (from `waɪnd` to `wɪnd`) for Windows' TTS. #80

## [2.2.0] - 2021-01-22

The following list is a summary of changes of all previous beta releases, there were no changes since the previous beta `2.2.0-beta.7`,
Expand Down
14 changes: 12 additions & 2 deletions crates/datis-core/src/station.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,12 @@ impl Airfield {

let wind_dir = format!("{:0>3}", weather.wind_dir.round().to_string());
report += &format!(
"Wind {} at {} knots. {}",
"{} {} at {} knots. {}",
if spoken {
r#"<phoneme alphabet="ipa" ph="w&#618;nd">Wind</phoneme>"#
} else {
"Wind"
},
pronounce_number(wind_dir, spoken),
pronounce_number((weather.wind_speed * 1.94384).round(), spoken), // to knots
_break,
Expand Down Expand Up @@ -368,8 +373,13 @@ impl Carrier {

let wind_dir = format!("{:0>3}", weather.wind_dir.round().to_string());
report += &format!(
"{}'s wind {} at {} knots, {}",
r#"{}'s {} {} at {} knots, {}"#,
self.name,
if spoken {
r#"<phoneme alphabet="ipa" ph="w&#618;nd">wind</phoneme>"#
} else {
"wind"
},
pronounce_number(wind_dir, spoken),
pronounce_number(weather.wind_speed.round(), spoken),
_break,
Expand Down

0 comments on commit cb3b56c

Please sign in to comment.