Browse code

Temporary storage of old files

Nika Zhenya authored on 28/01/2019 19:39:36
Showing 62 changed files
1 1
deleted file mode 100644
... ...
@@ -1,34 +0,0 @@
1
-# Publishing is Coding: Change My Mind
2
-
3
-## Donations
4
-
5
-🌮 Donate for some tacos with [ETH](https://etherscan.io/address/0x39b0bf0cf86776060450aba23d1a6b47f5570486).
6
-
7
-:dog: Donate for some dog food with [DOGE](https://dogechain.info/address/DMbxM4nPLVbzTALv5n8G16TTzK4WDUhC7G).
8
-
9
-:beer: Donate for some beers with [PayPal](https://www.paypal.me/perrotuerto).
10
-
11
-## Related links (spanish)
12
-
13
-Taller de Edición Digital (Digital Publishing Workshop): [ted.cliteratu.re](https://ted.cliteratu.re/).
14
-
15
-_Edición digital como metodología para una edición global_ (_Digital Publishing as Methodology for Global Publishing_): [ed.cliteratu.re](https://ed.cliteratu.re/).
16
-
17
-Pecas, herramientas editoriales (Pecas, publishing tools): [pecas.cliteratu.re](https://pecas.cliteratu.re/).
18
-
19
-Blog: [perrotuerto.blog](https://perrotuerto.blog).
20
-
21
-## License
22
-
23
-All content is under [Licencia Editorial Abierta y Libre (LEAL)](https://github.com/NikaZhenya/licencia-editorial-abierta-y-libre).
24
-
25
-“Licencia Editorial Abierta y Libre” is translated to “Open and Free Publishing 
26
-License”. “LEAL” is the acronym but also means “loyal” in spanish.
27
-
28
-With LEAL you are free to use, copy, reedit, modify, distribute or merchandise
29
-any of this content under the following conditions:
30
-
31
-1. Any product produced with this content must be under some type of LEAL.
32
-2. Merchandising cannot be the only way to acquire the final product.
33
-3. The use of content must not harm any collaborator.
34
-4. All files (editables or finals) must be public access.
35 1
deleted file mode 100644
... ...
@@ -1,299 +0,0 @@
1
-#!/usr/bin/env ruby
2
-# encoding: UTF-8
3
-# coding: UTF-8
4
-
5
-require 'fileutils'
6
-require 'time'
7
-require 'json'
8
-
9
-#=> Also requires Inkscape and Pecas
10
-
11
-Encoding.default_internal = Encoding::UTF_8
12
-Dir.chdir(File.dirname(__FILE__))
13
-
14
-#=> Variables
15
-$language = 'en-US'
16
-$mariana = 'Mariana Eguaras\' blog'
17
-$author_name = 'Nika Zhenya'
18
-$author_email = 'hi@perrotuerto.blog'
19
-$site_name = 'Publishing is Coding: Change My Mind'
20
-$site_description = 'Such empty! It is under construction…'
21
-$site_keywords = 'publishing, blog, book, ebook, methodology, foss, libre-software, format, markdown, html, epub, pdf, mobi, latex, tex'
22
-$site_link = 'https://perrotuerto.blog'
23
-$site_img = 'icon.png'
24
-$date = Time.now.to_s.split(' ')[0]
25
-$head = File.read('template/site/head.html')
26
-$header = File.read('template/site/header.html')
27
-$footer = File.read('template/site/footer.html')
28
-$rss = {
29
-  :channel => {
30
-    :title => $site_name,
31
-    :link => $site_link,
32
-    :description => $site_description,
33
-    :language => $language,
34
-    :managingEditor => $author_email + ' (' + $author_name + ')',
35
-    :lastBuildDate => '',
36
-    :image => {
37
-      :title => $site_name,
38
-      :url => $site_link + '/' + $site_img,
39
-      :link => $site_link
40
-    },
41
-    :items => []
42
-  }
43
-}
44
-$xml = []
45
-
46
-#=> Definitions
47
-
48
-# Gets date in proper format
49
-def get_date d, rfc = false
50
-  d = d.split('-')
51
-
52
-  def month m
53
-    months = [
54
-      'January', 'February', 'March', 'April',
55
-      'May', 'June', 'July', 'August',
56
-      'September', 'October', 'November', 'December'
57
-    ]
58
-
59
-    return months[m.to_i - 1]
60
-  end
61
-
62
-  if rfc
63
-    return Time.new(d[0], d[1], d[2]).rfc2822
64
-  else
65
-    return month(d[1]) + ' ' + 
66
-           d[2].to_i.to_s + ', ' + 
67
-           d[0]
68
-  end
69
-end
70
-
71
-# Replaces strings
72
-def replace_content content, title = 'Main'
73
-  elements = [
74
-    ['language', $language],
75
-    ['site_name', $site_name],
76
-    ['site_description', $site_description],
77
-    ['site_keywords', $site_keywords],
78
-    ['site_link', $site_link],
79
-    ['site_img', $site_img],
80
-    ['author_name', $author_name],
81
-    ['author_email', $author_email],
82
-    ['date', get_date($date)],
83
-    ['title', title]
84
-  ]
85
-
86
-  elements.each do |e|
87
-    content.gsub!("$#{e[0]}$", e[1])
88
-  end
89
-
90
-  if content.split("\n")[0] == '<header>'
91
-    content.gsub!($mariana, "<a target=\"_blank\" href=\"https://marianaeguaras.com/blog/\">#{$mariana}</a>")
92
-  end
93
-
94
-  if title == 'Main' 
95
-    content.gsub!('href="../', 'href="')
96
-    content.gsub!('src="../', 'src="') 
97
-  end
98
-
99
-  return content
100
-end
101
-
102
-# Changes file content
103
-def change_file url, content
104
-  file = File.new(url, 'w:UTF-8')
105
-  file.puts content
106
-  file.close
107
-end
108
-
109
-# Converts MD in other formats
110
-def convert_md md
111
-  md_content = []
112
-  item = {
113
-    :guid => $site_link + '/html/' + File.basename(md, '.*'),
114
-    :title => '', 
115
-    :link => $site_link + '/html/' + File.basename(md, '.*') + '.html',
116
-    :description => '',
117
-    :author => $author_email + ' (' + $author_name + ')',
118
-    :category => '',
119
-    :pubDate => ''
120
-  }
121
-
122
-  # Gets properties from MD
123
-  def item_split s
124
-    return s.gsub(/@\S+\['(.*?)'\]/, '\1').strip.split('\',\'')
125
-  end
126
-
127
-  puts "Building '" + File.basename(md) + "'…"
128
-
129
-  # Analizes MD
130
-  file = File.open(md, 'r:UTF-8')
131
-  file.each_with_index do |l, i|
132
-    if i == 0
133
-      item[:title] = l.gsub(/^#/, '').strip
134
-    end
135
-
136
-    if l =~ /^@meta\[.*?\]\s*?$/
137
-      data = item_split(l)
138
-      item[:pubDate] = get_date(data[0], true)
139
-      item[:category] = data[1]
140
-      item[:description] = data[2]
141
-      md_content.push(
142
-        '<p class="meta">' +
143
-        get_date(data[0]) + ' | ' +
144
-        data[1] + ' | ' +
145
-        '<span class="smallcap"><a target="_blank" href="' + $site_link + '/md/' + File.basename(md) + '">MD</a></span> / ' +
146
-        '<span class="smallcap"><a target="_blank" href="' + $site_link + '/ebooks/' + File.basename(md, ".*") + '.epub">EPUB</a></span> / ' +
147
-        '<span class="smallcap"><a target="_blank" href="' + $site_link + '/ebooks/' + File.basename(md, ".*") + '.mobi">MOBI</a></span> / ' +
148
-        '<a target="_blank" href="' + data[3] + '">spanish version</a>' +
149
-        '</p>'
150
-      )
151
-    else
152
-      md_content.push(l)
153
-    end
154
-  end
155
-
156
-  # Everything is gonna be created in a temporary directory
157
-  Dir.mkdir('tmp')
158
-  Dir.chdir('tmp')
159
-
160
-  # Some variables that are going to be used
161
-  html_name = '../html/' + File.basename(md, '.*') + '.html'
162
-  new_md_name = File.basename(md)
163
-  cover_url = '../../template/ebooks/'
164
-
165
-  # Creates an MD with some changes so it can be converted to HTML
166
-  change_file(new_md_name, md_content)
167
-  system("pc-pandog -i #{new_md_name} -o #{html_name}")
168
-
169
-  # Will convert HTML to EPUB and MOBI
170
-  system("pc-automata --init")
171
-  Dir.chdir('epub-automata')
172
-
173
-  # Modifies the metadata
174
-  yaml_content = File.read('meta-data.yaml')
175
-  yaml_content.gsub!('title: Sin título', 'title: "' + item[:title] + '"')
176
-              .gsub!('Apellido, Nombre', $author_name)
177
-              .gsub!('publisher:', "publisher:\n  - Perro Tuerto")
178
-              .gsub!('synopsis:', 'synopsis: "' + item[:description] + '"')
179
-              .gsub!('category:', "category:\n  - \"" + item[:category] + '"')
180
-              .gsub!('language: es', 'language: en')
181
-              .gsub!('cover:', 'cover: cover.png')
182
-  change_file('meta-data.yaml', yaml_content)
183
-
184
-  # Creates the cover
185
-  FileUtils.cp(cover_url + 'svg/cover.svg', cover_url + 'svg/cover_tmp.svg')
186
-  svg_content = File.read(cover_url + 'svg/cover_tmp.svg')
187
-  svg_content = replace_content(svg_content, item[:title])
188
-  change_file(cover_url + 'svg/cover_tmp.svg', svg_content)
189
-  Dir.mkdir(cover_url + 'img')
190
-  quiet = `inkscape -z -e #{cover_url}img/cover.png #{cover_url}svg/cover_tmp.svg`
191
-
192
-  # Copies the images
193
-  Dir.glob('../../img/*.*').each do |img|
194
-    if File.basename(img) =~ /^e#{File.basename(md)[5..7]}/
195
-      FileUtils.cp(img, cover_url + 'img')
196
-    end
197
-  end
198
-
199
-  # Creates the ebooks
200
-  system("pc-automata -f ../#{html_name} -i #{cover_url}img -c #{cover_url}img/cover.png -s ../../css/core.css -x ../../template/ebooks/xhtml --no-pre --no-analytics --no-ace")
201
-
202
-  # Removes temporary covers
203
-  FileUtils.rm("#{cover_url}svg/cover_tmp.svg")
204
-  FileUtils.rm_rf("#{cover_url}img")
205
-
206
-  # Renames and moves the ebooks
207
-  Dir.glob('*.{epub,mobi}').each do |ebook|
208
-    if File.basename(ebook) !~ /^epub-[\w|\d]+?\.epub/
209
-      FileUtils.mv(ebook, '../../ebooks/' + File.basename(md, '.*') + File.extname(ebook))
210
-    end
211
-  end
212
-  Dir.chdir('..')
213
-
214
-  # Changes head, header, footer and styles for the final HTML
215
-  write = false
216
-  html_content = File.read(html_name).gsub(/\n/,'')
217
-  html_content.gsub!(/.*?<\/style>\s+/, '')
218
-              .gsub!(/<\/body>.*?$/, '')
219
-  change_file(html_name, [replace_content($head, item[:title]), 
220
-                          replace_content($header), 
221
-                          html_content, 
222
-                          replace_content($footer)])
223
-
224
-  # Deletes temporary folder
225
-  Dir.chdir('..')
226
-  FileUtils.rm_rf('tmp')
227
-
228
-  # Adds content to RSS
229
-  $rss[:channel][:items].push(item)
230
-end
231
-
232
-# Converts the RSS to a XML syntax
233
-def create_xml hash, space = ''
234
-  hash.each do |k, v|
235
-    if k.to_s != 'items'
236
-      $xml.push(space + '<' + k.to_s + '>')
237
-
238
-      if k.to_s == 'channel'
239
-        $xml.push(space + '  <atom:link href="' + $site_link + '/feed/rss.xml" rel="self" type="application/rss+xml" />')
240
-      end
241
-    end
242
-
243
-    if v.class == Hash
244
-      create_xml(v, space + '  ')
245
-    elsif v.class == Array
246
-      v.each do |e| 
247
-        $xml.push(space + '<item>')
248
-        create_xml(e, space + '  ')
249
-        $xml.push(space + '</item>')
250
-      end
251
-    else
252
-      $xml.push(space + '  ' + v)
253
-    end
254
-
255
-    if k.to_s != 'items' 
256
-      $xml.push(space + '</' + k.to_s + '>')
257
-    end
258
-  end
259
-end
260
-
261
-#=> Deployment
262
-
263
-# Generates core CSS
264
-Dir.chdir('css')
265
-system("pc-add --add css")
266
-change_file('core.css', [File.read('styles.css'), File.read('ebooks.css')])
267
-Dir.chdir('..')
268
-
269
-# Gets MDs to convert in other formats
270
-Dir.glob('md/*.{md}').each_with_index do |md, i|
271
-  convert_md(File.absolute_path(md))
272
-end
273
-
274
-# Last info added to RSS
275
-$rss[:channel][:lastBuildDate] = get_date($date, true)
276
-$rss[:channel][:items].sort_by!{|h| h[:link]}.reverse!
277
-create_xml($rss)
278
-
279
-# Builds index.html
280
-puts "Building 'index.html'…"
281
-html_content = []
282
-$rss[:channel][:items].each do |item|
283
-  inner_html = '<div class="entry" id="' + item[:guid].split('/').last + '"><p>' +
284
-    '<a href="' + item[:link] + '">' + item[:title] + '</a>' +
285
-    '</p><p class="meta">' + get_date(Time.parse(item[:pubDate]).to_s.split(/\s+/)[0]) +
286
-    ' | ' + item[:category] + '</p><p>' + item[:description] + '</p></div>'
287
-  html_content.push(inner_html.gsub!($site_link, '.'))
288
-end
289
-change_file('index.html', [replace_content($head), 
290
-                           replace_content($header), 
291
-                           html_content, 
292
-                           replace_content($footer)])
293
-
294
-# Builds RSS
295
-puts "Building 'rss.xml'…"
296
-change_file('feed/rss.xml', ['<?xml version="1.0" ?>', 
297
-                             '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">', 
298
-                             $xml, 
299
-                             '</rss>'])
300 1
deleted file mode 100644
... ...
@@ -1,824 +0,0 @@
1
-/**************************************************/
2
-/******************* RESETEADOR *******************/
3
-/**************************************************/
4
-
5
-/* http://meyerweb.com/eric/tools/css/reset/ v2.0 */
6
-
7
-html, body, div, span, applet, object, iframe,
8
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
9
-a, abbr, acronym, address, big, cite, code,
10
-del, dfn, em, img, ins, kbd, q, s, samp,
11
-small, strike, strong, sub, sup, tt, var,
12
-b, u, i, center,
13
-dl, dt, dd, ol, ul, li,
14
-fieldset, form, label, legend,
15
-table, caption, tbody, tfoot, thead, tr, th, td,
16
-article, aside, canvas, details, embed,
17
-figure, figcaption, footer, header, hgroup,
18
-menu, nav, output, ruby, section, summary,
19
-time, mark, audio, video {
20
-    margin: 0;
21
-    padding: 0;
22
-    border: 0;
23
-    font-size: 100%;
24
-    font: inherit;
25
-    vertical-align: baseline;
26
-}
27
-
28
-/* Old browsers / Para viejos exploradores */
29
-
30
-article, aside, details, figcaption, figure,
31
-footer, header, hgroup, menu, nav, section {
32
-    display: block;
33
-}
34
-
35
-body {
36
-    line-height: 1.5;
37
-}
38
-
39
-ol, ul {
40
-    list-style: none;
41
-}
42
-
43
-blockquote, q {
44
-    quotes: none;
45
-}
46
-
47
-blockquote:before, blockquote:after,
48
-q:before, q:after {
49
-    content: '';
50
-    content: none;
51
-}
52
-
53
-table {
54
-    border-collapse: collapse;
55
-    border-spacing: 0;
56
-}
57
-
58
-/**************************************************/
59
-
60
-/* Fuentes */
61
-
62
-@font-face {
63
-    font-family: "Bitter Regular";
64
-    src: url(../ttf/bitter-regular.ttf);
65
-}
66
-
67
-@font-face {
68
-    font-family: "Bitter Italic";
69
-    src: url(../ttf/bitter-italic.ttf);
70
-}
71
-
72
-@font-face {
73
-    font-family: "Bitter Bold";
74
-    src: url(../ttf/bitter-bold.ttf);
75
-}
76
-
77
-@font-face {
78
-    font-family: "Bitter BoldItalic";
79
-    src: url(../ttf/bitter-bolditalic.ttf);
80
-}
81
-
82
-/* Body / Cuerpo */
83
-
84
-@media screen and (min-width: 769px) {
85
-    body {
86
-        margin: 5em;
87
-    }
88
-    
89
-    .no-margin, .sin-margen {
90
-        margin: -5em;
91
-    }
92
-}
93
-
94
-@media screen and (max-width: 768px) {
95
-    body {
96
-        margin: 4em;
97
-    }
98
-    
99
-    .no-margin, .sin-margen {
100
-        margin: -4em;
101
-    }
102
-}
103
-
104
-@media screen and (max-width: 640px) {
105
-    body {
106
-        margin: 3em;
107
-    }
108
-    
109
-    .no-margin, .sin-margen {
110
-        margin: -3em;
111
-    }
112
-}
113
-
114
-@media screen and (max-width: 480px) {
115
-    body {
116
-        margin: 2em;
117
-    }
118
-    
119
-    .no-margin, .sin-margen {
120
-        margin: -2em;
121
-    }
122
-}
123
-
124
-@media screen and (max-width: 320px) {
125
-    body {
126
-        margin: 1em;
127
-    }
128
-    
129
-    .no-margin, .sin-margen {
130
-        margin: -1em;
131
-    }
132
-}
133
-
134
-@media amzn-mobi, amzn-kf8 {    /* For Kindle because it generates a lot of margin / Para Kindle porque genera mucho margen */
135
-    body {
136
-        margin: 0;
137
-    }
138
-
139
-    .no-margin, .sin-margen {
140
-        margin: 0;
141
-    }
142
-}
143
-
144
-/* Sections / Secciones */
145
-
146
-section + section {
147
-    margin-top: 10em;
148
-}
149
-
150
-/* Headers / Encabezados */
151
-
152
-h1, h2, h3, h4, h5, h6 {
153
-    font-family: "Bitter Regular", Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
154
-    margin-bottom: 1em;
155
-    text-align: left;
156
-    font-size: 1em;
157
-    -moz-hyphens: none !important;
158
-    -webkit-hyphens: none !important;
159
-    -o-hyphens: none !important;
160
-    -ms-hyphens: none !important;
161
-    hyphens: none !important;
162
-}
163
-
164
-h2, h3, h4, h5, h6 {
165
-    margin-top: 2em;
166
-}
167
-
168
-h4, h5, h6 {
169
-    text-align: right;
170
-}
171
-
172
-h1 {
173
-    margin-bottom: 6em;
174
-}
175
-
176
-h3, h5 {
177
-    font-family: "Bitter Italic", Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
178
-    font-style: italic;
179
-}
180
-
181
-h6 {
182
-    font-family: "Bitter Bold", Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
183
-    font-weight: bold;
184
-}
185
-
186
-h1.title, h1.titulo {
187
-    margin-top: 4em;
188
-    margin-bottom: 0;
189
-    font-size: 2em;
190
-}
191
-
192
-h2.subtitle, h2.subtitulo {
193
-    margin-top: .5em;
194
-    margin-bottom: 3em;
195
-    font-size: 1.25em;
196
-}
197
-
198
-/* Paragraphs / Párrafos */
199
-
200
-p, blockquote, li, figcaption, details, aside {
201
-    font-family: "Bitter Regular", Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
202
-    font-size: 1em;
203
-    text-align: justify;
204
-    line-height: 1.5em;
205
-    -moz-hyphens: auto;
206
-    -webkit-hyphens: auto;
207
-    -o-hyphens: auto;
208
-    -ms-hyphens: auto;
209
-    hyphens: auto;
210
-}
211
-
212
-p + p {
213
-    text-indent: 1.5em;
214
-}
215
-
216
-blockquote {
217
-    font-size: .9em;
218
-    margin: 1em 1.5em;
219
-}
220
-
221
-blockquote + blockquote {
222
-    text-indent: 1.5em;
223
-    margin-top: -1em;
224
-}
225
-
226
-blockquote, blockquote > * {
227
-    line-height: 1.65;
228
-}
229
-
230
-.justified, .justificado {
231
-    text-align: justify !important;
232
-}
233
-
234
-.right, .derecha {
235
-    text-indent: 0;
236
-    text-align: right !important;
237
-}
238
-
239
-.left, .izquierda {
240
-    text-align: left !important;
241
-}
242
-
243
-.centered, .centrado {
244
-    text-indent: 0;
245
-    text-align: center !important;
246
-}
247
-
248
-.hanging, .frances {
249
-    margin-left: 1.5em;
250
-    text-indent: -1.5em;
251
-    text-align: left !important;
252
-}
253
-
254
-* + .hanging, * + .frances {
255
-    margin-top: 1em;
256
-}
257
-
258
-.hanging + .hanging, .frances + .frances {
259
-    margin-top: 0;
260
-    text-indent: -1.5em;
261
-}
262
-
263
-.indent, .sangria {
264
-    text-indent: 1.5em;
265
-}
266
-
267
-.no-indent, .sin-sangria {
268
-    text-indent: 0;
269
-}
270
-
271
-.no-hyphens, .sin-separacion {
272
-    -moz-hyphens: none !important;
273
-    -webkit-hyphens: none !important;
274
-    -o-hyphens: none !important;
275
-    -ms-hyphens: none !important;
276
-    hyphens: none !important;
277
-}
278
-
279
-.invisible {
280
-    visibility: hidden;
281
-}
282
-
283
-.hidden, .oculto {
284
-    display: none;
285
-}
286
-
287
-.block, .bloque {
288
-    display: block;
289
-}
290
-
291
-/* Font effects / Efectos en las fuentes */
292
-
293
-i, em {
294
-    font-family: "Bitter Italic", Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
295
-    font-style: italic;
296
-}
297
-
298
-b, strong {
299
-    font-family: "Bitter Bold", Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
300
-    font-weight: bold;
301
-}
302
-
303
-i > b, b > i,
304
-em > strong, strong > em,
305
-i > strong, strong > i,
306
-em > b, b > em {
307
-    font-family: "Bitter BoldItalic", Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
308
-}
309
-
310
-.initial, .capitular {
311
-    float: left;
312
-    font-size: 3em;
313
-    margin-top: .15em;
314
-    padding-right: .1em;
315
-}
316
-
317
-.uppercase, .versal {
318
-    text-transform: uppercase;
319
-}
320
-
321
-.normal, .redonda {
322
-    font-variant: none;
323
-}
324
-
325
-.smallcap-light, .versalita-ligera {
326
-    font-variant: small-caps;
327
-    -moz-hyphens: auto;
328
-    -webkit-hyphens: auto;
329
-    -o-hyphens: auto;
330
-    -ms-hyphens: auto;
331
-    hyphens: auto;
332
-}
333
-
334
-.smallcap, .versalita {
335
-    text-transform: lowercase;
336
-    font-variant: small-caps;
337
-    -moz-hyphens: auto;
338
-    -webkit-hyphens: auto;
339
-    -o-hyphens: auto;
340
-    -ms-hyphens: auto;
341
-    hyphens: auto;
342
-}
343
-
344
-.underline, .subrayado {
345
-    text-decoration: underline black;
346
-}
347
-
348
-.auto-width, .anchura-auto {
349
-    display: block;
350
-    width: auto;
351
-    margin-left: auto;
352
-    margin-right: auto;
353
-}
354
-
355
-@media not amzn-mobi, not amzn-kf8 {    /* For any device except Kindle / Para cualquier dispositivo excepto Kindle */
356
-    .auto-width, .anchura-auto {
357
-        max-width: 100%;
358
-    }
359
-}
360
-
361
-/* Links / Enlaces */
362
-
363
-a, a:link, a:visited {
364
-    text-decoration: none;
365
-}
366
-
367
-/* Lists / Listas */
368
-
369
-ol, ul {
370
-    margin: 1em 1em 1em 2.5em;
371
-    padding: 0;
372
-}
373
-
374
-ol {
375
-    list-style-type: decimal;
376
-}
377
-
378
-ul {
379
-    list-style-type: disc;
380
-}
381
-
382
-ol ol, ol ul,
383
-ul ol, ul ul {
384
-    margin: 0 1em;
385
-}
386
-
387
-ol p, ul p {
388
-    margin-left: .5em;
389
-}
390
-
391
-ul.dash, ul.en-dash, ul.em-dash {
392
-    list-style-type: none;
393
-}
394
-
395
-ul.dash > li:before, ul.en-dash > li:before, ul.em-dash > li:before {
396
-    display: block;
397
-    width: 1.5em;
398
-    text-align: right;
399
-    padding: 0 .5em 0 0;
400
-    margin: 0 0 -1.25em -2em;
401
-}
402
-
403
-ul.dash > li:before {
404
-    content: "-";
405
-}
406
-
407
-ul.en-dash > li:before {
408
-    content: "–";
409
-}
410
-
411
-ul.em-dash > li:before {
412
-    content: "—";
413
-}
414
-
415
-li.no-count {
416
-    list-style-type: none;
417
-}
418
-
419
-li.no-count:before {
420
-    content: none !important;
421
-}
422
-
423
-.li-manual {
424
-	list-style-type: none;
425
-}
426
-
427
-.li-manual > li > p:first-child > span:first-of-type:not(.versalita) {
428
-	display: block;
429
-	margin-left: -1.5em;
430
-	margin-bottom: -1.25em;
431
-}
432
-
433
-li > .li-manual {
434
-    margin: 0 0 0 1.5em;
435
-}
436
-
437
-/* Images / Imágenes */
438
-
439
-img {    /* It helps if the source doesn't exist / Ayuda a detectarlos si no existe el recurso */
440
-    color: #0000EE;
441
-    width: 100%;
442
-}
443
-
444
-figure {
445
-    margin: 2em auto;
446
-}
447
-
448
-figcaption {
449
-    font-family: "Bitter Regular", Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
450
-    margin-top: .5em;
451
-    font-size: .9em;
452
-}
453
-
454
-figure + figure {
455
-    margin-top: 0;
456
-}
457
-
458
-p + img {
459
-    margin-left: -1.5em;
460
-    margin-top: 2em;
461
-    margin-bottom: 2em;
462
-}
463
-
464
-.caption, .leyenda {
465
-    font-size: .9em;
466
-    margin-top: -1.5em;
467
-    margin-bottom: 2em;
468
-}
469
-
470
-.caption + img, .leyenda + img {
471
-    margin-top: 0;
472
-}
473
-
474
-img + .caption, img + .leyenda {
475
-    margin-top: .5em;
476
-}
477
-
478
-.caption + p, .leyenda + p {
479
-    text-indent: 0;
480
-}
481
-
482
-p > img {
483
-    display: inline;
484
-    height: 1.5em;
485
-    width: auto;
486
-}
487
-
488
-/* Superscript and subscripts / Superíndices y subíndices */
489
-
490
-sup, sub {
491
-    font-size: .75em;
492
-    vertical-align: super;
493
-}
494
-
495
-sub {
496
-    vertical-align: sub;
497
-}
498
-
499
-/* Code / Código (inspirados en https://codepen.io/elomatreb/pen/hbgxp)*/
500
-
501
-code {
502
-    font-family: "Courier New", Courier, monospace;
503
-    background-color: #fff;
504
-    padding: .125em .5em;
505
-    border: 1px solid #ddd;
506
-    border-radius: .25em;
507
-    -moz-hyphens: none;
508
-    -webkit-hyphens: none;
509
-    -o-hyphens: none;
510
-    -ms-hyphens: none;
511
-    hyphens: none;
512
-}
513
-
514
-pre {
515
-    width: 90%;
516
-    font-family: "Courier New", Courier, monospace;
517
-    background-color: #fff;
518
-    margin: 2em auto;
519
-    padding: .5em;
520
-    line-height: 1.5;
521
-    border-radius: .25em;
522
-    box-shadow: .1em .1em .5em rgba(0,0,0,.45);
523
-    white-space: unset;
524
-}
525
-
526
-pre * {
527
-    color: #555;
528
-}
529
-
530
-pre code {
531
-    display: block;
532
-    margin: 0;
533
-    padding: 0;
534
-    background-color: inherit;
535
-    border: none;
536
-    border-radius: 0;
537
-}
538
-
539
-pre code:before {
540
-    width: 1.5em;
541
-    display: inline-block;
542
-    padding: 0 .5em;
543
-    margin-right: .5em;
544
-    color: #888;
545
-}
546
-
547
-@media not amzn-mobi, not amzn-kf8 {    /* For any device except Kindle / Para cualquier dispositivo excepto Kindle */
548
-    pre {
549
-        counter-reset: line;
550
-        overflow: scroll;
551
-    }
552
-
553
-    pre code:before {
554
-        counter-increment: line;
555
-        content: counter(line);
556
-    }
557
-
558
-    pre code {
559
-        white-space: pre;
560
-    }
561
-}
562
-
563
-@media amzn-mobi, amzn-kf8 {    /* Only for Kindle / Solo para Kindle */
564
-    pre code:before {
565
-        content: "•";
566
-    }
567
-}
568
-
569
-/* Glosses / Glosas */
570
-
571
-section.gloss, body.gloss, section.glosa, body.glosa {   /* El estilo ha de ponerse en el contenedor de los párrafos y en el span de la glosa */
572
-    margin-right: 7em;
573
-}
574
-
575
-span.gloss, span.glosa {
576
-    width: 6em;         /* No son 7 porque se resta uno del margen añadido a continuación */ 
577
-    margin-right: -8em; /* No son -7 porque se añade 1 de margen */
578
-    float: right;
579
-    text-indent: 0;
580
-    text-align: left;
581
-    font-size: .75em;
582
-}
583
-
584
-/* Poetry / Poesía: <p class="poetry">Verse 1<br />verse 2<br />verse 3.</p>*/
585
-
586
-.poetry, .poesia {
587
-    margin: 1em 1.5em;
588
-    text-indent: 0;
589
-    -moz-hyphens: none;
590
-    -webkit-hyphens: none;
591
-    -o-hyphens: none;
592
-    -ms-hyphens: none;
593
-    hyphens: none;
594
-}
595
-
596
-/* Screenwriting / Guiones */
597
-
598
-.mono, 
599
-section.script *, section.guion * {
600
-    font-family: "Courier New", Courier, monospace;
601
-}
602
-
603
-section.script *, section.guion * {
604
-    font-size: 1em;
605
-    font-style: normal;
606
-    font-weight: normal;
607
-    font-variant: normal;
608
-    margin: 0;
609
-    padding: 0;
610
-    text-indent: 0;
611
-    text-align: left;
612
-    -moz-hyphens: none !important;
613
-    -webkit-hyphens: none !important;
614
-    -o-hyphens: none !important;
615
-    -ms-hyphens: none !important;
616
-    hyphens: none !important;
617
-}
618
-
619
-section.script ol, section.guion ol,
620
-section.script ul, section.guion ul {
621
-    margin: 1em 2em;
622
-}
623
-
624
-section.script h2, section.guion h2,
625
-section.script h3, section.guion h3,
626
-section.script blockquote, section.guion blockquote {
627
-    width: 60%;
628
-    margin-left: 3em;
629
-}
630
-
631
-section.script h1, section.guion h1 {
632
-    text-transform: uppercase;
633
-    margin-bottom: 1em;
634
-}
635
-
636
-section.script h2, section.guion h2 {
637
-    margin-top: 1em;
638
-    padding-left: 6em;
639
-    text-transform: uppercase;
640
-}
641
-
642
-section.script h3, section.guion h3 {
643
-    padding-left: 3em;
644
-}
645
-
646
-section.script > p, section.guion > p {
647
-    margin-top: 1em;
648
-}
649
-
650
-section.script blockquote + blockquote > p, 
651
-section.guion blockquote + blockquote > p {
652
-    text-indent: 1.5em;
653
-}
654
-
655
-/* Special contents / Contenidos especiales */
656
-
657
-.title, .titulo {
658
-    margin-top: 3em;
659
-    margin-left: 0;
660
-    font-size: 2em;
661
-}
662
-
663
-.subtitle, .subtitulo {
664
-    margin-top: -1.25em;
665
-    margin-bottom: 3em;
666
-    margin-left: 0;
667
-}
668
-
669
-.author, .autor {
670
-    width: 250px; /* Avoids 100% width in author image / Se añade a la imagen del autor para que no abarque el 100% */
671
-}
672
-
673
-.contributor + p, .contribuidor + p {
674
-    text-indent: 0;
675
-}
676
-
677
-h1 + .contributor, h1 + .contribuidor {
678
-    margin-top: -6em !important;
679
-    margin-bottom: 6em;
680
-}
681
-
682
-.copyright, .legal * {
683
-    text-indent: 0;
684
-}
685
-
686
-.epigraph, .epigrafe {
687
-    font-size: .9em;
688
-    text-align: right;
689
-    line-height: 1.65em;
690
-    margin-left: 40%;
691
-}
692
-
693
-body > .epigraph:first-child, body > .epigrafe:first-child {
694
-    margin-top: 3em;
695
-}
696
-
697
-.epigraph + p, .epigrafe + p {
698
-    margin-top: 2em;
699
-    text-indent: 0;
700
-}
701
-
702
-.epigraph + .epigraph, .epigrafe + .epigrafe {
703
-    margin-top: .5em;
704
-}
705
-
706
-.vertical-space1, .espacio-arriba1 {
707
-    margin-top: 1em !important;
708
-}
709
-
710
-.vertical-space2, .espacio-arriba2 {
711
-    margin-top: 2em !important;
712
-}
713
-
714
-.vertical-space3, .espacio-arriba3 {
715
-    margin-top: 3em !important;
716
-}
717
-
718
-.space, .espacio {
719
-    white-space: pre-wrap;
720
-}
721
-
722
-/* Footnotes / Notas al pie */
723
-
724
-.n-note-sup {
725
-    font-style: normal;
726
-    font-weight: normal;
727
-}
728
-
729
-.n-note-hr {
730
-    margin-top: 2em;
731
-    width: 25%;
732
-    margin-left: 0;
733
-    border: 1px solid blue;
734
-    background-color: blue;
735
-}
736
-
737
-.n-note-a {
738
-    display: block;
739
-    margin-left: -3em;
740
-    margin-bottom: -1.375em;
741
-}
742
-
743
-.n-note-sup:before, .n-note-a:before {
744
-    content: "[";
745
-    color: #0000EE;
746
-}
747
-
748
-.n-note-sup:after, .n-note-a:after {
749
-    content: "]";
750
-    color: #0000EE;
751
-}
752
-
753
-.n-note-p, .n-note-p2 {
754
-    margin-left: 3em;
755
-    font-size: .9em;
756
-    text-indent: 0;
757
-}
758
-
759
-* + .n-note-p {
760
-    margin-top: 1em;
761
-    text-indent: 0;
762
-}
763
-
764
-.n-note-p2 {
765
-    margin-top: 0;
766
-    text-indent: 1.5em;
767
-}
768
-
769
-/* Indexes / Índices analíticos */
770
-
771
-.i-item-section p {
772
-    margin-top: .5em !important;
773
-}
774
-
775
-.i-item-div > h2:first-child, .i-item-div-single > h2:first-child {
776
-    margin-top: 0;
777
-}
778
-
779
-@media screen and (min-width:768px) {
780
-    @media not amzn-mobi, not-amzn-kf8 {    /* For any device except Kindle / Para cualquier dispositivo excepto Kindle */
781
-        .i-item-div {
782
-            column-count: 2;
783
-            column-gap: 2em;
784
-            column-rule: solid 1px lightgray;
785
-        }
786
-    }
787
-}
788
-
789
-.i-item-a:before {
790
-    content: "[";
791
-    color: #0000EE;
792
-}
793
-
794
-.i-item-a:after {
795
-    content: "]";
796
-    color: #0000EE;
797
-}
798
-
799
-/* For print / Para impresión */
800
-
801
-@media print {
802
-    section {
803
-        page-break-before: always;
804
-    }
805
-
806
-    section:first-of-type {
807
-        page-break-before: avoid;
808
-    }
809
-
810
-    section > h1:first-child {
811
-        padding-top: 5em !important;
812
-    }
813
-}
814
-
815
-/* Styles for this edition / Estilos de esta edición */
816
-
817
-/* ADD HERE CUSTOM STYLES / AGREGAR ESTILOS PERSONALIZADOS */
818
-body > h1:first-child {margin-bottom:0;}
819
-.addenda {border-left: 3px solid yellow; padding-left:1em;}
820
-.addenda:before {content: "addendum";display:block;margin-left:-3.5em;font-size:.75em;color:gray;background:white;}
821
-.addenda + .addenda:before {content: "";}
822
-.meta {font-size:.75em;text-indent:0;color:gray;margin-bottom:6em;}
823
-.meta a {color:gray;}
824
-.meta + p {text-indent:0;}
825 1
deleted file mode 100644
... ...
@@ -1,7 +0,0 @@
1
-body > h1:first-child {margin-bottom:0;}
2
-.addenda {border-left: 3px solid yellow; padding-left:1em;}
3
-.addenda:before {content: "addendum";display:block;margin-left:-3.5em;font-size:.75em;color:gray;background:white;}
4
-.addenda + .addenda:before {content: "";}
5
-.meta {font-size:.75em;text-indent:0;color:gray;margin-bottom:6em;}
6
-.meta a {color:gray;}
7
-.meta + p {text-indent:0;}
8 1
deleted file mode 100644
... ...
@@ -1,36 +0,0 @@
1
-body {margin:0;}
2
-body > * {float:left;}
3
-body > section {width:calc(75% - 10em);margin:5em;}
4
-header {width:calc(25% - 5em);margin-top: 5em;padding:2.5em;background-color:black;color:white;border-radius:0 .5em .5em 0;}
5
-header h1 {margin:0; font-size: 1.25em;}
6
-header h1 + p {margin-top:1em!important;}
7
-header h3 {margin-top:1em;}
8
-header a {color: white;}
9
-header p, footer nav {text-align:left;}
10
-header p + p, footer p + p {text-indent:0;}
11
-header nav > p:before {content:"> ";}
12
-section p {text-align: left;}
13
-section h1 {margin-bottom:0;}
14
-footer {border-top: 1px dashed black; width:calc(100% - 2em); margin: 1em;}
15
-footer {font-size: .75em;}
16
-footer p {text-align: center;}
17
-footer p + p {margin-top:.25em;}
18
-footer > *:first-child {margin-top: 1em;}
19
-@media screen and (max-width: 768px) {
20
-  body > * {float:none;}
21
-  body > section {width:calc(100% - 5em);margin:2.5em;}
22
-  header {width:calc(100% - 5em);margin-top:0;border-radius:0;}
23
-  header > p:first-of-type {display:inline;}
24
-  header nav {margin-top:1em;}
25
-  header nav > * {display:inline;}
26
-  header nav > p:before {content:"| ";}
27
-  header h3 {display: none;}
28
-  header h3 + p:before {content: none;}
29
-  footer {word-wrap: break-word;}
30
-}
31
-
32
-div.entry {margin-bottom:1em;padding-bottom:1em;border-bottom: 1px solid #ddd;}
33
-div.entry:last-child {border:none;}
34
-div.entry .meta {margin-bottom: 0;}
35
-
36
-#hashover {margin-top: 3em;}
37 1
deleted file mode 100644
... ...
@@ -1,817 +0,0 @@
1
-/**************************************************/
2
-/******************* RESETEADOR *******************/
3
-/**************************************************/
4
-
5
-/* http://meyerweb.com/eric/tools/css/reset/ v2.0 */
6
-
7
-html, body, div, span, applet, object, iframe,
8
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
9
-a, abbr, acronym, address, big, cite, code,
10
-del, dfn, em, img, ins, kbd, q, s, samp,
11
-small, strike, strong, sub, sup, tt, var,
12
-b, u, i, center,
13
-dl, dt, dd, ol, ul, li,
14
-fieldset, form, label, legend,
15
-table, caption, tbody, tfoot, thead, tr, th, td,
16
-article, aside, canvas, details, embed,
17
-figure, figcaption, footer, header, hgroup,
18
-menu, nav, output, ruby, section, summary,
19
-time, mark, audio, video {
20
-    margin: 0;
21
-    padding: 0;
22
-    border: 0;
23
-    font-size: 100%;
24
-    font: inherit;
25
-    vertical-align: baseline;
26
-}
27
-
28
-/* Old browsers / Para viejos exploradores */
29
-
30
-article, aside, details, figcaption, figure,
31
-footer, header, hgroup, menu, nav, section {
32
-    display: block;
33
-}
34
-
35
-body {
36
-    line-height: 1.5;
37
-}
38
-
39
-ol, ul {
40
-    list-style: none;
41
-}
42
-
43
-blockquote, q {
44
-    quotes: none;
45
-}
46
-
47
-blockquote:before, blockquote:after,
48
-q:before, q:after {
49
-    content: '';
50
-    content: none;
51
-}
52
-
53
-table {
54
-    border-collapse: collapse;
55
-    border-spacing: 0;
56
-}
57
-
58
-/**************************************************/
59
-
60
-/* Fuentes */
61
-
62
-@font-face {
63
-    font-family: "Bitter Regular";
64
-    src: url(../ttf/bitter-regular.ttf);
65
-}
66
-
67
-@font-face {
68
-    font-family: "Bitter Italic";
69
-    src: url(../ttf/bitter-italic.ttf);
70
-}
71
-
72
-@font-face {
73
-    font-family: "Bitter Bold";
74
-    src: url(../ttf/bitter-bold.ttf);
75
-}
76
-
77
-@font-face {
78
-    font-family: "Bitter BoldItalic";
79
-    src: url(../ttf/bitter-bolditalic.ttf);
80
-}
81
-
82
-/* Body / Cuerpo */
83
-
84
-@media screen and (min-width: 769px) {
85
-    body {
86
-        margin: 5em;
87
-    }
88
-    
89
-    .no-margin, .sin-margen {
90
-        margin: -5em;
91
-    }
92
-}
93
-
94
-@media screen and (max-width: 768px) {
95
-    body {
96
-        margin: 4em;
97
-    }
98
-    
99
-    .no-margin, .sin-margen {
100
-        margin: -4em;
101
-    }
102
-}
103
-
104
-@media screen and (max-width: 640px) {
105
-    body {
106
-        margin: 3em;
107
-    }
108
-    
109
-    .no-margin, .sin-margen {
110
-        margin: -3em;
111
-    }
112
-}
113
-
114
-@media screen and (max-width: 480px) {
115
-    body {
116
-        margin: 2em;
117
-    }
118
-    
119
-    .no-margin, .sin-margen {
120
-        margin: -2em;
121
-    }
122
-}
123
-
124
-@media screen and (max-width: 320px) {
125
-    body {
126
-        margin: 1em;
127
-    }
128
-    
129
-    .no-margin, .sin-margen {
130
-        margin: -1em;
131
-    }
132
-}
133
-
134
-@media amzn-mobi, amzn-kf8 {    /* For Kindle because it generates a lot of margin / Para Kindle porque genera mucho margen */
135
-    body {
136
-        margin: 0;
137
-    }
138
-
139
-    .no-margin, .sin-margen {
140
-        margin: 0;
141
-    }
142
-}
143
-
144
-/* Sections / Secciones */
145
-
146
-section + section {
147
-    margin-top: 10em;
148
-}
149
-
150
-/* Headers / Encabezados */
151
-
152
-h1, h2, h3, h4, h5, h6 {
153
-    font-family: "Bitter Regular", Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
154
-    margin-bottom: 1em;
155
-    text-align: left;
156
-    font-size: 1em;
157
-    -moz-hyphens: none !important;
158
-    -webkit-hyphens: none !important;
159
-    -o-hyphens: none !important;
160
-    -ms-hyphens: none !important;
161
-    hyphens: none !important;
162
-}
163
-
164
-h2, h3, h4, h5, h6 {
165
-    margin-top: 2em;
166
-}
167
-
168
-h4, h5, h6 {
169
-    text-align: right;
170
-}
171
-
172
-h1 {
173
-    margin-bottom: 6em;
174
-}
175
-
176
-h3, h5 {
177
-    font-family: "Bitter Italic", Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
178
-    font-style: italic;
179
-}
180
-
181
-h6 {
182
-    font-family: "Bitter Bold", Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
183
-    font-weight: bold;
184
-}
185
-
186
-h1.title, h1.titulo {
187
-    margin-top: 4em;
188
-    margin-bottom: 0;
189
-    font-size: 2em;
190
-}
191
-
192
-h2.subtitle, h2.subtitulo {
193
-    margin-top: .5em;
194
-    margin-bottom: 3em;
195
-    font-size: 1.25em;
196
-}
197
-
198
-/* Paragraphs / Párrafos */
199
-
200
-p, blockquote, li, figcaption, details, aside {
201
-    font-family: "Bitter Regular", Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
202