{"id":26216311,"url":"https://github.com/harry-chen/kouhu","last_synced_at":"2026-03-14T21:56:33.767Z","repository":{"id":268631212,"uuid":"864016995","full_name":"Harry-Chen/kouhu","owner":"Harry-Chen","description":"kouhu (口胡) is a Chinese lipsum text generator for Typst. See also https://github.com/typst/packages/tree/main/packages/preview/kouhu","archived":false,"fork":false,"pushed_at":"2024-12-27T08:52:01.000Z","size":1846,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-07T20:18:38.513Z","etag":null,"topics":["lipsum","lipsum-generator","typst","typst-package"],"latest_commit_sha":null,"homepage":"https://typst.app/universe/package/kouhu","language":"Typst","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/Harry-Chen.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-27T10:39:22.000Z","updated_at":"2025-02-01T09:28:10.000Z","dependencies_parsed_at":"2024-12-18T00:53:40.288Z","dependency_job_id":"5083c383-6c47-4678-82fc-6571305322b4","html_url":"https://github.com/Harry-Chen/kouhu","commit_stats":null,"previous_names":["harry-chen/kouhu"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harry-Chen%2Fkouhu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harry-Chen%2Fkouhu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harry-Chen%2Fkouhu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harry-Chen%2Fkouhu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Harry-Chen","download_url":"https://codeload.github.com/Harry-Chen/kouhu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243207972,"owners_count":20253953,"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":["lipsum","lipsum-generator","typst","typst-package"],"created_at":"2025-03-12T11:28:22.171Z","updated_at":"2026-03-14T21:56:33.748Z","avatar_url":"https://github.com/Harry-Chen.png","language":"Typst","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kouhu (口胡)\n\n[`kouhu`](https://typst.app/universe/package/kouhu) (口胡) is a Chinese lipsum text generator for [Typst](https://typst.app). It provides a set of built-in text samples containing both Simplified and Traditional Chinese characters. You can choose from generated fake text, classic or modern Chinese literature, or specify your own text.\n\n`kouhu` is inspired by [zhlipsum](https://ctan.org/pkg/zhlipsum) LaTeX package and [roremu](https://typst.app/universe/package/roremu) Typst package.\n\nAll [sample text](data/zhlipsum.json) is excerpted from `zhlipsum` LaTeX package (see Appendix for details).\n\n## Usage\n\n```typst\n#import \"@preview/kouhu:0.1.0\": kouhu\n\n#kouhu(indices: range(1, 3)) // select the first 3 paragraphs from default text\n\n#kouhu(builtin-text: \"zhufu\", offset: 5, length: 100) // select 100 characters from the 5th paragraph of \"zhufu\" text\n\n#kouhu(custom-text: (\"Foo\", \"Bar\")) // provide your own text\n```\n\nSee [manual](https://github.com/Harry-Chen/kouhu/blob/master/doc/manual.pdf) for more details.\n\n## What does `kouhu` mean?\n\nGitHub Copilot says:\n\n\u003e `kouhu` (口胡) is a Chinese term for reading aloud without understanding the meaning. It is often used in the context of learning Chinese language or reciting Chinese literature.\n\n## Changelog\n\n### 0.2.1\n\n* Accept `length` as positional argument to `kouhu` (see: [#4](https://github.com/Harry-Chen/kouhu/pull/4)).\n\n### 0.2.0\n\n* Rename misspelled parameter `indicies` to `indices`, and supports `int` as input (see: [#2](https://github.com/Harry-Chen/kouhu/pull/2)).\n* Include README on GitHub repository in the documentation.\n\n### 0.1.1\n\n* Fix some wrong paths in `README.md`.\n* Fix generation of `indicies` when not specified by user.\n* Add repetition of text until `length` is reached.\n\n### 0.1.0\n\n* Initial release.\n\n## Appendix\n\n### Generating `zhlipsum.json`\n\nFirst download the `zhlipsum-text.dtx` from [CTAN](https://ctan.org/pkg/zhlipsum) or from local TeX Live (`kpsewhich zhlipsum-text.dtx`). Then run:\n\n```bash\npython3 utils/generate_zhlipsum.py /path/to/zhlipsum-text.dtx src/zhlipsum.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharry-chen%2Fkouhu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharry-chen%2Fkouhu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharry-chen%2Fkouhu/lists"}