-
Notifications
You must be signed in to change notification settings - Fork 8
/
ts_v2_utils.py
770 lines (713 loc) · 25 KB
/
ts_v2_utils.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
# -*- coding: utf-8 -*-
#
# These are utilities specifically designed for the ts v2 catalog handler.
#
import re
import codecs
import dateutil.parser
import os
import json
import yaml
import hashlib
from libraries.lambda_handlers.handler import Handler
from libraries.tools.file_utils import read_file, write_file
from libraries.tools.url_utils import get_url
from usfm_tools.transform import UsfmTransform
from libraries.tools.usfm_utils import convert_chunk_markers, strip_word_data
def download_chunks(pid, dest):
"""
Downloads the chunks for the bible book
:param pid:
:return: the chunk json data or None
"""
try:
data = get_url('https://cdn.door43.org/bible/txt/1/{}/chunks.json'.format(pid))
return json.loads(data)
except:
return None
def index_chunks(chunks):
"""
Turns a chunks array into a dictionary keyed by chapter
:param chunks:
:return:
"""
dict = {}
for chunk in chunks:
if not chunk['chp'] in dict:
dict[chunk['chp']] = []
dict[chunk['chp']].append(chunk['firstvs'])
return dict
def index_tn_rc(lid, temp_dir, rc_dir, reporter=None):
"""
Converts a v3 tN into it's v2 equivalent.
This will write a bunch of files and return a list of files to be uploaded
:param lid: the language id of the notes
:param temp_dir: the directory where all the files will be written
:param rc_dir: the directory of the resource container
:param reporter: a lambda handler used for reporting
:type reporter: Handler
:return: a list of note files to upload
"""
note_general_re = re.compile('^([^#]+)', re.UNICODE)
note_re = re.compile('^#+([^#\n]+)#*([^#]*)', re.UNICODE | re.MULTILINE | re.DOTALL)
tn_uploads = {}
manifest = yaml.load(read_file(os.path.join(rc_dir, 'manifest.yaml')))
dc = manifest['dublin_core']
for project in manifest['projects']:
pid = Handler.sanitize_identifier(project['identifier'])
chunk_json = []
if pid != 'obs':
try:
data = get_url('https://cdn.door43.org/bible/txt/1/{}/chunks.json'.format(pid))
chunk_json = index_chunks(json.loads(data))
except:
if reporter:
reporter.report_error('Failed to retrieve chunk information for {}-{}'.format(lid, pid))
continue
note_dir = os.path.normpath(os.path.join(rc_dir, project['path']))
note_json = []
if not os.path.exists(note_dir):
raise Exception('Project directory missing. Could not find {}'.format(note_dir))
chapters = os.listdir(note_dir)
for chapter in chapters:
if chapter in ['.', '..', 'front']:
continue
chapter_dir = os.path.join(note_dir, chapter)
verses = os.listdir(chapter_dir)
verses.sort()
notes = []
firstvs = None
note_hashes = []
for verse in verses:
if verse in ['.', '..', 'intro.md']:
continue
# notes = []
verse_file = os.path.join(chapter_dir, verse)
verse = verse.split('.')[0]
verse_body = read_file(verse_file)
verse_body = convert_rc_links(verse_body)
general_notes = note_general_re.search(verse_body)
# close chunk
chapter_key = chapter
if firstvs is not None and (pid != 'obs' and chapter_key not in chunk_json):
if reporter:
reporter.report_error('Could not find chunk data for {} {} {}'.format(rc_dir, pid, chapter_key))
# attempt to recover if Psalms
if pid == 'psa':
chapter_key = chapter_key.zfill(3)
if firstvs is not None and (pid == 'obs' or verse in chunk_json[chapter_key]):
note_json.append({
'id': '{}-{}'.format(chapter, firstvs),
'tn': notes
})
firstvs = verse
notes = []
elif firstvs is None:
firstvs = verse
if general_notes:
verse_body = note_general_re.sub('', verse_body)
notes.append({
'ref': 'General Information',
'text': general_notes.group(0).strip()
})
for note in note_re.findall(verse_body):
# TRICKY: do not include translation words in the list of notes
if note[0].strip().lower() != 'translationwords':
hasher = hashlib.md5()
hasher.update(note[0].strip().lower().encode('utf-8'))
note_hash = hasher.hexdigest()
if note_hash not in note_hashes:
note_hashes.append(note_hash)
notes.append({
'ref': note[0].strip(),
'text': note[1].strip()
})
# close last chunk
if firstvs is not None:
note_json.append({
'id': '{}-{}'.format(chapter, firstvs),
'tn': notes
})
if note_json:
tn_key = '_'.join([lid, '*', pid, 'tn'])
note_json.append({'date_modified': dc['modified'].replace('-', '')})
note_upload = prep_data_upload('{}/{}/notes.json'.format(pid, lid), note_json, temp_dir)
tn_uploads[tn_key] = note_upload
return tn_uploads
def prep_data_upload(key, data, temp_dir):
"""
Prepares some data for upload to s3
:param key:
:param data:
:param temp_dir
:return:
"""
temp_file = os.path.join(temp_dir, key)
write_file(temp_file, json.dumps(data, sort_keys=True))
return {
'key': key,
'path': temp_file
}
def build_usx(usfm_dir, usx_dir):
"""
Builds the usx from usfm after performing some custom processing
:param usfm_dir:
:param usx_dir:
:return:
"""
# strip word data
files = os.listdir(usfm_dir)
for name in files:
f = os.path.join(usfm_dir, name)
usfm = read_file(f)
write_file(f, convert_chunk_markers(strip_word_data(usfm)))
UsfmTransform.buildUSX(usfm_dir, usx_dir, '', True)
def get_rc_type(rc_format):
"""
Returns the first resource type found in an array of formats
:param rc_format:
:return:
"""
re_type = re.compile(r'type=(\w+)', re.UNICODE | re.IGNORECASE)
if 'conformsto=rc0.2' in rc_format['format'] and 'type' in rc_format['format']:
match = re_type.search(rc_format['format'])
return match.group(1)
return None
def max_modified_date(obj, modified):
"""
Return the largest modified date
If the object does not have a date_modified the argument is returned
:param obj:
:param modified:
:return:
"""
if 'date_modified' not in obj or int(obj['date_modified']) < int(modified):
return modified
else:
return obj['date_modified']
def make_legacy_date(date_str):
"""
Converts a date from the UTC format (used in api v3) to the form in api v2.
:param date_str:
:return:
"""
date_obj = dateutil.parser.parse(date_str)
try:
return date_obj.strftime('%Y%m%d')
except:
return None
def usx_to_json(usx, path='', reporter=None):
"""
Iterates through the usx and splits it into frames based on the
s5 markers.
:param usx:
:param path: The path from which the usx is converted. This gives context to error messages
:param reporter: A lambda handler instance for reporting errors
:type reporter: Handler
"""
verse_re = re.compile(r'<verse number="([0-9]*)', re.UNICODE)
chunk_marker = '<note caller="u" style="s5"></note>'
chapters = []
chp = ''
fr_id = 0
chp_num = 0
fr_list = []
current_vs = -1
for line in usx:
if line.startswith('\n'):
continue
if "verse number" in line:
current_vs = verse_re.search(line).group(1)
if 'chapter number' in line:
if chp:
if fr_list:
fr_text = '\n'.join(fr_list)
try:
matches = verse_re.search(fr_text)
if matches:
first_vs = matches.group(1)
else:
if reporter:
reporter.report_error('failed to search for verse in string "{}" ({})'.format(fr_text, path))
continue
except AttributeError:
if reporter:
reporter.report_error('Unable to parse verses from chunk {}: {} ({})'.format(chp_num, fr_text, path))
continue
chp['frames'].append({'id': '{0}-{1}'.format(
str(chp_num).zfill(2), first_vs.zfill(2)),
'img': '',
'format': 'usx',
'text': fr_text,
'lastvs': current_vs
})
chapters.append(chp)
chp_num += 1
chp = {'number': str(chp_num).zfill(2),
'ref': '',
'title': '',
'frames': []
}
fr_list = []
continue
if chunk_marker in line:
if chp_num == 0:
continue
# is there something else on the line with it? (probably an end-of-paragraph marker)
if len(line.strip()) > len(chunk_marker):
# get the text following the chunk marker
rest_of_line = line.replace(chunk_marker, '')
# append the text to the previous line, removing the unnecessary \n
fr_list[-1] = fr_list[-1][:-1] + rest_of_line
if fr_list:
fr_text = '\n'.join(fr_list)
try:
first_vs = verse_re.search(fr_text).group(1)
except AttributeError:
if reporter:
reporter.report_error('Unable to parse verses from chunk {}: {} ({})'.format(chp_num, fr_text, path))
continue
chp['frames'].append({'id': '{0}-{1}'.format(
str(chp_num).zfill(2), first_vs.zfill(2)),
'img': '',
'format': 'usx',
'text': fr_text,
'lastvs': current_vs
})
fr_list = []
continue
fr_list.append(line)
# Append the last frame and the last chapter
chp['frames'].append({
'id': '{0}-{1}'.format(str(chp_num).zfill(2), str(fr_id).zfill(2)),
'img': '',
'format': 'usx',
'text': '\n'.join(fr_list),
'lastvs': current_vs
})
chapters.append(chp)
return chapters
def build_json_source_from_usx(path, date_modified, reporter=None):
"""
Builds a json source object from a USX file
:param path:
:param date_modified:
:param reporter: a lambda handler instance for reporting
:type reporter: Handler
:return:
"""
# use utf-8-sig to remove the byte order mark
with codecs.open(path, 'r', encoding='utf-8-sig') as in_file:
usx = in_file.readlines()
book = usx_to_json(usx, path, reporter)
return {
'source': {
'chapters': book,
'date_modified': date_modified.replace('-', '').split('T')[0]
}
}
def convert_rc_links(content, logger=None):
"""
Converts rc links in the content to legacy links
:param content:
:param logger:
:return:
"""
rc_titled_link_re = re.compile('\[[^\[\]]+\]\((rc\:\/\/([^\(\)]+))\)')
rc_link_re = re.compile('\[\[(rc\:\/\/([^\[\]]+))\]\]')
# find links
titled_links = rc_titled_link_re.findall(content)
if not titled_links:
titled_links = []
links = rc_link_re.findall(content)
if not links:
links = []
links = links + titled_links
# process links
for link in links:
components = link[1].split('/')
if len(components) < 4:
if logger:
logger.warning('Invalid link "{}"'.format(link[1]))
continue
lid = components[0]
rid = components[1]
# rtype = components[2]
pid = components[3].replace('-', '_')
new_link = link[0]
if rid == 'ta':
if len(components) < 5:
if logger:
logger.warning('Invalid link "{}"'.format(link[1]))
continue
module = components[4].replace('-', '_')
vol = get_legacy_ta_volume(module)
if not vol:
# TRICKY: new modules added since the legacy ta won't have a volume in the map
if logger:
logger.warning(
'volume not found for {} while parsing link {}. Defaulting to vol1'.format(module, link[0]))
vol = 'vol1'
new_link = ':{}:{}:{}:{}:{}'.format(lid, rid, vol, pid, module)
if rid == 'ulb':
pass
if rid == 'udb':
pass
if rid == 'obs':
pass
content = content.replace(link[0], new_link)
return content
def get_legacy_ta_volume(module):
"""
Returns legacy volume of a module.
If no matching volume is found None will be returned.
:param module: the slug of the tA module
:type module: String
:return: the volume slug or None
"""
if module in legacy_ta_volume_map:
return legacy_ta_volume_map[module]
else:
return None
legacy_ta_volume_map = {
"acceptable": "vol1",
"accuracy_check": "vol1",
"accurate": "vol1",
"authority_level1": "vol1",
"authority_level2": "vol1",
"authority_level3": "vol1",
"authority_process": "vol1",
"church_leader_check": "vol1",
"clear": "vol1",
"community_evaluation": "vol1",
"complete": "vol1",
"goal_checking": "vol1",
"good": "vol1",
"important_term_check": "vol1",
"intro_check": "vol1",
"intro_checking": "vol1",
"intro_levels": "vol1",
"language_community_check": "vol1",
"level1": "vol1",
"level1_affirm": "vol1",
"level2": "vol1",
"level3": "vol1",
"level3_approval": "vol1",
"level3_questions": "vol1",
"natural": "vol1",
"other_methods": "vol1",
"peer_check": "vol1",
"self_assessment": "vol1",
"self_check": "vol1",
"finding_answers": "vol1",
"gl_strategy": "vol1",
"open_license": "vol1",
"statement_of_faith": "vol1",
"ta_intro": "vol1",
"translation_guidelines": "vol1",
"uw_intro": "vol1",
"door43_translation": "vol1",
"getting_started": "vol1",
"intro_publishing": "vol1",
"intro_share": "vol1",
"platforms": "vol1",
"prechecking_training": "vol1",
"pretranslation_training": "vol1",
"process_manual": "vol1",
"publishing_prereqs": "vol1",
"publishing_process": "vol1",
"required_checking": "vol1",
"setup_door43": "vol1",
"setup_team": "vol1",
"setup_tsandroid": "vol1",
"setup_tsdesktop": "vol1",
"setup_word": "vol1",
"share_published": "vol1",
"share_unpublished": "vol1",
"tsandroid_translation": "vol1",
"tsdesktop_translation": "vol1",
"upload_merge": "vol1",
"word_translation": "vol1",
"tk_create": "vol1",
"tk_enable": "vol1",
"tk_find": "vol1",
"tk_install": "vol1",
"tk_intro": "vol1",
"tk_start": "vol1",
"tk_update": "vol1",
"tk_use": "vol1",
"translate_helpts": "vol1",
"ts_create": "vol1",
"ts_first": "vol1",
"ts_install": "vol1",
"ts_intro": "vol1",
"ts_markverses": "vol1",
"ts_navigate": "vol1",
"ts_open": "vol1",
"ts_problem": "vol1",
"ts_publish": "vol1",
"ts_request": "vol1",
"ts_resources": "vol1",
"ts_select": "vol1",
"ts_settings": "vol1",
"ts_share": "vol1",
"ts_translate": "vol1",
"ts_update": "vol1",
"ts_upload": "vol1",
"ts_useresources": "vol1",
"uw_app": "vol1",
"uw_audio": "vol1",
"uw_checking": "vol1",
"uw_first": "vol1",
"uw_install": "vol1",
"uw_language": "vol1",
"uw_select": "vol1",
"uw_update_content": "vol1",
"choose_team": "vol1",
"figs_events": "vol1",
"figs_explicit": "vol1",
"figs_explicitinfo": "vol1",
"figs_hypo": "vol1",
"figs_idiom": "vol1",
"figs_intro": "vol1",
"figs_irony": "vol1",
"figs_metaphor": "vol1",
"figs_order": "vol1",
"figs_parables": "vol1",
"figs_rquestion": "vol1",
"figs_simile": "vol1",
"figs_you": "vol1",
"figs_youdual": "vol1",
"figs_yousingular": "vol1",
"file_formats": "vol1",
"first_draft": "vol1",
"guidelines_accurate": "vol1",
"guidelines_church_approved": "vol1",
"guidelines_clear": "vol1",
"guidelines_intro": "vol1",
"guidelines_natural": "vol1",
"mast": "vol1",
"qualifications": "vol1",
"resources_intro": "vol1",
"resources_links": "vol1",
"resources_porp": "vol1",
"resources_types": "vol1",
"resources_words": "vol1",
"translate_alphabet": "vol1",
"translate_discover": "vol1",
"translate_dynamic": "vol1",
"translate_fandm": "vol1",
"translate_form": "vol1",
"translate_help": "vol1",
"translate_levels": "vol1",
"translate_literal": "vol1",
"translate_manual": "vol1",
"translate_names": "vol1",
"translate_problem": "vol1",
"translate_process": "vol1",
"translate_retell": "vol1",
"translate_source_licensing": "vol1",
"translate_source_text": "vol1",
"translate_source_version": "vol1",
"translate_terms": "vol1",
"translate_tform": "vol1",
"translate_transliterate": "vol1",
"translate_unknown": "vol1",
"translate_wforw": "vol1",
"translate_whatis": "vol1",
"translate_why": "vol1",
"translation_difficulty": "vol1",
"writing_decisions": "vol1",
"about_audio_recording": "vol2",
"approach_to_audio": "vol2",
"audio_acoustic_principles": "vol2",
"audio_acoustical_treatments": "vol2",
"audio_assessing_recording_space": "vol2",
"audio_best_practices": "vol2",
"audio_checklist_preparing_project": "vol2",
"audio_checklist_recording_process": "vol2",
"audio_checklists": "vol2",
"audio_creating_new_file": "vol2",
"audio_digital_recording_devices": "vol2",
"audio_distribution": "vol2",
"audio_distribution_amplification_recharging": "vol2",
"audio_distribution_audio_player": "vol2",
"audio_distribution_best_solutions": "vol2",
"audio_distribution_door43": "vol2",
"audio_distribution_license": "vol2",
"audio_distribution_local": "vol2",
"audio_distribution_microsd": "vol2",
"audio_distribution_mobile_phone": "vol2",
"audio_distribution_offline": "vol2",
"audio_distribution_preparing_content": "vol2",
"audio_distribution_radio": "vol2",
"audio_distribution_wifi_hotspot": "vol2",
"audio_editing": "vol2",
"audio_editing_common_procedures": "vol2",
"audio_editing_corrections": "vol2",
"audio_editing_decisions_edit_rerecord": "vol2",
"audio_editing_decisions_objective_subjective": "vol2",
"audio_editing_finalizing": "vol2",
"audio_editing_measuring_selection_length": "vol2",
"audio_editing_modifying_pauses": "vol2",
"audio_editing_navigating_timeline": "vol2",
"audio_editing_using_your_ears": "vol2",
"audio_equipment_overview": "vol2",
"audio_equipment_setup": "vol2",
"audio_field_environment": "vol2",
"audio_guides": "vol2",
"audio_guides_conversion_batch": "vol2",
"audio_guides_normalizing": "vol2",
"audio_guides_rename_batch": "vol2",
"audio_interfaces": "vol2",
"audio_introduction": "vol2",
"audio_logistics": "vol2",
"audio_managing_data": "vol2",
"audio_managing_files": "vol2",
"audio_managing_folders": "vol2",
"audio_markers": "vol2",
"audio_mic_activation": "vol2",
"audio_mic_fine_tuning": "vol2",
"audio_mic_gain_level": "vol2",
"audio_mic_position": "vol2",
"audio_mic_setup": "vol2",
"audio_microphone": "vol2",
"audio_noise_floor": "vol2",
"audio_optimize_laptop": "vol2",
"audio_playback_monitoring": "vol2",
"audio_project_setup": "vol2",
"audio_publishing_unfoldingword": "vol2",
"audio_quality_standards": "vol2",
"audio_recommended_accessories": "vol2",
"audio_recommended_cables": "vol2",
"audio_recommended_equipment": "vol2",
"audio_recommended_headphones": "vol2",
"audio_recommended_laptops": "vol2",
"audio_recommended_mic_stands": "vol2",
"audio_recommended_monitors": "vol2",
"audio_recommended_playback_equipment": "vol2",
"audio_recommended_pop_filters": "vol2",
"audio_recommended_portable_recorders": "vol2",
"audio_recommended_recording_devices": "vol2",
"audio_recommended_tablets": "vol2",
"audio_recording": "vol2",
"audio_recording_environment": "vol2",
"audio_recording_further_considerations": "vol2",
"audio_recording_process": "vol2",
"audio_setup_content": "vol2",
"audio_setup_h2n": "vol2",
"audio_setup_keyboard_shortcuts_audacity": "vol2",
"audio_setup_keyboard_shortcuts_ocenaudio": "vol2",
"audio_setup_ocenaudio": "vol2",
"audio_setup_team": "vol2",
"audio_signal_path": "vol2",
"audio_signal_to_noise": "vol2",
"audio_software": "vol2",
"audio_software_file_renaming": "vol2",
"audio_software_file_sharing": "vol2",
"audio_software_format_conversion": "vol2",
"audio_software_metadata_encoding": "vol2",
"audio_software_recording_editing": "vol2",
"audio_software_workspace": "vol2",
"audio_standard_characteristics": "vol2",
"audio_standard_file_naming": "vol2",
"audio_standard_format": "vol2",
"audio_standard_license": "vol2",
"audio_standard_style": "vol2",
"audio_studio_environment": "vol2",
"audio_the_checker": "vol2",
"audio_the_coordinator": "vol2",
"audio_the_narrator": "vol2",
"audio_the_recordist": "vol2",
"audio_vision_purpose": "vol2",
"audio_waveform_editor": "vol2",
"audio_workspace_layout": "vol2",
"excellence_in_audio": "vol2",
"simplicity_in_audio": "vol2",
"skills_training_in_audio": "vol2",
"alphabet": "vol2",
"formatting": "vol2",
"headings": "vol2",
"punctuation": "vol2",
"spelling": "vol2",
"verses": "vol2",
"vol2_backtranslation": "vol2",
"vol2_backtranslation_guidelines": "vol2",
"vol2_backtranslation_kinds": "vol2",
"vol2_backtranslation_purpose": "vol2",
"vol2_backtranslation_who": "vol2",
"vol2_backtranslation_written": "vol2",
"vol2_intro": "vol2",
"vol2_steps": "vol2",
"vol2_things_to_check": "vol2",
"check_notes": "vol2",
"check_udb": "vol2",
"check_ulb": "vol2",
"gl_adaptulb": "vol2",
"gl_done_checking": "vol2",
"gl_notes": "vol2",
"gl_questions": "vol2",
"gl_translate": "vol2",
"gl_udb": "vol2",
"gl_ulb": "vol2",
"gl_words": "vol2",
"figs_123person": "vol2",
"figs_abstractnouns": "vol2",
"figs_activepassive": "vol2",
"figs_apostrophe": "vol2",
"figs_distinguish": "vol2",
"figs_doublenegatives": "vol2",
"figs_doublet": "vol2",
"figs_ellipsis": "vol2",
"figs_euphemism": "vol2",
"figs_exclusive": "vol2",
"figs_gendernotations": "vol2",
"figs_genericnoun": "vol2",
"figs_genitivecase": "vol2",
"figs_go": "vol2",
"figs_grammar": "vol2",
"figs_hendiadys": "vol2",
"figs_hyperbole": "vol2",
"figs_inclusive": "vol2",
"figs_informremind": "vol2",
"figs_litotes": "vol2",
"figs_merism": "vol2",
"figs_metonymy": "vol2",
"figs_parallelism": "vol2",
"figs_partsofspeech": "vol2",
"figs_personification": "vol2",
"figs_pluralpronouns": "vol2",
"figs_quotations": "vol2",
"figs_rpronouns": "vol2",
"figs_sentences": "vol2",
"figs_singularpronouns": "vol2",
"figs_synecdoche": "vol2",
"figs_synonparallelism": "vol2",
"figs_verbs": "vol2",
"figs_youformal": "vol2",
"guidelines_authoritative": "vol2",
"guidelines_collaborative": "vol2",
"guidelines_equal": "vol2",
"guidelines_faithful": "vol2",
"guidelines_historical": "vol2",
"guidelines_ongoing": "vol2",
"translate_bibleorg": "vol2",
"translate_chapverse": "vol2",
"translate_fraction": "vol2",
"translate_manuscripts": "vol2",
"translate_numbers": "vol2",
"translate_ordinal": "vol2",
"translate_original": "vol2",
"translate_symaction": "vol2",
"translate_textvariants": "vol2",
"translate_versebridge": "vol2",
"writing_background": "vol2",
"writing_connectingwords": "vol2",
"writing_intro": "vol2",
"writing_newevent": "vol2",
"writing_participants": "vol2",
"writing_poetry": "vol2",
"writing_proverbs": "vol2",
"writing_quotations": "vol2",
"writing_symlanguage": "vol2"
}