Skip to content

Commit c97f28e

Browse files
committed
docs: translate README to English and update usage examples
1 parent dde011a commit c97f28e

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# tppt
22

3-
tpptは型安全なPowerPointプレゼンテーションビルダーです。このライブラリを使用すると、Pythonコードからパワーポイントを簡単に生成できます。
3+
tppt is a type-safe PowerPoint presentation builder. This library allows you to easily generate PowerPoint presentations from Python code.
44

5-
## インストール
5+
## Installation
66

77
```bash
88
pip install tppt
99
```
1010

11-
## 使用例
11+
## Usage Example
1212

1313
```python
1414
from pathlib import Path
1515
import tppt
1616
from tppt.types import Color
1717

18-
# ビルダーパターンを使用してプレゼンテーションを作成
18+
# Create a presentation using the builder pattern
1919
presentation = (
2020
tppt.Presentation.builder()
2121
.slide(
@@ -42,7 +42,7 @@ presentation = (
4242
.slide(
4343
tppt.SlideBuilder()
4444
.text(
45-
"画像の例",
45+
"Image Example",
4646
left=(50, "pt"),
4747
top=(50, "pt"),
4848
width=(300, "pt"),
@@ -59,17 +59,17 @@ presentation = (
5959
.slide(
6060
tppt.SlideBuilder()
6161
.text(
62-
"表の例",
62+
"Table Example",
6363
left=(50, "pt"),
6464
top=(50, "pt"),
6565
width=(300, "pt"),
6666
height=(40, "pt"),
6767
)
6868
.table(
6969
[
70-
["製品", "価格", "在庫"],
71-
["製品A", "¥1,000", "10個"],
72-
["製品B", "¥2,500", "5個"],
70+
["Product", "Price", "Stock"],
71+
["Product A", "$10.00", "10 units"],
72+
["Product B", "$25.00", "5 units"],
7373
],
7474
left=(50, "pt"),
7575
top=(100, "pt"),
@@ -80,29 +80,29 @@ presentation = (
8080
.build()
8181
)
8282

83-
# プレゼンテーションを保存
83+
# Save the presentation
8484
presentation.save("output.pptx")
8585
```
8686

87-
## 特徴
87+
## Features
8888

89-
- 型安全なインターフェース
90-
- ビルダーパターンによる直感的なAPI
91-
- テキスト、画像、表などの要素を簡単に配置
92-
- 位置やサイズの細かな調整が可能
93-
- テキストのスタイル(サイズ、太字、斜体、色)のカスタマイズ
89+
- Type-safe interface
90+
- Intuitive API with builder pattern
91+
- Easy placement of text, images, and tables
92+
- Fine-tuned control over position and size
93+
- Customization of text styles (size, bold, italic, color)
9494

95-
## アーキテクチャ
95+
## Architecture
9696

97-
このライブラリは以下のモジュールで構成されています:
97+
This library consists of the following modules:
9898

99-
- `types`: 長さや色などの型安全な基本型
100-
- `_data`: データクラス
101-
- `_builders`: ビルダーパターンの実装
102-
- `_presentation`: プレゼンテーションクラス
103-
- `_slide_master`: スライドマスタークラス
104-
- `_tppt`: python-pptxとのインターフェース
99+
- `types`: Type-safe basic types for length, color, etc.
100+
- `_data`: Data classes
101+
- `_builders`: Implementation of the builder pattern
102+
- `_presentation`: Presentation class
103+
- `_slide_master`: Slide master class
104+
- `_tppt`: Interface with python-pptx
105105

106-
## ライセンス
106+
## License
107107

108108
MIT

0 commit comments

Comments
 (0)