hookapp 2.0.7 → 2.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHORS.md +4 -0
- data/CHANGELOG.md +13 -0
- data/Gemfile.lock +35 -40
- data/LICENSE +21 -0
- data/README.md +32 -22
- data/bin/hook +57 -67
- data/hook.rdoc +16 -11
- data/hookapp.gemspec +1 -0
- data/html/App.html +107 -0
- data/html/GLI/Commands/Doc.html +91 -0
- data/html/GLI/Commands/MarkdownDocumentListener.html +521 -0
- data/html/GLI/Commands.html +91 -0
- data/html/GLI.html +91 -0
- data/html/Hook/Prompt.html +100 -0
- data/html/Hook/PromptFZF.html +243 -0
- data/html/Hook/PromptSTD.html +177 -0
- data/html/Hook.html +100 -0
- data/html/HookApp.html +1008 -0
- data/html/Hooker.html +141 -0
- data/html/README_rdoc.html +354 -0
- data/html/String.html +335 -0
- data/html/created.rid +10 -0
- data/html/css/fonts.css +167 -0
- data/html/css/rdoc.css +639 -0
- data/html/fonts/Lato-Light.ttf +0 -0
- data/html/fonts/Lato-LightItalic.ttf +0 -0
- data/html/fonts/Lato-Regular.ttf +0 -0
- data/html/fonts/Lato-RegularItalic.ttf +0 -0
- data/html/fonts/SourceCodePro-Bold.ttf +0 -0
- data/html/fonts/SourceCodePro-Regular.ttf +0 -0
- data/html/images/add.png +0 -0
- data/html/images/arrow_up.png +0 -0
- data/html/images/brick.png +0 -0
- data/html/images/brick_link.png +0 -0
- data/html/images/bug.png +0 -0
- data/html/images/bullet_black.png +0 -0
- data/html/images/bullet_toggle_minus.png +0 -0
- data/html/images/bullet_toggle_plus.png +0 -0
- data/html/images/date.png +0 -0
- data/html/images/delete.png +0 -0
- data/html/images/find.png +0 -0
- data/html/images/loadingAnimation.gif +0 -0
- data/html/images/macFFBgHack.png +0 -0
- data/html/images/package.png +0 -0
- data/html/images/page_green.png +0 -0
- data/html/images/page_white_text.png +0 -0
- data/html/images/page_white_width.png +0 -0
- data/html/images/plugin.png +0 -0
- data/html/images/ruby.png +0 -0
- data/html/images/tag_blue.png +0 -0
- data/html/images/tag_green.png +0 -0
- data/html/images/transparent.png +0 -0
- data/html/images/wrench.png +0 -0
- data/html/images/wrench_orange.png +0 -0
- data/html/images/zoom.png +0 -0
- data/html/index.html +320 -0
- data/html/js/darkfish.js +84 -0
- data/html/js/navigation.js +105 -0
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search.js +110 -0
- data/html/js/search_index.js +1 -0
- data/html/js/search_index.js.gz +0 -0
- data/html/js/searcher.js +229 -0
- data/html/js/searcher.js.gz +0 -0
- data/html/table_of_contents.html +409 -0
- data/lib/hook/hookapp.rb +11 -12
- data/lib/hook/hooker.rb +1 -0
- data/lib/hook/markdown_document_listener.rb +12 -2
- data/lib/hook/prompt.rb +113 -0
- data/lib/hook/version.rb +1 -1
- data/lib/hook.rb +2 -0
- data/test/hook_clip_test.rb +1 -1
- data/test/hook_link_test.rb +2 -1
- data/test/hook_scripts_test.rb +1 -1
- metadata +82 -3
- data/lib/helpers/fuzzyfilefinder +0 -0
data/html/String.html
ADDED
@@ -0,0 +1,335 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class String - hookapp</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
15
|
+
<script src="./js/search.js" defer></script>
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="class">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="./index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="class-metadata">
|
59
|
+
|
60
|
+
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
62
|
+
<h3>Parent</h3>
|
63
|
+
|
64
|
+
<p class="link">Object
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
71
|
+
<div id="method-list-section" class="nav-section">
|
72
|
+
<h3>Methods</h3>
|
73
|
+
|
74
|
+
<ul class="link-list" role="directory">
|
75
|
+
<li ><a href="#method-i-cap">#cap</a>
|
76
|
+
<li ><a href="#method-i-cap-21">#cap!</a>
|
77
|
+
<li ><a href="#method-i-clip">#clip</a>
|
78
|
+
<li ><a href="#method-i-escape_quotes">#escape_quotes</a>
|
79
|
+
<li ><a href="#method-i-nil_if_missing">#nil_if_missing</a>
|
80
|
+
<li ><a href="#method-i-split_hook">#split_hook</a>
|
81
|
+
<li ><a href="#method-i-split_hooks">#split_hooks</a>
|
82
|
+
<li ><a href="#method-i-valid_hook">#valid_hook</a>
|
83
|
+
<li ><a href="#method-i-valid_hook-21">#valid_hook!</a>
|
84
|
+
</ul>
|
85
|
+
</div>
|
86
|
+
|
87
|
+
</div>
|
88
|
+
</nav>
|
89
|
+
|
90
|
+
<main role="main" aria-labelledby="class-String">
|
91
|
+
<h1 id="class-String" class="class">
|
92
|
+
class String
|
93
|
+
</h1>
|
94
|
+
|
95
|
+
<section class="description">
|
96
|
+
|
97
|
+
<p><a href="String.html"><code>String</code></a> helpers</p>
|
98
|
+
|
99
|
+
</section>
|
100
|
+
|
101
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
108
|
+
<header>
|
109
|
+
<h3>Public Instance Methods</h3>
|
110
|
+
</header>
|
111
|
+
|
112
|
+
<div id="method-i-cap" class="method-detail ">
|
113
|
+
<div class="method-heading">
|
114
|
+
<span class="method-name">cap</span><span
|
115
|
+
class="method-args">()</span>
|
116
|
+
<span class="method-click-advice">click to toggle source</span>
|
117
|
+
</div>
|
118
|
+
|
119
|
+
<div class="method-description">
|
120
|
+
<p>Capitalize only if no uppercase</p>
|
121
|
+
|
122
|
+
<div class="method-source-code" id="cap-source">
|
123
|
+
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 42</span>
|
124
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">cap</span>
|
125
|
+
<span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp">/[A-Z]/</span>
|
126
|
+
<span class="ruby-identifier">capitalize</span>
|
127
|
+
<span class="ruby-keyword">else</span>
|
128
|
+
<span class="ruby-keyword">self</span>
|
129
|
+
<span class="ruby-keyword">end</span>
|
130
|
+
<span class="ruby-keyword">end</span></pre>
|
131
|
+
</div>
|
132
|
+
</div>
|
133
|
+
|
134
|
+
|
135
|
+
</div>
|
136
|
+
|
137
|
+
<div id="method-i-cap-21" class="method-detail ">
|
138
|
+
<div class="method-heading">
|
139
|
+
<span class="method-name">cap!</span><span
|
140
|
+
class="method-args">()</span>
|
141
|
+
<span class="method-click-advice">click to toggle source</span>
|
142
|
+
</div>
|
143
|
+
|
144
|
+
<div class="method-description">
|
145
|
+
|
146
|
+
|
147
|
+
<div class="method-source-code" id="cap-21-source">
|
148
|
+
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 50</span>
|
149
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">cap!</span>
|
150
|
+
<span class="ruby-identifier">replace</span> <span class="ruby-identifier">cap</span>
|
151
|
+
<span class="ruby-keyword">end</span></pre>
|
152
|
+
</div>
|
153
|
+
</div>
|
154
|
+
|
155
|
+
|
156
|
+
</div>
|
157
|
+
|
158
|
+
<div id="method-i-clip" class="method-detail ">
|
159
|
+
<div class="method-heading">
|
160
|
+
<span class="method-name">clip</span><span
|
161
|
+
class="method-args">()</span>
|
162
|
+
<span class="method-click-advice">click to toggle source</span>
|
163
|
+
</div>
|
164
|
+
|
165
|
+
<div class="method-description">
|
166
|
+
|
167
|
+
|
168
|
+
<div class="method-source-code" id="clip-source">
|
169
|
+
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 54</span>
|
170
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">clip</span>
|
171
|
+
<span class="ruby-identifier">res</span> = <span class="ruby-node">`/bin/echo -n #{Shellwords.escape(self)} | pbcopy`</span>.<span class="ruby-identifier">strip</span>
|
172
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-string">'Failed to copy to clipboard'</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">res</span>.<span class="ruby-identifier">empty?</span>
|
173
|
+
|
174
|
+
<span class="ruby-keyword">true</span>
|
175
|
+
<span class="ruby-keyword">end</span></pre>
|
176
|
+
</div>
|
177
|
+
</div>
|
178
|
+
|
179
|
+
|
180
|
+
</div>
|
181
|
+
|
182
|
+
<div id="method-i-escape_quotes" class="method-detail ">
|
183
|
+
<div class="method-heading">
|
184
|
+
<span class="method-name">escape_quotes</span><span
|
185
|
+
class="method-args">()</span>
|
186
|
+
<span class="method-click-advice">click to toggle source</span>
|
187
|
+
</div>
|
188
|
+
|
189
|
+
<div class="method-description">
|
190
|
+
|
191
|
+
|
192
|
+
<div class="method-source-code" id="escape_quotes-source">
|
193
|
+
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 61</span>
|
194
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">escape_quotes</span>
|
195
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/"/</span>, <span class="ruby-string">'\\"'</span>)
|
196
|
+
<span class="ruby-keyword">end</span></pre>
|
197
|
+
</div>
|
198
|
+
</div>
|
199
|
+
|
200
|
+
|
201
|
+
</div>
|
202
|
+
|
203
|
+
<div id="method-i-nil_if_missing" class="method-detail ">
|
204
|
+
<div class="method-heading">
|
205
|
+
<span class="method-name">nil_if_missing</span><span
|
206
|
+
class="method-args">()</span>
|
207
|
+
<span class="method-click-advice">click to toggle source</span>
|
208
|
+
</div>
|
209
|
+
|
210
|
+
<div class="method-description">
|
211
|
+
|
212
|
+
|
213
|
+
<div class="method-source-code" id="nil_if_missing-source">
|
214
|
+
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 5</span>
|
215
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">nil_if_missing</span>
|
216
|
+
<span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/missing value/</span>
|
217
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span>
|
218
|
+
<span class="ruby-keyword">else</span>
|
219
|
+
<span class="ruby-keyword">self</span>
|
220
|
+
<span class="ruby-keyword">end</span>
|
221
|
+
<span class="ruby-keyword">end</span></pre>
|
222
|
+
</div>
|
223
|
+
</div>
|
224
|
+
|
225
|
+
|
226
|
+
</div>
|
227
|
+
|
228
|
+
<div id="method-i-split_hook" class="method-detail ">
|
229
|
+
<div class="method-heading">
|
230
|
+
<span class="method-name">split_hook</span><span
|
231
|
+
class="method-args">()</span>
|
232
|
+
<span class="method-click-advice">click to toggle source</span>
|
233
|
+
</div>
|
234
|
+
|
235
|
+
<div class="method-description">
|
236
|
+
|
237
|
+
|
238
|
+
<div class="method-source-code" id="split_hook-source">
|
239
|
+
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 13</span>
|
240
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">split_hook</span>
|
241
|
+
<span class="ruby-identifier">elements</span> = <span class="ruby-identifier">split</span>(<span class="ruby-regexp">/\|\|/</span>)
|
242
|
+
{
|
243
|
+
<span class="ruby-value">name:</span> <span class="ruby-identifier">elements</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">nil_if_missing</span>,
|
244
|
+
<span class="ruby-value">url:</span> <span class="ruby-identifier">elements</span>[<span class="ruby-value">1</span>].<span class="ruby-identifier">nil_if_missing</span>,
|
245
|
+
<span class="ruby-value">path:</span> <span class="ruby-identifier">elements</span>[<span class="ruby-value">2</span>].<span class="ruby-identifier">nil_if_missing</span>
|
246
|
+
}
|
247
|
+
<span class="ruby-keyword">end</span></pre>
|
248
|
+
</div>
|
249
|
+
</div>
|
250
|
+
|
251
|
+
|
252
|
+
</div>
|
253
|
+
|
254
|
+
<div id="method-i-split_hooks" class="method-detail ">
|
255
|
+
<div class="method-heading">
|
256
|
+
<span class="method-name">split_hooks</span><span
|
257
|
+
class="method-args">()</span>
|
258
|
+
<span class="method-click-advice">click to toggle source</span>
|
259
|
+
</div>
|
260
|
+
|
261
|
+
<div class="method-description">
|
262
|
+
|
263
|
+
|
264
|
+
<div class="method-source-code" id="split_hooks-source">
|
265
|
+
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 22</span>
|
266
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">split_hooks</span>
|
267
|
+
<span class="ruby-identifier">split</span>(<span class="ruby-regexp">/\^\^/</span>).<span class="ruby-identifier">map</span>(<span class="ruby-operator">&</span><span class="ruby-value">:split_hook</span>)
|
268
|
+
<span class="ruby-keyword">end</span></pre>
|
269
|
+
</div>
|
270
|
+
</div>
|
271
|
+
|
272
|
+
|
273
|
+
</div>
|
274
|
+
|
275
|
+
<div id="method-i-valid_hook" class="method-detail ">
|
276
|
+
<div class="method-heading">
|
277
|
+
<span class="method-name">valid_hook</span><span
|
278
|
+
class="method-args">()</span>
|
279
|
+
<span class="method-click-advice">click to toggle source</span>
|
280
|
+
</div>
|
281
|
+
|
282
|
+
<div class="method-description">
|
283
|
+
|
284
|
+
|
285
|
+
<div class="method-source-code" id="valid_hook-source">
|
286
|
+
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 26</span>
|
287
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">valid_hook</span>
|
288
|
+
<span class="ruby-keyword">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-keyword">self</span>)
|
289
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-keyword">self</span>)
|
290
|
+
<span class="ruby-keyword">elsif</span> <span class="ruby-keyword">self</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^\[.*?\]\((.*?)\)$/</span>
|
291
|
+
<span class="ruby-identifier">mdlink</span> = <span class="ruby-node">$1</span>
|
292
|
+
<span class="ruby-identifier">mdlink</span>.<span class="ruby-identifier">valid_hook</span>
|
293
|
+
<span class="ruby-keyword">else</span>
|
294
|
+
<span class="ruby-keyword">self</span>
|
295
|
+
<span class="ruby-keyword">end</span>
|
296
|
+
<span class="ruby-keyword">end</span></pre>
|
297
|
+
</div>
|
298
|
+
</div>
|
299
|
+
|
300
|
+
|
301
|
+
</div>
|
302
|
+
|
303
|
+
<div id="method-i-valid_hook-21" class="method-detail ">
|
304
|
+
<div class="method-heading">
|
305
|
+
<span class="method-name">valid_hook!</span><span
|
306
|
+
class="method-args">()</span>
|
307
|
+
<span class="method-click-advice">click to toggle source</span>
|
308
|
+
</div>
|
309
|
+
|
310
|
+
<div class="method-description">
|
311
|
+
|
312
|
+
|
313
|
+
<div class="method-source-code" id="valid_hook-21-source">
|
314
|
+
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 37</span>
|
315
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">valid_hook!</span>
|
316
|
+
<span class="ruby-identifier">replace</span> <span class="ruby-identifier">valid_hook</span>
|
317
|
+
<span class="ruby-keyword">end</span></pre>
|
318
|
+
</div>
|
319
|
+
</div>
|
320
|
+
|
321
|
+
|
322
|
+
</div>
|
323
|
+
|
324
|
+
</section>
|
325
|
+
|
326
|
+
</section>
|
327
|
+
</main>
|
328
|
+
|
329
|
+
|
330
|
+
<footer id="validator-badges" role="contentinfo">
|
331
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
332
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.3.
|
333
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
334
|
+
</footer>
|
335
|
+
|
data/html/created.rid
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
Sat, 28 May 2022 08:27:12 -0500
|
2
|
+
README.rdoc Tue, 07 Jul 2020 16:57:07 -0500
|
3
|
+
lib/hook.rb Thu, 26 May 2022 08:20:27 -0500
|
4
|
+
lib/hook/hookapp.rb Thu, 26 May 2022 08:19:39 -0500
|
5
|
+
lib/hook/hooker.rb Sun, 31 Oct 2021 07:54:46 -0500
|
6
|
+
lib/hook/markdown_document_listener.rb Sun, 26 Sep 2021 07:45:59 -0500
|
7
|
+
lib/hook/prompt.rb Thu, 26 May 2022 08:20:13 -0500
|
8
|
+
lib/hook/string.rb Sun, 31 Oct 2021 07:03:15 -0500
|
9
|
+
lib/hook/version.rb Sat, 28 May 2022 08:21:49 -0500
|
10
|
+
bin/hook Sun, 31 Oct 2021 07:54:10 -0500
|
data/html/css/fonts.css
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/),
|
3
|
+
* with Reserved Font Name "Source". All Rights Reserved. Source is a
|
4
|
+
* trademark of Adobe Systems Incorporated in the United States and/or other
|
5
|
+
* countries.
|
6
|
+
*
|
7
|
+
* This Font Software is licensed under the SIL Open Font License, Version
|
8
|
+
* 1.1.
|
9
|
+
*
|
10
|
+
* This license is copied below, and is also available with a FAQ at:
|
11
|
+
* http://scripts.sil.org/OFL
|
12
|
+
*/
|
13
|
+
|
14
|
+
@font-face {
|
15
|
+
font-family: "Source Code Pro";
|
16
|
+
font-style: normal;
|
17
|
+
font-weight: 400;
|
18
|
+
src: local("Source Code Pro"),
|
19
|
+
local("SourceCodePro-Regular"),
|
20
|
+
url("../fonts/SourceCodePro-Regular.ttf") format("truetype");
|
21
|
+
}
|
22
|
+
|
23
|
+
@font-face {
|
24
|
+
font-family: "Source Code Pro";
|
25
|
+
font-style: normal;
|
26
|
+
font-weight: 700;
|
27
|
+
src: local("Source Code Pro Bold"),
|
28
|
+
local("SourceCodePro-Bold"),
|
29
|
+
url("../fonts/SourceCodePro-Bold.ttf") format("truetype");
|
30
|
+
}
|
31
|
+
|
32
|
+
/*
|
33
|
+
* Copyright (c) 2010, Łukasz Dziedzic (dziedzic@typoland.com),
|
34
|
+
* with Reserved Font Name Lato.
|
35
|
+
*
|
36
|
+
* This Font Software is licensed under the SIL Open Font License, Version
|
37
|
+
* 1.1.
|
38
|
+
*
|
39
|
+
* This license is copied below, and is also available with a FAQ at:
|
40
|
+
* http://scripts.sil.org/OFL
|
41
|
+
*/
|
42
|
+
|
43
|
+
@font-face {
|
44
|
+
font-family: "Lato";
|
45
|
+
font-style: normal;
|
46
|
+
font-weight: 300;
|
47
|
+
src: local("Lato Light"),
|
48
|
+
local("Lato-Light"),
|
49
|
+
url("../fonts/Lato-Light.ttf") format("truetype");
|
50
|
+
}
|
51
|
+
|
52
|
+
@font-face {
|
53
|
+
font-family: "Lato";
|
54
|
+
font-style: italic;
|
55
|
+
font-weight: 300;
|
56
|
+
src: local("Lato Light Italic"),
|
57
|
+
local("Lato-LightItalic"),
|
58
|
+
url("../fonts/Lato-LightItalic.ttf") format("truetype");
|
59
|
+
}
|
60
|
+
|
61
|
+
@font-face {
|
62
|
+
font-family: "Lato";
|
63
|
+
font-style: normal;
|
64
|
+
font-weight: 700;
|
65
|
+
src: local("Lato Regular"),
|
66
|
+
local("Lato-Regular"),
|
67
|
+
url("../fonts/Lato-Regular.ttf") format("truetype");
|
68
|
+
}
|
69
|
+
|
70
|
+
@font-face {
|
71
|
+
font-family: "Lato";
|
72
|
+
font-style: italic;
|
73
|
+
font-weight: 700;
|
74
|
+
src: local("Lato Italic"),
|
75
|
+
local("Lato-Italic"),
|
76
|
+
url("../fonts/Lato-RegularItalic.ttf") format("truetype");
|
77
|
+
}
|
78
|
+
|
79
|
+
/*
|
80
|
+
* -----------------------------------------------------------
|
81
|
+
* SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
82
|
+
* -----------------------------------------------------------
|
83
|
+
*
|
84
|
+
* PREAMBLE
|
85
|
+
* The goals of the Open Font License (OFL) are to stimulate worldwide
|
86
|
+
* development of collaborative font projects, to support the font creation
|
87
|
+
* efforts of academic and linguistic communities, and to provide a free and
|
88
|
+
* open framework in which fonts may be shared and improved in partnership
|
89
|
+
* with others.
|
90
|
+
*
|
91
|
+
* The OFL allows the licensed fonts to be used, studied, modified and
|
92
|
+
* redistributed freely as long as they are not sold by themselves. The
|
93
|
+
* fonts, including any derivative works, can be bundled, embedded,
|
94
|
+
* redistributed and/or sold with any software provided that any reserved
|
95
|
+
* names are not used by derivative works. The fonts and derivatives,
|
96
|
+
* however, cannot be released under any other type of license. The
|
97
|
+
* requirement for fonts to remain under this license does not apply
|
98
|
+
* to any document created using the fonts or their derivatives.
|
99
|
+
*
|
100
|
+
* DEFINITIONS
|
101
|
+
* "Font Software" refers to the set of files released by the Copyright
|
102
|
+
* Holder(s) under this license and clearly marked as such. This may
|
103
|
+
* include source files, build scripts and documentation.
|
104
|
+
*
|
105
|
+
* "Reserved Font Name" refers to any names specified as such after the
|
106
|
+
* copyright statement(s).
|
107
|
+
*
|
108
|
+
* "Original Version" refers to the collection of Font Software components as
|
109
|
+
* distributed by the Copyright Holder(s).
|
110
|
+
*
|
111
|
+
* "Modified Version" refers to any derivative made by adding to, deleting,
|
112
|
+
* or substituting -- in part or in whole -- any of the components of the
|
113
|
+
* Original Version, by changing formats or by porting the Font Software to a
|
114
|
+
* new environment.
|
115
|
+
*
|
116
|
+
* "Author" refers to any designer, engineer, programmer, technical
|
117
|
+
* writer or other person who contributed to the Font Software.
|
118
|
+
*
|
119
|
+
* PERMISSION & CONDITIONS
|
120
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
121
|
+
* a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
122
|
+
* redistribute, and sell modified and unmodified copies of the Font
|
123
|
+
* Software, subject to the following conditions:
|
124
|
+
*
|
125
|
+
* 1) Neither the Font Software nor any of its individual components,
|
126
|
+
* in Original or Modified Versions, may be sold by itself.
|
127
|
+
*
|
128
|
+
* 2) Original or Modified Versions of the Font Software may be bundled,
|
129
|
+
* redistributed and/or sold with any software, provided that each copy
|
130
|
+
* contains the above copyright notice and this license. These can be
|
131
|
+
* included either as stand-alone text files, human-readable headers or
|
132
|
+
* in the appropriate machine-readable metadata fields within text or
|
133
|
+
* binary files as long as those fields can be easily viewed by the user.
|
134
|
+
*
|
135
|
+
* 3) No Modified Version of the Font Software may use the Reserved Font
|
136
|
+
* Name(s) unless explicit written permission is granted by the corresponding
|
137
|
+
* Copyright Holder. This restriction only applies to the primary font name as
|
138
|
+
* presented to the users.
|
139
|
+
*
|
140
|
+
* 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
141
|
+
* Software shall not be used to promote, endorse or advertise any
|
142
|
+
* Modified Version, except to acknowledge the contribution(s) of the
|
143
|
+
* Copyright Holder(s) and the Author(s) or with their explicit written
|
144
|
+
* permission.
|
145
|
+
*
|
146
|
+
* 5) The Font Software, modified or unmodified, in part or in whole,
|
147
|
+
* must be distributed entirely under this license, and must not be
|
148
|
+
* distributed under any other license. The requirement for fonts to
|
149
|
+
* remain under this license does not apply to any document created
|
150
|
+
* using the Font Software.
|
151
|
+
*
|
152
|
+
* TERMINATION
|
153
|
+
* This license becomes null and void if any of the above conditions are
|
154
|
+
* not met.
|
155
|
+
*
|
156
|
+
* DISCLAIMER
|
157
|
+
* THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
158
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
159
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
160
|
+
* OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
161
|
+
* COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
162
|
+
* INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
163
|
+
* DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
164
|
+
* FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
165
|
+
* OTHER DEALINGS IN THE FONT SOFTWARE.
|
166
|
+
*/
|
167
|
+
|