nkf 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +3 -5
- data/ext/nkf/nkf-utf8/config.h +1 -1
- data/ext/nkf/nkf-utf8/nkf.c +5 -5
- data/ext/nkf/nkf-utf8/nkf.h +2 -2
- data/ext/nkf/nkf.c +1 -1
- data/nkf.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d91d0012de880dc327a501e8cbcf616c0bf94f3631a7ffcfe7d312df4ee234d3
|
4
|
+
data.tar.gz: '0305883ba08acedfca7e3ecfbedd6046519130091e297e84b31f2c164cd557a1'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e4d3a3a8d83b61eb5cd2800ffa606f288af719d09b936ed5357a84d2913f33629e2a752a03bb3bf53f59f3bdd5a0e9e1311110266aba448d873e54a34ce03d6
|
7
|
+
data.tar.gz: fc812b17abfdf9aea0e9eeacb62721e42974ba39749c5625be1022e743e030c2888f160101f79bcf02bd3a260bbc5007336802bba7fd32fd493a26a8cd64f6da
|
data/.github/workflows/test.yml
CHANGED
@@ -7,18 +7,16 @@ jobs:
|
|
7
7
|
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
|
8
8
|
strategy:
|
9
9
|
matrix:
|
10
|
-
ruby: [ 2.7, 2.6, 2.5, head ]
|
10
|
+
ruby: [ '3.0', 2.7, 2.6, 2.5, head ]
|
11
11
|
os: [ ubuntu-latest, macos-latest ]
|
12
12
|
runs-on: ${{ matrix.os }}
|
13
13
|
steps:
|
14
|
-
- uses: actions/checkout@
|
14
|
+
- uses: actions/checkout@v2
|
15
15
|
- name: Set up Ruby
|
16
16
|
uses: ruby/setup-ruby@v1
|
17
17
|
with:
|
18
18
|
ruby-version: ${{ matrix.ruby }}
|
19
19
|
- name: Install dependencies
|
20
|
-
run:
|
21
|
-
gem install bundler --no-document
|
22
|
-
bundle install
|
20
|
+
run: bundle install
|
23
21
|
- name: Run test
|
24
22
|
run: rake compile test
|
data/ext/nkf/nkf-utf8/config.h
CHANGED
data/ext/nkf/nkf-utf8/nkf.c
CHANGED
@@ -581,7 +581,7 @@ static const unsigned char cv[]= {
|
|
581
581
|
0x00,0x00};
|
582
582
|
|
583
583
|
|
584
|
-
/* X0201 kana conversion table for
|
584
|
+
/* X0201 kana conversion table for dakuten */
|
585
585
|
/* 90-9F A0-DF */
|
586
586
|
static const unsigned char dv[]= {
|
587
587
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
@@ -602,7 +602,7 @@ static const unsigned char dv[]= {
|
|
602
602
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
603
603
|
0x00,0x00};
|
604
604
|
|
605
|
-
/* X0201 kana conversion table for han-
|
605
|
+
/* X0201 kana conversion table for han-dakuten */
|
606
606
|
/* 90-9F A0-DF */
|
607
607
|
static const unsigned char ev[]= {
|
608
608
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
@@ -623,7 +623,7 @@ static const unsigned char ev[]= {
|
|
623
623
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
624
624
|
0x00,0x00};
|
625
625
|
|
626
|
-
/* X0201 kana to X0213 conversion table for han-
|
626
|
+
/* X0201 kana to X0213 conversion table for han-dakuten */
|
627
627
|
/* 90-9F A0-DF */
|
628
628
|
static const unsigned char ev_x0213[]= {
|
629
629
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
@@ -3817,7 +3817,7 @@ oconv_newline(void (*func)(nkf_char, nkf_char))
|
|
3817
3817
|
LF new line
|
3818
3818
|
SP space
|
3819
3819
|
|
3820
|
-
This fold
|
3820
|
+
This fold algorithm does not preserve heading space in a line.
|
3821
3821
|
This is the main difference from fmt.
|
3822
3822
|
*/
|
3823
3823
|
|
@@ -6787,7 +6787,7 @@ options(unsigned char *cp)
|
|
6787
6787
|
case 'S': /* Shift_JIS input */
|
6788
6788
|
input_encoding = nkf_enc_from_index(SHIFT_JIS);
|
6789
6789
|
continue;
|
6790
|
-
case 'Z': /* Convert X0208 alphabet to
|
6790
|
+
case 'Z': /* Convert X0208 alphabet to ascii */
|
6791
6791
|
/* alpha_f
|
6792
6792
|
bit:0 Convert JIS X 0208 Alphabet to ASCII
|
6793
6793
|
bit:1 Convert Kankaku to one space
|
data/ext/nkf/nkf-utf8/nkf.h
CHANGED
@@ -16,8 +16,8 @@
|
|
16
16
|
#define X0201_DEFAULT TRUE
|
17
17
|
#endif
|
18
18
|
|
19
|
-
#if DEFAULT_NEWLINE == 0x0D0A
|
20
|
-
#elif DEFAULT_NEWLINE == 0x0D
|
19
|
+
#if defined(DEFAULT_NEWLINE) && DEFAULT_NEWLINE == 0x0D0A
|
20
|
+
#elif defined(DEFAULT_NEWLINE) && DEFAULT_NEWLINE == 0x0D
|
21
21
|
#else
|
22
22
|
#define DEFAULT_NEWLINE 0x0A
|
23
23
|
#endif
|
data/ext/nkf/nkf.c
CHANGED
@@ -458,7 +458,7 @@ rb_nkf_guess(VALUE obj, VALUE src)
|
|
458
458
|
* with this and -x option, nkf can be used as UTF converter.
|
459
459
|
* (In other words, without this and -x option, nkf doesn't save some characters)
|
460
460
|
*
|
461
|
-
* When nkf convert string which related to path, you should use this
|
461
|
+
* When nkf convert string which related to path, you should use this option.
|
462
462
|
*
|
463
463
|
* === --cap-input
|
464
464
|
*
|
data/nkf.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nkf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NARUSE Yui
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby extension for Network Kanji Filter
|
14
14
|
email:
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: '0'
|
58
58
|
requirements: []
|
59
|
-
rubygems_version: 3.2.
|
59
|
+
rubygems_version: 3.2.22
|
60
60
|
signing_key:
|
61
61
|
specification_version: 4
|
62
62
|
summary: Ruby extension for Network Kanji Filter
|