{"id":16495921,"url":"https://github.com/kurema/aozora2htmlsharp","last_synced_at":"2025-07-18T16:34:49.817Z","repository":{"id":43490789,"uuid":"378256384","full_name":"kurema/aozora2htmlSharp","owner":"kurema","description":"aozora2htmlのC#移植版。","archived":false,"fork":false,"pushed_at":"2023-06-27T23:25:34.000Z","size":2844,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T11:23:20.446Z","etag":null,"topics":["aozorabunko","aozorahack","console-tool","dotnet6"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kurema.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-18T20:16:38.000Z","updated_at":"2025-01-27T06:11:32.000Z","dependencies_parsed_at":"2023-02-08T17:01:17.922Z","dependency_job_id":null,"html_url":"https://github.com/kurema/aozora2htmlSharp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kurema/aozora2htmlSharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurema%2Faozora2htmlSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurema%2Faozora2htmlSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurema%2Faozora2htmlSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurema%2Faozora2htmlSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kurema","download_url":"https://codeload.github.com/kurema/aozora2htmlSharp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurema%2Faozora2htmlSharp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265793643,"owners_count":23829177,"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":["aozorabunko","aozorahack","console-tool","dotnet6"],"created_at":"2024-10-11T14:33:21.112Z","updated_at":"2025-07-18T16:34:49.774Z","avatar_url":"https://github.com/kurema.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aozora2htmlSharp\r\n[aozorahack/aozora2html](https://github.com/aozorahack/aozora2html)のC#版です。\r\n\r\n## v1.0\r\n移植元v3.0.0準拠の実装をv1.0系統にしています。\r\n挙動だけでなくメソッド名やテストもほぼ同じです。\r\n\r\nv2.0以降はその限りではありません。\r\n\r\n* [ドキュメント](docs/v1.0/readme.md)\r\n* [branch](https://github.com/kurema/aozora2htmlSharp/tree/v1.0)\r\n* [Release](https://github.com/kurema/aozora2htmlSharp/releases/tag/v1.0.0)\r\n\r\n## 実行\r\nコマンドは`aozora2html`です。以下のように実行します。\r\n\r\n```shell-session\r\n$ aozora2html foo.txt foo.html\r\n```\r\n\r\nこうすると、青空文庫記法で書かれた`foo.txt`を`foo.html`に変換します。\r\n\r\nまた、青空文庫サイトで配布している、中にテキストファイルが同梱されているzip形式のファイルも変換できます。\r\n\r\n```shell-session\r\n$ aozora2html foo.zip foo.html\r\n```\r\n\r\n第1引数にURLを指定すると、そのURLのファイルをダウンロードして変換します。\r\n\r\n```shell-session\r\n$ aozora2html http://example.jp/foo/bar.zip foo.html\r\n```\r\n\r\n第2引数を省略すると、ファイルではなく標準出力に変換結果を出力します。\r\n\r\n```shell-session\r\n$ aozora2html foo.txt\r\n```\r\n\r\nコマンドラインオプションとして`--gaiji-dir`と`--css-files`、`--use-jisx0213`、`--use-unicode`、`--check-newline`があります。\r\n\r\n* `--gaiji-dir`は外字画像のパスを指定します。\r\n* `--css-files`はCSSファイルを`,`区切りで指定します。\r\n* `--use-jisx0213`はJIS X 0213の外字画像を使わず、数値実体参照として表示します。\r\n* `--use-unicode`はUnicodeのコードポイントが指定されている外字を数値実体参照として表示します。\r\n* `--check-newline false`は改行コードのチェックを省略します。\r\n\r\n可能な限り数値実体参照を使って表示するには、以下のようにオプションを指定します。\r\n\r\n```shell-session\r\n$ aozora2html --use-jisx0213 --use-unicode foo.txt\r\n```\r\n\r\n## 関連\r\n| レポジトリ | 概要 |\r\n| -- | -- |\r\n| [aozorahack/aozora2html](https://github.com/aozorahack/aozora2html) | Rubyで実装されたオリジナル。 |\r\n| [kurema/AozoraGaijiChukiXml](https://github.com/kurema/AozoraGaijiChukiXml) | [青空文庫・外字注記辞書【第八版】](https://www.aozora.gr.jp/gaiji_chuki/)のXML形式。 |\r\n| [kurema/JISX0213Table](https://github.com/kurema/JISX0213Table) | 派生レポジトリ。本プロジェクト用JIS X 0213テーブルを別レポジトリに分離したもの。ただしライブラリの分割はしない。 |\r\n\r\n## License\r\nMIT\r\n\r\nCC0にすることも考えましたが、依存ライブラリの関係でどちらにせよ著作権表記の省略はできません。\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurema%2Faozora2htmlsharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkurema%2Faozora2htmlsharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurema%2Faozora2htmlsharp/lists"}