## This is a repository of the "S.T.A.L.K.E.R Localization Toolbox"
This project is created to ease routine manipulations of working on localization
of S.T.A.L.K.E.R mods.
Primarily it's designed (and tested) to translate mods to Ukrainian language
## Goals (TODO)
Create All-in-one app which will help to produce clean, maintainable, correct
mod localizations with ease, both text and audio.
### Planned features
Infra:
- [x] Add version tracking from PyPI
- [x] Add multilang support
- [x] Add ukrainian language support
- [x] Add ~/.sltools/config file to store configuration
Text:
- [x] Git integration (check for dirty environment)
- [ ] Add modified files saving into mirrored directory for non-tracked files
- [x] Bad encoding detection and fixes
- [x] Resolve XML C-style includes [Example here](https://github.com/HalavicH/stalker-localization-toolbox/blob/develop/examples/c-style-xml-includes.md)
- [x] XML formatting and fix. S.T.A.L.K.E.R's XML parser has loose XML validation,
and swallows files with some tokens not allowed in XML 1.0 specification.
[Example here](https://github.com/HalavicH/stalker-localization-toolbox/blob/develop/examples/non-standard-xml-fix.md)
- [x] `<text>` entries formatting. Game's XML parser ignores extra spaces and line
breaks (just like HTML). The only way you can put a line break is to use \n.
This feature alligns text within text blocks to look alike in the game.
[Example here](https://github.com/HalavicH/stalker-localization-toolbox/blob/develop/examples/text-entry-formatting.md)
- [x] Analysis for not translated files/text blocks
- [x] Automatic text translation using DeepL.
- [x] Analyze broken patterns/placeholders/colors
- [x] Save report only with --save option
- [ ] Compare 2 file reports
- [ ] Fix broken patterns/placeholders/colors
- [x] Search for duplicate keys
- [x] Add visualized duplicates graph using D3
- [x] Capitalize text entries
- [ ] Grammar and typos checkup
- [x] Capitalization of the text blocks
- [ ] Automatic scraping for files you need to translate (if you just start translating) with
integration with **Mod Organizer 2** mod priority (if you want to translate
a modpack with all at once)
Audio:
- [ ] Handy operations with audio (using ffmpeg):
- [ ] Convert to-ogg/to-mp3
- [ ] Convert to mono
- [ ] Trim/split audio by second
- [ ] Trim silence from audio (with user defined margin)
- [ ] Normalize audio level
- [ ] Apply quick effects (gas mask, radio, pitching, noise)
- [ ] Translating Speech-to-Speech and keeping voice signature using AI
Audio:
- [ ] Handy operations with audio (using ffmpeg):
- [ ] Convert to-ogg/to-mp3
- [ ] Convert to mono
- [ ] Trim/split audio by second
- [ ] Trim silence from audio (with user defined margin)
- [ ] Normalize audio level
- [ ] Apply quick effects (gas mask, radio, pitching, noise)
- [ ] Translating Speech-to-Speech and keeping voice signature using AI
## Important info
1. All XML files are using `Winodws-1251` encoding, so it's better to setup your
IDE/text editor, git to this encoding by default
2. A lot of functionality here (like autotranslation) may sometimes introduce
breaking changes like missing/broken placeholder, etc, so it's hardly
recommended to make git repository out of your mod, and commit changes before
each script use (or at least commit often)
## Module Installation
```shell
# Uninstall previous if present
pip uninstall sltools
# Install in dev mode
pip install -e .
```
## Module Testing
```shell
sltools
python3 -m sltools
python3 sltools.py
```
Raw data
{
"_id": null,
"home_page": "https://github.com/HalavicH/stalker-localization-toolbox",
"name": "sltools",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "XML S.T.A.L.K.E.R stalker mods modding game tools translate analysis",
"author": "HalavicH",
"author_email": "HalavicH@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/d9/6f/0d1cf339ef5855b9bb26151a85a2eb75f42a98613ed18856d925716340d9/sltools-0.2.2.tar.gz",
"platform": null,
"description": "## This is a repository of the \"S.T.A.L.K.E.R Localization Toolbox\"\nThis project is created to ease routine manipulations of working on localization\nof S.T.A.L.K.E.R mods.\n\nPrimarily it's designed (and tested) to translate mods to Ukrainian language\n\n## Goals (TODO)\nCreate All-in-one app which will help to produce clean, maintainable, correct\nmod localizations with ease, both text and audio.\n\n### Planned features\nInfra:\n- [x] Add version tracking from PyPI\n- [x] Add multilang support\n - [x] Add ukrainian language support\n- [x] Add ~/.sltools/config file to store configuration\n\nText:\n- [x] Git integration (check for dirty environment)\n - [ ] Add modified files saving into mirrored directory for non-tracked files\n- [x] Bad encoding detection and fixes\n- [x] Resolve XML C-style includes [Example here](https://github.com/HalavicH/stalker-localization-toolbox/blob/develop/examples/c-style-xml-includes.md)\n- [x] XML formatting and fix. S.T.A.L.K.E.R's XML parser has loose XML validation,\n and swallows files with some tokens not allowed in XML 1.0 specification.\n [Example here](https://github.com/HalavicH/stalker-localization-toolbox/blob/develop/examples/non-standard-xml-fix.md)\n- [x] `<text>` entries formatting. Game's XML parser ignores extra spaces and line\n breaks (just like HTML). The only way you can put a line break is to use \\n.\n This feature alligns text within text blocks to look alike in the game.\n [Example here](https://github.com/HalavicH/stalker-localization-toolbox/blob/develop/examples/text-entry-formatting.md)\n- [x] Analysis for not translated files/text blocks\n- [x] Automatic text translation using DeepL.\n- [x] Analyze broken patterns/placeholders/colors\n - [x] Save report only with --save option\n - [ ] Compare 2 file reports\n - [ ] Fix broken patterns/placeholders/colors\n- [x] Search for duplicate keys\n - [x] Add visualized duplicates graph using D3\n- [x] Capitalize text entries\n- [ ] Grammar and typos checkup\n- [x] Capitalization of the text blocks\n- [ ] Automatic scraping for files you need to translate (if you just start translating) with\n integration with **Mod Organizer 2** mod priority (if you want to translate\n a modpack with all at once)\n\nAudio:\n- [ ] Handy operations with audio (using ffmpeg):\n - [ ] Convert to-ogg/to-mp3\n - [ ] Convert to mono\n - [ ] Trim/split audio by second\n - [ ] Trim silence from audio (with user defined margin)\n - [ ] Normalize audio level\n- [ ] Apply quick effects (gas mask, radio, pitching, noise)\n- [ ] Translating Speech-to-Speech and keeping voice signature using AI \n\nAudio:\n- [ ] Handy operations with audio (using ffmpeg):\n - [ ] Convert to-ogg/to-mp3\n - [ ] Convert to mono\n - [ ] Trim/split audio by second\n - [ ] Trim silence from audio (with user defined margin)\n - [ ] Normalize audio level\n- [ ] Apply quick effects (gas mask, radio, pitching, noise)\n- [ ] Translating Speech-to-Speech and keeping voice signature using AI \n\n## Important info\n1. All XML files are using `Winodws-1251` encoding, so it's better to setup your\nIDE/text editor, git to this encoding by default \n2. A lot of functionality here (like autotranslation) may sometimes introduce\nbreaking changes like missing/broken placeholder, etc, so it's hardly\nrecommended to make git repository out of your mod, and commit changes before\neach script use (or at least commit often)\n\n## Module Installation\n```shell\n# Uninstall previous if present\npip uninstall sltools\n# Install in dev mode\npip install -e .\n```\n## Module Testing\n```shell\nsltools\npython3 -m sltools\npython3 sltools.py\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "S.T.A.L.K.E.R Localization Toolbox",
"version": "0.2.2",
"project_urls": {
"Bug Reports": "https://github.com/HalavicH/stalker-localization-toolbox/issues/",
"Documentation": "https://github.com/HalavicH/stalker-localization-toolbox/wiki",
"Homepage": "https://github.com/HalavicH/stalker-localization-toolbox",
"Source": "https://github.com/HalavicH/stalker-localization-toolbox/"
},
"split_keywords": [
"xml",
"s.t.a.l.k.e.r",
"stalker",
"mods",
"modding",
"game",
"tools",
"translate",
"analysis"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d96f0d1cf339ef5855b9bb26151a85a2eb75f42a98613ed18856d925716340d9",
"md5": "be958809701ed9905a85d108318653c0",
"sha256": "ffa81ee95e7b3e3c319f83a958ecaa3941b9ca82c480dd08d9824e06969bb71c"
},
"downloads": -1,
"filename": "sltools-0.2.2.tar.gz",
"has_sig": false,
"md5_digest": "be958809701ed9905a85d108318653c0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 151750,
"upload_time": "2023-12-01T09:48:27",
"upload_time_iso_8601": "2023-12-01T09:48:27.734718Z",
"url": "https://files.pythonhosted.org/packages/d9/6f/0d1cf339ef5855b9bb26151a85a2eb75f42a98613ed18856d925716340d9/sltools-0.2.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-01 09:48:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "HalavicH",
"github_project": "stalker-localization-toolbox",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "sltools"
}