asciidoctor-pdf-linewrap-ja 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ff47989d1f81df45f43f002cafad1135491451e
|
4
|
+
data.tar.gz: 0001c2475609ba045d1d6c628a7307427eeccd0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 159d70669283d61aa79de530b06c3ec09251a4b805144c6a01914d2cd0745f4f6b161f845d8b37c580ddb8382c0f2064d164ff8c6e8358daf14b315f2cc3bc43
|
7
|
+
data.tar.gz: 52afbfe580852951a1187c436a0370bd98e51066aa258190ea14b2dc6cab03a0134745e1a1815e79a491ba4ad0fa1cdc9555ace30e8bd2064f6e27b00c5a46d4
|
@@ -1 +1 @@
|
|
1
|
-
require_relative 'asciidoctor/pdf/linewrap/ja'
|
1
|
+
require_relative 'asciidoctor/pdf/linewrap/ja'
|
@@ -6,29 +6,24 @@ module Asciidoctor
|
|
6
6
|
|
7
7
|
# 行頭禁則文字
|
8
8
|
PROHIBIT_LINE_BREAK_BEFORE =
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
#
|
19
|
-
PROHIBIT_LINE_BREAK_BEFORE_HALF_WIDTH =
|
20
|
-
')]>}' +
|
21
|
-
'-=~' +
|
22
|
-
'?!'
|
9
|
+
'’”)〕]}〉》」』】⦆〙〗»〟' + # 終わり括弧類(cl-02)
|
10
|
+
'‐〜゠–' + # ハイフン類(cl-03)
|
11
|
+
'!?‼⁇⁈⁉' + # 区切り約物(cl-04)
|
12
|
+
'・:;' + # 中点類(cl-05)
|
13
|
+
'。.' + # 句点類(cl-06)
|
14
|
+
'、,' + # 読点類(cl-07)
|
15
|
+
'ヽヾゝゞ々〻' + # 繰返し記号(cl-09)
|
16
|
+
'ー' + # 長音記号(cl-10)
|
17
|
+
'ぁぃぅぇぉァィゥェォっゃゅょゎゕゖッャュョヮヵヶㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿㇷ゚' + # 小書きの仮名(cl-11)
|
18
|
+
')〕]' # 割注終わり括弧類(cl-29)
|
23
19
|
|
24
20
|
# 行末禁則文字
|
25
|
-
PROHIBIT_LINE_BREAK_AFTER =
|
26
|
-
|
27
|
-
|
28
|
-
PROHIBIT_LINE_BREAK_AFTER_HALF_WIDTH = '([<{'
|
21
|
+
PROHIBIT_LINE_BREAK_AFTER =
|
22
|
+
'‘“(〔[{〈《「『【⦅〘〖«〝' + # 始め括弧類(cl-01)
|
23
|
+
'(〔[' # 割注始め括弧類(cl-28)
|
29
24
|
|
30
25
|
# 分離禁止文字
|
31
|
-
PROHIBIT_DIVIDE = '
|
26
|
+
PROHIBIT_DIVIDE = '—…‥〳〴〵' # 分離禁止文字(cl-08)
|
32
27
|
|
33
28
|
# ゼロ幅スペース
|
34
29
|
ZERO_WIDTH_SPACE = '{zwsp}'
|
@@ -78,11 +73,11 @@ module Asciidoctor
|
|
78
73
|
end
|
79
74
|
|
80
75
|
def self.prohibit_line_break_after?(ch)
|
81
|
-
PROHIBIT_LINE_BREAK_AFTER.include?(ch)
|
76
|
+
PROHIBIT_LINE_BREAK_AFTER.include?(ch)
|
82
77
|
end
|
83
78
|
|
84
79
|
def self.prohibit_line_break_before?(ch)
|
85
|
-
ch == nil || PROHIBIT_LINE_BREAK_BEFORE.include?(ch)
|
80
|
+
ch == nil || PROHIBIT_LINE_BREAK_BEFORE.include?(ch)
|
86
81
|
end
|
87
82
|
|
88
83
|
def self.prohibit_divide?(ch, next_ch)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-pdf-linewrap-ja
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- y.fukazawa
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor-pdf
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.6.8
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: Asciidoctor PDF extension providing better line wrap for Japanese document.
|