From 833e5cb6af89635ab7258799c224a3d128f9b180 Mon Sep 17 00:00:00 2001 From: Ben Bullock Date: Wed, 13 May 2026 06:17:07 +0900 Subject: [PATCH] Remove check for empty element in components recursive This removes a check which stops recursion in components in kanjivg.py. The check prevents elements from being found if the group above them doesn't have an element, which seems to be an error. --- kanjivg.py | 2 +- kvg-index.json | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/kanjivg.py b/kanjivg.py index 9d3099673..34157a1f7 100644 --- a/kanjivg.py +++ b/kanjivg.py @@ -181,7 +181,7 @@ class StrokeGr: newLevel = level if found: newLevel += 1 childsComp += child.components(simplified, recursive, newLevel) - if recursive and not len(ret) == 0: ret = [ level ] + ret + childsComp + if recursive: ret = [ level ] + ret + childsComp return ret def simplify(self): diff --git a/kvg-index.json b/kvg-index.json index ee4e1021c..90918fb40 100644 --- a/kvg-index.json +++ b/kvg-index.json @@ -3949,6 +3949,9 @@ "057f4-Kaisho.svg", "057f4.svg" ], + "埵":[ + "057f5.svg" + ], "埶":[ "057f6.svg" ], @@ -11825,6 +11828,9 @@ "07001-KaishoVtLst.svg", "07001.svg" ], + "瀆":[ + "07006.svg" + ], "瀉":[ "07009-Kaisho.svg", "07009-KaishoHzLst.svg", @@ -16307,6 +16313,9 @@ "罠":[ "07f60.svg" ], + "罣":[ + "07f63.svg" + ], "罧":[ "07f67-Kaisho.svg", "07f67.svg"