diff --git a/README.md b/README.md index e3c6367..2dc8dac 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docs/recipes.rst b/docs/recipes.rst index 7813276..71c14a5 100644 --- a/docs/recipes.rst +++ b/docs/recipes.rst @@ -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 ---------------------