A print tool that wraps text to a specified width.
Project description
A print tool that wraps text to a specified width.
Usage:
from wrap_print import WrapPrint
wp = WrapPrint(20)
wp.print('12345678901234567890')
wp.print('This module provides access to', end='')
wp.print(' the Unicode Character Database (UCD)', end='')
wp.print(' which defines character properties', end='')
wp.print(' for all Unicode characters. The data contained', end='')
wp.print(' in this database is compiled from the UCD version 15.1.0.')
wp.print('這個模組提供了對 Unicode 字元資料庫(UCD)的存取,', end='')
wp.print('該資料庫定義了所有 Unicode 字元的字元屬性。', end='')
wp.print('這個資料庫中的資料是從 UCD 15.1.0 版本編譯而來的。')
Result:
12345678901234567890
This module provides
access to the Unico
de Character Databas
e (UCD) which define
s character properti
es for all Unicode c
haracters. The data
contained in this da
tabase is compiled f
rom the UCD version
15.1.0.
這個模組提供了對 Uni
code 字元資料庫(UCD
)的存取,該資料庫定
義了所有 Unicode 字元
的字元屬性。這個資料
庫中的資料是從 UCD 1
5.1.0 版本編譯而來的
。
It counts the CJK wide characters the fullwidth characters as 2 characters.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wrap_print-0.1.4-py3-none-any.whl.
File metadata
- Download URL: wrap_print-0.1.4-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a109ed4e4e377dcefb1a3ae443c4f0d0b9bfcd38c87c82ee8ca4305a9dd66be
|
|
| MD5 |
1ced011763aeaabc213db256cd2684f5
|
|
| BLAKE2b-256 |
b95118f95a4e1efe73d19f587b05200b7b94a0a1f44bc6ae3ba24d87e3bb28c8
|