hershey 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hershey/document.rb +2 -2
- data/lib/hershey/version.rb +1 -1
- data/spec/ex.svg +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1d369a961b88080090e905175732f71280ba796
|
4
|
+
data.tar.gz: f74a3fd226e961b6f0e35c14dcf1b18f9fbc2c41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 802d3d453dd9036a60d5b71fd313b401dbd063375570bf939713c3c18f79f3d20119b332e65ddac6e5e8782803e3fe2081110e64ed79c2441afe7d3b778b7a6d
|
7
|
+
data.tar.gz: f8a2e3db4d69ce7a5f6e5ffd88bbeba0ea428dfb1c0940019412e904d1c24fab1d86b42bf4e834fcc25a0f83aa5aee2a4a88062f08edd070ffa47fe2738ef46b
|
data/lib/hershey/document.rb
CHANGED
@@ -27,13 +27,13 @@ module Hershey
|
|
27
27
|
word = ""
|
28
28
|
text.each_char do |c|
|
29
29
|
if c == " "
|
30
|
-
@words << :space
|
31
30
|
@words << Word.new(word, font: @font)
|
32
31
|
word = ''
|
32
|
+
@words << :space
|
33
33
|
elsif c == "\n"
|
34
|
-
@words << :break
|
35
34
|
@words << Word.new(word, font: @font)
|
36
35
|
word = ''
|
36
|
+
@words << :break
|
37
37
|
else
|
38
38
|
word << c
|
39
39
|
end
|
data/lib/hershey/version.rb
CHANGED
data/spec/ex.svg
CHANGED
@@ -3,4 +3,4 @@
|
|
3
3
|
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
4
4
|
<svg width="500" height="40" version="1.1"
|
5
5
|
xmlns="http://www.w3.org/2000/svg">
|
6
|
-
<g transform="translate(10,20)"><g transform="translate(
|
6
|
+
<g transform="translate(10,20)"><g transform="translate(10,0)"><path stroke="black" fill="none" d="M0 -12 L0 9" transform="translate(4,0)"></path><path stroke="black" fill="none" d="M0 -12 L0 5 L1 8 L3 9 L5 9 M-3 -5 L4 -5" transform="translate(13,0)"></path><path stroke="black" fill="none" d="M0 -10 L-1 -11 L0 -12 L1 -11 L1 -9 L0 -7 L-1 -6" transform="translate(25,0)"></path><path stroke="black" fill="none" d="M6 -2 L5 -4 L2 -5 L-1 -5 L-4 -4 L-5 -2 L-4 0 L-2 1 L3 2 L5 3 L6 5 L6 6 L5 8 L2 9 L-1 9 L-4 8 L-5 6" transform="translate(38,0)"></path></g><g transform="translate(73,0)"><path stroke="black" fill="none" d="M6 -5 L6 9 M6 -2 L4 -4 L2 -5 L-1 -5 L-3 -4 L-5 -2 L-6 1 L-6 3 L-5 6 L-3 8 L-1 9 L2 9 L4 8 L6 6" transform="translate(9,0)"></path><path stroke="black" fill="none" d="M0 -12 L0 9" transform="translate(23,0)"></path><path stroke="black" fill="none" d="M0 -12 L0 9" transform="translate(31,0)"></path></g><g transform="translate(124,0)"><path stroke="black" fill="none" d="M-2 -12 L-4 -11 L-6 -9 L-7 -7 L-8 -4 L-8 1 L-7 4 L-6 6 L-4 8 L-2 9 L2 9 L4 8 L6 6 L7 4 L8 1 L8 -4 L7 -7 L6 -9 L4 -11 L2 -12 L-2 -12" transform="translate(11,0)"></path><path stroke="black" fill="none" d="M-7 -12 L-7 9 M7 -12 L-7 2 M-2 -3 L7 9" transform="translate(33,0)"></path><path stroke="black" fill="none" d="M0 -12 L-8 9 M0 -12 L8 9 M-5 2 L5 2" transform="translate(52,0)"></path><path stroke="black" fill="none" d="M-8 -12 L0 -2 L0 9 M8 -12 L0 -2" transform="translate(70,0)"></path><path stroke="black" fill="none" d="M0 -12 L0 2 M0 7 L-1 8 L0 9 L1 8 L0 7" transform="translate(84,0)"></path></g></g></svg>
|