{"id":20981562,"url":"https://github.com/gromnitsky/epub-hyphen","last_synced_at":"2025-04-23T13:45:15.600Z","repository":{"id":28664297,"uuid":"32183879","full_name":"gromnitsky/epub-hyphen","owner":"gromnitsky","description":"Hyphenate text nodes in epub or stand-alone xhtml files","archived":false,"fork":false,"pushed_at":"2022-12-27T19:33:11.000Z","size":1974,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-16T11:39:20.237Z","etag":null,"topics":["epub","hyphenation"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gromnitsky.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":"2015-03-13T22:24:19.000Z","updated_at":"2023-01-08T23:15:41.000Z","dependencies_parsed_at":"2023-01-14T09:17:22.711Z","dependency_job_id":null,"html_url":"https://github.com/gromnitsky/epub-hyphen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gromnitsky%2Fepub-hyphen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gromnitsky%2Fepub-hyphen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gromnitsky%2Fepub-hyphen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gromnitsky%2Fepub-hyphen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gromnitsky","download_url":"https://codeload.github.com/gromnitsky/epub-hyphen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250442049,"owners_count":21431254,"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":["epub","hyphenation"],"created_at":"2024-11-19T05:39:12.494Z","updated_at":"2025-04-23T13:45:15.579Z","avatar_url":"https://github.com/gromnitsky.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"    $ npm i -g epub-hyphen\n\nReqs:\n\n* node 18.x\n* `zip` \u0026 `unzip` in PATH\n\n## Usage\n\n~~~\n$ ./epub-hyphen -h\nUsage: epub-hyphen [options] input [-o output]\n\nHyphenate text nodes in epub or stand-alone xhtml files\n\nOptions:\n  -V, --version        output the version number\n  -l \u003cstr\u003e             a 2-letter default language in case \u003chtml lang='xx'\u003e\n                       attribute is absent; this does NOT override already\n                       present lang= attributes\n  -i \u003cstr\u003e             an additional comma-separated list of tags to ignore; a\n                       tag can optionally include a class name, e.g. `h1,p.foo`\n  -o \u003cstr\u003e             an output file name (overwrite the contents)\n  --lang-list          print all supported languages\n  --ignored-tags-list  print the default ignored tags list\n  -h, --help           display help for command\n\nset NODE_DEBUG=epub-hyphen to enable debug log\n~~~\n\nWhen converting epubs:\n\n* if no `-l` is given, the program tries to detect the\n  default language from epub metadata;\n* always use `-o` in Windows.\n\n## Examples\n\n~~~\n$ echo '\u003cp\u003eдихлордифенілтрихлорметилметан\u003c/p\u003e' | ./epub-hyphen -l uk\n\u003c?xml version=\"1.0\"?\u003e\n\u003cp\u003eди-хлор-ди-фе-ніл-три-хлор-ме-тил-ме-тан\u003c/p\u003e\n~~~\n\nThe contents of some tags is never hyphenated (`code`, `pre`, \u0026c):\n\n~~~\n$ echo '\u003cp\u003e\u003ccode\u003efoobar\u003c/code\u003efoobar\u003c/p\u003e' | ./epub-hyphen\n\u003c?xml version='1.0' encoding='utf-8'?\u003e\n\u003cp\u003e\u003ccode\u003efoobar\u003c/code\u003efoo-bar\u003c/p\u003e\n~~~\n\nHyphenate a epub:\n\n    $ ./epub-hyphen test/data/1.epub \u003e 2.epub\n\n## Bugs\n\n* No mappings the between internal lang names \u0026 BCP 47.\n* An empty .x?html file is treated as an invalid xml.\n\n## News\n\nv1.0.0 is a complete rewrite; its cli is incompatible with 0.0.x\nversions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgromnitsky%2Fepub-hyphen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgromnitsky%2Fepub-hyphen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgromnitsky%2Fepub-hyphen/lists"}