aozora2html 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 840a166919aa955cec4bdead0375f761d51f9786
4
- data.tar.gz: 5137110c4416f5b63b259f04ba61a7e02d4e4114
3
+ metadata.gz: bfb62ea54699175cfd3c28221df421d4eb74f5cd
4
+ data.tar.gz: 2832eaea05cba1157cc74ac0dc195317230d58da
5
5
  SHA512:
6
- metadata.gz: e30c970ee45ee0a7394541fcfe0d0223cf0e1b36b58aec2c662f3967a442f75e88eb31e78e3bf6c78d917a49b1e6f915420bd5f25307dc91c53e72ab35cb762e
7
- data.tar.gz: 3fbcd4e47edfaa127670a72825267943503f8379899cc83cdfb4e8504f48dd1fe0f8cc347d4f2d9b3c9fd09eab793eec473fc3fe9dcad03d7d677dfb7779b424
6
+ metadata.gz: e52e8b81a6acc325dc0a518e37a29631de53f4984482192ba274fe81432322068bb323191ebd2b28349f810bc1496eb067d2dafe93a3d90ed47ec04ec08f3870
7
+ data.tar.gz: 5c5efd22f9a8e10d0aeedc7564f668679fd17acf2552b1557c8278babd25677c92116142d0063ab8fea8b7bd3c8c0bfa7197e8e920a70cebbbe3d434097a9d15
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ <a name="0.6.1"></a>
2
+ ## 0.6.1
3
+
4
+ ### Bug Fixes
5
+
6
+ * Encoding::CompatibilityErrorエラーが出ることがあるのを修正した
7
+ * READMEに説明を追加した
8
+
1
9
  <a name="0.6.0"></a>
2
10
  ## 0.6.0
3
11
 
data/README.md CHANGED
@@ -51,9 +51,16 @@ $ aozora2html http://example.jp/foo/bar.zip foo.html
51
51
  $ aozora2html foo.txt
52
52
  ```
53
53
 
54
- コマンドラインオプションとして`--gaiji-dir`と`--use-jisx0213`があります。
54
+ コマンドラインオプションとして`--gaiji-dir`と`--use-jisx0213`、`--use-unicode`があります。
55
55
  `--gaiji-dir`は外字画像のパスを指定します。
56
56
  `--use-jisx0213`はJIS X 0213の外字画像を使わず、数値実体参照として表示します。
57
+ `--use-unicode`はUnicodeのコードポイントが指定されている外字を数値実体参照として表示します。
58
+
59
+ 可能な限り数値実体参照を使って表示するには、以下のようにオプションを指定します。
60
+
61
+ ```
62
+ $ aozora2html --use-jisx0213 --use-unicode foo.txt
63
+ ```
57
64
 
58
65
  ## テスト
59
66
 
data/bin/aozora2html CHANGED
@@ -46,7 +46,7 @@ class Aozora2Html
46
46
  escape_gaiji(command)
47
47
  end
48
48
  else
49
- "※"
49
+ "※".encode("shift_jis")
50
50
  end
51
51
  end
52
52
  end
@@ -1,3 +1,3 @@
1
1
  class Aozora2Html
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aozora2html
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - aozorahack team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2015-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip