Skip to content

Commit 6d1f7cc

Browse files
committed
version bump 1.15.0: added 28591 to cpexcel
1 parent ff3c114 commit 6d1f7cc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+454
-12982
lines changed

.github/FUNDING.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
github: SheetJSDev
2+
custom: https://sheetjs.com
3+
open_collective: s5s

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
package-lock.json
3+
*.tgz
4+
codepages/
5+
.vocrc
6+
misc/coverage.html
7+
codepage_mini.md
8+
ctest/sauce*

.spelling

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Wansung
2222
halfwidth
2323

2424
# Third-party
25+
ECMA-35
2526
FoxPro
2627
nodejs
2728
unicode.org

Makefile

+15-9
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ LIB=codepage
33
VOC=voc
44
TARGET=cptable.js
55
AUXTARGETS=cputils.js cpexcel.js sbcs.js
6-
DISTFULL=cpexcel sbcs cptable
7-
CMDS=bin/codepage.njs
6+
DISTFULL_A=cpexcel sbcs
7+
DISTFULL_B=cptable
8+
CMDS=
9+
#DISTBITS=iso2022.js
10+
DISTBITS=
811

912
ULIB=$(shell echo $(LIB) | tr a-z A-Z)
1013
FLOWTARGET=cptable.js
@@ -16,32 +19,35 @@ CLOSURE=/usr/local/lib/node_modules/google-closure-compiler/compiler.jar
1619
all: voc ## Build library and auxiliary scripts
1720

1821
.PHONY: voc
19-
voc test.js: codepage.md
20-
$(VOC) codepage.md
22+
voc: codepage.md
23+
@make js
24+
#$(VOC) codepage.md
2125

2226
.PHONY: js
2327
js: make.sh codepage.md ## Build all output targets
2428
bash make.sh <(awk -F, '$$3=="1"' pages.csv) sbcs.js cptable
2529
bash make.sh excel.csv cpexcel.js cptable
26-
bash make.sh
30+
bash make.sh pages.csv cptable.js cptable
31+
#node iso2022/make_iso2022.njs > iso2022.js
2732
make cputils.js
2833

2934
cputils.js: cputils.flow.js
3035
node -e 'process.stdout.write(require("fs").readFileSync("$<","utf8").replace(/^[ \t]*\/\*[:#][^*]*\*\/[ \t]*(\n)?/gm,"").replace(/\/\*[:#][^*]*\*\//gm,""))' > $@
3136

3237
.PHONY: clean
3338
clean: ## Remove targets and build artifacts
34-
rm -f make.sh .vocrc pages.csv bits/*.js
39+
rm -f bits/*.js
3540

3641
.PHONY: dist
3742
dist: $(TARGET) $(AUXTARGETS) ## Copy files for distribution
3843
cp $(TARGET) $(AUXTARGETS) LICENSE dist/
39-
for i in $(DISTFULL); do cat $$i.js cputils.js | sed "s#require('./cptable')#cptable#" > dist/$$i.full.js; done
44+
for i in $(DISTFULL_A); do cat $$i.js cputils.js | sed "s#require('./cptable')#cptable#" > dist/$$i.full.js; done
45+
for i in $(DISTFULL_B); do cat $$i.js $(DISTBITS) cputils.js | sed "s#require('./cptable')#cptable#" > dist/$$i.full.js; done
4046

4147
## Testing
4248

4349
.PHONY: test mocha
44-
test mocha: test.js $(TARGET) baseline ## Run test suite
50+
test mocha: $(TARGET) baseline ## Run test suite
4551
mocha -R spec -t 20000
4652

4753
.PHONY: ctest
@@ -67,7 +73,7 @@ fullint: lint old-lint tslint flow mdlint ## Run all checks
6773

6874
.PHONY: lint
6975
lint: $(TARGET) $(AUXTARGETS) ## Run eslint checks
70-
@eslint --ext .js,.njs,.json,.html,.htm $(TARGET) $(AUXTARGETS) $(CMDS) $(HTMLLINT) package.json bower.json
76+
@eslint --ext .js,.njs,.json,.html,.htm $(TARGET) $(AUXTARGETS) $(CMDS) $(HTMLLINT) package.json
7177
if [ -e $(CLOSURE) ]; then java -jar $(CLOSURE) $(REQS) $(FLOWTARGET) --jscomp_warning=reportUnknownTypes >/dev/null; fi
7278

7379
.PHONY: old-lint

README.md

+10-7
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Alternatively, use the full version in the dist folder:
2626
```
2727

2828
The complete set of codepages is large due to some Double Byte Character Set
29-
encodings. A much smaller file that just includes SBCS codepages is provided in
29+
encodings. A much smaller file that only includes SBCS codepages is provided in
3030
this repo (`sbcs.js`), as well as a file for other projects (`cpexcel.js`)
3131

3232
If you know which codepages you need, you can include individual scripts for
@@ -133,7 +133,7 @@ to produce a complete script like `cpexcel.full.js`.
133133
## Building the complete script
134134

135135
This script uses [voc](npm.im/voc). The script to build the codepage tables and
136-
the JS source is `codepage.md`, so building is as simple as `voc codepage.md`.
136+
the JS source is `codepage.md`, so building involves `voc codepage.md`.
137137

138138
## Generated Codepages
139139

@@ -274,11 +274,11 @@ tables are not generated, there is no corresponding entry (they are "magic").
274274
| `29001` | Windows 7 | Europa 3 |
275275
| `38598` | Windows 7 | ISO 8859-8 Hebrew (ISO-Logical) |
276276
| `47451` | unicode.org | Atari ST/TT |
277-
| `50220` | Windows 7 | ISO 2022 JIS Japanese with no halfwidth Katakana |
278-
| `50221` | Windows 7 | ISO 2022 JIS Japanese with halfwidth Katakana |
279-
| `50222` | Windows 7 | ISO 2022 Japanese JIS X 0201-1989 (1 byte Kana-SO/SI)|
280-
| `50225` | Windows 7 | ISO 2022 Korean |
281-
| `50227` | Windows 7 | ISO 2022 Simplified Chinese |
277+
| `50220` | magic | ISO 2022 JIS Japanese with no halfwidth Katakana |
278+
| `50221` | magic | ISO 2022 JIS Japanese with halfwidth Katakana |
279+
| `50222` | magic | ISO 2022 Japanese JIS X 0201-1989 (1 byte Kana-SO/SI)|
280+
| `50225` | magic | ISO 2022 Korean |
281+
| `50227` | magic | ISO 2022 Simplified Chinese |
282282
| `51932` | Windows 7 | EUC Japanese |
283283
| `51936` | Windows 7 | EUC Simplified Chinese |
284284
| `51949` | Windows 7 | EUC Korean |
@@ -330,6 +330,9 @@ To update the browser artifacts, run `make ctest`.
330330
- [Windows Code Page Enumeration](http://msdn.microsoft.com/en-us/library/cc195051.aspx)
331331
- [Windows Code Page Identifiers](http://msdn.microsoft.com/en-us/library/windows/desktop/dd317756.aspx)
332332
- [IBM Coded Character Sets](https://www-01.ibm.com/software/globalization/ccsid/ccsid_registered.html)
333+
- [ISO/IEC 2022 / ECMA-35](https://www.ecma-international.org/publications/files/ECMA-ST/Ecma-035.pdf)
334+
- [International Register of Coded Character Sets To Be Used With Escape Sequences](https://www.itscj.ipsj.or.jp/itscj_english/iso-ir/ISO-IR.pdf)
335+
- [Japanese Character Encoding for Internet Messages](https://tools.ietf.org/html/rfc1468)
333336

334337
## License
335338

0 commit comments

Comments
 (0)