{"id":17298345,"url":"https://github.com/chanind/hanzi-writer-data-jp","last_synced_at":"2025-04-14T12:22:57.437Z","repository":{"id":55655143,"uuid":"202010085","full_name":"chanind/hanzi-writer-data-jp","owner":"chanind","description":"The data used by Hanzi Writer for Japanese","archived":false,"fork":false,"pushed_at":"2020-12-15T00:15:21.000Z","size":8469,"stargazers_count":20,"open_issues_count":3,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-28T01:44:34.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chanind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"licenses/APL/big5/ARPHICPL.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-12T21:15:13.000Z","updated_at":"2025-03-07T01:37:36.000Z","dependencies_parsed_at":"2022-08-15T05:40:38.476Z","dependency_job_id":null,"html_url":"https://github.com/chanind/hanzi-writer-data-jp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanind%2Fhanzi-writer-data-jp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanind%2Fhanzi-writer-data-jp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanind%2Fhanzi-writer-data-jp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanind%2Fhanzi-writer-data-jp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chanind","download_url":"https://codeload.github.com/chanind/hanzi-writer-data-jp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248878597,"owners_count":21176340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T11:18:49.263Z","updated_at":"2025-04-14T12:22:57.382Z","avatar_url":"https://github.com/chanind.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hanzi Writer Japanese Data\n\n## About\n\nThis is the character data used by [Hanzi Writer](https://github.com/chanind/hanzi-writer) for Japanese.\n**NOTE: This is currently experimental**\n\nThis data is published in a separate repo from Hanzi Writer for the following reasons:\n- This data is licensed separately from the Hanzi Writer source code.\n- This allows users who wish to import character data in NPM to do so without forcing everyone to download the character data along with Hanzi Writer.\n- Publishing on NPM makes this data available on the [jsdelivr CDN](https://www.jsdelivr.com/package/npm/hanzi-writer-data-jp), so data can be loaded via, for instance, https://cdn.jsdelivr.net/npm/hanzi-writer-data-jp@latest/私.json. \n\nCheck out [chanind.github.io/hanzi-writer](https://chanind.github.io/hanzi-writer) for more info about Hanzi Writer.\n\n## Usage\nUntil this is supported directly in Hanzi Writer, you'll need to use a custom `charDataLoader` function to use this data in Hanzi Writer. An example of how you can do that using `fetch` and the content on jsDelivr is shown below:\n\n```\nHanziWriter.create('target-div', '私', {\n  width: 400,\n  height: 400,\n  charDataLoader: (char, onLoad, onError) =\u003e {\n    fetch(`https://cdn.jsdelivr.net/npm/hanzi-writer-data-jp@0/${char}.json`)\n      .then(res =\u003e res.json())\n      .then(onLoad)\n      .catch(onError);\n  }\n})\n```\n\n## Current limitations compared with the Chinese data\n- This data does not support radicals yet\n- This data does not have capped strokes, so there are sharp edges where strokes intersect\n\n## License\n\nThis data comes from [animCJK](https://github.com/parsimonhi/animCJK) and the [Make Me A Hanzi](https://github.com/skishore/makemeahanzi) project, which extracted the data from fonts by [Arphic Technology](http://www.arphic.com/), a Taiwanese font forge that released their work under a permissive license in 1999. You can redistribute and/or modify this data under the terms of the Arphic Public License as published by Arphic Technology Co., Ltd. A copy of this license can be found in [ARPHICPL.TXT](https://raw.githubusercontent.com/chanind/hanzi-writer-data/master/ARPHICPL.TXT).\n\nAnimCJK's data is licensed under LGPL.\nYou can redistribute and/or modify these files under the terms of the GNU\nLesser General Public License as published by the Free Software Foundation,\neither version 3 of the license, or (at your option) any later version. You\nshould have received a copy of this license (the file \"LGPL.txt\") along with\nthese files; if not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanind%2Fhanzi-writer-data-jp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanind%2Fhanzi-writer-data-jp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanind%2Fhanzi-writer-data-jp/lists"}