diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a12e3f0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +language: node_js +node_js: + - "0.8" + - "0.10" \ No newline at end of file diff --git a/encoding/iso2022.js b/encoding/iso2022.js index 06ec8ec..bc44266 100644 --- a/encoding/iso2022.js +++ b/encoding/iso2022.js @@ -33,8 +33,6 @@ ISO_2022.prototype.match = function(det) { var quality; // TODO: refactor me - // int match(byte [] text, int textLen, byte [][] escapeSequences) { - // det.fInputBytes, det.fInputLen var text = det.fInputBytes; var textLen = det.fInputLen; diff --git a/encoding/mbcs.js b/encoding/mbcs.js index f221337..2fcb322 100644 --- a/encoding/mbcs.js +++ b/encoding/mbcs.js @@ -82,9 +82,7 @@ function mbcs() {}; * @param det The CharsetDetector, which contains the input text * to be checked for being in this charset. * @return Two values packed into one int (Damn java, anyhow) - *
* bits 0-7: the match confidence, ranging from 0-100 - *
* bits 8-15: The match reason, an enum-like value. */ mbcs.prototype.match = function(det) { @@ -218,7 +216,6 @@ module.exports.sjis = function() { var firstByte; firstByte = iter.charValue = iter.nextByte(det); - // console.log('fb', firstByte) if (firstByte < 0) { return false; } @@ -438,8 +435,8 @@ module.exports.gb_18030 = function() { this.language = function() { return "zh"; }; + /* - * (non-Javadoc) * Get the next character value for EUC based encodings. * Character "value" is simply the raw bytes that make up the character * packed into an int. diff --git a/package.json b/package.json index 1464598..8af319f 100644 --- a/package.json +++ b/package.json @@ -1,24 +1,36 @@ { - "name": "chardet", - "version": "0.0.6", - "homepage": "https://github.com/runk/node-chardet", - "description": "Character detector", - "keywords": ["encoding", "character", "utf8", "detector", "chardet", "icu"], - "author": "Dmitry Shirokov ", - "dependencies": {}, - "repository": { - "type":"git", - "url":"git@github.com:runk/node-chardet.git" - }, - "bugs": { - "mail":"deadrunk@gmail.com", - "url":"http://github.com/runk/node-chardet/issues" - }, - "scripts": { - "test": "mocha -R spec --recursive" - }, - "main": "index.js", - "engine": { - "node": ">=0.8.0", "npm": "1" - } + "name": "chardet", + "version": "0.0.6", + "homepage": "https://github.com/runk/node-chardet", + "description": "Character detector", + "keywords": [ + "encoding", + "character", + "utf8", + "detector", + "chardet", + "icu" + ], + "author": "Dmitry Shirokov ", + "dependencies": {}, + "repository": { + "type": "git", + "url": "git@github.com:runk/node-chardet.git" + }, + "bugs": { + "mail": "deadrunk@gmail.com", + "url": "http://github.com/runk/node-chardet/issues" + }, + "scripts": { + "test": "mocha -R spec --recursive" + }, + "main": "index.js", + "engine": { + "node": ">=0.8.0", + "npm": "1" + }, + "readmeFilename": "README.md", + "directories": { + "test": "test" + } }