Skip to content

Commit

Permalink
Document Kangxi radical character lookup
Browse files Browse the repository at this point in the history
Closes neocl#45
  • Loading branch information
alt-romes committed Aug 29, 2024
1 parent 85c66c1 commit 7e1a79f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@ for c in result.chars:
# 鼐 ['incense tripod']
# 鼎 ['three legged kettle']
# 鼑 []

# Find the Kangxi radical of the character (the said principle component)
radical = jam.lookup("").chars[0].radical
print(radical)
# 足-foot[sc:7]
print(radical.radical, radical.meaning)
# 足 foot
```

## Finding name entities
Expand Down
7 changes: 7 additions & 0 deletions docs/recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ By default jamdict provides two maps:
# 鼎 ['three legged kettle']
# 鼑 []
# Find the Kangxi radical of the character (the said principle component)
radical = jam.lookup("").chars[0].radical
print(radical)
# 足-foot[sc:7]
print(radical.radical, radical.meaning)
# 足 foot
Finding name entities
---------------------

Expand Down

0 comments on commit 7e1a79f

Please sign in to comment.