docs(samples): add QR/barcode merge template and CLI example
Add code.svg/code.yml placeholders for data-kb-placeholder qr/barcode. Extend samples README with ptouch-label command using these files. Made-with: Cursor
This commit is contained in:
@@ -13,4 +13,5 @@
|
|||||||
```bash
|
```bash
|
||||||
ruby -I ruby/lib ruby/exe/ptouch-label -n --template samples/merge_template.svg --data samples/merge_data.yml
|
ruby -I ruby/lib ruby/exe/ptouch-label -n --template samples/merge_template.svg --data samples/merge_data.yml
|
||||||
ruby -I ruby/lib ruby/exe/ptouch-label -n --template samples/merge_template.svg --data samples/merge_data.json
|
ruby -I ruby/lib ruby/exe/ptouch-label -n --template samples/merge_template.svg --data samples/merge_data.json
|
||||||
|
ruby -I ruby/lib ruby/exe/ptouch-label -n --template samples/code.svg --data samples/code.yml
|
||||||
```
|
```
|
||||||
|
|||||||
7
samples/code.svg
Normal file
7
samples/code.svg
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 36" width="100mm" height="36mm">
|
||||||
|
<rect x="0.25" y="0.25" width="99.75" height="35.75" fill="#ffffff" stroke="#000000" stroke-width="0.25"/>
|
||||||
|
<text x="2" y="7" font-size="4.5" fill="#000000" font-family="sans-serif" data-field="itemName">サンプル備品</text>
|
||||||
|
<text x="2" y="14" font-size="3.2" fill="#000000" font-family="sans-serif" data-field="model">KB-001</text>
|
||||||
|
<rect x="78" y="3" width="18.25" height="18.25" fill="none" stroke="#000000" stroke-width="0.25" stroke-dasharray="1 0.8" data-field="qrText" data-kb-placeholder="qr"/>
|
||||||
|
<rect x="8" y="24" width="72.25" height="8.25" fill="none" stroke="#000000" stroke-width="0.25" stroke-dasharray="1 0.6" data-field="barcodeText" data-kb-placeholder="barcode"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 781 B |
4
samples/code.yml
Normal file
4
samples/code.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
itemName: "サンプル備品 001"
|
||||||
|
model: "KB-002"
|
||||||
|
qrText: "https://wwww.artif.org"
|
||||||
|
barcodeText: "KB001"
|
||||||
Reference in New Issue
Block a user