Show More
@@ -104,6 +104,7 b' class ConverterReveal(ConverterHTML):' | |||||
104 | u'slide_type = header_slide', |
|
104 | u'slide_type = header_slide', | |
105 | u'slide_type = slide', |
|
105 | u'slide_type = slide', | |
106 | u'slide_type = fragment', |
|
106 | u'slide_type = fragment', | |
|
107 | u'slide_type = notes', | |||
107 | u'slide_type = skip'] # keep this one the last |
|
108 | u'slide_type = skip'] # keep this one the last | |
108 | text_cell_render = \ |
|
109 | text_cell_render = \ | |
109 | u'<div class="text_cell_render border-box-sizing rendered_html">' |
|
110 | u'<div class="text_cell_render border-box-sizing rendered_html">' | |
@@ -119,8 +120,10 b' class ConverterReveal(ConverterHTML):' | |||||
119 | text[i - 1] = self.delim[3] |
|
120 | text[i - 1] = self.delim[3] | |
120 | elif j == self.delim[4]: |
|
121 | elif j == self.delim[4]: | |
121 | text[i - 1] = self.delim[4] |
|
122 | text[i - 1] = self.delim[4] | |
122 | else: |
|
123 | elif j == self.delim[5]: | |
123 | text[i - 1] = self.delim[5] |
|
124 | text[i - 1] = self.delim[5] | |
|
125 | else: | |||
|
126 | text[i - 1] = self.delim[6] | |||
124 | text[i] = text_cell_render |
|
127 | text[i] = text_cell_render | |
125 | text[0] = u'slide_type = header_slide' # defensive code |
|
128 | text[0] = u'slide_type = header_slide' # defensive code | |
126 | text.append(u'slide_type = untouched') # to end search of skipped |
|
129 | text.append(u'slide_type = untouched') # to end search of skipped | |
@@ -131,7 +134,9 b' class ConverterReveal(ConverterHTML):' | |||||
131 | text = self.clean_text() |
|
134 | text = self.clean_text() | |
132 | left = '<section>' |
|
135 | left = '<section>' | |
133 | right = '</section>' |
|
136 | right = '</section>' | |
134 | set_delim = self.delim[:5] |
|
137 | notes_start = '<aside class="notes">' | |
|
138 | notes_end = '</aside>' | |||
|
139 | set_delim = self.delim[:6] | |||
135 | #elimination of skipped cells |
|
140 | #elimination of skipped cells | |
136 | for i, j in enumerate(text): |
|
141 | for i, j in enumerate(text): | |
137 | if j == u'slide_type = skip': |
|
142 | if j == u'slide_type = skip': | |
@@ -152,7 +157,13 b' class ConverterReveal(ConverterHTML):' | |||||
152 | for i, j in enumerate(slide): |
|
157 | for i, j in enumerate(slide): | |
153 | if j == u'slide_type = fragment': |
|
158 | if j == u'slide_type = fragment': | |
154 | slide.pop(i) |
|
159 | slide.pop(i) | |
155 |
slide[i] = slide[i][:4] + |
|
160 | slide[i] = slide[i][:4] + \ | |
|
161 | ' class="fragment"' + slide[i][4:] | |||
|
162 | # encapsulation of each speaker note | |||
|
163 | for i, j in enumerate(slide): | |||
|
164 | if j == u'slide_type = notes': | |||
|
165 | slide[i] = notes_start | |||
|
166 | slide.append(notes_end) # the notes at the slide end | |||
156 | # encapsulation of each nested slide |
|
167 | # encapsulation of each nested slide | |
157 | if u'slide_type = slide' in slide: |
|
168 | if u'slide_type = slide' in slide: | |
158 | slide.insert(0, '<section>') |
|
169 | slide.insert(0, '<section>') |
General Comments 0
You need to be logged in to leave comments.
Login now