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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29484a9e63b485e559b41dca4a526535cf770c18
4
- data.tar.gz: 8d91043131275ad2977dd8430d352ca4e6229455
3
+ metadata.gz: 43ecc6e76ae210cbd9611a53eba7e8b2ea6a4c26
4
+ data.tar.gz: 3d97b81314095d92403a41eb630bd6831b15b126
5
5
  SHA512:
6
- metadata.gz: 17d33b3f64c467ef0fa29c18b4b96ef50c319fdf96f3dab1ade86b4cef1dcd01265738ff4a2828086d0600886c6ff6f8b2b0c0825be2cd7d81ffe7d33114b1c7
7
- data.tar.gz: b4229903cadcc6ffabe7da76f9cca328e4cb5059692da16acb83924b6d9be86ada2e834ea1ad0db9aaf9450d5b401bdc2c7627122fe2b399681c4c29c9f413e2
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
@@ -1,3 +1,3 @@
1
1
  module Konjak
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: konjak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seiei Higa