msg2po


Namemsg2po JSON
Version 1.2.1 PyPI version JSON
download
home_pagehttps://github.com/BGforgeNet/msg2po
SummaryA set of helper tools to convert Fallout 1/2 MSG and WeiDU TRA into GNU gettext PO and back.
upload_time2024-04-23 10:40:44
maintainerNone
docs_urlNone
authorBGforge
requires_python>=3.8
licenseNone
keywords fallout fallout 2 baldur's gate infinity engine weidu
VCS
bugtrack_url
requirements configparser natsort polib python-dateutil ruamel-yaml-clib ruamel-yaml six
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # MSG2PO

[![Build status](https://github.com/BGforgeNet/msg2po/workflows/release/badge.svg)](https://github.com/BGforgeNet/msg2po/actions?query=workflow%3Arelease)
[![Patreon](https://img.shields.io/badge/Patreon-donate-FF424D?logo=Patreon&labelColor=141518)](https://www.patreon.com/BGforge)
[![Telegram](https://img.shields.io/badge/telegram-join%20%20%20%20%E2%9D%B1%E2%9D%B1%E2%9D%B1-darkorange?logo=telegram)](https://t.me/bgforge)
[![Discord](https://img.shields.io/discord/420268540700917760?logo=discord&label=discord&color=blue&logoColor=FEE75C)](https://discord.gg/4Yqfggm)
[![IRC](https://img.shields.io/badge/%23IRC-join%20%20%20%20%E2%9D%B1%E2%9D%B1%E2%9D%B1-darkorange)](https://bgforge.net/irc)

This is a set of tools to convert Fallout 1/2 MSG and WeiDU TRA into GNU gettext PO and back, used in [BGforge Hive](https://hive.bgforge.net/). Ask questions [here](https://forums.bgforge.net/viewforum.php?f=9).

### Installation

```bash
pip install msg2po
```

Also install [Gettext tools](https://www.gnu.org/software/gettext/), and make sure they are in PATH.

### Poify

```bash
$ poify.py -h
.bgforge.yml not found, assuming defaults
usage: poify.py [-h] [-e ENC] [DIR]

Poify files in selected directory

positional arguments:
  DIR         source language directory (default: ./english)

options:
  -h, --help  show this help message and exit
  -e ENC      source encoding (default: cp1252)
```

### Action

Github [action](docs/action.md) is available for automatic processing.

---

[Changelog](docs/changelog.md)

### Unfuzzy

Unfuzzy removes fuzzy flag and previous msgid from PO entries, if after all replacements current msgid and previous msgid match exactly. Usually it is run after spelling changes in source language, to reduce diff noise and avoid extra review burden.

The comparison is case sensitive. The replacements are read from `unfuzzy.yml` in current directory, example:

```yaml
- ["Nuka Cola", "Nuka-Cola"]
- ["nuka cola", "Nuka-Cola"]
```

Run

```bash
unfuzzy.py -w data/text/po/french.po
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/BGforgeNet/msg2po",
    "name": "msg2po",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "Fallout, Fallout 2, Baldur's Gate, Infinity Engine, WeiDU",
    "author": "BGforge",
    "author_email": "dev@bgforge.net",
    "download_url": "https://files.pythonhosted.org/packages/ff/26/1b4e81c5a9d0fcfce8640bcbd74d5e3187f4e3147d39b83766cbb3ad1819/msg2po-1.2.1.tar.gz",
    "platform": null,
    "description": "# MSG2PO\n\n[![Build status](https://github.com/BGforgeNet/msg2po/workflows/release/badge.svg)](https://github.com/BGforgeNet/msg2po/actions?query=workflow%3Arelease)\n[![Patreon](https://img.shields.io/badge/Patreon-donate-FF424D?logo=Patreon&labelColor=141518)](https://www.patreon.com/BGforge)\n[![Telegram](https://img.shields.io/badge/telegram-join%20%20%20%20%E2%9D%B1%E2%9D%B1%E2%9D%B1-darkorange?logo=telegram)](https://t.me/bgforge)\n[![Discord](https://img.shields.io/discord/420268540700917760?logo=discord&label=discord&color=blue&logoColor=FEE75C)](https://discord.gg/4Yqfggm)\n[![IRC](https://img.shields.io/badge/%23IRC-join%20%20%20%20%E2%9D%B1%E2%9D%B1%E2%9D%B1-darkorange)](https://bgforge.net/irc)\n\nThis is a set of tools to convert Fallout 1/2 MSG and WeiDU TRA into GNU gettext PO and back, used in [BGforge Hive](https://hive.bgforge.net/). Ask questions [here](https://forums.bgforge.net/viewforum.php?f=9).\n\n### Installation\n\n```bash\npip install msg2po\n```\n\nAlso install [Gettext tools](https://www.gnu.org/software/gettext/), and make sure they are in PATH.\n\n### Poify\n\n```bash\n$ poify.py -h\n.bgforge.yml not found, assuming defaults\nusage: poify.py [-h] [-e ENC] [DIR]\n\nPoify files in selected directory\n\npositional arguments:\n  DIR         source language directory (default: ./english)\n\noptions:\n  -h, --help  show this help message and exit\n  -e ENC      source encoding (default: cp1252)\n```\n\n### Action\n\nGithub [action](docs/action.md) is available for automatic processing.\n\n---\n\n[Changelog](docs/changelog.md)\n\n### Unfuzzy\n\nUnfuzzy removes fuzzy flag and previous msgid from PO entries, if after all replacements current msgid and previous msgid match exactly. Usually it is run after spelling changes in source language, to reduce diff noise and avoid extra review burden.\n\nThe comparison is case sensitive. The replacements are read from `unfuzzy.yml` in current directory, example:\n\n```yaml\n- [\"Nuka Cola\", \"Nuka-Cola\"]\n- [\"nuka cola\", \"Nuka-Cola\"]\n```\n\nRun\n\n```bash\nunfuzzy.py -w data/text/po/french.po\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A set of helper tools to convert Fallout 1/2 MSG and WeiDU TRA into GNU gettext PO and back.",
    "version": "1.2.1",
    "project_urls": {
        "Homepage": "https://github.com/BGforgeNet/msg2po",
        "Repository": "https://github.com/BGforgeNet/msg2po"
    },
    "split_keywords": [
        "fallout",
        " fallout 2",
        " baldur's gate",
        " infinity engine",
        " weidu"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4c5ee9c00ec033acee517934ff911965aa8a4684513f8b01bebec18b018f5d5f",
                "md5": "02909f16ddd73822b264f2eeadebba44",
                "sha256": "7800fac3474139aafbc2df11bf85afcb5b800936d73c87a956e4d38d682e8381"
            },
            "downloads": -1,
            "filename": "msg2po-1.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "02909f16ddd73822b264f2eeadebba44",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 25846,
            "upload_time": "2024-04-23T10:40:42",
            "upload_time_iso_8601": "2024-04-23T10:40:42.610231Z",
            "url": "https://files.pythonhosted.org/packages/4c/5e/e9c00ec033acee517934ff911965aa8a4684513f8b01bebec18b018f5d5f/msg2po-1.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ff261b4e81c5a9d0fcfce8640bcbd74d5e3187f4e3147d39b83766cbb3ad1819",
                "md5": "636782bb1187c1c1f37498a8af044b83",
                "sha256": "e8a178a1586f461dff0ad1ea48d69d2cd11cf11fe96225114e47f4e90c278fe5"
            },
            "downloads": -1,
            "filename": "msg2po-1.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "636782bb1187c1c1f37498a8af044b83",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 19204,
            "upload_time": "2024-04-23T10:40:44",
            "upload_time_iso_8601": "2024-04-23T10:40:44.306133Z",
            "url": "https://files.pythonhosted.org/packages/ff/26/1b4e81c5a9d0fcfce8640bcbd74d5e3187f4e3147d39b83766cbb3ad1819/msg2po-1.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-23 10:40:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "BGforgeNet",
    "github_project": "msg2po",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "configparser",
            "specs": [
                [
                    "==",
                    "7.0.0"
                ]
            ]
        },
        {
            "name": "natsort",
            "specs": [
                [
                    "==",
                    "6.2.1"
                ]
            ]
        },
        {
            "name": "polib",
            "specs": [
                [
                    "==",
                    "1.2.0"
                ]
            ]
        },
        {
            "name": "python-dateutil",
            "specs": [
                [
                    "==",
                    "2.9.0.post0"
                ]
            ]
        },
        {
            "name": "ruamel-yaml-clib",
            "specs": [
                [
                    "==",
                    "0.2.8"
                ]
            ]
        },
        {
            "name": "ruamel-yaml",
            "specs": [
                [
                    "==",
                    "0.18.6"
                ]
            ]
        },
        {
            "name": "six",
            "specs": [
                [
                    "==",
                    "1.16.0"
                ]
            ]
        }
    ],
    "lcname": "msg2po"
}
        
Elapsed time: 0.25353s