{"id":15603308,"url":"https://github.com/hidakatsuya/prawn-disable_word_break","last_synced_at":"2025-04-24T07:49:34.507Z","repository":{"id":56888691,"uuid":"265003240","full_name":"hidakatsuya/prawn-disable_word_break","owner":"hidakatsuya","description":"Prawn::DisableWordBreak is a Prawn extension that provides an option to disable line breaks for characters such as spaces and hyphens.","archived":false,"fork":false,"pushed_at":"2025-03-25T12:44:47.000Z","size":4972,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T13:43:26.986Z","etag":null,"topics":["pdf","prawn","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/hidakatsuya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-05-18T16:52:27.000Z","updated_at":"2025-03-25T12:44:50.000Z","dependencies_parsed_at":"2025-03-07T17:41:38.448Z","dependency_job_id":null,"html_url":"https://github.com/hidakatsuya/prawn-disable_word_break","commit_stats":{"total_commits":44,"total_committers":2,"mean_commits":22.0,"dds":0.06818181818181823,"last_synced_commit":"c13d6267f8f764025d61eaa5c99a6c1eb3ae2dc6"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hidakatsuya%2Fprawn-disable_word_break","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hidakatsuya%2Fprawn-disable_word_break/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hidakatsuya%2Fprawn-disable_word_break/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hidakatsuya%2Fprawn-disable_word_break/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hidakatsuya","download_url":"https://codeload.github.com/hidakatsuya/prawn-disable_word_break/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250588065,"owners_count":21454921,"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":["pdf","prawn","ruby"],"created_at":"2024-10-03T03:02:33.199Z","updated_at":"2025-04-24T07:49:34.489Z","avatar_url":"https://github.com/hidakatsuya.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prawn::DisableWordBreak\n\n[![Gem Version](https://badge.fury.io/rb/prawn-disable_word_break.svg)](https://badge.fury.io/rb/prawn-disable_word_break)\n[![Test](https://github.com/hidakatsuya/prawn-disable_word_break/actions/workflows/test.yml/badge.svg)](https://github.com/hidakatsuya/prawn-disable_word_break/actions/workflows/test.yml)\n\nPrawn::DisableWordBreak is a [Prawn](https://github.com/prawnpdf/prawn) extension that provides an option to disable line breaks for characters such as spaces and hyphens.\n\n![](https://raw.githubusercontent.com/hidakatsuya/prawn-disable_word_break/master/doc/comparison-of-word-breaking.png)\n\nSee [feature test](test/features/text_line_wrapping_test.rb) for details.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'prawn-disable_word_break'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install prawn-disable_word_break\n\n## Usage\n\n```ruby\nrequire 'prawn/disable_word_break'\n```\n\nOr, you can set it for each method such as `text_box`.\n\n```ruby\n# Disable the default setting.\nPrawn::DisableWordBreak.config.default = false\n```\n\n```ruby\nPrawn::Document.generate \"prawn.pdf\" do\n  text_box \"text\",\n    at: [0, cursor], width: 150, height: 50, disable_word_break: true\n\n  formatted_text_box [{ text: \"text\" }],\n    at: [0, cursor], width: 150, height: 50, disable_word_break: true\n\n  bounding_box [0, cursor], width: 150, height: 50 do\n    text \"text\", disable_word_break: true\n  end\nend\n```\n\n## Supported Versions\n\n### Ruby\n\n3.0, 3.1, 3.2, 3.3\n\n### Prawn\n\n2.4\n\n## Development\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n### Testing\n\n    $ bundle exec rake test\n\nTo run the test, you need [diff-pdf](https://github.com/vslavik/diff-pdf). You can run by installing it or using a Docker container for testing.\n\n    $ docker pull ghcr.io/hidakatsuya/ruby-with-diff-pdf:latest\n    $ docker run -v $PWD:/src:cached -it ghcr.io/hidakatsuya/ruby-with-diff-pdf bash\n\n    \u003e src# bundle install\n    \u003e src# bundle exec rake test\n\n### Linting\n\n    $ bundle exec rake standard\n\nOr fix automatically.\n\n    $ bundle exec rake standard:fix\n\nSee https://github.com/standardrb/standard for more details.\n\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/hidakatsuya/prawn-disable_word_break. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/hidakatsuya/prawn-disable_word_wrap/blob/master/CODE_OF_CONDUCT.md).\n\n\n## License\n\n(c) 2020 Katsuya HIDAKA. The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). See [LICENSE.txt](https://github.com/hidakatsuya/prawn-disable_word_break/blob/master/LICENSE.txt) for further details.\n\n## Code of Conduct\n\nEveryone interacting in the Prawn::DisableWordBreak project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/hidakatsuya/prawn-disable_word_break/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhidakatsuya%2Fprawn-disable_word_break","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhidakatsuya%2Fprawn-disable_word_break","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhidakatsuya%2Fprawn-disable_word_break/lists"}