{"id":16347503,"url":"https://github.com/oscarotero/typofixer","last_synced_at":"2025-03-23T00:32:53.836Z","repository":{"id":57033387,"uuid":"82466542","full_name":"oscarotero/typofixer","owner":"oscarotero","description":"Fix microtypography issues in html code","archived":false,"fork":false,"pushed_at":"2021-12-16T18:11:18.000Z","size":60,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T15:55:07.801Z","etag":null,"topics":["fixer","html","microtypography","orthotypography","typography"],"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/oscarotero.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-02-19T14:54:41.000Z","updated_at":"2021-12-16T18:08:26.000Z","dependencies_parsed_at":"2022-08-24T06:50:06.669Z","dependency_job_id":null,"html_url":"https://github.com/oscarotero/typofixer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarotero%2Ftypofixer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarotero%2Ftypofixer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarotero%2Ftypofixer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarotero%2Ftypofixer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oscarotero","download_url":"https://codeload.github.com/oscarotero/typofixer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245040235,"owners_count":20551297,"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":["fixer","html","microtypography","orthotypography","typography"],"created_at":"2024-10-11T00:43:06.777Z","updated_at":"2025-03-23T00:32:53.467Z","avatar_url":"https://github.com/oscarotero.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Typofixer\n\nA [wip] PHP library to fix microtypography issues in html code.\n\n## Requirements\n\n* PHP ^7.1\n* mbstring extension\n\n## Usage\n\n```php\nuse Typofixer\\Typofixer;\n\n$input = '\u003cp\u003e\"Hello\"\u0026nbsp;\u0026nbsp;world...\u003c/p\u003e';\n$output = Typofixer::fix($input, ['language' =\u003e 'es']);\n\necho $ouput; //\u003cp\u003e«Hello» world…\u003c/p\u003e\n```\n\n## Available fixers:\n\nName | Description\n-----|-------------\n**AddSpaceAfter** | Ensure there's a space after some characters like `,:;!?`. Ex: `hello,world` is converted to `hello, world`.\n**CharsInside** | Move some characters inside the corresponding tags. Ex: `\u003cstrong\u003ehello\u003c/strong\u003e, world` is converted to `\u003cstrong\u003ehello,\u003c/strong\u003e world`\n**Dash** | Replace the simple `-` between numbers to ndash and `--` to mdash.\n**Ellipsis** | Converts `...` into `…`\n**MergeTags** | Merge two consecutive tags. Ex: `\u003cb\u003ehello\u003c/b\u003e \u003cb\u003eworld\u003c/b\u003e` is converted to `\u003cb\u003ehello world\u003c/b\u003e`\n**Quotes** | Replace plain quotes by curly quotes. Ex: `\"hello word\"` is converted to `“hello world”`\n**RemoveEmptyTags** | Removes empty tags or tags containing only spaces. Ex: `\u003cstrong\u003e \u003c/strong\u003e`\n**RemoveInnerTags** | Removes some tags that cannot be inside other tags. Ex: `\u003cstrong\u003ehello \u003cstrong\u003eworld\u003c/strong\u003e\u003c/strong\u003e` is converted to `\u003cstrong\u003ehello world\u003c/strong\u003e`\n**RemoveSpaceBefore** | Removes the space before some characteres like `,:;!?`. Ex: `hello , world` is converted to `hello, world`.\n**RemoveSpaceAfter** | Removes the space after some characteres like `¿¡(`. Ex: `hello ( world)` is converted to `hello (world)`.\n**Spaces** | Removes duplicated spaces and convert all unicode spaces (like `\u0026nbsp;`) to simple spaces. Ex: `Hello \u0026nbsp; world` is converted to `Hello world`.\n**SpaceTags** | Normalize spaces between tags. Ex: `\u003cstrong\u003ehello \u003c/strong\u003eworld` is converted to `\u003cstrong\u003ehello\u003c/strong\u003e world`.\n\n## Available options\n\nName | Description\n-----|-------------\n`language` | The ISO language code that is used by some fixers like Quotes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscarotero%2Ftypofixer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foscarotero%2Ftypofixer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscarotero%2Ftypofixer/lists"}