Psalm 9/Expanded Paraphrase
Build Expanded Paraphrase
Click within the CBC to insert an expansion. A textbox will appear. Type in (or copy into) the textbox and push ESC to cancel or ENTER to save.
Alternatively, you may edit the CBC/insertions alternation directly at Data/9/expanded-paraphrase.json for a final draft. If you're viewing a paraphrase from the wiki, save it as a draft and then modify.
If there is an extra space between two parts...
, you'll need to modify the json file directly. For example, to enable plots:
{
"verse": "1",
"cbc": "plot",
"Index": 6,
"suppressFollowingSpace": true
},
{
"verse": "1",
"insertion": "s",
"WordsBefore": 6,
"Index": 7
},
If a Google discourse sheet exists...
You may import the Expanded Paraphrase from the sheet by following these instructions.
Prepare the discourse sheet
- Open the Discourse Google sheet for this Psalm.
- Go to the tab named "Public-Text" (which is likely already made). If it doesn't exist, follow these instructions (you'll need it all by the end of this).
Prepare
To enable this, you must:
- Open the Discourse Google sheet for this Psalm.
- Add a new tab named "Public-Text" (the name isn't actually critical)
- Use as the formula in the top-left cell:
='Discourse Master Sheet'!A:A(or whatever the appropriate code is to select the first column of the master sheet). - Drag the formula over to Column C and down as far as needed to get all the rows.
File > Share > Publish to Web- Instead of Entire Document, choose sheet
Public-Text - Instead of Web Page, choose
Tab-separated values. - Copy the link starting from after /d/e until before the &single, e.g. https://docs.google.com/spreadsheets/d/e/
2PACX-1vTeE2dD9gc2v4rckm23VfBCDdpuLirI3DOxLQE10a2UHWl3puz8wPPCJ2wgBftP4VYqadCPb2pWOUwi/pub?gid=168152279&single=true&output=tsv - Edit the base Psalm page, e.g.
Psalm 19 - Add the
DiscourseSheetproperty like this:
{{ResourceSite
|DiscourseSheet=2PACX-1vTeE2dD9gc2v4rckm23VfBCDdpuLirI3DOxLQE10a2UHWl3puz8wPPCJ2wgBftP4VYqadCPb2pWOUwi/pub?gid=168152279
|Banner Image=Psalm 19 banner image.jpg
- In
D2, type "Expanded Paraphrase" as the new header. (This, like the one below, will be used by code to ensure this is what is intended.) - In
E2, type "Expanded Paraphrase as JSON" as the new header.
Get the spreadsheet ID
- Now you'll need to save the Google spreadsheet
ID. This will be used to generate the JSON within the Google environment. (The Google sheet URL, which is likely already stored, will be used to extract the JSON into the Resource Site.) - From the URL, copy the link starting from after /d until before the /edit?, e.g. https://docs.google.com/spreadsheets/d/
9Ni8QMdjRtxVFj_eAcSD9kgnWmoNTLMZy0zvykIT8ku0/edit?gid=702949086#gid=702949086
Save the spreadsheet ID
(This step can be skipped if you'll only ever manuallly populate this; this goal permits us to bulk populate all discourse spreadsheets.)
- Edit the base Psalm page, e.g.
Psalm 99 - Add the
DiscourseSheetIDproperty like this:
{{ResourceSite
|DiscourseSheetID=9Ni8QMdjRtxVFj_eAcSD9kgnWmoNTLMZy0zvykIT8ku0
|DiscourseSheet=2PACX-9vS309bCf4RkDjHEczGiDnZtOACqV94-DLwI_bYlzt5hugBM25ddPLVwaRETsZ9SyB46-7SpcGm3U8bX/pub?gid=702949086
}}
Populate the Public-Text sheet
- Actually extract the bold & italics from the main sheet into the Public-Text sheet. This involves running an Apps Script. First open this: https://script.google.com/u/0/home/projects/97TAMP9KpcaMTXBf5qS0C-mflnt-9srgJTWns6bLRD_l6eNSj9zy4Bxzc/edit.
- Now add your discourse sheet id to the end of the list of spreadsheetIDs at the top, remembering to enclose it in double quotation marks and ensuring everything is comma-delimited.
- At the top of the page, ensure "extractBoldFromMultipleSpreadsheets" is in the menu bar.
- Click
Run. - If the Execution Log at the bottom of the page doesn't show "Execution started" and then "Execution completed" then ask Elizabeth for help...
Extract the Public-Text sheet to the Resource Site
This Psalm has the requisite Discourse Sheet info stored.
Use the Save current draft button at the bottom of the page to save.
(Press Enter to save, or Esc to cancel)
Data check
Extracted from Expanded Paraphrase above
From Text/Verses
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Expand for all files for Psalm 9/Text