Decomposition of Hanzi for writing practice

I'm trying to create flascards (or a dictionary) as writing aid.
No Etymology, only a practical decomposition frequently used in schools.

Like source I used https://github.com/nieldlr/Hanzi/blob/master/lib/data/kradfile-u.txt file.
https://github.com/nieldlr/hanzi/blob/master/lib/data/kradfile-u.txt.js file.

For DecompositionOfCharacters.txt file (600 Characters HSK1...HSK3) a single record appear as
  • 这 zhè (辵) 这 : 亠乂辶 lid, bend, walk, [ Def.: this, the, here]
The definition part is: (Radical) Hanzi : decomposition description [ translation]

For decomposition7120.txt (7120 Characters) as:
  • 诟 gou4 讠厂一口 speech, cliff, one, mouth
The definition part is: decomposition description.

Not all is perfect: èr two is sometime missed...
Do you know some better files?
 

Attachments

Last edited:

Nemeo

Member
Hi Furio,

Thanks for the decompositions! I imported them successfully as dict & flashcards. They will help me!

Benoit
 

pdwalker

状元
https://github.com/nieldlr/hanzi/blob/master/lib/data/kradfile-u.txt.js file.

For DecompositionOfCharacters.txt file (600 Characters HSK1...HSK3) a single record appear as
  • 这 zhè (辵) 这 : 亠乂辶 lid, bend, walk, [ Def.: this, the, here]
The definition part is: (Radical) Hanzi : decomposition description [ translation]

For decomposition7120.txt (7120 Characters) as:
  • 诟 gou4 讠厂一口 speech, cliff, one, mouth
Furio,

I've a couple of questions:

1/ How did you go from the kradfile-u.txt.js to your two decomposition.txt files? Did you do that by hand?

2/ For the 7120 character file, is there a reason for that number? The source files has over 13 thousand entries and I was wondering why you didn't include them all.

Thanks.
 
1/ How did you go from the kradfile-u.txt.js to your two decomposition.txt files? Did you do that by hand?
I'm using three tools, using Notepad+ macro I transform the original
京 : 口 小 亠
replacing ":" with TAB
After, using Excel and Pleco I obtain the final result

2/ For the 7120 character file, is there a reason for that number? The source files has over 13 thousand entries and I was wondering why you didn't include them all.
I don't remember, perhaps an original file was shorter.
In effect for HSK we need only 2700 Hanzi : that was my initial goal.
 

pdwalker

状元
I could automate most of that in excel, if you'd like. (everything except adding the definitions of the full character)
 

agewisdom

进士
Woah... many thanks. I need to learn this. :D
Just to let you know, I've added this to my recommended list here. Hope it's ok with you.
 
Last edited:

alex_hk90

状元
Hi Furio, how exactly do you import the txt file as database? I tried searching, could not find this under settings. I'm trying to compile a PQB file for the post below:
https://www.plecoforums.com/threads/a-dictionary-of-colors.5184/
If I remember correctly, it's "Settings" - "Manage Dictionaries" - "Add User" to import the flashcard-format text files as a user dictionary.
You also need one of the paid add-ons "Flashcard System" to have this option.
 
Top