zpl-transformer 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Changelog.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/zpl-transformer/transformer/generic_scaler.rb +8 -0
- data/lib/zpl-transformer/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4e23fcefad60e96255d1e259576e0c67571ab97d3896ba27d29a059961993c7f
|
4
|
+
data.tar.gz: 3485c2f1bec85c879e758579892b99b29938b4e0a7c8d75f8ea71a7a608d4c3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b21723ceaac4193f7c7a70754a5e108804533877c00e71cb6c70adfeead0b930e16c4cec2d12e2400cf984b57fe1d77fe85e11ef81d216b5be7e2f640c8ab371
|
7
|
+
data.tar.gz: 3d2c29f5fc6830dff43738a63f036e13d3cf800d3895b266285b3f3f2680654d369e61e5f22bf0b7f4e32bfc13e214a1938327e569ea56dba0f1630d25be9255
|
data/Changelog.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -44,6 +44,7 @@ List of commands that can be scaled currently:
|
|
44
44
|
- `^GB` - Graphic Box
|
45
45
|
- `^BC` - Code 128 Bar Code (Subsets A, B, and C)
|
46
46
|
- `^PW` - Print Width
|
47
|
+
- `^FT` - Field Typeset
|
47
48
|
|
48
49
|
These commands have at least one argument that is a coordinate (in dots) and need to be recalculated (scaled).
|
49
50
|
The non-coordinate arguments and all other commands not listed above are not touched and left as is.
|
@@ -59,6 +59,14 @@ module Zpl::Transformer
|
|
59
59
|
#
|
60
60
|
# Param 0: label width in dots
|
61
61
|
"PW" => [0],
|
62
|
+
|
63
|
+
# ^FT - Field Typeset
|
64
|
+
# This command sets relative position to LabelHome (which can be set by ^LH)
|
65
|
+
#
|
66
|
+
# Param 0: x-axis location in dots
|
67
|
+
# Param 1: y-axis location in dots
|
68
|
+
# Param 3: justification (enum)
|
69
|
+
"FT" => [0, 1],
|
62
70
|
}
|
63
71
|
|
64
72
|
def map_cmd(cmd)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zpl-transformer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoit de Chezelles
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -102,8 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
requirements: []
|
105
|
-
|
106
|
-
rubygems_version: 2.5.1
|
105
|
+
rubygems_version: 3.0.3
|
107
106
|
signing_key:
|
108
107
|
specification_version: 4
|
109
108
|
summary: Simple gem to scale ZPL label
|