konjak 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/konjak/parser.rb +3 -1
- data/lib/konjak/version.rb +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: 43ecc6e76ae210cbd9611a53eba7e8b2ea6a4c26
|
4
|
+
data.tar.gz: 3d97b81314095d92403a41eb630bd6831b15b126
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88658975451acdf0265ad0ac4b8f5dd9aae6f026633829368f4f22b61859513624d36e593cd8c2369a5735bd2665ead0e8ee05231c07a26c193c9f692eb49d00
|
7
|
+
data.tar.gz: 23a9a0d8c14cd335421722ea1259e5f35e0d694b168080c73a3d548f69a2803fa60d9374ea14c28e503201b7203fad8c980b1e07630eacfce712fc1b2e3dfd78
|
data/lib/konjak/parser.rb
CHANGED
@@ -10,8 +10,10 @@ module Konjak
|
|
10
10
|
|
11
11
|
def parse(xml)
|
12
12
|
if gtt
|
13
|
-
# FIXME
|
13
|
+
# FIXME GTT's tmx store © as ©
|
14
14
|
xml = xml.gsub(/&(#\d+|#x[0-9a-fA-F]+|[0-9a-zA-Z]+);/) { "&#{$1};" }
|
15
|
+
# FIXME GTT's tmx store leading space(\u0020) as non-breaking space(\u00A0)
|
16
|
+
xml = xml.gsub("\u00A0", ' ')
|
15
17
|
end
|
16
18
|
doc = Nokogiri::XML.parse(xml)
|
17
19
|
Tmx.new doc
|
data/lib/konjak/version.rb
CHANGED