universalchardet/Japanese encoding detect plugin

Discuss and announce AkelPad plugins
Post Reply
  • Author
  • Message
Offline
Posts: 17
Joined: Tue Jul 05, 2011 2:35 am

universalchardet/Japanese encoding detect plugin

Post by shoshinsha »

Detect encoding of text file using Mozilla universalchardet
link:

Code: Select all

http://mxr.mozilla.org/seamonkey/source/extensions/universalchardet/
http://www-archive.mozilla.org/projects/intl/UniversalCharsetDetection.html
plus: Japanese encoding detect (shift_jis/jis/euc-jp/utf-8)

function (menucontext)
SEPARATOR
"Encoding Detect"
{
"ISO2022/Japanese" Call("EncodingDetect::NonUniEncoding")
"nsUniversalDetector"
{
"Japanese" Call("EncodingDetect::UniJaEncodingDetect")
"Chinese simplified" Call("EncodingDetect::UniChineseSimEncodingDetect")
"Chinese traditional" Call("EncodingDetect::UniChineseTRAEncodingDetect")
"Chinese" Call("EncodingDetect::UniChineseEncodingDetect")
"Korean" Call("EncodingDetect::UniKoreaEncodingDetect")
"CJK" Call("EncodingDetect::UniCJKEncodingDetect")
"NonCJK" Call("EncodingDetect::UniNonCJKEncodingDetect")
"Auto" Call("EncodingDetect::UniEncodingDetect")
}
"Auto Load" +Call("EncodingDetect::Main")
"Setting" Call("EncodingDetect::Settings")
}
download
For Akelpad 4.8 (Update latest universalchardet) (2013/04/19)

Code: Select all

http://www.mediafire.com/?ad7qe55njnebcd5
For Akelpad 4.7.6

Code: Select all

http://www.mediafire.com/?497hh64bi2ezbxw
For akelpad 4.7

Code: Select all

http://www.mediafire.com/?vw3vrcrq3n9ycwt
for akelpad 4.6

Code: Select all

http://www.mediafire.com/?cql869w253j1smd
update:
-add Unicode detect (from akelpad source :shock: )

Update 2011/08/04
-Update to latest universalchardet (firefox 5.0.1)
-Update akelpad files to latest version.
-Update get codepage from charset function

Update 2011/10/7
-add settings
-add auto detect when open file
Last edited by shoshinsha on Thu Apr 18, 2013 3:11 pm, edited 7 times in total.

DV
Offline
Posts: 1250
Joined: Thu Nov 16, 2006 11:53 am
Location: Kyiv, Ukraine

Re: universalchardet/Japanese encoding detect plugin

Post by DV »

Very interesting, but it detects UTF-16 LE as UTF-16 BE and therefore shows funny symbols :shock:

Offline
Posts: 17
Joined: Tue Jul 05, 2011 2:35 am

Re: universalchardet/Japanese encoding detect plugin

Post by shoshinsha »

DV wrote:Very interesting, but it detects UTF-16 LE as UTF-16 BE and therefore shows funny symbols :shock:
now, using akelpad unicode detect function to detect utf-x encoding :lol:

Offline
Posts: 17
Joined: Tue Jul 05, 2011 2:35 am

Post by shoshinsha »

updated!

Offline
Posts: 17
Joined: Tue Jul 05, 2011 2:35 am

Post by shoshinsha »

update for akelpad 4.7

Offline
Posts: 17
Joined: Tue Jul 05, 2011 2:35 am

Post by shoshinsha »

Updated!

Offline
Posts: 173
Joined: Mon Dec 06, 2010 9:53 am
Location: г.Харьков, Русь

Post by San_dr »

shoshinsha, how about updating the plugin? Thank you

Offline
Posts: 17
Joined: Tue Jul 05, 2011 2:35 am

Post by shoshinsha »

Updated!

Offline
Posts: 1
Joined: Wed Dec 18, 2013 5:36 am

Mohsin

Post by mohsinj677 »

Can you also give an example about how to surround a selection of text with <p>...</p> etc, and how to link this function to a toolbar button or hotkey?
Post Reply