pwim-emoticon 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "emoticon"
3
- s.version = "0.0.3"
3
+ s.version = "0.0.4"
4
4
  s.date = "2008-11-12"
5
5
  s.summary = "Emoticon (emoji) handling for Japanese mobile phones"
6
6
  s.email = "paul@tokyodev.com"
@@ -1245,6 +1245,7 @@ CONVERSION_TABLE_TO_AU = {
1245
1245
  0xE64F=>0xE498,
1246
1246
  0xE650=>0xE499,
1247
1247
  0xE651=>0xE49A,
1248
+ 0xE652=>0xE46B,
1248
1249
  0xE653=>0xE4BA,
1249
1250
  0xE654=>0xE599,
1250
1251
  0xE655=>0xE4B7,
@@ -1283,6 +1284,7 @@ CONVERSION_TABLE_TO_AU = {
1283
1284
  0xE676=>0xE503,
1284
1285
  0xE677=>0xE517,
1285
1286
  0xE678=>0xE555,
1287
+ 0xE679=>0xE46D,
1286
1288
  0xE67A=>0xE508,
1287
1289
  0xE67B=>0xE59C,
1288
1290
  0xE67C=>0xEAF5,
@@ -1321,7 +1323,7 @@ CONVERSION_TABLE_TO_AU = {
1321
1323
  0xE69D=>0xE5A9,
1322
1324
  0xE69E=>0xE5AA,
1323
1325
  0xE69F=>0xE486,
1324
- 0xE6A0=>'○',
1326
+ 0xE6A0=>0xE489,
1325
1327
  0xE6A1=>0xE4E1,
1326
1328
  0xE6A2=>0xE4DB,
1327
1329
  0xE6A3=>0xE4B4,
@@ -1330,11 +1332,11 @@ CONVERSION_TABLE_TO_AU = {
1330
1332
  0xE6CE=>0xEB08,
1331
1333
  0xE6CF=>0xEB62,
1332
1334
  0xE6D0=>0xE520,
1333
- 0xE6D1=>'[iモード]',
1334
- 0xE6D2=>'[iモード]',
1335
+ 0xE6D1=>0xE577,
1336
+ 0xE6D2=>0xE577,
1335
1337
  0xE6D3=>0xE521,
1336
- 0xE6D4=>'[ドコモ]',
1337
- 0xE6D5=>'[ドコモポイント]',
1338
+ 0xE6D4=>0xE577,
1339
+ 0xE6D5=>0xE4C7,
1338
1340
  0xE6D6=>0xE57D,
1339
1341
  0xE6D7=>0xE578,
1340
1342
  0xE6D8=>0xEA88,
@@ -1344,7 +1346,7 @@ CONVERSION_TABLE_TO_AU = {
1344
1346
  0xE6DC=>0xE518,
1345
1347
  0xE6DD=>0xE5B5,
1346
1348
  0xE6DE=>0xEB2C,
1347
- 0xE6DF=>'[フリーダイヤル]',
1349
+ 0xE6DF=>0xE590,
1348
1350
  0xE6E0=>0xEB84,
1349
1351
  0xE6E1=>0xE52C,
1350
1352
  0xE6E2=>0xE522,
@@ -1370,6 +1372,7 @@ CONVERSION_TABLE_TO_AU = {
1370
1372
  0xE6F5=>0xEB2D,
1371
1373
  0xE6F6=>0xE5BE,
1372
1374
  0xE6F7=>0xE4BC,
1375
+ 0xE6F8=>0xEB49,
1373
1376
  0xE6F9=>0xE4EB,
1374
1377
  0xE6FA=>0xEAAB,
1375
1378
  0xE6FB=>0xE476,
@@ -1386,25 +1389,27 @@ CONVERSION_TABLE_TO_AU = {
1386
1389
  0xE706=>0xE5B1,
1387
1390
  0xE707=>0xE4E6,
1388
1391
  0xE708=>0xE4F4,
1392
+ 0xE709=>0xE4F4,
1389
1393
  0xE70A=>0xEB31,
1390
1394
  0xE6AC=>0xE4BE,
1391
- 0xE6AD=>'[ふくろ]',
1395
+ 0xE6AD=>0xE4C7,
1392
1396
  0xE6AE=>0xEB03,
1393
- 0xE6B2=>'[いす]',
1397
+ 0xE6B1=>0xE4FB,
1398
+ 0xE6B2=>0xE481,
1394
1399
  0xE6B3=>0xEAF1,
1395
- 0xE6B7=>'[SOON]',
1396
- 0xE6B8=>'[ON]',
1397
- 0xE6B9=>'[end]',
1400
+ 0xE6B7=>0xE552,
1401
+ 0xE6B8=>0xEB7A,
1402
+ 0xE6B9=>0xE553,
1398
1403
  0xE6BA=>0xE594,
1399
- 0xE70C=>'[iアプリ]',
1400
- 0xE70D=>'[iアプリ]',
1404
+ 0xE70C=>0xE577,
1405
+ 0xE70D=>0xE577,
1401
1406
  0xE70E=>0xE5B6,
1402
1407
  0xE70F=>0xE504,
1403
1408
  0xE710=>0xE509,
1404
1409
  0xE711=>0xEB77,
1405
1410
  0xE712=>0xE4B8,
1406
1411
  0xE713=>0xE512,
1407
- 0xE714=>'[ドア]',
1412
+ 0xE714=>0xEB09,
1408
1413
  0xE715=>0xE4C7,
1409
1414
  0xE716=>0xE5B8,
1410
1415
  0xE717=>0xEB78,
@@ -1418,7 +1423,7 @@ CONVERSION_TABLE_TO_AU = {
1418
1423
  0xE71F=>0xE57A,
1419
1424
  0xE720=>0xEAC0,
1420
1425
  0xE721=>0xEAC5,
1421
- 0xE722=>'%e257%%e330%',
1426
+ 0xE722=>0xE5C6,
1422
1427
  0xE723=>0xE5C6,
1423
1428
  0xE724=>0xEB5D,
1424
1429
  0xE725=>0xEAC9,
@@ -1431,7 +1436,7 @@ CONVERSION_TABLE_TO_AU = {
1431
1436
  0xE72C=>0xEABF,
1432
1437
  0xE72D=>0xE473,
1433
1438
  0xE72E=>0xEB69,
1434
- 0xE72F=>'[NG]',
1439
+ 0xE72F=>0xE550,
1435
1440
  0xE730=>0xE4A0,
1436
1441
  0xE731=>0xE558,
1437
1442
  0xE732=>0xE54E,
@@ -1440,9 +1445,9 @@ CONVERSION_TABLE_TO_AU = {
1440
1445
  0xE735=>0xEB79,
1441
1446
  0xE736=>0xE559,
1442
1447
  0xE737=>0xE481,
1443
- 0xE738=>'[禁]',
1448
+ 0xE738=>0xE550,
1444
1449
  0xE739=>0xEA8A,
1445
- 0xE73A=>'[合]',
1450
+ 0xE73A=>0xE4F0,
1446
1451
  0xE73B=>0xEA89,
1447
1452
  0xE73C=>0xEB7A,
1448
1453
  0xE73D=>0xEB7B,
@@ -2581,7 +2586,7 @@ CONVERSION_TABLE_TO_SOFTBANK = {
2581
2586
  0xE641=>0xF048,
2582
2587
  0xE642=>0xF13D,
2583
2588
  0xE643=>0xF443,
2584
- 0xE644=>'[霧]',
2589
+ 0xE644=>0xF049,
2585
2590
  0xE645=>0xF43C,
2586
2591
  0xE646=>0xF23F,
2587
2592
  0xE647=>0xF240,
@@ -2595,6 +2600,7 @@ CONVERSION_TABLE_TO_SOFTBANK = {
2595
2600
  0xE64F=>0xF248,
2596
2601
  0xE650=>0xF249,
2597
2602
  0xE651=>0xF24A,
2603
+ 0xE652=>0xF115,
2598
2604
  0xE653=>0xF016,
2599
2605
  0xE654=>0xF014,
2600
2606
  0xE655=>0xF015,
@@ -2602,7 +2608,7 @@ CONVERSION_TABLE_TO_SOFTBANK = {
2602
2608
  0xE657=>0xF013,
2603
2609
  0xE658=>0xF42A,
2604
2610
  0xE659=>0xF132,
2605
- 0xE65A=>'[ポケベル]',
2611
+ 0xE65A=>0xF00A,
2606
2612
  0xE65B=>0xF01E,
2607
2613
  0xE65C=>0xF434,
2608
2614
  0xE65D=>0xF435,
@@ -2633,9 +2639,11 @@ CONVERSION_TABLE_TO_SOFTBANK = {
2633
2639
  0xE676=>0xF03C,
2634
2640
  0xE677=>0xF03D,
2635
2641
  0xE678=>0xF236,
2642
+ 0xE679=>0xF124,
2636
2643
  0xE67A=>0xF30A,
2637
2644
  0xE67B=>0xF502,
2638
2645
  0xE67C=>0xF503,
2646
+ 0xE67D=>0xF143,
2639
2647
  0xE67E=>0xF125,
2640
2648
  0xE67F=>0xF30E,
2641
2649
  0xE680=>0xF208,
@@ -2649,7 +2657,7 @@ CONVERSION_TABLE_TO_SOFTBANK = {
2649
2657
  0xE688=>0xF00A,
2650
2658
  0xE689=>0xF301,
2651
2659
  0xE68A=>0xF12A,
2652
- 0xE68B=>'[ゲーム]',
2660
+ 0xE68B=>0xF12B,
2653
2661
  0xE68C=>0xF126,
2654
2662
  0xE68D=>0xF20C,
2655
2663
  0xE68E=>0xF20E,
@@ -2664,13 +2672,13 @@ CONVERSION_TABLE_TO_SOFTBANK = {
2664
2672
  0xE697=>0xF237,
2665
2673
  0xE698=>0xF536,
2666
2674
  0xE699=>0xF007,
2667
- 0xE69A=>'[メガネ]',
2675
+ 0xE69A=>0xF211,
2668
2676
  0xE69B=>0xF20A,
2669
- 0xE69C=>'●',
2677
+ 0xE69C=>0xF04C,
2670
2678
  0xE69D=>0xF04C,
2671
2679
  0xE69E=>0xF04C,
2672
2680
  0xE69F=>0xF04C,
2673
- 0xE6A0=>'○',
2681
+ 0xE6A0=>0xF04C,
2674
2682
  0xE6A1=>0xF052,
2675
2683
  0xE6A2=>0xF04F,
2676
2684
  0xE6A3=>0xF01C,
@@ -2679,21 +2687,23 @@ CONVERSION_TABLE_TO_SOFTBANK = {
2679
2687
  0xE6CE=>0xF104,
2680
2688
  0xE6CF=>0xF103,
2681
2689
  0xE6D0=>0xF00B,
2682
- 0xE6D1=>'[iモード]',
2683
- 0xE6D2=>'[iモード]',
2690
+ 0xE6D1=>0xF00A,
2691
+ 0xE6D2=>0xF00A,
2684
2692
  0xE6D3=>0xF103,
2685
- 0xE6D4=>'[ドコモ]',
2686
- 0xE6D5=>'[ドコモポイント]',
2687
- 0xE6D6=>'¥',
2688
- 0xE6D7=>'[FREE]',
2693
+ 0xE6D4=>0xF00A,
2694
+ 0xE6D5=>0xF12F,
2695
+ 0xE6D6=>0xF215,
2696
+ 0xE6D7=>0xF216,
2689
2697
  0xE6D8=>0xF229,
2690
2698
  0xE6D9=>0xF03F,
2691
- 0xE6DB=>'[CL]',
2699
+ 0xE6DA=>0xF235,
2700
+ 0xE6DB=>0xF333,
2692
2701
  0xE6DC=>0xF114,
2693
2702
  0xE6DD=>0xF212,
2703
+ 0xE6DE=>0xF14B,
2694
2704
  0xE6DF=>0xF211,
2695
2705
  0xE6E0=>0xF210,
2696
- 0xE6E1=>'[Q]',
2706
+ 0xE6E1=>0xF009,
2697
2707
  0xE6E2=>0xF21C,
2698
2708
  0xE6E3=>0xF21D,
2699
2709
  0xE6E4=>0xF21E,
@@ -2717,6 +2727,7 @@ CONVERSION_TABLE_TO_SOFTBANK = {
2717
2727
  0xE6F5=>0xF236,
2718
2728
  0xE6F6=>0xF03E,
2719
2729
  0xE6F7=>0xF123,
2730
+ 0xE6F8=>0xF032,
2720
2731
  0xE6F9=>0xF003,
2721
2732
  0xE6FA=>0xF32E,
2722
2733
  0xE6FB=>0xF10F,
@@ -2727,43 +2738,47 @@ CONVERSION_TABLE_TO_SOFTBANK = {
2727
2738
  0xE700=>0xF238,
2728
2739
  0xE701=>0xF13C,
2729
2740
  0xE702=>0xF021,
2730
- 0xE703=>'!?',
2731
- 0xE704=>'!!',
2741
+ 0xE703=>0xF020,
2742
+ 0xE704=>0xF021,
2743
+ 0xE705=>0xF116,
2732
2744
  0xE706=>0xF331,
2733
2745
  0xE707=>0xF331,
2734
2746
  0xE708=>0xF330,
2747
+ 0xE709=>0xF249,
2748
+ 0xE70A=>0xF243,
2735
2749
  0xE6AC=>0xF324,
2736
- 0xE6AD=>'[ふくろ]',
2737
- 0xE6AE=>'[ペン]',
2750
+ 0xE6AD=>0xF12F,
2751
+ 0xE6AE=>0xF301,
2752
+ 0xE6B1=>0xF001,
2738
2753
  0xE6B2=>0xF11F,
2739
2754
  0xE6B3=>0xF44B,
2740
- 0xE6B7=>'[SOON]',
2741
- 0xE6B8=>'[ON]',
2742
- 0xE6B9=>'[end]',
2755
+ 0xE6B7=>0xF234,
2756
+ 0xE6B8=>0xF10F,
2757
+ 0xE6B9=>0xF235,
2743
2758
  0xE6BA=>0xF02D,
2744
- 0xE70C=>'[iアプリ]',
2745
- 0xE70D=>'[iアプリ]',
2759
+ 0xE70C=>0xF00A,
2760
+ 0xE70D=>0xF00A,
2746
2761
  0xE70E=>0xF006,
2747
- 0xE70F=>'[財布]',
2762
+ 0xE70F=>0xF12F,
2748
2763
  0xE710=>0xF31C,
2749
- 0xE711=>'[ジーンズ]',
2750
- 0xE712=>'[スノボ]',
2764
+ 0xE711=>0xF006,
2765
+ 0xE712=>0xF019,
2751
2766
  0xE713=>0xF325,
2752
- 0xE714=>'[ドア]',
2767
+ 0xE714=>0xF036,
2753
2768
  0xE715=>0xF12F,
2754
2769
  0xE716=>0xF00C,
2755
- 0xE717=>'%s103%%s340%',
2756
- 0xE718=>'[レンチ]',
2770
+ 0xE717=>0xF103,
2771
+ 0xE718=>0xF116,
2757
2772
  0xE719=>0xF301,
2758
2773
  0xE71A=>0xF10E,
2759
2774
  0xE71B=>0xF034,
2760
- 0xE71C=>'[砂時計]',
2775
+ 0xE71C=>0xF02F,
2761
2776
  0xE71D=>0xF136,
2762
2777
  0xE71E=>0xF338,
2763
- 0xE71F=>'[腕時計]',
2778
+ 0xE71F=>0xF02F,
2764
2779
  0xE720=>0xF403,
2765
2780
  0xE721=>0xF40A,
2766
- 0xE722=>'%s421%%s349%',
2781
+ 0xE722=>0xF108,
2767
2782
  0xE723=>0xF108,
2768
2783
  0xE724=>0xF416,
2769
2784
  0xE725=>0xF40E,
@@ -2776,27 +2791,28 @@ CONVERSION_TABLE_TO_SOFTBANK = {
2776
2791
  0xE72C=>0xF402,
2777
2792
  0xE72D=>0xF411,
2778
2793
  0xE72E=>0xF413,
2779
- 0xE72F=>'[NG]',
2780
- 0xE730=>'[クリップ]',
2794
+ 0xE72F=>0xF333,
2795
+ 0xE730=>0xF301,
2781
2796
  0xE731=>0xF24E,
2782
2797
  0xE732=>0xF537,
2783
2798
  0xE733=>0xF115,
2784
2799
  0xE734=>0xF315,
2800
+ 0xE735=>0xF447,
2785
2801
  0xE736=>0xF24F,
2786
2802
  0xE737=>0xF252,
2787
- 0xE738=>'[禁]',
2803
+ 0xE738=>0xF333,
2788
2804
  0xE739=>0xF22B,
2789
- 0xE73A=>'[合]',
2805
+ 0xE73A=>0xF332,
2790
2806
  0xE73B=>0xF22A,
2791
- 0xE73C=>'⇔',
2792
- 0xE73D=>'↑↓',
2807
+ 0xE73C=>0xF232,
2808
+ 0xE73D=>0xF235,
2793
2809
  0xE73E=>0xF157,
2794
2810
  0xE73F=>0xF43E,
2795
2811
  0xE740=>0xF03B,
2796
2812
  0xE741=>0xF110,
2797
- 0xE742=>'[チェリー]',
2813
+ 0xE742=>0xF345,
2798
2814
  0xE743=>0xF304,
2799
- 0xE744=>'[バナナ]',
2815
+ 0xE744=>0xF356,
2800
2816
  0xE745=>0xF345,
2801
2817
  0xE746=>0xF110,
2802
2818
  0xE747=>0xF118,
@@ -2806,7 +2822,7 @@ CONVERSION_TABLE_TO_SOFTBANK = {
2806
2822
  0xE74B=>0xF30B,
2807
2823
  0xE74C=>0xF340,
2808
2824
  0xE74D=>0xF339,
2809
- 0xE74E=>'[カタツムリ]',
2825
+ 0xE74E=>0xF525,
2810
2826
  0xE74F=>0xF523,
2811
2827
  0xE750=>0xF055,
2812
2828
  0xE751=>0xF019,
@@ -16,10 +16,4 @@ class Emoticon::Transcoder::Jphone < Emoticon::Transcoder::Softbank
16
16
  unicode ? ("&#x%04x;"%unicode) : match
17
17
  end
18
18
  end
19
-
20
- private
21
-
22
- def to_sjis
23
- true
24
- end
25
19
  end
@@ -13,6 +13,10 @@ class Emoticon::Transcoder::Softbank < Emoticon::Transcoder
13
13
 
14
14
  private
15
15
 
16
+ def to_sjis
17
+ true
18
+ end
19
+
16
20
  def conversion_table
17
21
  CONVERSION_TABLE_TO_SOFTBANK
18
22
  end
@@ -11,7 +11,7 @@ class AuTest < Test::Unit::TestCase
11
11
  def test_internal_to_external
12
12
  assert_equal "\xf6\x60", @transcoder.internal_to_external(DOCOMO_CR)
13
13
  assert_equal "\xf6\x60", @transcoder.internal_to_external(DOCOMO_UTF8)
14
- assert_equal "[ドコモポイント]".tosjis, @transcoder.internal_to_external(DOCOMO_DOCOMO_POINT)
14
+ assert_equal "\xf6\xa0", @transcoder.internal_to_external(DOCOMO_DOCOMO_POINT)
15
15
  assert_equal "\xf6\x60", @transcoder.internal_to_external(AU_CR)
16
16
  assert_equal "\xf6\x60", @transcoder.internal_to_external(AU_UTF8)
17
17
  assert_equal "\xf6\x60", @transcoder.internal_to_external(SOFTBANK_CR)
@@ -11,7 +11,7 @@ class JphoneTest < Test::Unit::TestCase
11
11
  def test_internal_to_external
12
12
  assert_equal "\e$Gj\x0f", @transcoder.internal_to_external(DOCOMO_CR)
13
13
  assert_equal "\e$Gj\x0f", @transcoder.internal_to_external(DOCOMO_UTF8)
14
- assert_equal "[ドコモポイント]".tosjis, @transcoder.internal_to_external(DOCOMO_DOCOMO_POINT)
14
+ assert_equal "\e$EO\017", @transcoder.internal_to_external(DOCOMO_DOCOMO_POINT)
15
15
  assert_equal "\e$Gj\x0f", @transcoder.internal_to_external(SOFTBANK_CR)
16
16
  assert_equal "\e$Gj\x0f", @transcoder.internal_to_external(SOFTBANK_UTF8)
17
17
  end
@@ -11,7 +11,7 @@ class SoftbankTest < Test::Unit::TestCase
11
11
  def test_internal_to_external
12
12
  assert_equal "\e$Gj\x0f", @transcoder.internal_to_external(DOCOMO_CR)
13
13
  assert_equal "\e$Gj\x0f", @transcoder.internal_to_external(DOCOMO_UTF8)
14
- assert_equal "[ドコモポイント]", @transcoder.internal_to_external(DOCOMO_DOCOMO_POINT)
14
+ assert_equal "\e$EO\017", @transcoder.internal_to_external(DOCOMO_DOCOMO_POINT)
15
15
  assert_equal "\e$Gj\x0f", @transcoder.internal_to_external(AU_CR)
16
16
  assert_equal "\e$Gj\x0f", @transcoder.internal_to_external(AU_UTF8)
17
17
  assert_equal "\e$Gj\x0f", @transcoder.internal_to_external(SOFTBANK_CR)
@@ -11,7 +11,7 @@ class VodafoneTest < Test::Unit::TestCase
11
11
  def test_internal_to_external
12
12
  assert_equal "\e$Gj\x0f", @transcoder.internal_to_external(DOCOMO_CR)
13
13
  assert_equal "\e$Gj\x0f", @transcoder.internal_to_external(DOCOMO_UTF8)
14
- assert_equal "[ドコモポイント]", @transcoder.internal_to_external(DOCOMO_DOCOMO_POINT)
14
+ assert_equal "\e$EO\017", @transcoder.internal_to_external(DOCOMO_DOCOMO_POINT)
15
15
  assert_equal "\e$Gj\x0f", @transcoder.internal_to_external(AU_CR)
16
16
  assert_equal "\e$Gj\x0f", @transcoder.internal_to_external(AU_UTF8)
17
17
  assert_equal "\e$Gj\x0f", @transcoder.internal_to_external(SOFTBANK_CR)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwim-emoticon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul McMahon