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
requoterfunction, 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
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
requoterfunction 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!".
Metadata
Release files for TextQuoter 0.0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| TextQuoter-0.0.1.2.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| TextQuoter-0.0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / TextQuoter-0.0.1.2.tar.gz
| Download URL | TextQuoter-0.0.1.2.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
074b6a5dea72abd7ceb36e94499b8823a10bb241428edfac454d7b651188f62e
|
|
BLAKE2b-256 checksum How to use checksums |
d8dee402ab5855f096a915ade338f44901600688672c18deb4d43fbf5ccec2dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / TextQuoter-0.0.1.2-py3-none-any.whl
| Download URL | TextQuoter-0.0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0aecd246cacdbf6c8b39c374b988cb0991e3bb94a1f8e4aba9d864deee37106
|
|
BLAKE2b-256 checksum How to use checksums |
ba7650a3a16a0703abffac4aa1edfa3c52e814a86a2610ebc7d0b7a36d249ec1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|