txt2tags


Nametxt2tags JSON
Version 3.9 PyPI version JSON
download
home_pagehttps://txt2tags.org
SummaryConvert between markup languages
upload_time2023-10-06 18:07:37
maintainerJendrik Seipp
docs_urlNone
authorAurelio Jargas
requires_python>=3.7
licenseGPL2+
keywords markup
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Build Status](https://travis-ci.org/jendrikseipp/txt2tags.svg?branch=master)](https://travis-ci.org/jendrikseipp/txt2tags)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

# Txt2tags

Txt2tags is a document generator. It reads a text file with
minimal markup such as `**bold**` and `//italic//` and converts it
to the following formats:

 * AsciiDoc
 * Creole 1.0
 * DocBook
 * DokuWiki
 * Google Wiki
 * HTML
 * LaTeX
 * Lout
 * MagicPoint
 * Markdown
 * MoinMoin
 * PmWiki
 * Plain Text
 * SGML
 * UNIX Manpage
 * Wikipedia/MediaWiki

You can use it as a command line program or in a Python application.

# Installation

We recommend using [pipx](https://pipxproject.github.io/pipx/) to install and run txt2tags in an isolated environment without affecting any system packages:

    python3 -m pip install --user pipx
    python3 -m pipx ensurepath
    pipx install txt2tags
    txt2tags --help

Of course you can also use pip to install txt2tags globally or in a virtual environment:

    pip install -U txt2tags

# Usage

Simple example for command line usage:

1. Write a text file like this (leave 1st line blank):

   ```
   = Hello =
   I'm a robot. You're my **master**!
   [smile.jpg]
   ```

2. Run this command:

   `txt2tags --target html --no-headers file.t2t`

3. The result is:

   ```
   <H1>Hello</H1>
   <P>
   I'm a robot. You're my <B>master</B>!
   <IMG ALIGN="middle" SRC="smile.jpg" BORDER="0" ALT="">
   </P>
   ```

# History

Aurelio Jargas started the development of Txt2tags in 2001. The program
saw several releases from 2001 to 2010, the last of which was version
2.6. Afterwards, Aurelio became less involved in the development. Still,
many new features were added in the main repository
(https://github.com/txt2tags/txt2tags), but they were never officially
released. In my opinion, many of the new features are only useful for a
very small set of users. The extra code adds bloat to the program and
makes it hard to maintain the code. Unfortunately, these concerns are
not shared by the whole Txt2tags development team. Therefore, I decided
to branch off version 2.6 and maintain a simpler txt2tags version that
works on Python 3. The file [TODO.md](TODO.md) lists the goals for the
project.

If you'd like to help out with any of the tasks, please get in touch.
Pull requests are very welcome!



            

Raw data

            {
    "_id": null,
    "home_page": "https://txt2tags.org",
    "name": "txt2tags",
    "maintainer": "Jendrik Seipp",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "jendrikseipp@gmail.com",
    "keywords": "markup",
    "author": "Aurelio Jargas",
    "author_email": "aurelio@aurelio.net",
    "download_url": "https://files.pythonhosted.org/packages/27/17/c9cdebfc86e824e25592a20a8871225dad61b6b6c0101f4a2cb3434890dd/txt2tags-3.9.tar.gz",
    "platform": null,
    "description": "[![Build Status](https://travis-ci.org/jendrikseipp/txt2tags.svg?branch=master)](https://travis-ci.org/jendrikseipp/txt2tags)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n# Txt2tags\n\nTxt2tags is a document generator. It reads a text file with\nminimal markup such as `**bold**` and `//italic//` and converts it\nto the following formats:\n\n * AsciiDoc\n * Creole 1.0\n * DocBook\n * DokuWiki\n * Google Wiki\n * HTML\n * LaTeX\n * Lout\n * MagicPoint\n * Markdown\n * MoinMoin\n * PmWiki\n * Plain Text\n * SGML\n * UNIX Manpage\n * Wikipedia/MediaWiki\n\nYou can use it as a command line program or in a Python application.\n\n# Installation\n\nWe recommend using [pipx](https://pipxproject.github.io/pipx/) to install and run txt2tags in an isolated environment without affecting any system packages:\n\n    python3 -m pip install --user pipx\n    python3 -m pipx ensurepath\n    pipx install txt2tags\n    txt2tags --help\n\nOf course you can also use pip to install txt2tags globally or in a virtual environment:\n\n    pip install -U txt2tags\n\n# Usage\n\nSimple example for command line usage:\n\n1. Write a text file like this (leave 1st line blank):\n\n   ```\n   = Hello =\n   I'm a robot. You're my **master**!\n   [smile.jpg]\n   ```\n\n2. Run this command:\n\n   `txt2tags --target html --no-headers file.t2t`\n\n3. The result is:\n\n   ```\n   <H1>Hello</H1>\n   <P>\n   I'm a robot. You're my <B>master</B>!\n   <IMG ALIGN=\"middle\" SRC=\"smile.jpg\" BORDER=\"0\" ALT=\"\">\n   </P>\n   ```\n\n# History\n\nAurelio Jargas started the development of Txt2tags in 2001. The program\nsaw several releases from 2001 to 2010, the last of which was version\n2.6. Afterwards, Aurelio became less involved in the development. Still,\nmany new features were added in the main repository\n(https://github.com/txt2tags/txt2tags), but they were never officially\nreleased. In my opinion, many of the new features are only useful for a\nvery small set of users. The extra code adds bloat to the program and\nmakes it hard to maintain the code. Unfortunately, these concerns are\nnot shared by the whole Txt2tags development team. Therefore, I decided\nto branch off version 2.6 and maintain a simpler txt2tags version that\nworks on Python 3. The file [TODO.md](TODO.md) lists the goals for the\nproject.\n\nIf you'd like to help out with any of the tasks, please get in touch.\nPull requests are very welcome!\n\n\n",
    "bugtrack_url": null,
    "license": "GPL2+",
    "summary": "Convert between markup languages",
    "version": "3.9",
    "project_urls": {
        "Homepage": "https://txt2tags.org"
    },
    "split_keywords": [
        "markup"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fd8997f8ac63d5d3cd7a1e9bc2e25fa7709db2fb2f082aea41fac3badfab4eb6",
                "md5": "36e7c3fbdb3ffae52202b54b6249b085",
                "sha256": "7b1e037798cdf0714d8edfb399733a27978b91c2ac2a2a61de54a03c006115fa"
            },
            "downloads": -1,
            "filename": "txt2tags-3.9-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "36e7c3fbdb3ffae52202b54b6249b085",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.7",
            "size": 52541,
            "upload_time": "2023-10-06T18:07:34",
            "upload_time_iso_8601": "2023-10-06T18:07:34.525043Z",
            "url": "https://files.pythonhosted.org/packages/fd/89/97f8ac63d5d3cd7a1e9bc2e25fa7709db2fb2f082aea41fac3badfab4eb6/txt2tags-3.9-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2717c9cdebfc86e824e25592a20a8871225dad61b6b6c0101f4a2cb3434890dd",
                "md5": "8e01e8fe401eddbbb34c41bf5fb7a0f2",
                "sha256": "7e4244db6a63aaa58fc17fa4cdec62b6fb89cc41d3a00ba4edaffa37f27d6746"
            },
            "downloads": -1,
            "filename": "txt2tags-3.9.tar.gz",
            "has_sig": false,
            "md5_digest": "8e01e8fe401eddbbb34c41bf5fb7a0f2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 51681,
            "upload_time": "2023-10-06T18:07:37",
            "upload_time_iso_8601": "2023-10-06T18:07:37.723102Z",
            "url": "https://files.pythonhosted.org/packages/27/17/c9cdebfc86e824e25592a20a8871225dad61b6b6c0101f4a2cb3434890dd/txt2tags-3.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-06 18:07:37",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "txt2tags"
}
        
Elapsed time: 0.12042s