{"id":23213737,"url":"https://github.com/stefafafan/tkhs","last_synced_at":"2026-02-10T03:32:34.583Z","repository":{"id":232804290,"uuid":"779607670","full_name":"stefafafan/tkhs","owner":"stefafafan","description":"A simple CLI program to help generate Takahashi-method style presentations.","archived":false,"fork":false,"pushed_at":"2025-02-03T20:44:49.000Z","size":563,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-19T05:45:29.957Z","etag":null,"topics":["cli","php","takahashi-method"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/stefafafan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-30T09:39:48.000Z","updated_at":"2024-11-07T01:48:47.000Z","dependencies_parsed_at":"2024-06-11T03:26:06.814Z","dependency_job_id":"bad28d25-4fd2-42ca-a15f-6aa3fcdbc1d9","html_url":"https://github.com/stefafafan/tkhs","commit_stats":null,"previous_names":["stefafafan/tkhs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stefafafan/tkhs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefafafan%2Ftkhs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefafafan%2Ftkhs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefafafan%2Ftkhs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefafafan%2Ftkhs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefafafan","download_url":"https://codeload.github.com/stefafafan/tkhs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefafafan%2Ftkhs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29289904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T02:32:08.756Z","status":"ssl_error","status_checked_at":"2026-02-10T02:30:31.937Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","php","takahashi-method"],"created_at":"2024-12-18T19:19:03.023Z","updated_at":"2026-02-10T03:32:34.554Z","avatar_url":"https://github.com/stefafafan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tkhs\n\ntkhs is a simple CLI program that helps generate presentation material in a Takashi-method style.\n\nSee here for an explanation of Takahashi-method (Japanese): http://www.rubycolor.org/takahashi/\n\n\u003e [!NOTE]\n\u003e This is just a fanmade tool by @stefafafan; the tool has nothing to do with Takahashi's actual presentations!\n\n## Usage\n### Preparation\nAfter cloning this repository, install dependencies with `composer`\n```sh\n$ git clone https://github.com/stefafafan/tkhs.git\n$ cd tkhs\n$ composer install\n```\n\nPrepare presentation material, so that 1 line is equivalent to 1 slide. Check out `./sample/sample.txt`.\n```sh\n$ cat ./sample/sample.txt\nはじめまして\nこの発表は、\nstefafafan/tkhs\nを使って\n生成されて\nいます。\n1スライドにつき\n数文字ずつ\n発表する\nこのスタイル\nは\n高橋メソッド\nとして\n知られています\n完\n```\n\n### Generate an HTML slide.\nUse `generate:html` to generate a series of HTML files. By default the output directory is `output/`. Make sure you have `php` installed.\n\n```sh\n$ php ./bin/tkhs generate:html ./sample/sample.txt\nExported: output/1.html\nExported: output/2.html\nExported: output/3.html\nExported: output/4.html\nExported: output/5.html\nExported: output/6.html\nExported: output/7.html\nExported: output/8.html\nExported: output/9.html\nExported: output/10.html\nExported: output/11.html\nExported: output/12.html\nExported: output/13.html\nExported: output/14.html\nExported: output/15.html\n```\n\nYou can specify the output directory by giving the directory name.\n```sh\n$ php ./bin/tkhs generate:html ./sample/sample.txt foobar\nExported: foobar/1.html\nExported: foobar/2.html\nExported: foobar/3.html\nExported: foobar/4.html\nExported: foobar/5.html\nExported: foobar/6.html\nExported: foobar/7.html\nExported: foobar/8.html\nExported: foobar/9.html\nExported: foobar/10.html\nExported: foobar/11.html\nExported: foobar/12.html\nExported: foobar/13.html\nExported: foobar/14.html\nExported: foobar/15.html\n```\n\nOpen `1.html` and you will have the first slide presented. Links to the next and previous slides are shown at the bottom of the screen (as `前` and `次`).\n\n![Screenshot of 1.html displayed on the browser.](./sample/html_slide_example.png)\n\n### Generate a PDF slide.\nSimilarly, you can use `generate:pdf` to compile the slide to a single PDF file. This is especially useful when you want to just have a single file, or upload the slide to any slide sharing service.\n\n```sh\n$ php ./bin/tkhs generate:pdf ./sample/sample.txt\nPDF generated: slide.pdf\n```\n\nBy default the slide will be exported to `slide.pdf`, but you can specify a different filename as well.\n\n```sh\n$ php ./bin/tkhs generate:pdf ./sample/sample.txt someother-slide.pdf\nPDF generated: someother-slide.pdf\n```\n\nOpen the pdf file and now you can start presenting! :sparkles:\n\n![Screenshot of the exported PDF opened via the Preview app](./sample/pdf_slide_example.png)\n\n## Customization\nThere isn't really any custom options implemented, so if you want to change the styling of the HTML or PDFs, try directly adjusting the relavent php files (they are located under `src/App/Tkhs`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefafafan%2Ftkhs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefafafan%2Ftkhs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefafafan%2Ftkhs/lists"}