SpacemanX (失傳的空格)
很久以前,當人類仍然知道全形與半形字集的區別時,一個受過教育的打字者會注意把全型字符和半型字符之間加一個「空格」。後來,隨著文明的崩解與人類集體智力表現的衰退,這個古老的技能漸漸被遺忘了。
SpacemanX 脫胎自 Python2 時代的 Spaceman,在 Python3.6+ 的版本可以運作。它的功能就是確保「半型符號」和「全型符號」之間至少有一個空格。例如 用English寫2次 經過 SpacemanX 處理後,會成為 用 English 寫 2 次 (注意到 English 這個半型字串和前後的全型字符之間多了空格,且 2 這個半型字符也和前後的全型字符之間多了空格)。
主要功能:
- 加空格!(不然你期待什麼?發射火箭嗎?)
功能:
- 輸入字串 => 輸出字串
- 輸入檔案 => 輸出檔案
- 模式 (mode) 可選為 "modest"(預設值) 或 "strong"
- modest 模式 (預設值)
import SpacemanX inputSTR = "這是一個(English)測試" resultSTR = SpacemanX.makeroom(inputSTR) print(resultSTR) # "這是一個 (English) 測試" 括號前後的半型字符不加空格。 # 適合閱讀使用
- strong 模式
import SpacemanX inputSTR = "這是一個(English)測試" resultSTR = SpacemanX.makeroom(inputSTR, mode="strong") print(resultSTR) # "這是一個 ( English ) 測試" 括號前後也加上空格。 # 適合 NLP 前處理使用
Metadata
Release files for SpacemanX 0.99
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| SpacemanX-0.99.tar.gz | 5.5 kB | Without provenance | Details for SpacemanX-0.99.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| SpacemanX-0.99-py3-none-any.whl | Python 3 | none | any | Details for SpacemanX-0.99-py3-none-any.whl |
Total release size: 11.2 kB
Release files / SpacemanX-0.99.tar.gz
| Download URL | SpacemanX-0.99.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1de6c3125afbe634e3dd8a0c9c230b50da0fb119ee3ffa2d031973a02c737f8
|
|
BLAKE2b-256 checksum How to use checksums |
e1139ae9dfcb20c30ce6980729c7a76f56699da589ebc9d53ba28d5d98d7cd11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.9
|
Release files / SpacemanX-0.99-py3-none-any.whl
| Download URL | SpacemanX-0.99-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
def7aec25be8c13a3abca1ac87b5b2fa2b90dfea25f898da694f436abfcde120
|
|
BLAKE2b-256 checksum How to use checksums |
69184a030687b0b290a573b0b8bc7e31414e9992dc7ee8b4102e739a1021b17d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.9
|
Security for SpacemanX 0.99
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.