From c150daee06d91048b5b27418e0111263efb59052 Mon Sep 17 00:00:00 2001 From: Dominik Kozaczko Date: Thu, 16 Aug 2012 14:07:52 +0200 Subject: [PATCH 1/2] small grammatical changes --- .gitignore | 1 + docs/source/android.rst | 8 ++++---- docs/source/index.rst | 2 +- docs/source/quickstart.rst | 8 ++++---- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 1020c186..df2cde80 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ build jnius.so .*.swp *.class +.idea diff --git a/docs/source/android.rst b/docs/source/android.rst index 1a528f89..4a4bad03 100644 --- a/docs/source/android.rst +++ b/docs/source/android.rst @@ -12,7 +12,7 @@ Get the DPI ----------- The `DisplayMetrics -`_ contain multiple field that can return lot of information about the device screen:: +`_ contains multiple fields that can return a lot of information about the device's screen:: from pyjnius.reflect import autoclass DisplayMetrics = autoclass('android.util.DisplayMetrics') @@ -25,7 +25,7 @@ Recording an audio file By looking at the `Audio Capture `_ guide -from Android, you can see the simple step to do for recording an audiofile. +from Android, you can see the simple step to do for recording an audio file. Let's do in with Pyjnius:: from pyjnius.reflect import autoclass @@ -85,8 +85,8 @@ Accessing to the Activity ------------------------- This example will show how to start a new Intent. Be careful, some Intent -require you to setup some part in the `AndroidManifest.xml`, and have some -action done within your own Activity. This is out of the scope of Pyjnius, but +require you to setup some parts in the `AndroidManifest.xml`, and have some +actions done within your own Activity. This is out of the scope of Pyjnius, but we'll show you what is the best approach for playing with it. On Python-for-android project, you can access to the default `PythonActivity`. diff --git a/docs/source/index.rst b/docs/source/index.rst index 100334d4..f6a9e0b2 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -2,7 +2,7 @@ Welcome to Pyjnius ================== Welcome to Pyjnius's documentation. This documentation is divided into -differents parts. I recommand taht you get started with :ref:`installation`, +different parts. We recommend that you get started with :ref:`installation`, and then head over to the :ref:`quickstart`. You can also check :ref:`android` for specific example for the Android platform. If you'd rather dive into the internals of Pyjnius, check out the :ref:`api` documentation. diff --git a/docs/source/quickstart.rst b/docs/source/quickstart.rst index e55d9116..a3885979 100644 --- a/docs/source/quickstart.rst +++ b/docs/source/quickstart.rst @@ -3,7 +3,7 @@ Quickstart ========== -Eager to get started? This page give a good introduction to Pyjnius. It assumes +Eager to get started? This page will give you a good introduction to Pyjnius. It assumes you have already Pyjnius installed. If you do not, head over the :ref:`installation` section. @@ -23,7 +23,7 @@ A minimal Pyjnius example looks something like this:: print stack.pop() # --> 'hello' Just save it as `test.py` (or something similar) and run it with your Python -interpreter. Make sure to not call your application `jnius.py` because it would +interpreter. Make sure not to call your application `jnius.py` because it would conflict with Pyjnius itself:: $ python test.py @@ -33,7 +33,7 @@ conflict with Pyjnius itself:: Automatic recursive inspection ------------------------------ -Pyjnius use Java reflection to give you a new autoclass() if the return type is +Pyjnius uses Java reflection to give you a new autoclass() if the return type is not a native type. Let's see this example:: System = autoclass('java.io.System') @@ -50,5 +50,5 @@ fields and methods naturally. Let's go deeper:: >>> System.out.println -The recursive reflection always give you an appropriate object that reflect the +The recursive reflection always gives you an appropriate object that reflects the returned Java object. From d3f948bf3017f49b2d1e18c6fcfd7caf51969286 Mon Sep 17 00:00:00 2001 From: Dominik Kozaczko Date: Thu, 16 Aug 2012 14:12:10 +0200 Subject: [PATCH 2/2] __doc__ fixed :) --- jnius/jnius.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jnius/jnius.pyx b/jnius/jnius.pyx index 0ae397fa..c5479d6d 100644 --- a/jnius/jnius.pyx +++ b/jnius/jnius.pyx @@ -3,7 +3,7 @@ Java wrapper ============ -With this module, you can create Python class that reflect a Java class, and use +With this module, you can create Python class that reflects a Java class, and use it directly in Python. Example with static method