From 51fca81d343af7eff5460dd831413e41240bb7ae Mon Sep 17 00:00:00 2001 From: Anson Date: Mon, 28 Sep 2020 21:34:34 -0700 Subject: [PATCH] debate2020 changes --- __latexindent_temp.tex | 102 +++++++++++++++++++++++ bingocards.tex | 4 +- bingochecklist.tex | 2 +- bingolist.tex | 141 ++++++++++--------------------- checklist1.tex | 185 +++++++++++++++++++++++------------------ makechecklist.py | 43 +++++----- 6 files changed, 278 insertions(+), 199 deletions(-) create mode 100644 __latexindent_temp.tex diff --git a/__latexindent_temp.tex b/__latexindent_temp.tex new file mode 100644 index 0000000..c1b5923 --- /dev/null +++ b/__latexindent_temp.tex @@ -0,0 +1,102 @@ +\myItems{``Believe me"; +Make America Great Again; +Build a/the wall; +Liberal media; +``Tremendous"; +We don't \emph{win} anymore; +International respect; +China; +Syria; +Israel; +Iran; +Mexico; +Russia; +North Korea; +The Middle Class; +Bernie Sanders; +National Debt; +Trade Deals; +Infrastructure; +Clean Energy; +Coal; +Law and Order; +Terrorism; +NAFTA; +US budget deficit; +Social Security; +The Second Amendment; +Transparency; +NATO; +``Leadership"; +``I love \_\_\_\_\_.''; +the Supreme Court; +Immigration reform; +Obamacare; +Muslim ban; +Voter fraud; +Russian ``Hacking"; +``Wall Street"; +``Main Street"; +Russia; +Vladimir Putin; +Medicare; +ISIS; +Congress; +Refugees; +Names a small town; +Trade war; +Misprounounces word; +``Nancy Pelosi"; +Mar-a-lago; +Whistleblower; +``Disaster"; +``Many people are saying"; +``God bless America"; +Ukraine; +NASA; +Sexual assault; +Trump asks for Biden to take a drug test after the debate; +China; +trump says "wrong"; +Fake news; +Biden Promises Free Healthcare ; +Biden mentions Trumps Taxes; +Biden messes up numbers/math; +Trump takes a sip of water with both hands ; +Biden panders; +Biden forgets where he is; +Trump brings up Biden’s sons Russian Prostitution ring ; +Trump calls Biden out on decades of being in office with nothing to show; +Trump uses the phrase « Sleepy Joe »; +Sleepy joe denies that blm and antifa are violent organizations; +joe is silent trying to think about his awnser for 10 sec; +trump does the hand thing; +Trump calls Biden out on decades of being in office with nothing to show; +Trump calls Biden a pedophile; +Biden stares at ceiling; +Trump talks for more than 10 seconds after his time is up; +CORONAVIRUS; +Trump wears blue tie; +YUGGEEEE; +... by the way; +Trump Blames Obama; +Biden Praises Obama; +China Virus; +Make America Great Again; +Keep America Great; +"Beautiful Clean Coal"; +Trump Disses Company by name; +Hilary Clinton Mentioned; +Trump blames a female for something; +Trump says he will lower taxes; +Biden says he will raise taxes; +Mail Fraud; +"witch hunt"; +Twitter mentioned; +"A lot of people"; +Second impeachment mentioned; +LGBT mentioned; +Harris skin color mentioned; +Trump calls Biden "Low Energy"; +Hunter Biden brought up +} diff --git a/bingocards.tex b/bingocards.tex index f5e5157..608b7ed 100644 --- a/bingocards.tex +++ b/bingocards.tex @@ -81,9 +81,9 @@ \begin{LARGE} Bingo -President Trump's State of the Union Address +Presidential Debate -04 February 2020 +29 September 2020 \end{LARGE} \end{center} diff --git a/bingochecklist.tex b/bingochecklist.tex index f37aa2c..2f92c96 100644 --- a/bingochecklist.tex +++ b/bingochecklist.tex @@ -13,7 +13,7 @@ \begin{center} \begin{Large} -Checklist for SOTU bingo boxes +Checklist for debate bingo boxes \end{Large} \vspace{0.15in} diff --git a/bingolist.tex b/bingolist.tex index 71bb2fa..c1b5923 100644 --- a/bingolist.tex +++ b/bingolist.tex @@ -5,7 +5,6 @@ Liberal media; ``Tremendous"; We don't \emph{win} anymore; International respect; -Small Town; China; Syria; Israel; @@ -13,12 +12,8 @@ Iran; Mexico; Russia; North Korea; -Heckler interrupts speech; The Middle Class; Bernie Sanders; -Elizabeth Warren; -Mike Pence; -Alliances; National Debt; Trade Deals; Infrastructure; @@ -26,15 +21,9 @@ Clean Energy; Coal; Law and Order; Terrorism; -Bipartisan; -Free market; -Free enterprise; -Freedom; -Taxes; NAFTA; US budget deficit; Social Security; -Veterans; The Second Amendment; Transparency; NATO; @@ -44,7 +33,6 @@ the Supreme Court; Immigration reform; Obamacare; Muslim ban; -Voter ID laws; Voter fraud; Russian ``Hacking"; ``Wall Street"; @@ -55,99 +43,60 @@ Medicare; ISIS; Congress; Refugees; -Impeachment; -Britain; Names a small town; Trade war; -Touts record Dow Jones; -Strongest military; -Farmers; -``Blue states"; Misprounounces word; -Points to guest; ``Nancy Pelosi"; Mar-a-lago; Whistleblower; ``Disaster"; ``Many people are saying"; -Camera shows other Trumps; -Anyone sleeping; -Entitlement cuts; ``God bless America"; -Mike Pompeo; Ukraine; NASA; -``Entrepreneurs" +Sexual assault; +Trump asks for Biden to take a drug test after the debate; +China; +trump says "wrong"; +Fake news; +Biden Promises Free Healthcare ; +Biden mentions Trumps Taxes; +Biden messes up numbers/math; +Trump takes a sip of water with both hands ; +Biden panders; +Biden forgets where he is; +Trump brings up Biden’s sons Russian Prostitution ring ; +Trump calls Biden out on decades of being in office with nothing to show; +Trump uses the phrase « Sleepy Joe »; +Sleepy joe denies that blm and antifa are violent organizations; +joe is silent trying to think about his awnser for 10 sec; +trump does the hand thing; +Trump calls Biden out on decades of being in office with nothing to show; +Trump calls Biden a pedophile; +Biden stares at ceiling; +Trump talks for more than 10 seconds after his time is up; +CORONAVIRUS; +Trump wears blue tie; +YUGGEEEE; +... by the way; +Trump Blames Obama; +Biden Praises Obama; +China Virus; +Make America Great Again; +Keep America Great; +"Beautiful Clean Coal"; +Trump Disses Company by name; +Hilary Clinton Mentioned; +Trump blames a female for something; +Trump says he will lower taxes; +Biden says he will raise taxes; +Mail Fraud; +"witch hunt"; +Twitter mentioned; +"A lot of people"; +Second impeachment mentioned; +LGBT mentioned; +Harris skin color mentioned; +Trump calls Biden "Low Energy"; +Hunter Biden brought up } -% Trump says he was against the Iraq War; -%Twitter/Tweet; -%Trump apology; -%Glass Ceiling; -% America is already great; -% GOP withdrawing support for Trump; -% Sexual assault; -% Wikileaks; -% War on Women; -% Kellyanne Conway; -% Rape/Rapist; -% Citizens United; -% Moderator drops the hammer; -% Women's Rights; -% Amnesty; -% Islamophobia; -% What do you have to lose?; -% I've employed thousands of people; -% I can fix it; -% Political correctness; -% Crooked Hillary; -% Low energy; -% Rigged; -% Benghazi; -% Florida; -% Moderator becomes visibly frustrated; -% Candidate demands an apology; -% Unqualified; -%Clinton mentions children--\emph{any} children; -%Candidate mentions an endorsement; -%My record shows ...; -%On my first day in office; -%In my first hundred days; -% Clinton says using server was a mistake; -% Stronger Together; -% Deplorables; -% John McCain; -% Tim Kaine; -% Pam Bondi; -% President Obama; -% Bill Clinton; -% Ronald Reagan; -% Paid family leave; -% Missile Defense; -%America's place in the world; -% Single-payer Healthcare; -% More of the Same; -% Privatize Social Security; -% Community Policing; -% Stop and Frisk; -% Implicit Bias; -% Institutional Racism; -% Open Borders; -% LGBTQ rights; -% I have a plan; -% Bankruptcy; -% Tax returns; -% TPP; -% Income inequality; -% Top 1\%; -%Health of candidate; -% Trump Foundation; -% Trump University; -% Clinton Foundation; -% Black Lives Matter; -% All Lives Matter; -% Alt-right; -% Climate change; -% Hurricane; -% Emails; -% Temperament; - diff --git a/checklist1.tex b/checklist1.tex index 24716d7..162e01d 100644 --- a/checklist1.tex +++ b/checklist1.tex @@ -1,82 +1,107 @@ % Hopefully a nice table -$\Box$ & ``Believe me" \\[\sep] -$\Box$ & Make America Great Again \\[\sep] -$\Box$ & Build a/the wall \\[\sep] -$\Box$ & Liberal media \\[\sep] -$\Box$ & ``Tremendous" \\[\sep] -$\Box$ & We don't \emph{win} anymore \\[\sep] -$\Box$ & International respect \\[\sep] -$\Box$ & Small Town \\[\sep] -$\Box$ & China \\[\sep] -$\Box$ & Syria \\[\sep] -$\Box$ & Israel \\[\sep] -$\Box$ & Iran \\[\sep] -$\Box$ & Mexico \\[\sep] -$\Box$ & Russia \\[\sep] -$\Box$ & North Korea \\[\sep] -$\Box$ & Heckler interrupts speech \\[\sep] -$\Box$ & The Middle Class \\[\sep] -$\Box$ & Bernie Sanders \\[\sep] -$\Box$ & Elizabeth Warren \\[\sep] -$\Box$ & Mike Pence \\[\sep] -$\Box$ & Alliances \\[\sep] -$\Box$ & National Debt \\[\sep] -$\Box$ & Trade Deals \\[\sep] -$\Box$ & Infrastructure \\[\sep] -$\Box$ & Clean Energy \\[\sep] -$\Box$ & Coal \\[\sep] -$\Box$ & Law and Order \\[\sep] -$\Box$ & Terrorism \\[\sep] -$\Box$ & Bipartisan \\[\sep] -$\Box$ & Free market \\[\sep] -$\Box$ & Free enterprise \\[\sep] -$\Box$ & Freedom \\[\sep] -$\Box$ & Taxes \\[\sep] -$\Box$ & NAFTA \\[\sep] -$\Box$ & US budget deficit \\[\sep] -$\Box$ & Social Security \\[\sep] -$\Box$ & Veterans \\[\sep] -$\Box$ & The Second Amendment \\[\sep] -$\Box$ & Transparency \\[\sep] -$\Box$ & NATO \\[\sep] -$\Box$ & ``Leadership" \\[\sep] -$\Box$ & ``I love \_\_\_\_\_.'' \\[\sep] -$\Box$ & the Supreme Court \\[\sep] -$\Box$ & Immigration reform \\[\sep] -$\Box$ & Obamacare \\[\sep] -$\Box$ & Muslim ban \\[\sep] -$\Box$ & Voter ID laws \\[\sep] -$\Box$ & Voter fraud \\[\sep] -$\Box$ & Russian ``Hacking" \\[\sep] -$\Box$ & ``Wall Street" \\[\sep] -$\Box$ & ``Main Street" \\[\sep] -$\Box$ & Russia \\[\sep] -$\Box$ & Vladimir Putin \\[\sep] -$\Box$ & Medicare \\[\sep] -$\Box$ & ISIS \\[\sep] -$\Box$ & Congress \\[\sep] -$\Box$ & Refugees \\[\sep] -$\Box$ & Impeachment \\[\sep] -$\Box$ & Britain \\[\sep] -$\Box$ & Names a small town \\[\sep] -$\Box$ & Trade war \\[\sep] -$\Box$ & Touts record Dow Jones \\[\sep] -$\Box$ & Strongest military \\[\sep] -$\Box$ & Farmers \\[\sep] -$\Box$ & ``Blue states" \\[\sep] -$\Box$ & Misprounounces word \\[\sep] -$\Box$ & Points to guest \\[\sep] -$\Box$ & ``Nancy Pelosi" \\[\sep] -$\Box$ & Mar-a-lago \\[\sep] -$\Box$ & Whistleblower \\[\sep] -$\Box$ & ``Disaster" \\[\sep] -$\Box$ & ``Many people are saying" \\[\sep] -$\Box$ & Camera shows other Trumps \\[\sep] -$\Box$ & Anyone sleeping \\[\sep] -$\Box$ & Entitlement cuts \\[\sep] -$\Box$ & ``God bless America" \\[\sep] -$\Box$ & Mike Pompeo \\[\sep] -$\Box$ & Ukraine \\[\sep] -$\Box$ & NASA \\[\sep] -$\Box$ & ``Entrepreneurs" \\[\sep] +$\square$ & ``Believe me" \\[\sep] +$\square$ & Make America Great Again \\[\sep] +$\square$ & Build a/the wall \\[\sep] +$\square$ & Liberal media \\[\sep] +$\square$ & ``Tremendous" \\[\sep] +$\square$ & We don't \emph{win} anymore \\[\sep] +$\square$ & International respect \\[\sep] +$\square$ & Small Town \\[\sep] +$\square$ & China \\[\sep] +$\square$ & Syria \\[\sep] +$\square$ & Israel \\[\sep] +$\square$ & Iran \\[\sep] +$\square$ & Mexico \\[\sep] +$\square$ & Russia \\[\sep] +$\square$ & North Korea \\[\sep] +$\square$ & The Middle Class \\[\sep] +$\square$ & Bernie Sanders \\[\sep] +$\square$ & National Debt \\[\sep] +$\square$ & Trade Deals \\[\sep] +$\square$ & Infrastructure \\[\sep] +$\square$ & Clean Energy \\[\sep] +$\square$ & Coal \\[\sep] +$\square$ & Law and Order \\[\sep] +$\square$ & Terrorism \\[\sep] +$\square$ & NAFTA \\[\sep] +$\square$ & US budget deficit \\[\sep] +$\square$ & Social Security \\[\sep] +$\square$ & Veterans \\[\sep] +$\square$ & The Second Amendment \\[\sep] +$\square$ & Transparency \\[\sep] +$\square$ & NATO \\[\sep] +$\square$ & ``Leadership" \\[\sep] +$\square$ & ``I love \_\_\_\_\_.'' \\[\sep] +$\square$ & the Supreme Court \\[\sep] +$\square$ & Immigration reform \\[\sep] +$\square$ & Obamacare \\[\sep] +$\square$ & Muslim ban \\[\sep] +$\square$ & Voter fraud \\[\sep] +$\square$ & Russian ``Hacking" \\[\sep] +$\square$ & ``Wall Street" \\[\sep] +$\square$ & ``Main Street" \\[\sep] +$\square$ & Russia \\[\sep] +$\square$ & Vladimir Putin \\[\sep] +$\square$ & Medicare \\[\sep] +$\square$ & ISIS \\[\sep] +$\square$ & Congress \\[\sep] +$\square$ & Refugees \\[\sep] +$\square$ & Names a small town \\[\sep] +$\square$ & Trade war \\[\sep] +$\square$ & Misprounounces word \\[\sep] +$\square$ & ``Nancy Pelosi" \\[\sep] +$\square$ & Mar-a-lago \\[\sep] +$\square$ & Whistleblower \\[\sep] +$\square$ & ``Disaster" \\[\sep] +$\square$ & ``Many people are saying" \\[\sep] +$\square$ & ``God bless America" \\[\sep] +$\square$ & Ukraine \\[\sep] +$\square$ & NASA \\[\sep] +$\square$ & Sexual assault \\[\sep] +$\square$ & Trump asks for Biden to take a drug test after the debate \\[\sep] +$\square$ & China \\[\sep] +$\square$ & trump says "wrong" \\[\sep] +$\square$ & Fake news \\[\sep] +$\square$ & Biden Promises Free Healthcare \\[\sep] +$\square$ & Biden mentions Trumps Taxes \\[\sep] +$\square$ & Biden messes up numbers/math \\[\sep] +$\square$ & Trump takes a sip of water with both hands \\[\sep] +$\square$ & Biden panders \\[\sep] +$\square$ & Biden forgets where he is \\[\sep] +$\square$ & Trump brings up Biden’s sons Russian Prostitution ring \\[\sep] +$\square$ & Trump calls Biden out on decades of being in office with nothing to show \\[\sep] +$\square$ & Trump uses the phrase « Sleepy Joe » \\[\sep] +$\square$ & Sleepy joe denies that blm and antifa are violent organizations \\[\sep] +$\square$ & Democrats are proven to be idiots once more \\[\sep] +$\square$ & joe is silent trying to think about his awnser for 10 sec \\[\sep] +$\square$ & trump does the hand thing \\[\sep] +$\square$ & Trump calls Biden out on decades of being in office with nothing to show \\[\sep] +$\square$ & Trump calls Biden a pedophile \\[\sep] +$\square$ & Trump mentions Ukraine \\[\sep] +$\square$ & Biden stares at ceiling \\[\sep] +$\square$ & Trump talks for more than 10 seconds after his time is up \\[\sep] +$\square$ & CORONAVIRUS \\[\sep] +$\square$ & Trump wears blue tie \\[\sep] +$\square$ & YUGGEEEE \\[\sep] +$\square$ & ... by the way \\[\sep] +$\square$ & Trump Blames Obama \\[\sep] +$\square$ & Biden Praises Obama \\[\sep] +$\square$ & China Virus \\[\sep] +$\square$ & Make America Great Again \\[\sep] +$\square$ & Keep America Great \\[\sep] +$\square$ & "Beautiful Clean Coal" \\[\sep] +$\square$ & Trump Disses Company by name \\[\sep] +$\square$ & Hilary Clinton Mentioned \\[\sep] +$\square$ & Trump blames a female for something \\[\sep] +$\square$ & Trump says he will lower taxes \\[\sep] +$\square$ & Biden says he will raise taxes \\[\sep] +$\square$ & Mail Fraud \\[\sep] +$\square$ & "witch hunt" \\[\sep] +$\square$ & Twitter mentioned \\[\sep] +$\square$ & "A lot of people" \\[\sep] +$\square$ & Second impeachment mentioned \\[\sep] +$\square$ & LGBT mentioned \\[\sep] +$\square$ & Harris skin color mentioned \\[\sep] +$\square$ & Trump calls Biden "Low Energy" \\[\sep] +$\square$ & Hunter Biden brought up \\[\sep] diff --git a/makechecklist.py b/makechecklist.py index ea3c483..55af816 100644 --- a/makechecklist.py +++ b/makechecklist.py @@ -1,11 +1,11 @@ -#/usr/bin/python +# /usr/bin/python import os import sys import re # makechecklist.py: a quick parser for a specifically-formatted LaTeX file # that produces a nice checklist in {longtable} for the entire list. -# The list is, or should be, larger than the number of cells on any one +# The list is, or should be, larger than the number of cells on any one # bingo card, so a canonical list of the cells is useful when evaluating any # one card. # @@ -13,48 +13,51 @@ import re # Functions: + def makeEntry(varname): """Take a nicely formatted variable (string) and write it into a LaTeX \ [long]table cell""" - tabline = str( "$\\square$ & %s \\\\[\\sep]\n" % varname ) - return(tabline) + tabline = str("$\\square$ & %s \\\\[\\sep]\n" % varname) + return tabline + def slurpInFile(fn, theList): """Open an input file, parse it, ignore some fields, and nicely format the\ remainder of the file into a long text string of LaTeX tabular fields.""" - f=open(fn, 'r') - li=f.read() - grr = li.split('\n') + f = open(fn, "r") + li = f.read() + grr = li.split("\n") for i in grr: - if( re.search('^%|^\s*$', i) ): + if re.search("^%|^\s*$", i): continue - elif (re.match('\s*}\s*$', i) ): - return(theList) + elif re.match("\s*}\s*$", i): + return theList else: - mline=i.split(';') -# print (mline) + mline = i.split(";") + # print (mline) for j in mline: - if ( re.match ('^\s*$', j) ): + if re.match("^\s*$", j): continue - j = re.sub('\\\\myItems{', "", j) - theList=theList+makeEntry(j) + j = re.sub("\\\\myItems{", "", j) + theList = theList + makeEntry(j) return 0 + # Main loop: -filename="bingolist.tex" -nicetable="% Hopefully a nice table\n\n" +filename = "bingolist.tex" +nicetable = "% Hopefully a nice table\n\n" nicetable = slurpInFile(filename, nicetable) # write out the table to a file: -ofile="checklist1.tex" -output=open(ofile, 'w') +ofile = "checklist1.tex" +output = open(ofile, "w") output.write(nicetable) output.close() -# let user know: +# let user know: print("wrote output to %s" % ofile)