8000 Incorrect stroke type for strokes 5 & 8 in 066dc.svg (曜): labeled as hooked ㇆ instead of ㇕ or ㇕/㇆ · Issue #536 · KanjiVG/kanjivg · GitHub
[go: up one dir, main page]

Skip to content

Incorrect stroke type for strokes 5 & 8 in 066dc.svg (曜): labeled as hooked ㇆ instead of ㇕ or ㇕/㇆ #536

Open

Description

@sachebotarev

Summary

I am developing a mobile application for Japanese kanji handwriting practice that uses KanjiVG as its reference data
source for stroke order, geometry, and stroke classification.

I encountered an issue with 曜 (066dc.svg): strokes 5 and 8 are marked with kvg:type="㇆" (horizontal-turning
hook / 横折鉤), which causes handwriting recognition algorithms to expect a hook. However, neither standard Japanese
handwriting nor the SVG geometry in 066dc.svg itself has a hook for these strokes.

Problem Details

In kanji/066dc.svg, strokes 5 and 8 represent the two outer folding strokes of the 羽 radical inside the top of
翟:

<path id="kvg:066dc-s5" kvg:type="㇆"
d="M41.5,16.5c1.5,0.75,2.5,0.75,4.75,0.5S56.5,15.5,58,15.25s3.5,1.5,3.5,3c0,1.22-0.17,14.07-0.23,20c-0.01,1.35-0.02,2
.33-0.02,2.75"/>
...
<path id="kvg:066dc-s8" kvg:type="㇆"
d="M70.75,14.75c1.5,0.75,2.75,1,5,0.75s12.5-1.75,14-2s3.5,1.5,3.5,3c0,1.19-0.16,13.38-0.22,19.5C93.01,37.6,93,38.78,9
3,39.25"/>
  1. Path geometry has no hook:
    Both paths end straight down without any upward or inward hook flick (c-0.01,1.35-0.02,2.33-0.02,2.75 for s5, and C93.
    01,37.6,93,38.78,93,39.25 for s8).
  2. Japanese handwriting standard:
    Unlike the standalone radical 羽, when 羽 is positioned as the top crown in 翟 (as in 曜, 濯, 躍), the standard
    Japanese stroke (e.g. in school textbooks / 教科書体) is 横折 (horizontal-turn, stopping without a hook / はねない).
  3. Impact:
    Applications that validate stroke terminal features based on kvg:type reject valid handwritten input because they
    expect a required hook that users naturally do not (and should not) draw.

Existing Precedents in KanjiVG

Other kanji sharing the exact same 翟 phonetic element have already been updated in KanjiVG to reflect this variance
using kvg:type="㇕/㇆":

• 06fef.svg (濯):
• Stroke 4: <path id="kvg:06fef-s4" kvg:type="㇕/㇆" .../>
• Stroke 7: <path id="kvg:06fef-s7" kvg:type="㇕/㇆" .../>
• 08e8d.svg (躍):
• Stroke 11: <path id="kvg:08e8d-s11" kvg:type="㇕/㇆" .../>
• Stroke 14: <path id="kvg:08e8d-s14" kvg:type="㇕/㇆" .../>

(Note: 08000.svg (耀) appears to share this same legacy ㇆ tagging for strokes 7 & 10 and could be updated similarly).

Proposed Fix

  1. In kanji/066dc.svg (曜):
    • Update kvg:066dc-s5: change kvg:type="㇆" to kvg:type="㇕/㇆"
    • Update kvg:066dc-s8: change kvg:type="㇆" to kvg:type="㇕/㇆"
  2. In kanji/08000.svg (耀):
    • Update kvg:08000-s7: change kvg:type="㇆" to kvg:type="㇕/㇆"
    • Update kvg:08000-s10: change kvg:type="㇆" to kvg:type="㇕/㇆"

Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0