Skip to content
This repository has been archived by the owner on Jan 13, 2019. It is now read-only.

Commit

Permalink
normal readme.rst refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jjangsangy committed Dec 5, 2014
1 parent 96ef3a4 commit ea21721
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
py-translate
------------

|Documentation Status| |github| |travis| |pypi|
|Documentation| |github| |travis| |pypi|

Py-translate is an easy to use translation tool for the command line.

.. figure:: https://raw.githubusercontent.com/jjangsangy/py-translate/master/img/alice.gif
:alt: Translate Lewis Carroll: Alice in Wonderland

Translate Lewis Carroll: Alice in Wonderland
The end goal is a simple application for translating text in the
terminal. Text can be generated interactively or programmatically in the
shell environment. Through command line arguments, file descriptors or
Expand All @@ -31,7 +30,7 @@ Installation
From PyPI with pip (easy)
~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: sh
.. code-block:: sh
$ pip install py-translate
Expand All @@ -40,13 +39,13 @@ From Source at Github

- Clone the repository

.. code:: sh
.. code-block:: sh
$ git clone https://github.com/jjangsangy/py-translate.git
- Install with setup.py

.. code:: sh
.. code-block:: sh
$ python setup.py install
Expand All @@ -55,22 +54,21 @@ Usage

- Default will translate from english to target language

.. code:: sh
.. code-block:: sh
$ translate zh-TW <<< 'Hello World!'
你好世界!
.. figure:: https://raw.githubusercontent.com/jjangsangy/py-translate/master/img/helloworld.gif
:alt: Hello World

Hello World
Examples
--------

- Just as easily specify a source language by providing it as first
argument

.. code:: sh
.. code-block:: sh
# Translate Hello from French to English
$ translate fr en <<< 'Bonjour, comment allez-vous!'
Expand All @@ -79,7 +77,7 @@ Examples
Redirect from File
~~~~~~~~~~~~~~~~~~

.. code:: sh
.. code-block:: sh
$ translate zh-TW < 'alice.txt'
Expand All @@ -96,7 +94,7 @@ Redirect from File
Chaining together Pipes
~~~~~~~~~~~~~~~~~~~~~~~

.. code:: sh
.. code-block:: sh
# Multiple Chaining
$ echo 'What is love?' | translate zh-TW | translate zh-TW ko | translate ko fr | translate fr en
Expand All @@ -105,7 +103,7 @@ Chaining together Pipes
Be Creative!
~~~~~~~~~~~~

.. code:: sh
.. code-block:: sh
# Grocery List
$ cat << BUY | translate ko
Expand All @@ -127,11 +125,14 @@ Documentation
Find the latest documentation http://pythonhosted.org//py-translate/
.. |Documentation Status| image:: https://readthedocs.org/projects/py-translate/badge/?version=master
.. |Documentation| image:: https://readthedocs.org/projects/py-translate/badge/?version=master
:target: https://readthedocs.org/projects/py-translate/?badge=master
.. |github| image:: https://badge.fury.io/gh/jjangsangy%2Fpy-translate.svg
:target: http://badge.fury.io/gh/jjangsangy%2Fpy-translate
.. |travis| image:: https://travis-ci.org/jjangsangy/py-translate.svg?branch=master
:target: https://travis-ci.org/jjangsangy/py-translate
.. |pypi| image:: https://badge.fury.io/py/py-translate.svg
:target: http://badge.fury.io/py/py-translate

0 comments on commit ea21721

Please sign in to comment.