truty 0.4.2 → 0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/lib/truty/conversion.rb +0 -0
- data/lib/truty/czech.rb +0 -0
- data/lib/truty/english.rb +0 -0
- data/lib/truty/french.rb +1 -10
- data/lib/truty/general.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f68912f8f6c1339953b5e1432aa41b5f2390cf0b
|
4
|
+
data.tar.gz: d71da06c6ee9d2e3b5a737732a62b06485418f95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adbfaf667482914699ba0a63592351bc47dd64de7099ae747db78337a9cbc8268d464806c56997f1a7f9516eeb3ed8141c06866a31c873adf2134823f85e93bf
|
7
|
+
data.tar.gz: a91d1c337f10dc2cce0c3017bf2a0bf1e87f908969818fa4f61a97e69ebeabccd3b3c7786f663aaec25d98fc7c4c4ae2f3f99b7f053156ab9bd692431f6c206a
|
data/LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/lib/truty/conversion.rb
CHANGED
File without changes
|
data/lib/truty/czech.rb
CHANGED
File without changes
|
data/lib/truty/english.rb
CHANGED
File without changes
|
data/lib/truty/french.rb
CHANGED
@@ -13,18 +13,9 @@ module Truty
|
|
13
13
|
input = soft_hyphens(input, "fr")
|
14
14
|
input = general(input)
|
15
15
|
input = french_double_quotes(input)
|
16
|
-
input = french_single_quotes(input)
|
17
16
|
end
|
18
17
|
|
19
|
-
# Converts
|
20
|
-
#
|
21
|
-
# @param input [String] The paragraph which will be converted.
|
22
|
-
# @return [String] Paragraph with correct single quotes.
|
23
|
-
def french_single_quotes(input)
|
24
|
-
quotes(input, "'", "‹ ", " ›")
|
25
|
-
end
|
26
|
-
|
27
|
-
# Converts double quotes to the typograhic ones.
|
18
|
+
# Converts double quotes to the typograhic ones, guillemets.
|
28
19
|
#
|
29
20
|
# @param input [String] The paragraph which will be converted.
|
30
21
|
# @return [String] Paragraph with correct double quotes.
|
data/lib/truty/general.rb
CHANGED
@@ -144,7 +144,7 @@ module Truty
|
|
144
144
|
input.gsub(/\s*([\!\?\.,;:…]+)\s*/, '\1 ')
|
145
145
|
end
|
146
146
|
|
147
|
-
# Fixes non-breaking spaces
|
147
|
+
# Fixes non-breaking spaces between number and unit, mainly SI.
|
148
148
|
#
|
149
149
|
# @param input [String] The paragraph which will be converted.
|
150
150
|
# @return [String] Paragraph with correct spaces between number and unit.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: truty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matěj Kašpar Jirásek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: text-hyphen
|
@@ -130,8 +130,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
132
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.4.
|
133
|
+
rubygems_version: 2.4.5.1
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: True typography converter
|
137
137
|
test_files: []
|
138
|
+
has_rdoc:
|