Update cover page: reduce top blank lines, add 'Transcript created on:', use 'Transcribed by', update disclaimer
This commit is contained in:
+11
-6
@@ -2,12 +2,13 @@
|
||||
Cover-page generator for transcript and summary DOCX files.
|
||||
|
||||
Layout (all centered):
|
||||
- 3 blank lines
|
||||
- 1 blank line
|
||||
- Title in uppercase: "TRANSCRIPT" or "SUMMARY"
|
||||
- Next line: date of transcription (e.g. "June 19, 2026")
|
||||
- Next line: "Transcript created on: [date]"
|
||||
- Next line: "Transcribed by <COVER_PAGE_ORGANIZATION>"
|
||||
- 2 blank lines
|
||||
- Disclaimer (underlined)
|
||||
- Disclaimer body
|
||||
- Page break (ensures content starts on page 2)
|
||||
|
||||
Environment variables:
|
||||
@@ -75,8 +76,8 @@ def add_cover_page(
|
||||
if not provided, uses current server time in SERVER_TIMEZONE.
|
||||
"""
|
||||
|
||||
# 3 blank lines
|
||||
_add_blank_lines(doc, 3)
|
||||
# 1 blank line (removed two from top)
|
||||
_add_blank_lines(doc, 1)
|
||||
|
||||
# Title in uppercase
|
||||
_add_centered_paragraph(doc, text=title.upper().strip(), font_size=Pt(18), bold=True)
|
||||
@@ -86,7 +87,7 @@ def add_cover_page(
|
||||
tz = _get_server_timezone()
|
||||
now = datetime.now(tz)
|
||||
date_str = now.strftime("%B %d, %Y")
|
||||
_add_centered_paragraph(doc, text=date_str, font_size=Pt(14))
|
||||
_add_centered_paragraph(doc, text=f"Transcript created on: {date_str}", font_size=Pt(14))
|
||||
|
||||
# Transcribed by + organization
|
||||
org = (os.getenv("COVER_PAGE_ORGANIZATION") or "").strip()
|
||||
@@ -99,7 +100,11 @@ def add_cover_page(
|
||||
# Disclaimer: only the word "Disclaimer" is underlined
|
||||
disclaimer_title = "Disclaimer"
|
||||
disclaimer_body = (
|
||||
"This transcription and any summary derived therefrom may contain errors or inaccuracies."
|
||||
"This transcription and any summary derived therefrom are created entirely by large language models. "
|
||||
"Large language models are imperfect and may create errors or inaccuracies. "
|
||||
"The following transcription and summary (if applicable) are designed to assist users. "
|
||||
"They are not a conclusive record or summary of what transpired in an audio recording. "
|
||||
"Use at your own risk."
|
||||
)
|
||||
|
||||
# Underlined "Disclaimer" line
|
||||
|
||||
Reference in New Issue
Block a user