{"id":16713125,"url":"https://github.com/picrap/romannumerals","last_synced_at":"2025-04-10T06:07:35.019Z","repository":{"id":90836642,"uuid":"163877390","full_name":"picrap/RomanNumerals","owner":"picrap","description":"Converting numbers to and from roman numerals as easy as II+II=IV","archived":false,"fork":false,"pushed_at":"2024-07-26T20:41:22.000Z","size":151,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T06:07:22.909Z","etag":null,"topics":["numerals","roman"],"latest_commit_sha":null,"homepage":null,"language":"C#","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/picrap.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":"2019-01-02T18:47:29.000Z","updated_at":"2025-03-28T17:56:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"22ef90e2-08e5-43e0-83f2-7ee5de69b0f4","html_url":"https://github.com/picrap/RomanNumerals","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/picrap%2FRomanNumerals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/picrap%2FRomanNumerals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/picrap%2FRomanNumerals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/picrap%2FRomanNumerals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/picrap","download_url":"https://codeload.github.com/picrap/RomanNumerals/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166925,"owners_count":21058481,"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":["numerals","roman"],"created_at":"2024-10-12T20:45:35.877Z","updated_at":"2025-04-10T06:07:35.003Z","avatar_url":"https://github.com/picrap.png","language":"C#","readme":"# RomanNumerals\nConverting numbers to and from roman numerals as easy as II+II=IV.  \nAvailable as a [![NuGet package](https://img.shields.io/nuget/v/Roman-Numerals.svg?style=flat-square)](https://www.nuget.org/packages/Roman-Numerals) package.\n\n## What is does\n\nThere are very few features:  \n- Convert integers to roman numerals\n- Convert roman numerals to integers\n- Use roman numeral ASCII representation (I, II, III, IV)\n- Use roman numeral Unicode representation (Ⅰ, Ⅱ, Ⅲ, Ⅳ)\n- Use roman numeral vinculum extensions (V̅I̅=6000, I̿I̿=200000, etc.)\n- Use roman numeral apostrophus (C|Ɔ=1000, |ƆƆ=5000, CC|ƆƆ=10000, |ƆƆƆ=50000, CCC|ƆƆƆ=100000)\n- Use roman numeral apostrophus special characters (ↀ=1000, ↁ=5000, ↂ=10000, ↇ=50000, ↈ=100000)\n- Use of positive-only combinations (use ⅠⅠⅠⅠ instead of Ⅳ)\n\n## How it works\n\n### Simple way\n\nTo display: `uint` to `string` (representing a Roman numeral)\n```csharp\nConsole.WriteLine(RomanNumerals.Convert.ToRomanNumerals(123)); // CXXIII\nConsole.WriteLine(RomanNumerals.Convert.ToRomanNumerals(227, NumeralFlags.Unicode)); // ⅭⅭⅩⅩⅦ\n```\nParsing: `string` to `uint`\n```csharp\nConsole.WriteLine(RomanNumerals.Convert.FromRomanNumerals(\"IV\")); // 4\n```\nAll methods also works as extension methods:\n```csharp\nusing RomanNumerals;\nvar a1 = Convert.ToRomanNumerals(123);\nvar a2 = 123 .ToRomanNumerals(); // same as above 😍\n```\n\n### With options\n\n#### Formatting\nFormatting is done using the `NumeralBuilder` class, with several options.\n`NumeralBuilder` implements `ICustomFormatter` with the following flags:\n\n| Flag | Effect |\n| :-- | :-- |\n| `0` | Don’t use negative digits (turns `4` to `IIII` instead of `IV`) |\n| `V` or `-` or `=` | Use vinculum notation (turns `1,000` to `Ī` instead of `M`, but also `1,000,000` to `I̿` or `5,000,000` to `V̿`) |\n| `'` or `|` | Use apostrophus notation (turns `1,000` to `(|)` instead of `M`, but also `10,000` to `((|))` or `50,000` to `|)))`) |\n| `u` | Use Unicode (subset of Unicode Roman numerals) |\n| `U` | Use Unicode plus ligatures (full range of Unicode Roman numerals) |\n| `A` | Use ASCII, the default case |\n\n#### Parsing\nParsing is done using the `NumeralParser` class (with less options, because it parses all forms at once).\n\n## Some documentation\n\nRead more about roman numerals at \n* https://en.wikipedia.org/wiki/Roman_numerals for general information\n* https://en.wikipedia.org/wiki/Numerals_in_Unicode#Roman_numerals for Unicode information\n* https://www.unicode.org/charts/PDF/U2150.pdf for Unicode chart\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpicrap%2Fromannumerals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpicrap%2Fromannumerals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpicrap%2Fromannumerals/lists"}