-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
919 additions
and
55 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+14.1 KB
decks/Chinesisch/media/hypertts-06159ef79af78d627e94c7aca76ae4c909e2c05de07972bfb0e27862.mp3
Binary file not shown.
Binary file added
BIN
+13.8 KB
decks/Chinesisch/media/hypertts-15188cea239bea75cff320d53066d1ef292fe77bcdce9b85a8bb8ba4.mp3
Binary file not shown.
Binary file added
BIN
+15.2 KB
decks/Chinesisch/media/hypertts-29480e8f68082e74dddc005698676120698ce57182f81cfa02a07473.mp3
Binary file not shown.
Binary file added
BIN
+16 KB
decks/Chinesisch/media/hypertts-310a5f23e02efab96633cb21733fbe19372d814d03424bf350809249.mp3
Binary file not shown.
Binary file added
BIN
+16 KB
decks/Chinesisch/media/hypertts-34869eb226b1dc3bc73732d07c425758df290b628f9070303a42b2d4.mp3
Binary file not shown.
Binary file added
BIN
+18.6 KB
decks/Chinesisch/media/hypertts-373f61de2f08bfecb1ba6f9ec6ab7b6432ab0a21511ca81669886473.mp3
Binary file not shown.
Binary file added
BIN
+15.2 KB
decks/Chinesisch/media/hypertts-37b4792126d9b200be4706b5e54828d86dd0b3c2b647402c72bcaa2b.mp3
Binary file not shown.
Binary file added
BIN
+16.9 KB
decks/Chinesisch/media/hypertts-3fb2615b49a1ea7d91e7511ebbc93599b5fd960cca82a9c93625eb59.mp3
Binary file not shown.
Binary file added
BIN
+16.9 KB
decks/Chinesisch/media/hypertts-510f1b7660dbc8e1212d77c7d5ee717b14ebe56c688f2a9ba54e770b.mp3
Binary file not shown.
Binary file added
BIN
+16 KB
decks/Chinesisch/media/hypertts-54382652173f9b88f00dcf6b1e7cbb2ca4f083f92d3c6db77bd0178d.mp3
Binary file not shown.
Binary file added
BIN
+15.5 KB
decks/Chinesisch/media/hypertts-5463efc62a44c723f05e26c7f9f213e08fbea29ba443cb5050121b2d.mp3
Binary file not shown.
Binary file added
BIN
+15.5 KB
decks/Chinesisch/media/hypertts-556e8e71e54e6a93804273b301a4c91738e35bb053233b5896fd2c9f.mp3
Binary file not shown.
Binary file added
BIN
+16.6 KB
decks/Chinesisch/media/hypertts-56a1be6b6b7808683517eb9662a44fff3eea0b98088a1f0c33f68dda.mp3
Binary file not shown.
Binary file added
BIN
+16.3 KB
decks/Chinesisch/media/hypertts-5b4c9741df8955e7d06c33cf6e2279021766076aa737aa3420989929.mp3
Binary file not shown.
Binary file added
BIN
+14.6 KB
decks/Chinesisch/media/hypertts-5b66cfcd373501cd20823ce8c264954c961272e82f0e77e10b69d265.mp3
Binary file not shown.
Binary file added
BIN
+16.3 KB
decks/Chinesisch/media/hypertts-6a580477acc2c9a81f60ebd8a2451f86819b807e2e18469621363492.mp3
Binary file not shown.
Binary file added
BIN
+14.6 KB
decks/Chinesisch/media/hypertts-815d03fed52be52c293f7bc5b04d86f0e133a366295162ded28da447.mp3
Binary file not shown.
Binary file added
BIN
+14.9 KB
decks/Chinesisch/media/hypertts-8240bd59687be977cd973f7acdf6c82d788b409a916fa62c06e20f7e.mp3
Binary file not shown.
Binary file added
BIN
+16 KB
decks/Chinesisch/media/hypertts-82f38f6c80145462d6c823c8930c28bd7f16abd7224f9e4a2b0f43ba.mp3
Binary file not shown.
Binary file added
BIN
+14.6 KB
decks/Chinesisch/media/hypertts-843c7fa01ea1b78a92759816c86e3614083d120abfa3206eaa077300.mp3
Binary file not shown.
Binary file added
BIN
+14.9 KB
decks/Chinesisch/media/hypertts-8846913eef5c9f2d0fe936e9f4d5b2bcf94fe864d7b5dc25824038ad.mp3
Binary file not shown.
Binary file added
BIN
+15.8 KB
decks/Chinesisch/media/hypertts-922b6185654427a1ffd1e91339f99290ef46ad12d4a3df9a37729cd5.mp3
Binary file not shown.
Binary file added
BIN
+15.5 KB
decks/Chinesisch/media/hypertts-986084107acd90a5233c824a89449af875036a64e31175c415f13fdb.mp3
Binary file not shown.
Binary file added
BIN
+15.5 KB
decks/Chinesisch/media/hypertts-98a475f8471c67e1fdaa81ea7bab358d4a3f64d4727e301880d37be7.mp3
Binary file not shown.
Binary file added
BIN
+17.7 KB
decks/Chinesisch/media/hypertts-9942e53034f11a8758553c8cb6afde09166c172a38cde834c4532059.mp3
Binary file not shown.
Binary file added
BIN
+16.3 KB
decks/Chinesisch/media/hypertts-a4ed9a3df1dfc3b4f0bf058dcb6a5479c2cc076dbfb67c2962f4d998.mp3
Binary file not shown.
Binary file added
BIN
+15.8 KB
decks/Chinesisch/media/hypertts-a61c2310e44e92dc46e1be7d495151427dbfc51d3060f152f2077cf2.mp3
Binary file not shown.
Binary file added
BIN
+15.5 KB
decks/Chinesisch/media/hypertts-a69e6d2a77a5ea708ef06186d42e02a31ab80a48ca44569fdeabe34a.mp3
Binary file not shown.
Binary file added
BIN
+16 KB
decks/Chinesisch/media/hypertts-a93239b63c6875221056d32d440224446a03adfa62806a5376cb3103.mp3
Binary file not shown.
Binary file added
BIN
+16.3 KB
decks/Chinesisch/media/hypertts-a9ae226d857cdd05d53b630a11fbe3891e4274802b211b5f796de91d.mp3
Binary file not shown.
Binary file added
BIN
+16.9 KB
decks/Chinesisch/media/hypertts-ac9a1bb6727e43cf12267e3d0b3cbbeeec8690f311e8b572ab57c504.mp3
Binary file not shown.
Binary file added
BIN
+14.1 KB
decks/Chinesisch/media/hypertts-c7f42f7fec05cf598a79040300bb417938c76026d15b5f50df3f5719.mp3
Binary file not shown.
Binary file added
BIN
+15.8 KB
decks/Chinesisch/media/hypertts-c8b7bf5b99a4c47b6706ad0a29931eef8d793eaf40590086ccb5e7f9.mp3
Binary file not shown.
Binary file added
BIN
+15.5 KB
decks/Chinesisch/media/hypertts-cba357c2b102fb7dc07f9042bf605a5125a24dbdeadfcbbf6be62140.mp3
Binary file not shown.
Binary file added
BIN
+15.5 KB
decks/Chinesisch/media/hypertts-e5b30f7ab651f39b38a836cb8ebd7d0c031388bf1d657912a206fa41.mp3
Binary file not shown.
Binary file added
BIN
+14.6 KB
decks/Chinesisch/media/hypertts-e6608fe3abf086f224396bf948470e0cc5d86cb5c5c8b538c7381846.mp3
Binary file not shown.
Binary file added
BIN
+14.1 KB
decks/Chinesisch/media/hypertts-e9bb05c84564d4eb273efb96b3d7ad7a85bc8052ca463c6b44840124.mp3
Binary file not shown.
Binary file added
BIN
+14.3 KB
decks/Chinesisch/media/hypertts-ecd97482a88571ccbf1b2e5d3bb0cb4bb840fef436255061a2c39c79.mp3
Binary file not shown.
Binary file added
BIN
+14.6 KB
decks/Chinesisch/media/hypertts-ed287cf0108782d11f41e1d42471179f9dbc6e83ac688c804f1936bf.mp3
Binary file not shown.
Binary file added
BIN
+15.5 KB
decks/Chinesisch/media/hypertts-f553dcc2019ec2af319f2a869c15ab1a46f1d20d78d3d16544aa8fe6.mp3
Binary file not shown.
Binary file added
BIN
+15.8 KB
decks/Chinesisch/media/hypertts-f81e594ef7463fc4657fbdecedf6ea38f8952977a98f0a74c0e10acc.mp3
Binary file not shown.
Binary file added
BIN
+15.8 KB
decks/Chinesisch/media/hypertts-fa379622981632442d7f83521fb856546da91988f2f7d55dac8e1a74.mp3
Binary file not shown.
Binary file added
BIN
+14.6 KB
decks/Chinesisch/media/hypertts-fa62c4b40368e41f0646e03ea3a0c9bf22e8f31ea6c46aeb86c372ce.mp3
Binary file not shown.
Binary file added
BIN
+16 KB
decks/Chinesisch/media/hypertts-fb526073f4e537ac2676e59cdd86da0890b2e049ea0252fc199188a4.mp3
Binary file not shown.
Binary file added
BIN
+16 KB
decks/Chinesisch/media/hypertts-fc27a4cc1c2ecba38d6aeb714cb7c3a765a7e633c2be6a483f00adf9.mp3
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
from tests.model import AnkiDeck, AnkiNote | ||
|
||
|
||
def extract_pinyin(note: AnkiNote) -> str: | ||
pinyin = note.fields["Pinyin"].strip().replace(" ", "") | ||
return pinyin.split("[sound:hypertts-")[0] | ||
|
||
|
||
def test_pinyin_duplicate(note: AnkiNote, deck: AnkiDeck): | ||
if note.fields["MitPinyin"] != "": | ||
matches = list( | ||
filter( | ||
lambda n: n.fields["MitPinyin"] != "" | ||
and extract_pinyin(n) == extract_pinyin(note), | ||
deck.notes, | ||
) | ||
) | ||
|
||
assert ( | ||
len(matches) == 1 | ||
), f"Duplicate note with same pinyin: {extract_pinyin(note)} (Hanzi: {note.fields['Hanzi']})" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters