actionmailer-rack-upgrade-2 2.3.15
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +387 -0
- data/MIT-LICENSE +21 -0
- data/README +149 -0
- data/Rakefile +97 -0
- data/install.rb +30 -0
- data/lib/action_mailer/adv_attr_accessor.rb +30 -0
- data/lib/action_mailer/base.rb +739 -0
- data/lib/action_mailer/helpers.rb +113 -0
- data/lib/action_mailer/mail_helper.rb +17 -0
- data/lib/action_mailer/part.rb +107 -0
- data/lib/action_mailer/part_container.rb +55 -0
- data/lib/action_mailer/quoting.rb +62 -0
- data/lib/action_mailer/test_case.rb +64 -0
- data/lib/action_mailer/test_helper.rb +68 -0
- data/lib/action_mailer/utils.rb +7 -0
- data/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb +1466 -0
- data/lib/action_mailer/vendor/text_format.rb +10 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/Makefile +18 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/address.rb +392 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/attachments.rb +65 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/base64.rb +46 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/compat.rb +41 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/config.rb +67 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/core_extensions.rb +63 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/encode.rb +590 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/header.rb +962 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/index.rb +9 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/interface.rb +1162 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/loader.rb +3 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/mail.rb +578 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/mailbox.rb +496 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/main.rb +6 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/mbox.rb +3 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/net.rb +250 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/obsolete.rb +132 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/parser.rb +1060 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/parser.y +416 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/port.rb +379 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/quoting.rb +164 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/require_arch.rb +58 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/scanner.rb +49 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/scanner_r.rb +262 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/stringio.rb +280 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/utils.rb +362 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/COPYING +504 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/README +12 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/big5freq.rb +927 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/big5prober.rb +42 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/chardistribution.rb +238 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/charsetgroupprober.rb +112 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/charsetprober.rb +75 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/codingstatemachine.rb +64 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/constants.rb +42 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/escprober.rb +89 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/escsm.rb +244 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/eucjpprober.rb +88 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euckrfreq.rb +596 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euckrprober.rb +42 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euctwfreq.rb +430 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euctwprober.rb +42 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/gb2312freq.rb +474 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/gb2312prober.rb +42 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/hebrewprober.rb +289 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/jisfreq.rb +570 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/jpcntx.rb +229 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langbulgarianmodel.rb +229 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langcyrillicmodel.rb +330 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langgreekmodel.rb +227 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langhebrewmodel.rb +202 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langhungarianmodel.rb +226 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langthaimodel.rb +201 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/latin1prober.rb +147 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/mbcharsetprober.rb +89 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/mbcsgroupprober.rb +45 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/mbcssm.rb +542 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/sbcharsetprober.rb +124 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/sbcsgroupprober.rb +56 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/sjisprober.rb +88 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/universaldetector.rb +168 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/utf8prober.rb +87 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet.rb +67 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/version.rb +39 -0
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail.rb +6 -0
- data/lib/action_mailer/vendor/tmail.rb +17 -0
- data/lib/action_mailer/version.rb +9 -0
- data/lib/action_mailer.rb +62 -0
- data/lib/actionmailer.rb +2 -0
- data/test/abstract_unit.rb +62 -0
- data/test/asset_host_test.rb +54 -0
- data/test/delivery_method_test.rb +51 -0
- data/test/fixtures/asset_host_mailer/email_with_asset.html.erb +1 -0
- data/test/fixtures/auto_layout_mailer/hello.html.erb +1 -0
- data/test/fixtures/auto_layout_mailer/multipart.text.html.erb +1 -0
- data/test/fixtures/auto_layout_mailer/multipart.text.plain.erb +1 -0
- data/test/fixtures/explicit_layout_mailer/logout.html.erb +1 -0
- data/test/fixtures/explicit_layout_mailer/signup.html.erb +1 -0
- data/test/fixtures/first_mailer/share.erb +1 -0
- data/test/fixtures/helper_mailer/use_example_helper.erb +1 -0
- data/test/fixtures/helper_mailer/use_helper.erb +1 -0
- data/test/fixtures/helper_mailer/use_helper_method.erb +1 -0
- data/test/fixtures/helper_mailer/use_mail_helper.erb +5 -0
- data/test/fixtures/helpers/example_helper.rb +5 -0
- data/test/fixtures/layouts/auto_layout_mailer.html.erb +1 -0
- data/test/fixtures/layouts/auto_layout_mailer.text.erb +1 -0
- data/test/fixtures/layouts/spam.html.erb +1 -0
- data/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb +1 -0
- data/test/fixtures/raw_email +14 -0
- data/test/fixtures/raw_email10 +20 -0
- data/test/fixtures/raw_email12 +32 -0
- data/test/fixtures/raw_email13 +29 -0
- data/test/fixtures/raw_email2 +114 -0
- data/test/fixtures/raw_email3 +70 -0
- data/test/fixtures/raw_email4 +59 -0
- data/test/fixtures/raw_email5 +19 -0
- data/test/fixtures/raw_email6 +20 -0
- data/test/fixtures/raw_email7 +66 -0
- data/test/fixtures/raw_email8 +47 -0
- data/test/fixtures/raw_email9 +28 -0
- data/test/fixtures/raw_email_quoted_with_0d0a +14 -0
- data/test/fixtures/raw_email_with_invalid_characters_in_content_type +104 -0
- data/test/fixtures/raw_email_with_nested_attachment +100 -0
- data/test/fixtures/raw_email_with_partially_quoted_subject +14 -0
- data/test/fixtures/second_mailer/share.erb +1 -0
- data/test/fixtures/templates/signed_up.erb +3 -0
- data/test/fixtures/test_mailer/_subtemplate.text.plain.erb +1 -0
- data/test/fixtures/test_mailer/body_ivar.erb +2 -0
- data/test/fixtures/test_mailer/custom_templating_extension.text.html.haml +6 -0
- data/test/fixtures/test_mailer/custom_templating_extension.text.plain.haml +6 -0
- data/test/fixtures/test_mailer/implicitly_multipart_example.ignored.erb +1 -0
- data/test/fixtures/test_mailer/implicitly_multipart_example.rhtml.bak +1 -0
- data/test/fixtures/test_mailer/implicitly_multipart_example.text.html.erb +10 -0
- data/test/fixtures/test_mailer/implicitly_multipart_example.text.html.erb~ +10 -0
- data/test/fixtures/test_mailer/implicitly_multipart_example.text.plain.erb +2 -0
- data/test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.erb +1 -0
- data/test/fixtures/test_mailer/included_subtemplate.text.plain.erb +1 -0
- data/test/fixtures/test_mailer/rxml_template.builder +2 -0
- data/test/fixtures/test_mailer/rxml_template.rxml +2 -0
- data/test/fixtures/test_mailer/signed_up.html.erb +3 -0
- data/test/fixtures/test_mailer/signed_up_with_url.erb +5 -0
- data/test/mail_helper_test.rb +95 -0
- data/test/mail_layout_test.rb +123 -0
- data/test/mail_render_test.rb +116 -0
- data/test/mail_service_test.rb +1145 -0
- data/test/quoting_test.rb +105 -0
- data/test/test_helper_test.rb +129 -0
- data/test/tmail_test.rb +22 -0
- data/test/url_test.rb +76 -0
- metadata +209 -0
@@ -0,0 +1,330 @@
|
|
1
|
+
######################## BEGIN LICENSE BLOCK ########################
|
2
|
+
# The Original Code is Mozilla Communicator client code.
|
3
|
+
#
|
4
|
+
# The Initial Developer of the Original Code is
|
5
|
+
# Netscape Communications Corporation.
|
6
|
+
# Portions created by the Initial Developer are Copyright (C) 1998
|
7
|
+
# the Initial Developer. All Rights Reserved.
|
8
|
+
#
|
9
|
+
# Contributor(s):
|
10
|
+
# Jeff Hodges - port to Ruby
|
11
|
+
# Mark Pilgrim - port to Python
|
12
|
+
#
|
13
|
+
# This library is free software; you can redistribute it and/or
|
14
|
+
# modify it under the terms of the GNU Lesser General Public
|
15
|
+
# License as published by the Free Software Foundation; either
|
16
|
+
# version 2.1 of the License, or (at your option) any later version.
|
17
|
+
#
|
18
|
+
# This library is distributed in the hope that it will be useful,
|
19
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
21
|
+
# Lesser General Public License for more details.
|
22
|
+
#
|
23
|
+
# You should have received a copy of the GNU Lesser General Public
|
24
|
+
# License along with this library; if not, write to the Free Software
|
25
|
+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
26
|
+
# 02110-1301 USA
|
27
|
+
######################### END LICENSE BLOCK #########################
|
28
|
+
|
29
|
+
module CharDet
|
30
|
+
# KOI8-R language model
|
31
|
+
# Character Mapping Table:
|
32
|
+
KOI8R_CharToOrderMap = [
|
33
|
+
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00
|
34
|
+
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10
|
35
|
+
253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20
|
36
|
+
252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30
|
37
|
+
253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, # 40
|
38
|
+
155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, # 50
|
39
|
+
253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, # 60
|
40
|
+
67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, # 70
|
41
|
+
191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206, # 80
|
42
|
+
207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222, # 90
|
43
|
+
223,224,225, 68,226,227,228,229,230,231,232,233,234,235,236,237, # a0
|
44
|
+
238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253, # b0
|
45
|
+
27, 3, 21, 28, 13, 2, 39, 19, 26, 4, 23, 11, 8, 12, 5, 1, # c0
|
46
|
+
15, 16, 9, 7, 6, 14, 24, 10, 17, 18, 20, 25, 30, 29, 22, 54, # d0
|
47
|
+
59, 37, 44, 58, 41, 48, 53, 46, 55, 42, 60, 36, 49, 38, 31, 34, # e0
|
48
|
+
35, 43, 45, 32, 40, 52, 56, 33, 61, 62, 51, 57, 47, 63, 50, 70, # f0
|
49
|
+
]
|
50
|
+
|
51
|
+
win1251_CharToOrderMap = [
|
52
|
+
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00
|
53
|
+
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10
|
54
|
+
253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20
|
55
|
+
252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30
|
56
|
+
253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, # 40
|
57
|
+
155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, # 50
|
58
|
+
253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, # 60
|
59
|
+
67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, # 70
|
60
|
+
191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,
|
61
|
+
207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,
|
62
|
+
223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,
|
63
|
+
239,240,241,242,243,244,245,246, 68,247,248,249,250,251,252,253,
|
64
|
+
37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35,
|
65
|
+
45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43,
|
66
|
+
3, 21, 10, 19, 13, 2, 24, 20, 4, 23, 11, 8, 12, 5, 1, 15,
|
67
|
+
9, 7, 6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27, 16,
|
68
|
+
]
|
69
|
+
|
70
|
+
latin5_CharToOrderMap = [
|
71
|
+
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00
|
72
|
+
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10
|
73
|
+
253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20
|
74
|
+
252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30
|
75
|
+
253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, # 40
|
76
|
+
155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, # 50
|
77
|
+
253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, # 60
|
78
|
+
67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, # 70
|
79
|
+
191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,
|
80
|
+
207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,
|
81
|
+
223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,
|
82
|
+
37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35,
|
83
|
+
45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43,
|
84
|
+
3, 21, 10, 19, 13, 2, 24, 20, 4, 23, 11, 8, 12, 5, 1, 15,
|
85
|
+
9, 7, 6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27, 16,
|
86
|
+
239, 68,240,241,242,243,244,245,246,247,248,249,250,251,252,255,
|
87
|
+
]
|
88
|
+
|
89
|
+
macCyrillic_CharToOrderMap = [
|
90
|
+
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00
|
91
|
+
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10
|
92
|
+
253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20
|
93
|
+
252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30
|
94
|
+
253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, # 40
|
95
|
+
155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, # 50
|
96
|
+
253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, # 60
|
97
|
+
67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, # 70
|
98
|
+
37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35,
|
99
|
+
45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43,
|
100
|
+
191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,
|
101
|
+
207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,
|
102
|
+
223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,
|
103
|
+
239,240,241,242,243,244,245,246,247,248,249,250,251,252, 68, 16,
|
104
|
+
3, 21, 10, 19, 13, 2, 24, 20, 4, 23, 11, 8, 12, 5, 1, 15,
|
105
|
+
9, 7, 6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27,255,
|
106
|
+
]
|
107
|
+
|
108
|
+
IBM855_CharToOrderMap = [
|
109
|
+
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00
|
110
|
+
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10
|
111
|
+
253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20
|
112
|
+
252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30
|
113
|
+
253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, # 40
|
114
|
+
155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, # 50
|
115
|
+
253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, # 60
|
116
|
+
67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, # 70
|
117
|
+
191,192,193,194, 68,195,196,197,198,199,200,201,202,203,204,205,
|
118
|
+
206,207,208,209,210,211,212,213,214,215,216,217, 27, 59, 54, 70,
|
119
|
+
3, 37, 21, 44, 28, 58, 13, 41, 2, 48, 39, 53, 19, 46,218,219,
|
120
|
+
220,221,222,223,224, 26, 55, 4, 42,225,226,227,228, 23, 60,229,
|
121
|
+
230,231,232,233,234,235, 11, 36,236,237,238,239,240,241,242,243,
|
122
|
+
8, 49, 12, 38, 5, 31, 1, 34, 15,244,245,246,247, 35, 16,248,
|
123
|
+
43, 9, 45, 7, 32, 6, 40, 14, 52, 24, 56, 10, 33, 17, 61,249,
|
124
|
+
250, 18, 62, 20, 51, 25, 57, 30, 47, 29, 63, 22, 50,251,252,255,
|
125
|
+
]
|
126
|
+
|
127
|
+
IBM866_CharToOrderMap = [
|
128
|
+
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00
|
129
|
+
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10
|
130
|
+
253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20
|
131
|
+
252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30
|
132
|
+
253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, # 40
|
133
|
+
155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, # 50
|
134
|
+
253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, # 60
|
135
|
+
67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, # 70
|
136
|
+
37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35,
|
137
|
+
45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43,
|
138
|
+
3, 21, 10, 19, 13, 2, 24, 20, 4, 23, 11, 8, 12, 5, 1, 15,
|
139
|
+
191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,
|
140
|
+
207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,
|
141
|
+
223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,
|
142
|
+
9, 7, 6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27, 16,
|
143
|
+
239, 68,240,241,242,243,244,245,246,247,248,249,250,251,252,255,
|
144
|
+
]
|
145
|
+
|
146
|
+
# Model Table:
|
147
|
+
# total sequences: 100%
|
148
|
+
# first 512 sequences: 97.6601%
|
149
|
+
# first 1024 sequences: 2.3389%
|
150
|
+
# rest sequences: 0.1237%
|
151
|
+
# negative sequences: 0.0009%
|
152
|
+
RussianLangModel = [
|
153
|
+
0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,3,3,3,3,1,3,3,3,2,3,2,3,3,
|
154
|
+
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,3,2,2,2,2,2,0,0,2,
|
155
|
+
3,3,3,2,3,3,3,3,3,3,3,3,3,3,2,3,3,0,0,3,3,3,3,3,3,3,3,3,2,3,2,0,
|
156
|
+
0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
157
|
+
3,3,3,2,2,3,3,3,3,3,3,3,3,3,2,3,3,0,0,3,3,3,3,3,3,3,3,2,3,3,1,0,
|
158
|
+
0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
159
|
+
3,2,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,0,0,3,3,3,3,3,3,3,3,3,3,3,2,1,
|
160
|
+
0,0,0,0,0,0,0,2,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
161
|
+
3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,0,0,3,3,3,3,3,3,3,3,3,3,3,2,1,
|
162
|
+
0,0,0,0,0,1,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
163
|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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
|
276
|
+
1,1,1,0,1,0,1,0,0,1,1,1,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0,1,0,0,0,0,
|
277
|
+
1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
|
278
|
+
1,1,0,1,1,0,1,0,1,0,0,0,0,1,1,0,1,1,0,0,0,0,0,1,0,1,1,0,1,0,0,0,
|
279
|
+
0,1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
280
|
+
0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,
|
281
|
+
]
|
282
|
+
|
283
|
+
Koi8rModel = {
|
284
|
+
'charToOrderMap' => KOI8R_CharToOrderMap,
|
285
|
+
'precedenceMatrix' => RussianLangModel,
|
286
|
+
'mTypicalPositiveRatio' => 0.976601,
|
287
|
+
'keepEnglishLetter' => false,
|
288
|
+
'charsetName' => "KOI8-R"
|
289
|
+
}
|
290
|
+
|
291
|
+
Win1251CyrillicModel = {
|
292
|
+
'charToOrderMap' => win1251_CharToOrderMap,
|
293
|
+
'precedenceMatrix' => RussianLangModel,
|
294
|
+
'mTypicalPositiveRatio' => 0.976601,
|
295
|
+
'keepEnglishLetter' => false,
|
296
|
+
'charsetName' => "windows-1251"
|
297
|
+
}
|
298
|
+
|
299
|
+
Latin5CyrillicModel = {
|
300
|
+
'charToOrderMap' => latin5_CharToOrderMap,
|
301
|
+
'precedenceMatrix' => RussianLangModel,
|
302
|
+
'mTypicalPositiveRatio' => 0.976601,
|
303
|
+
'keepEnglishLetter' => false,
|
304
|
+
'charsetName' => "ISO-8859-5"
|
305
|
+
}
|
306
|
+
|
307
|
+
MacCyrillicModel = {
|
308
|
+
'charToOrderMap' => macCyrillic_CharToOrderMap,
|
309
|
+
'precedenceMatrix' => RussianLangModel,
|
310
|
+
'mTypicalPositiveRatio' => 0.976601,
|
311
|
+
'keepEnglishLetter' => false,
|
312
|
+
'charsetName' => "MacCyrillic"
|
313
|
+
}
|
314
|
+
|
315
|
+
Ibm866Model = {
|
316
|
+
'charToOrderMap' => IBM866_CharToOrderMap,
|
317
|
+
'precedenceMatrix' => RussianLangModel,
|
318
|
+
'mTypicalPositiveRatio' => 0.976601,
|
319
|
+
'keepEnglishLetter' => false,
|
320
|
+
'charsetName' => "IBM866"
|
321
|
+
}
|
322
|
+
|
323
|
+
Ibm855Model = {
|
324
|
+
'charToOrderMap' => IBM855_CharToOrderMap,
|
325
|
+
'precedenceMatrix' => RussianLangModel,
|
326
|
+
'mTypicalPositiveRatio' => 0.976601,
|
327
|
+
'keepEnglishLetter' => false,
|
328
|
+
'charsetName' => "IBM855"
|
329
|
+
}
|
330
|
+
end
|
data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langgreekmodel.rb
ADDED
@@ -0,0 +1,227 @@
|
|
1
|
+
######################## BEGIN LICENSE BLOCK ########################
|
2
|
+
# The Original Code is Mozilla Communicator client code.
|
3
|
+
#
|
4
|
+
# The Initial Developer of the Original Code is
|
5
|
+
# Netscape Communications Corporation.
|
6
|
+
# Portions created by the Initial Developer are Copyright (C) 1998
|
7
|
+
# the Initial Developer. All Rights Reserved.
|
8
|
+
#
|
9
|
+
# Contributor(s):
|
10
|
+
# Jeff Hodges - port to Ruby
|
11
|
+
# Mark Pilgrim - port to Python
|
12
|
+
#
|
13
|
+
# This library is free software; you can redistribute it and/or
|
14
|
+
# modify it under the terms of the GNU Lesser General Public
|
15
|
+
# License as published by the Free Software Foundation; either
|
16
|
+
# version 2.1 of the License, or (at your option) any later version.
|
17
|
+
#
|
18
|
+
# This library is distributed in the hope that it will be useful,
|
19
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
21
|
+
# Lesser General Public License for more details.
|
22
|
+
#
|
23
|
+
# You should have received a copy of the GNU Lesser General Public
|
24
|
+
# License along with this library; if not, write to the Free Software
|
25
|
+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
26
|
+
# 02110-1301 USA
|
27
|
+
######################### END LICENSE BLOCK #########################
|
28
|
+
|
29
|
+
|
30
|
+
module CharDet
|
31
|
+
# 255: Control characters that usually does not exist in any text
|
32
|
+
# 254: Carriage/Return
|
33
|
+
# 253: symbol (punctuation) that does not belong to word
|
34
|
+
# 252: 0 - 9
|
35
|
+
|
36
|
+
# Character Mapping Table:
|
37
|
+
Latin7_CharToOrderMap = [
|
38
|
+
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00
|
39
|
+
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10
|
40
|
+
253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20
|
41
|
+
252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30
|
42
|
+
253, 82,100,104, 94, 98,101,116,102,111,187,117, 92, 88,113, 85, # 40
|
43
|
+
79,118,105, 83, 67,114,119, 95, 99,109,188,253,253,253,253,253, # 50
|
44
|
+
253, 72, 70, 80, 81, 60, 96, 93, 89, 68,120, 97, 77, 86, 69, 55, # 60
|
45
|
+
78,115, 65, 66, 58, 76,106,103, 87,107,112,253,253,253,253,253, # 70
|
46
|
+
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 80
|
47
|
+
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 90
|
48
|
+
253,233, 90,253,253,253,253,253,253,253,253,253,253, 74,253,253, # a0
|
49
|
+
253,253,253,253,247,248, 61, 36, 46, 71, 73,253, 54,253,108,123, # b0
|
50
|
+
110, 31, 51, 43, 41, 34, 91, 40, 52, 47, 44, 53, 38, 49, 59, 39, # c0
|
51
|
+
35, 48,250, 37, 33, 45, 56, 50, 84, 57,120,121, 17, 18, 22, 15, # d0
|
52
|
+
124, 1, 29, 20, 21, 3, 32, 13, 25, 5, 11, 16, 10, 6, 30, 4, # e0
|
53
|
+
9, 8, 14, 7, 2, 12, 28, 23, 42, 24, 64, 75, 19, 26, 27,253, # f0
|
54
|
+
]
|
55
|
+
|
56
|
+
Win1253_CharToOrderMap = [
|
57
|
+
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00
|
58
|
+
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10
|
59
|
+
253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20
|
60
|
+
252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30
|
61
|
+
253, 82,100,104, 94, 98,101,116,102,111,187,117, 92, 88,113, 85, # 40
|
62
|
+
79,118,105, 83, 67,114,119, 95, 99,109,188,253,253,253,253,253, # 50
|
63
|
+
253, 72, 70, 80, 81, 60, 96, 93, 89, 68,120, 97, 77, 86, 69, 55, # 60
|
64
|
+
78,115, 65, 66, 58, 76,106,103, 87,107,112,253,253,253,253,253, # 70
|
65
|
+
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 80
|
66
|
+
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 90
|
67
|
+
253,233, 61,253,253,253,253,253,253,253,253,253,253, 74,253,253, # a0
|
68
|
+
253,253,253,253,247,253,253, 36, 46, 71, 73,253, 54,253,108,123, # b0
|
69
|
+
110, 31, 51, 43, 41, 34, 91, 40, 52, 47, 44, 53, 38, 49, 59, 39, # c0
|
70
|
+
35, 48,250, 37, 33, 45, 56, 50, 84, 57,120,121, 17, 18, 22, 15, # d0
|
71
|
+
124, 1, 29, 20, 21, 3, 32, 13, 25, 5, 11, 16, 10, 6, 30, 4, # e0
|
72
|
+
9, 8, 14, 7, 2, 12, 28, 23, 42, 24, 64, 75, 19, 26, 27,253, # f0
|
73
|
+
]
|
74
|
+
|
75
|
+
# Model Table:
|
76
|
+
# total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0,0,0,0,0,0,0,0,0,0,0,0,0,
|
207
|
+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
208
|
+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
209
|
+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
210
|
+
]
|
211
|
+
|
212
|
+
Latin7GreekModel = {
|
213
|
+
'charToOrderMap' => Latin7_CharToOrderMap,
|
214
|
+
'precedenceMatrix' => GreekLangModel,
|
215
|
+
'mTypicalPositiveRatio' => 0.982851,
|
216
|
+
'keepEnglishLetter' => false,
|
217
|
+
'charsetName' => "ISO-8859-7"
|
218
|
+
}
|
219
|
+
|
220
|
+
Win1253GreekModel = {
|
221
|
+
'charToOrderMap' => Win1253_CharToOrderMap,
|
222
|
+
'precedenceMatrix' => GreekLangModel,
|
223
|
+
'mTypicalPositiveRatio' => 0.982851,
|
224
|
+
'keepEnglishLetter' => false,
|
225
|
+
'charsetName' => "windows-1253"
|
226
|
+
}
|
227
|
+
end
|