Skip to content

Commit

Permalink
fixed asl pinyin
Browse files Browse the repository at this point in the history
  • Loading branch information
MyK00L committed Jun 29, 2024
1 parent cbdf71d commit 4b06172
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/allsetlearning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use crate::utils::*;
use serde::Deserialize;
use std::collections::HashMap;
use std::fs::File;
use crate::pinyin_type::Pinyin;

#[derive(Deserialize)]
struct AllsetlearningEntry {
Expand All @@ -18,7 +19,7 @@ pub fn get() -> impl Iterator<Item = CommonEntry> {
a.into_iter()
.map(|(k, v)| {
let mut we = WordEntry::from_id(k.clone());
we.pinyin = vec![v.pinyin.into()];
we.pinyin = v.pinyin.split(',').map(Pinyin::from).collect();
let url = url::Url::parse(&format!(
r#"https://resources.allsetlearning.com/chinese/grammar/{}"#,
penc(&k)
Expand Down

0 comments on commit 4b06172

Please sign in to comment.