Skip to main content

拼音汉字田字格A4模版, 排版后生成Pillow Image

Project description

pinyinCopybook

拼音汉字田字格A4模版, 排版后生成Pillow Image, 不依赖外部排版包

==================================

使用说明

目前支持A4纸,每行8格、12格汉字拼音混排,以及纯拼音版式。如有其他格式需求,可以自行扩展。

  • 每页8行,每行8格拼音混排,使用:
from pinyinCopybook import Template

page = Template.generate_a4_grid_page(8)
  • 每页11行,每行12格拼音混排,使用:
page = Template.generate_a4_grid_page(12)
  • 纯拼音,使用:
page = Template.generate_a4_pinyin_page()
  • 添加汉字和对应拼音
page.add_content('你', 'nǐ')
page.add_content('好', 'hǎo')
page.add_content(',', ',', 0, 1)
page.add_content('拼', 'pīn')
page.add_content('音', 'yīn')
page.add_content('世', 'shì')
page.add_content('界', 'jiè')
success = page.add_content('!', '!', 0, 1)
hello, pinyin world

自动换行,当写满一页时返回 False;更详细的用法请参考tests中的例子。

开源协议

本软件采用Apache 2.0协议,使用时请保留原始许可声明。

捐赠方式

如果您愿意给予我一点小小的支持,请扫码捐赠一杯咖啡吧,非常感谢!

支付宝 微信支付

页面效果

  • 每行8格拼音混排,适用阅读入门阶段

    每行8格
  • 每行12格拼音混排,适用开始段落阅读阶段

    每行12格
  • 纯拼音版式,适合强化整体音节拼读

    纯拼音

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pinyinCopybook-0.2.tar.gz (14.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pinyinCopybook-0.2-py3-none-any.whl (14.3 MB view details)

Uploaded Python 3

File details

Details for the file pinyinCopybook-0.2.tar.gz.

File metadata

  • Download URL: pinyinCopybook-0.2.tar.gz
  • Upload date:
  • Size: 14.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pinyinCopybook-0.2.tar.gz
Algorithm Hash digest
SHA256 a915adcdfab3ce431aa6e46ca8eadf91d704875fea996b5d8d5040e82e1cd4a7
MD5 8b9d390c34993b9fb8a44f4717fdbe68
BLAKE2b-256 ee20e070622796cdb358c4e57608a9e344e4eff07a0e3fa9a32f0799d0e782c8

See more details on using hashes here.

File details

Details for the file pinyinCopybook-0.2-py3-none-any.whl.

File metadata

  • Download URL: pinyinCopybook-0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pinyinCopybook-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 744003991355a1f9efddb9c01ea44b9a5ff84e4e4d6c4d6ec8f95a8688533a1f
MD5 90372f6aee1aa8b34268706b722bc6cc
BLAKE2b-256 f42d24435894c50fdb5cfcbe04d86b75dbe7225e22d287790b25d0e1c8d62c44

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page