{"id":17760536,"url":"https://github.com/fuco1/justify-kp","last_synced_at":"2025-04-01T13:15:45.236Z","repository":{"id":12879652,"uuid":"15556141","full_name":"Fuco1/justify-kp","owner":"Fuco1","description":"Paragraph justification for emacs using Knuth/Plass algorithm","archived":false,"fork":false,"pushed_at":"2023-03-17T19:03:50.000Z","size":38,"stargazers_count":61,"open_issues_count":6,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-07T08:11:12.576Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fuco1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2013-12-31T20:07:12.000Z","updated_at":"2025-02-03T10:51:17.000Z","dependencies_parsed_at":"2024-12-14T06:26:07.314Z","dependency_job_id":"6869fea1-7729-4ba8-8ff7-d47dab6e9e66","html_url":"https://github.com/Fuco1/justify-kp","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/Fuco1%2Fjustify-kp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fuco1%2Fjustify-kp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fuco1%2Fjustify-kp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fuco1%2Fjustify-kp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fuco1","download_url":"https://codeload.github.com/Fuco1/justify-kp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246644097,"owners_count":20810687,"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":[],"created_at":"2024-10-26T19:04:27.320Z","updated_at":"2025-04-01T13:15:45.220Z","avatar_url":"https://github.com/Fuco1.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# justify-kp\n\nParagraph justification for emacs using Knuth/Plass algorithm.\n\n# Usage\n\nThe lowest level interactive command is `pj-justify`.  It justifies\ncurrent line *after* the point.  You must place the point at the\nbeginning of line and the line must have no line breaks (newlines)\ninside it.\n\nMore convenient set of commands is `pj-justify-paragraph` and\n`pj-unjustify-paragraph`.  They can be called from anywhere inside\ncurrent paragraph to justify or unjustify it.  Calling\n`pj-justify-paragraph` on an already justified paragraph will\nre-justify it.\n\nIf you want to automatically re-justify paragraphs as you type, you\ncan use `pj-auto-justify-mode`.  This is however a bit rough around\nthe edges, so your mileage might vary.\n\n# What it supports so far?\n\n* [X] hanging punctuation (on the right margin)\n* [ ] hanging punctuation (on the left margin)\n* [ ] hyphenation\n* [ ] character protrusion, i.e. extending W, Q, V, Y etc. out of the margins a bit to get better optical whitespace. It is very similar to hanging punctuation in effect.\n* [ ] kerning around special characters (useful for quotes, parens etc.)\n* [X] mixed fonts in the same paragraph\n\nSee also: http://www.khirevich.com/latex/microtype/\n\n# How it looks?\n\nHere's a youtube video of the algorithm in action: http://www.youtube.com/watch?v=10FbsTP_IRg (note that the dynamic reindentation is very inefficient at the present moment.)\n\nComparsions of `M-q` (top) and the present implementation (bottom). Right now there's no support for hyphenation but it is a very high priority.\n\n![](http://i.imgur.com/ibZGDLZ.png)\n\n![](http://i.imgur.com/tJviUxp.png)\n\nWe can also do mixed-fonts!\n\n![](http://i.imgur.com/B1Z3awR.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuco1%2Fjustify-kp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuco1%2Fjustify-kp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuco1%2Fjustify-kp/lists"}