Name | TextQuoter JSON |
Version |
0.0.1.2
JSON |
| download |
home_page | https://github.com/gr1336/TextQuoter/ |
Summary | TextQuoter is a versatile Python script designed to simplify the processing of quotation marks in a given string. |
upload_time | 2024-02-16 00:52:01 |
maintainer | |
docs_url | None |
author | gr1336 |
requires_python | |
license | MIT License |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# TextQuoter
TextQuoter is a versatile Python script designed to simplify the processing of quotation marks in a given string.
## Features
- **Removal of Unpaired Quotes:** TextQuoter ensures clean text by eliminating unpaired quotes.
- **Quotation Style:** Choose between the standard `“` and `”` or opt for a simplified style that uses `"`.
- **User-friendly Design:** TextQuoter features the `requoter` function, making it straightforward and easy to use for handling quotes with minimal effort.
## Installation
To use ``TextQuoter`` into your project, you need just to install it directly using ``pip install TextQuoter``.
## Usage Example
```python
from TextQuoter import requoter
# Sample text with mixed quotation styles
example = """Climbing the treacherous mountain, the group encountered a wise oracle. ”To reach the peak, you must answer my riddles," she proclaimed.
The bard grinned, ”"Riddles, you say? I've been waiting for this!\"."""
# Using default style
fixed_quotes_normal = requoter(input_text=example)
# Using simple style
fixed_quotes_simple = requoter(input_text=example, use_simple=True)
```
- In this example, the `requoter` function is applied to the sample text, demonstrating both the default and simple quoting styles.
#### Here is the what can be expected from the output:
- `fixed_quotes_normal`:
```
Climbing the treacherous mountain, the group encountered a wise oracle. “To reach the peak, you must answer my riddles,” she proclaimed.
The bard grinned, “Riddles, you say? I've been waiting for this!”.
```
- `fixed_quotes_simple`:
```
Climbing the treacherous mountain, the group encountered a wise oracle. "To reach the peak, you must answer my riddles," she proclaimed.
The bard grinned, "Riddles, you say? I've been waiting for this!".
```
Raw data
{
"_id": null,
"home_page": "https://github.com/gr1336/TextQuoter/",
"name": "TextQuoter",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "gr1336",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/d8/de/e402ab5855f096a915ade338f44901600688672c18deb4d43fbf5ccec2dc/TextQuoter-0.0.1.2.tar.gz",
"platform": null,
"description": "# TextQuoter\n\nTextQuoter is a versatile Python script designed to simplify the processing of quotation marks in a given string.\n\n## Features\n\n- **Removal of Unpaired Quotes:** TextQuoter ensures clean text by eliminating unpaired quotes.\n \n- **Quotation Style:** Choose between the standard `\u201c` and `\u201d` or opt for a simplified style that uses `\"`.\n\n- **User-friendly Design:** TextQuoter features the `requoter` function, making it straightforward and easy to use for handling quotes with minimal effort.\n\n## Installation\n\nTo use ``TextQuoter`` into your project, you need just to install it directly using ``pip install TextQuoter``.\n\n## Usage Example\n```python\nfrom TextQuoter import requoter\n\n# Sample text with mixed quotation styles\nexample = \"\"\"Climbing the treacherous mountain, the group encountered a wise oracle. \u201dTo reach the peak, you must answer my riddles,\" she proclaimed.\nThe bard grinned, \u201d\"Riddles, you say? I've been waiting for this!\\\".\"\"\"\n\n# Using default style\nfixed_quotes_normal = requoter(input_text=example)\n\n# Using simple style\nfixed_quotes_simple = requoter(input_text=example, use_simple=True)\n```\n- In this example, the `requoter` function is applied to the sample text, demonstrating both the default and simple quoting styles.\n\n#### Here is the what can be expected from the output:\n- `fixed_quotes_normal`:\n```\nClimbing the treacherous mountain, the group encountered a wise oracle. \u201cTo reach the peak, you must answer my riddles,\u201d she proclaimed.\nThe bard grinned, \u201cRiddles, you say? I've been waiting for this!\u201d.\n```\n- `fixed_quotes_simple`:\n```\nClimbing the treacherous mountain, the group encountered a wise oracle. \"To reach the peak, you must answer my riddles,\" she proclaimed.\nThe bard grinned, \"Riddles, you say? I've been waiting for this!\".\n```\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "TextQuoter is a versatile Python script designed to simplify the processing of quotation marks in a given string.",
"version": "0.0.1.2",
"project_urls": {
"Homepage": "https://github.com/gr1336/TextQuoter/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ba7650a3a16a0703abffac4aa1edfa3c52e814a86a2610ebc7d0b7a36d249ec1",
"md5": "711d304dbbbe3f5b97037d61c3d382d5",
"sha256": "e0aecd246cacdbf6c8b39c374b988cb0991e3bb94a1f8e4aba9d864deee37106"
},
"downloads": -1,
"filename": "TextQuoter-0.0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "711d304dbbbe3f5b97037d61c3d382d5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4061,
"upload_time": "2024-02-16T00:51:59",
"upload_time_iso_8601": "2024-02-16T00:51:59.573318Z",
"url": "https://files.pythonhosted.org/packages/ba/76/50a3a16a0703abffac4aa1edfa3c52e814a86a2610ebc7d0b7a36d249ec1/TextQuoter-0.0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d8dee402ab5855f096a915ade338f44901600688672c18deb4d43fbf5ccec2dc",
"md5": "fd904497ec1dcc9e488aa46607dd5e5c",
"sha256": "074b6a5dea72abd7ceb36e94499b8823a10bb241428edfac454d7b651188f62e"
},
"downloads": -1,
"filename": "TextQuoter-0.0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "fd904497ec1dcc9e488aa46607dd5e5c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3596,
"upload_time": "2024-02-16T00:52:01",
"upload_time_iso_8601": "2024-02-16T00:52:01.655664Z",
"url": "https://files.pythonhosted.org/packages/d8/de/e402ab5855f096a915ade338f44901600688672c18deb4d43fbf5ccec2dc/TextQuoter-0.0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-16 00:52:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gr1336",
"github_project": "TextQuoter",
"github_not_found": true,
"lcname": "textquoter"
}