cantonese 0.2.2 → 0.2.3

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: 595eae84bbb6d22f686ff35e47026701317a997d
4
- data.tar.gz: a84fa35b1f49dd7d2335ef4b049ad0ae185ae2a6
3
+ metadata.gz: 10b0ed1b9edc495604387751eee169bd7cd278dd
4
+ data.tar.gz: 6f33fb8543c837d1b5298c52a6aa3bda4081d164
5
5
  SHA512:
6
- metadata.gz: f8d821bc1180244198ea430d1f88ae98b976709366337f12a53cd1ff03c0df93c9dfe40ec76ce12ee6d946f750e1c5680650c61cb39aa5aa54e9a27293233f5f
7
- data.tar.gz: bfbd3904e6bd91cf378f02d684c2f7229a3aead90fa423f77567b6725cda75dba6444838c57d4f09ef304fef5540b6f4d53b9972d7c85ac269d2751891919f1a
6
+ metadata.gz: 50fade83d4611680c0e625022c8ca33514e6a1d185d1d6d7fde5dbeea71beff2f87f8076a37c0f2bbbd726aba2f6675af7cae0cbf780242a08d1d6fc64f373b3
7
+ data.tar.gz: 5a76f68a94caa3871572d2a43c695e98410bf7ffd5f4620f1a274fd9935cc9f2cc02b21a0acaaa4c6652be701541d7d97f699fbf35e00ae42ab87f3add08dc18
@@ -14,7 +14,7 @@ module Cantonese
14
14
  # fetch and get the page in UTF8
15
15
  html = open(url).read
16
16
  html = html.encode('UTF-8', 'Big5', :invalid => :replace, :undef => :replace, :replace => '')
17
- html = TidyFFI::Tidy.clean(html.gsub(/\0/, ''), :input_encoding => "utf8", :output_encoding => "utf8", :wrap => 0)
17
+ html = TidyFFI::Tidy.clean(html.gsub(/\0/, ''), :input_encoding => "utf8", :output_encoding => "utf8", :wrap => 0, :force_output => true)
18
18
 
19
19
  doc = Nokogiri::HTML(html, nil, 'UTF-8')
20
20
  word = doc.search(".w").first.text
@@ -1,3 +1,3 @@
1
1
  module Cantonese
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -322,4 +322,460 @@ http_interactions:
322
322
  b2R5PjwvaHRtbD4=
323
323
  http_version:
324
324
  recorded_at: Mon, 31 Mar 2014 10:33:12 GMT
325
+ - request:
326
+ method: get
327
+ uri: http://humanum.arts.cuhk.edu.hk/Lexis/lexi-can/search.php?q=%BC%F0
328
+ body:
329
+ encoding: US-ASCII
330
+ string: ''
331
+ headers:
332
+ Accept-Encoding:
333
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
334
+ Accept:
335
+ - "*/*"
336
+ User-Agent:
337
+ - Ruby
338
+ response:
339
+ status:
340
+ code: 200
341
+ message: OK
342
+ headers:
343
+ Date:
344
+ - Mon, 31 Mar 2014 11:53:35 GMT
345
+ Server:
346
+ - Apache/2.2.15 (CentOS)
347
+ X-Powered-By:
348
+ - PHP/5.3.3
349
+ Content-Length:
350
+ - '5235'
351
+ Connection:
352
+ - close
353
+ Content-Type:
354
+ - text/html
355
+ body:
356
+ encoding: ASCII-8BIT
357
+ string: !binary |-
358
+ PGh0bWw+PGhlYWQ+PHRpdGxlPrhmu3m8Zq21sHS1/KZyrnc8L3RpdGxlPjxz
359
+ dHlsZSB0eXBlPSJ0ZXh0L2NzcyI+YSB7IHRleHQtZGVjb3JhdGlvbjogbm9u
360
+ ZX0gLnRleHQgeyBsaW5lLWhlaWdodDogMTUwJSB9PC9zdHlsZT48bWV0YSBo
361
+ dHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDsg
362
+ Y2hhcnNldD1iaWc1Ij48c2NyaXB0IGxhbmd1YWdlPSJKYXZhU2NyaXB0Ij4K
363
+ PCEtLQpmdW5jdGlvbiBNTV9qdW1wTWVudSh0YXJnLHNlbE9iaixyZXN0b3Jl
364
+ KXsgLy92My4wCiAgZXZhbCh0YXJnKyIubG9jYXRpb249JyIrc2VsT2JqLm9w
365
+ dGlvbnNbc2VsT2JqLnNlbGVjdGVkSW5kZXhdLnZhbHVlKyInIik7CiAgaWYg
366
+ KHJ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XQ+un67eaRqpnKo5To8L3RkPjx0ZCB3aWR0aD0xMDA+PGZv
465
+ bnQgc2l6ZT0tMT5QZy4yMTA4PC9mb250PjwvdGQ+PHRkIGNsYXNzPXQ+tLaz
466
+ cbjcOjwvdGQ+PHRkPjxmb250IHNpemU9LTE+dGVuZzIgPC9mb250PjwvdGQ+
467
+ PC90cj48dHI+PHRkIGNsYXNzPXQ+sWS6s6ZyqOU6PC90ZD48dGQgd2lkdGg9
468
+ MTAwPjxmb250IHNpemU9LTE+UGcuMDU3MS4wNzA8L2ZvbnQ+PC90ZD48dGQg
469
+ Y2xhc3M9dD6tXsS2OjwvdGQ+PHRkPjxmb250IHNpemU9LTE+PGFyY2g+IGNv
470
+ dW50eSBpbiBzaGFuZG9uZyBwcm92aW48L2ZvbnQ+PC90ZD48L3RyPjx0cj48
471
+ dGQgY2xhc3M9dD5NYXR0aGV3czo8L3RkPjx0ZCB3aWR0aD0xMDA+PGZvbnQg
472
+ c2l6ZT0tMT5Oby42MTgxPC9mb250PjwvdGQ+PHRkIGFsaWduPXJpZ2h0Pjxm
473
+ b250IHNpemU9LTE+PC9mb250PjwvdGQ+PHRkPjwvdGQ+PC90cj48L3RhYmxl
474
+ PjwvYm9keT48L2h0bWw+
475
+ http_version:
476
+ recorded_at: Mon, 31 Mar 2014 11:54:05 GMT
477
+ - request:
478
+ method: get
479
+ uri: http://humanum.arts.cuhk.edu.hk/Lexis/lexi-can/search.php?q=%BC%F0
480
+ body:
481
+ encoding: US-ASCII
482
+ string: ''
483
+ headers:
484
+ Accept-Encoding:
485
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
486
+ Accept:
487
+ - "*/*"
488
+ User-Agent:
489
+ - Ruby
490
+ response:
491
+ status:
492
+ code: 200
493
+ message: OK
494
+ headers:
495
+ Date:
496
+ - Mon, 31 Mar 2014 11:55:20 GMT
497
+ Server:
498
+ - Apache/2.2.15 (CentOS)
499
+ X-Powered-By:
500
+ - PHP/5.3.3
501
+ Content-Length:
502
+ - '5235'
503
+ Connection:
504
+ - close
505
+ Content-Type:
506
+ - text/html
507
+ body:
508
+ encoding: ASCII-8BIT
509
+ string: !binary |-
510
+ PGh0bWw+PGhlYWQ+PHRpdGxlPrhmu3m8Zq21sHS1/KZyrnc8L3RpdGxlPjxz
511
+ dHlsZSB0eXBlPSJ0ZXh0L2NzcyI+YSB7IHRleHQtZGVjb3JhdGlvbjogbm9u
512
+ ZX0gLnRleHQgeyBsaW5lLWhlaWdodDogMTUwJSB9PC9zdHlsZT48bWV0YSBo
513
+ dHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDsg
514
+ Y2hhcnNldD1iaWc1Ij48c2NyaXB0IGxhbmd1YWdlPSJKYXZhU2NyaXB0Ij4K
515
+ PCEtLQpmdW5jdGlvbiBNTV9qdW1wTWVudSh0YXJnLHNlbE9iaixyZXN0b3Jl
516
+ KXsgLy92My4wCiAgZXZhbCh0YXJnKyIubG9jYXRpb249JyIrc2VsT2JqLm9w
517
+ dGlvbnNbc2VsT2JqLnNlbGVjdGVkSW5kZXhdLnZhbHVlKyInIik7CiAgaWYg
518
+ KHJlc3RvcmUpIHNlbE9iai5zZWxlY3RlZEluZGV4PTA7Cn0KZnVuY3Rpb24g
519
+ cmVmICh1cmwpIHsKICByZXdpbj13aW5kb3cub3Blbih1cmwsJ3JlZicsJ3Rv
520
+ b2Jhcj0wLHN0YXR1cz0wLHNjcm9sbGJhcnM9MSxyZXNpemFibGU9MSx3aWR0
521
+ aD02MDAsaGVpZ2h0PTMwMCcpOwogIHNldFRpbWVvdXQgKCdyZXdpbi5mb2N1
522
+ cygpJywgMTAwKTsKfQovLy0tPgo8L3NjcmlwdD4KPHN0eWxlIHR5cGU9InRl
523
+ eHQvY3NzIj4KLnQgeyBmb250LXNpemU6IDEzOyBub3dyYXA7IHRleHQtYWxp
524
+ Z246IHJpZ2h0OyBjb2xvcjogbmF2eX0KLnQyIHsgZm9udC1zaXplOiAxMz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0cj48
623
+ dGQgY2xhc3M9dD5NYXR0aGV3czo8L3RkPjx0ZCB3aWR0aD0xMDA+PGZvbnQg
624
+ c2l6ZT0tMT5Oby42MTgxPC9mb250PjwvdGQ+PHRkIGFsaWduPXJpZ2h0Pjxm
625
+ b250IHNpemU9LTE+PC9mb250PjwvdGQ+PHRkPjwvdGQ+PC90cj48L3RhYmxl
626
+ PjwvYm9keT48L2h0bWw+
627
+ http_version:
628
+ recorded_at: Mon, 31 Mar 2014 11:55:50 GMT
629
+ - request:
630
+ method: get
631
+ uri: http://humanum.arts.cuhk.edu.hk/Lexis/lexi-can/search.php?q=%BC%F0
632
+ body:
633
+ encoding: US-ASCII
634
+ string: ''
635
+ headers:
636
+ Accept-Encoding:
637
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
638
+ Accept:
639
+ - "*/*"
640
+ User-Agent:
641
+ - Ruby
642
+ response:
643
+ status:
644
+ code: 200
645
+ message: OK
646
+ headers:
647
+ Date:
648
+ - Mon, 31 Mar 2014 11:55:36 GMT
649
+ Server:
650
+ - Apache/2.2.15 (CentOS)
651
+ X-Powered-By:
652
+ - PHP/5.3.3
653
+ Content-Length:
654
+ - '5235'
655
+ Connection:
656
+ - close
657
+ Content-Type:
658
+ - text/html
659
+ body:
660
+ encoding: ASCII-8BIT
661
+ string: !binary |-
662
+ PGh0bWw+PGhlYWQ+PHRpdGxlPrhmu3m8Zq21sHS1/KZyrnc8L3RpdGxlPjxz
663
+ dHlsZSB0eXBlPSJ0ZXh0L2NzcyI+YSB7IHRleHQtZGVjb3JhdGlvbjogbm9u
664
+ ZX0gLnRleHQgeyBsaW5lLWhlaWdodDogMTUwJSB9PC9zdHlsZT48bWV0YSBo
665
+ dHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDsg
666
+ Y2hhcnNldD1iaWc1Ij48c2NyaXB0IGxhbmd1YWdlPSJKYXZhU2NyaXB0Ij4K
667
+ PCEtLQpmdW5jdG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iIGJvcmRlcj0wIGFsaWduPWFic21pZGRsZT48
766
+ L2E+IDxmb250IHNpemU9LTEgY29sb3I9Z3JheT5VKzZFRDU8L2ZvbnQ+PHRh
767
+ YmxlIGJvcmRlcj0wIGNlbGxzcGFjaW5nPTUgY2VsbHBhZGRpbmc9NT48dHI+
768
+ PHRkIGNsYXNzPXQ+un67eaRqpnKo5To8L3RkPjx0ZCB3aWR0aD0xMDA+PGZv
769
+ bnQgc2l6ZT0tMT5QZy4yMTA4PC9mb250PjwvdGQ+PHRkIGNsYXNzPXQ+tLaz
770
+ cbjcOjwvdGQ+PHRkPjxmb250IHNpemU9LTE+dGVuZzIgPC9mb250PjwvdGQ+
771
+ PC90cj48dHI+PHRkIGNsYXNzPXQ+sWS6s6ZyqOU6PC90ZD48dGQgd2lkdGg9
772
+ MTAwPjxmb250IHNpemU9LTE+UGcuMDU3MS4wNzA8L2ZvbnQ+PC90ZD48dGQg
773
+ Y2xhc3M9dD6tXsS2OjwvdGQ+PHRkPjxmb250IHNpemU9LTE+PGFyY2g+IGNv
774
+ dW50eSBpbiBzaGFuZG9uZyBwcm92aW48L2ZvbnQ+PC90ZD48L3RyPjx0cj48
775
+ dGQgY2xhc3M9dD5NYXR0aGV3czo8L3RkPjx0ZCB3aWR0aD0xMDA+PGZvbnQg
776
+ c2l6ZT0tMT5Oby42MTgxPC9mb250PjwvdGQ+PHRkIGFsaWduPXJpZ2h0Pjxm
777
+ b250IHNpemU9LTE+PC9mb250PjwvdGQ+PHRkPjwvdGQ+PC90cj48L3RhYmxl
778
+ PjwvYm9keT48L2h0bWw+
779
+ http_version:
780
+ recorded_at: Mon, 31 Mar 2014 11:56:06 GMT
325
781
  recorded_with: VCR 2.8.0
@@ -70,5 +70,25 @@ describe Cantonese::Scraper::WordScraper do
70
70
  expect(word[:syllable][1][:full]).to eq("luk6")
71
71
  end
72
72
 
73
+ it "should parse 滕 properly" do
74
+ word = subject.crawl("滕")
75
+ expect(word[:text]).to eq("滕")
76
+
77
+ expect(word[:stroke]).to eq(15)
78
+ expect(word[:radical_id]).to eq(85)
79
+ expect(word[:classified]).to eq("單讀音字")
80
+
81
+ expect(word[:big5]).to eq("BCF0")
82
+ expect(word[:chanjie]).to eq("月火手水")
83
+ expect(word[:rank]).to eq(4410)
84
+ expect(word[:frequency]).to eq(23)
85
+ expect(word[:combination]).to be_a(Array)
86
+
87
+ expect(word[:syllable]).to be_a(Array)
88
+ expect(word[:syllable][0][:full]).to eq("tang4")
89
+ expect(word[:syllable][0][:note]).to eq("(1)姓氏 (2)周代國名")
90
+ end
91
+
92
+
73
93
  end
74
94
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cantonese
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francis Chong