- Create a letter ID:
- Naming convention:
yyyy_mm_dd_SenderInitials2ReceiverInitials - Example:
1672_10_29_mm2lc - Find sender and receiver initials in Google Drive Folder tags > sender_receiver_initials spreadsheet > id column
- Naming convention:
- mancini_metadata: metadata describes each letter and who has worked on it
- Tags Spreadsheets:
- persName_main:
name: the name of a person mentioned in the letters. Each person should only have one row in this spreadsheet. If they have other names attached to them, add them to the "other_names" column and separate multiple values with semicolons.other_names: other names for the person named in the "name" column. If there are no other names, leave this cell blank.key: unique identifier for a single person; used in xml encoding; only one key may exist per person (there should not be multiple rows with the same "key" value)annotation: an explanation of who the person is, pulled from Dr. Nelson's Google Doc annotations. If no annotation exists for a person, the value for this field should be "More information coming soon!"
- placeName_main: geographical locations mentioned in text
country: the name of a country mentioned in the letters.city: the name of a city mentioned in the letters. Each city should only have one corresponding row in this spreadsheet.key: unique identifier for a single location; used in xml encoding; only one key may exist per location.latitude,longitude: if the location is a city, add lat and long informationcomment: an annotation on spelling or language pulled from Dr. Nelson's Google Doc annotationsannotation: a contextual annotation about the place and its relation to Marie Mancini, pulled from Dr. Nelson's Google Doc annotations
- editor_tags: a two- or three-initial code for each person on project (first, middle, last initials), to be recorded in xml encoding and in metadata spreadsheet
- annotations: annotation content linked to its unique
idid:xml:idattribute given to notation, in following format: letter id + underscore (_) + alphabetic letter corresponding to the order that the annotation appears (a,b,c, etc.) (i.e.1672_10_29_mm2lc_a)text: annotation text, pulled from Dr. Nelson's Google Doc annotations
- persName_main:
-
Find the google doc you want to encode:
- In the ManciniProject Google Drive folder, go to the folder "demo-material"
- Navigate to a folder with the year and creator/recipient you would like to encode
- Note: Folder names may start with incorrect dates. Always look at the
idfield in the "mancini_metadata" spreadsheet first to identify the letter you'd like to encode.
- Note: Folder names may start with incorrect dates. Always look at the
- Once you've selected a letter for encoding, add your initial code (your initial code can be found in the editor_tags spreadsheet) to the
encoderfield in the "mancini_metadata" spreadsheet.
-
Replace smart ("curly") quotes in the google doc:
- Find a right-facing smart quote in the google doc. Copy the smart quote.
- Open find and replace (
cmd+fon a mac). Click the three dots on the right side of the find box to open the find and replace function. - Paste the smart quote into the "Find" box.
- Switch to VSCode. Type a dumb ("straight") quote and copy it.
- Paste the dumb quote into the "Replace with" box. Click "Replace all".
- Find a left-facing smart quote and replace the content of the "Find" box with it, keeping the dumb quote in the "Replace with" box.
- Click "Replace all".
- Note: this same process will also have to be done with smart ("curly") apostrophes.
-
Create new file
- Using GitHub Desktop, fetch and pull any changes to the mancini_source repository
- Open the mancini_source repository in VS Code
- In the "xml" folder at the root of the repository, create a new file
- Title this file with the
idof the letter you are encoding (find thisidin the "mancini_metadata" spreadsheet), + the file extension.xml - Copy and paste the content of the file
letter-example.xml(found in the "xml" folder) into the new file you just created. - Piece by piece, go through the pasted content and switch it out for the new letter you are encoding, according to the instructions below.
-
Changes to teiHeader:
fileDesctitleStmt>title- Replace the title value with the title from this letter's Google Doc
titleStmt>author- Replace the author value with whoever the author is. Replace the "key" attribute with the author key from the persname_main spreadsheet
titleStmt>respStmt>namevalue "Liam R. Marchant"- Replace "lrm"
xml:idattribute with your editor tag and replace Liam's name with yours
- Replace "lrm"
publicationStmt>availability>p- First
pshould be creative commons CDIL copyright statement. No need to edit this. - Second
pshould be Subiaco archive copyright statement. Copy and paste from corresponding row in citations spreadsheet.
- First
notesStmt>note- Provide a brief summary of the letter. It is a good idea to read the previous letter and the one that follows this letter so that you can write a summary that is informative to the broader collection of letters.
sourceDescbibltitleUpdate title value, and key (should be the letter filename, minus the file extension), type and n attributesauthorandpersName- Update
keyattribute according to persNames spreadsheet, update value
- Update
date- Update
whenattribute and value
- Update
msDescmsContents>p- Short description of the physical letter (following format in example)
physDesc>objectDesc>supportDesc>extent>measure- Update value of
quantityattribute and value if the document is more than one page hanDeschandsvalue = the amount of people writing the letter (almost always only one)handNote- Update
xml:idwith author "key" (refer to persname_main spreadsheet to find it) mediumis usually black, let me know if it's written in something else.- For the content of these tags, insert the name of the author followed by the word "handwritten"
- Update
- Update value of
history>originorigDatevalue = date created, also update "when" attributeorigPlace>placeNamevalue = location created (include valuekeyattribute, refer to "placename_main" spreadsheet to find it)
encodingDesc>editorialDecl>interpretation>p- If this is a letter that the archive labeled with an incorrect date, you should note that here. Follow this structure:
The archive incorrectly labeled this letter with date 1673-08-01. The correct date is 1673-08-04. - If the date is correct, simply leave the "p" value blank (but leave the "p" element in the file)
- If this is a letter that the archive labeled with an incorrect date, you should note that here. Follow this structure:
revisionDesc>change- Include the attributes
whenandwho. Value ofwhenshould be the date you begin editing. Value ofwhoshould be your editor code with a pound (#) sign in front of it. - If you are just creating the file, the value of this element should be:
Initial creation of XML from non-XML electronic files. If you finish the file, notice at a future point and come back to fix it, you should add anotherchangeelement according to these rules, explaining what change you made.
- Include the attributes
-
Encoding the File
- Raw
- Start by updating
text>body>divattributes - Update
div>headattributes - Do not include
persNameorplaceNametags anywhere in thediv - It is important to observe how many
notesfrom the archive tag are present and put them below the firstnotemarked with the xml:idarchive-note - Delete any unused
notetags - The
datelinewill often include superscript letters. Use the following formula to encode superscript:- to superscript "me" in "ce 14me"
- ce 14
<hi rend="super">me</hi>
- Each
<pb facs>object should have a unique ID associated with an image that is inserted on the webpage. They should also ascend in numerical value.- Note: some letters are shorter than others and may only have 2 facsimiles (facs) while others might have 3 or 4. All facs are in the "demo-material" documents as well as the "mancini-metadata"
- Be sure to adhere to the page and paragraph breaks of the original document. They are formatted like this in the Google Doc file, but be sure that each paragraph break corresponds with a
ptag in the xml file. - The
closertag is used to notate a signature and salute. Do not encode asaluteand do not put apersNametag on the person signing the letter.
- Start by updating
- Edited
- Start by updating
text>body>divattributes - Update
div>headattributes - Do not include
persNameorplaceNametags anywhere in thediv - Each
<pb facs>object should have a unique ID associated with an image that is inserted on the webpage. They should also ascend in numerical value.- Note: some letters are shorter than others and may only have 2 facsimiles (facs) while others might have 3 or 4. All facs are in the "demo-material" documents as well as the "mancini-metadata"
- Be sure to adhere to the page and paragraph breaks of the original document. They are formatted like this in the Google Doc file, but be sure that each paragraph break corresponds with a
ptag in the xml file. - The
closertag is used to notate a signature and salute. Do not encode asaluteand do not put apersNametag on the person signing the letter.
- Start by updating
- Translated
- Start by updating
text>body>divattributes - Update
div>headattributes - Tag all
persNameandplaceNamecontent in thediv - Each
<pb facs>object should have a unique ID associated with an image that is inserted on the webpage. They should also ascend in numerical value.- Note: some letters are shorter than others and may only have 2 facsimiles (facs) while others might have 3 or 4. All facs are in the "demo-material" documents as well as the "mancini-metadata"
- Be sure to adhere to the page and paragraph breaks of the original document. They are formatted like this in the Google Doc file, but be sure that each paragraph break corresponds with a
ptag in the xml file. - The
closertag is used to notate a signature and salute. When applicable, tag thesalute. Be sure to tag thepersNamein the signature.
- Start by updating
- After Encoding the 3 Versions
- Similar to replacing the smart quotes and apostrophes with dumb ones, you must replace special characters with their appropriate decimal code entity equivalent.
- (i.e. é becomes
é) - A full directory of character codes can be found in the _data/entities.csv file
- (i.e. é becomes
- Double check to make sure each tag is properly nested and has a corresponding closing tag.
- Similar to replacing the smart quotes and apostrophes with dumb ones, you must replace special characters with their appropriate decimal code entity equivalent.
- Raw
-
General Tips
- It is a good practice to move methodically and slowly while encoding each letter.
- Whenever possible, copy and paste. Everytime you type something new, you open up the possibility of an error being made. This error could be very small (in the case of a small typo in the body of work) or it could render the letter useless when generated for the website (in the case of a mistyped filename).
- Always double check your file names and keys in the
div,ref,persName, andplaceNametags. Often the template file names will accidentally get left in. - If you have a questions about something, write it on your personal notepad (digital or physical) but also put a comment in the file. This makes the your point of question a lot easier to find.
- A comment can be made like this:
<!--INSERT COMMENT HERE-->
- When writing the letter summaries in the
notesStmttag, it is a good idea to read the previous letter and the one that follows it so that you can write a summary that is informative to the broader collection of letters.