{"id":13764117,"url":"https://github.com/xml-comp/xml-comp","last_synced_at":"2025-05-10T17:31:39.041Z","repository":{"id":57496995,"uuid":"71943139","full_name":"XML-Comp/XML-Comp","owner":"XML-Comp","description":"Compare ANY markup documents.","archived":false,"fork":false,"pushed_at":"2018-07-19T12:21:08.000Z","size":108,"stargazers_count":21,"open_issues_count":8,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-16T23:32:36.839Z","etag":null,"topics":["compare","comparer","file","go","golang","ludeon","rimworld","translation","xml","xml-comp","xml-comparer"],"latest_commit_sha":null,"homepage":"","language":"Go","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/XML-Comp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"Contributing.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-25T22:09:12.000Z","updated_at":"2023-11-04T03:47:00.000Z","dependencies_parsed_at":"2022-09-14T12:22:12.005Z","dependency_job_id":null,"html_url":"https://github.com/XML-Comp/XML-Comp","commit_stats":null,"previous_names":["arxdsilva/xml-comp"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XML-Comp%2FXML-Comp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XML-Comp%2FXML-Comp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XML-Comp%2FXML-Comp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XML-Comp%2FXML-Comp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XML-Comp","download_url":"https://codeload.github.com/XML-Comp/XML-Comp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253453350,"owners_count":21911082,"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":["compare","comparer","file","go","golang","ludeon","rimworld","translation","xml","xml-comp","xml-comparer"],"created_at":"2024-08-03T15:01:14.395Z","updated_at":"2025-05-10T17:31:38.765Z","avatar_url":"https://github.com/XML-Comp.png","language":"Go","readme":"[![LICENSE](https://img.shields.io/badge/license-MIT-orange.svg)](LICENSE)\n[![GoDoc](https://godoc.org/github.com/XML-Comp/XML-Comp?status.png)](https://godoc.org/github.com/XML-Comp/XML-Comp)\n[![Go Report Card](https://goreportcard.com/badge/github.com/XML-Comp/XML-Comp)](https://goreportcard.com/report/github.com/XML-Comp/XML-Comp)\n[![codebeat badge](https://codebeat.co/badges/1600adbb-27a3-4c3b-803e-818e1834b51a)](https://codebeat.co/projects/github-com-xml-comp-xml-comp)\n\n\n[![Top Level Coverage](https://coveralls.io/repos/github/XML-Comp/XML-Comp/badge.svg?branch=master)](https://coveralls.io/github/XML-Comp/XML-Comp?branch=master)\n[![Travis Build Status](https://api.travis-ci.org/XML-Comp/XML-Comp.svg?branch=master)](https://travis-ci.org/XML-Comp/XML-Comp)\n[![DOI](https://zenodo.org/badge/71943139.svg)](https://zenodo.org/badge/latestdoi/71943139)\n\n\n![Awesome](https://raw.githubusercontent.com/istio/fortio/master/docs/mentioned-badge.svg?sanitize=true)\n\n[![Donate](https://www.paypalobjects.com/pt_BR/BR/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=arxdsilva%40gmail%2ecom\u0026lc=BR\u0026item_name=xml%2dcomp\u0026currency_code=USD\u0026bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)\n\n\n## Menu\n1. [What is XML-Comp?](https://github.com/xml-comp/xml-comp#what-is-XML-Comp)\n2. [Features](https://github.com/xml-comp/xml-comp#features)\n3. [Installing](https://github.com/xml-comp/xml-comp#installing)\n4. [Running](https://github.com/xml-comp/xml-comp#running)\n5. [How this works?](https://github.com/xml-comp/xml-comp#how-this-works)\n6. [Comparing any kind of document](https://github.com/xml-comp/xml-comp#comparing-any-kind-of-document)\n7. [Contributing](https://github.com/xml-comp/xml-comp#contributing)\n8. [To Do](https://github.com/xml-comp/xml-comp#to-do---check-our-issues--milestones)\n9. [Using only the comparer package](https://github.com/xml-comp/xml-comp#using-only-the-comparer-package)\n\n## What is XML-Comp\nThis is a command line tool and a package that together they provide the capability of comparing two directories and appending to files the differences between the directories, also creates possible files or folders that are missing. It was made to help [RimWorld](http://rimworldgame.com/)'s [community translators](https://github.com/ludeon)(1) to know what was modified on the last XML updates and to let them keep in track of what they need to add/remove from what has been done.\n\n(1) and maybe other indie games that uses XML\n\n### Features\n- [x] [Compare two given directories](https://github.com/XML-Comp/XML-Comp/issues/7)\n- [x] [Append missing tags to the respective file](https://github.com/XML-Comp/XML-Comp/issues/8)\n- [x] [Creates missing files on the compared directory](https://github.com/XML-Comp/XML-Comp/issues/9)\n- [x] [Creates missing folders on the compared directory](https://github.com/XML-Comp/XML-Comp/issues/32)\n- [x] [Compare one directory with multiple directories](https://github.com/XML-Comp/XML-Comp/issues/48)\n- [x] [Compare automatically the game's english version with the given translation](https://github.com/XML-Comp/XML-Comp/issues?q=is%3Aissue+is%3Aclosed)\n- [ ] Translate tag content\n- [ ] Expose untracked files\n- [ ] Expose untracked directories\n- [ ] Expose untracked tags\n\n### Installing\n```\n$ go get github.com/XML-Comp/XML-Comp\n```\n\n### Running\n```shell\n$ XML-Comp -translation /path/to/language/translation\n```\n\n### How this works?\nYou need the path that is called \"translation\", which are described bellow:\n- **`\"translation\"`**: Full path directory of your RimWorld ~Language~ folder cloned from [GitHub](https://github.com/ludeon).\n\nMy \"translation\" path: **`/Users/arthur/Github/RimWorld-PortugueseBrazilian`**\n\nWith this path in hand, running `xml-comp -translation your/path/to/translation` will let you know in every file of your project what is missing by adding lines to it with what is needed to translate! That simple!\n\n#### [RIMWORLD not installed in standard path]\nIf by any reason you did not install the game on Steam's standard path or want to use a different one, It's possible to use the `original` flag that exposes your customized path to the game as shows: \n\n- **`\"original\"`**: Full path directory of your RimWorld English folder (optional).\nMy \"original\" path (optional): **`/Users/arthur/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Mods/Core/Languages/English`**\n\nIn order to use this flag you'll need to parse it with the `translation` flag as in: `xml-comp -original path/... -translation path/...`\n\n#### Comparing any kind of document\nTo compare any kind of files, all you need is to use the flag `-doc \u003ctype name\u003e`, eg `-doc html`. This will use the paths that you gave only to compare the specified type of document. Another example:\n\n```shell\n$ XML-Comp -doc html -original path/to/It -translation path/to/It\n```\n\nOBS: This is not required, by default It's comparing all `.xml` files that are encountered.\n\n#### [Contributing](https://github.com/XML-Comp/XML-Comp/blob/master/Contributing.md)\n\n#### [Join our Gitter](https://gitter.im/XML-Comparer/Lobby)\n#### To Do - Check our [Issues](https://github.com/XML-Comp/XML-Comp/issues) \u0026 [Milestones](https://github.com/XML-Comp/XML-Comp/milestones)\n\n## Using only the comparer package\n```go\n// Import the package\nimport \"github.com/XML-Comp/XML-Comp/comparer\"\n// Set document type variable to the desired document\n// without the \".\" | eg: \"xml\" or \"html\"\ncomparer.DocType = \"html\"\n// Start the main function with the full paths to compare\n// the firstPath is always what will be used as model\nfunc main() {\n    err := comparer.Compare(firstPath, comparingPath)\n    if err != nil {\n        log.Fatal(err)\n    }\n}\n```\n","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=arxdsilva%40gmail%2ecom\u0026lc=BR\u0026item_name=xml%2dcomp\u0026currency_code=USD\u0026bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted"],"categories":["XML"],"sub_categories":["Routers","路由器","创建http中间件的代码库","高級控制台界面","高级控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxml-comp%2Fxml-comp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxml-comp%2Fxml-comp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxml-comp%2Fxml-comp/lists"}