image_path=f'{PUBLIC_STATIC_FOLDER_PATH}/images/{filename}'# here the images need to link to the / of the domain, for flask :/// confusing! this breaks the whole idea to still be able to make a local copy of the file
html=html.replace('<a href="#X,_y,_z_(4_filmstills)"','<a href="#x,_y,_z_(4_filmstills)"')# change the anchor link in the TOC to lowercase
html=html.replace('<a href="#Rehearsal_as_the_%E2%80%98Other%E2%80%99_to_Hypercomputation"','<a href="#Rehearsal_as_the_‘Other’_to_Hypercomputation"')# change the anchor link in the TOC to lowercase
html=html.replace('<a href="#We_hardly_encounter_anything_that_didn%E2%80%99t_really_matter"','<a href="#We_hardly_encounter_anything_that_didn’t_really_matter"')# change the anchor link in the TOC to lowercase
html=html.replace('srcset="./images/Userinfo.jpg 1.5x, ./images/Userinfo.jpg 2x"','srcset="./images/Userinfo.svg 1.5x, ./images/Userinfo.svg 2x"')# This image is not on the wiki
html=html.replace('src="./images/Continuum_brighton.png"','src="./images/Continuum_brighton.svg"')# This image is not on the wiki
html=html.replace('srcset="./images/Continuum_brighton.png 1.5x, ./images/Continuum_brighton.png 2x"','srcset="./images/Continuum_brighton.svg 1.5x, ./images/Continuum_brighton.svg 2x"')# This image is not on the wiki
html=html.replace('Our trans*feminist lens is sharpened by queer and anti-colonial sensibilities, and oriented towards (but not limited to) trans*generational, trans*media, trans*disciplinary, trans*geopolitical, trans*expertise, and trans*genealogical forms of study.','Our trans✶feminist lens is sharpened by queer and anti-colonial sensibilities, and oriented towards (but not limited to) trans✶generational, trans✶media, trans✶disciplinary, trans✶geopolitical, trans✶expertise, and trans✶genealogical forms of study.')# changing stars
html=html.replace('<h2><span class="mw-headline" id="Invasive_imagination_and_its_agential_cuts">Invasive imagination and its agential cuts</span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h2>','<h2><span class="mw-headline" id="Invasive_imagination_and_its_agential_cuts">Invasive imagination <br>and its agential cuts</span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h2>')
html=html.replace('<h2><span class="mw-headline" id="Volumetric_Regimes:_Material_cultures_of_quantified_presence">Volumetric Regimes: Material cultures of quantified presence</span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h2>','<h2><span class="mw-headline" id="Volumetric_Regimes:_Material_cultures_of_quantified_presence">Volumetric Regimes:<br>Material cultures of<br>quantified presence</span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h2>')
html=html.replace('<h2><span id="Somatopologies_(materials_for_a_movie_in_the_making)"></span><span class="mw-headline" id="Somatopologies_.28materials_for_a_movie_in_the_making.29">Somatopologies (materials for a movie in the making)</span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h2>','<h2><span id="Somatopologies_(materials_for_a_movie_in_the_making)"></span><span class="mw-headline" id="Somatopologies_.28materials_for_a_movie_in_the_making.29">Somatopologies (materials<br> for a movie in the making)</span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h2>')
html=html.replace('<h1><span class="mw-headline" id="Signs_of_clandestine_disorder:_The_continuous_aftermath_of_3D-computationalism"><a href="#Clandestine_disorder" title="Clandestine disorder">Signs of clandestine disorder: The continuous aftermath of 3D-computationalism</a></span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h1>','<h1><span class="mw-headline" id="Signs_of_clandestine_disorder:_The_continuous_aftermath_of_3D-computationalism"><a href="#Clandestine_disorder" title="Clandestine disorder">Signs of clandestine disorder:<br>The continuous<br>aftermath of 3D-<br>computationalism</a></span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h1>')
html=html.replace(' — so we do!”',' — so<br>we do!”')# force line break
html=html.replace('I find gestationality useful and very exciting.','I find gestationality useful and very<br>exciting.')# force line break
html=html.replace('world.html https://docs.blender.org/manual/en/dev/rende','world.html<br>https://docs.blender.org/manual/en/dev/rende')# force line break
html=html.replace('Nerea Calvillo, Eric Snodgrass','Nerea Calvillo, Eric <br>Snodgrass')# force line break
pattern3=r'''<h2><span class="mw-headline" id=".*?">.*?</span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h2>'''# only title
pattern4=r'''<h2><span id="x,_y,_z_\(4_filmstills\)"></span><span class="mw-headline" id="x.2C_y.2C_z_.284_filmstills.29">x, y, z \(4 filmstills\)</span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h2>
<p><b>JaraRocha,FemkeSnelting</b>
</p>'''
pattern5=r'''<h2><span id="Somatopologies_\(materials_for_a_movie_in_the_making\)"></span><span class="mw-headline" id="Somatopologies_.28materials_for_a_movie_in_the_making.29">Somatopologies \(materials<br> for a movie in the making\)</span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h2>
pattern6=r'''<h2><span id="Rehearsal_as_the_\‘Other\’_to_Hypercomputation"></span><span class="mw-headline" id="Rehearsal_as_the_\.E2\.80\.98Other\.E2\.80\.99_to_Hypercomputation">Rehearsal as the \‘Other\’ to Hypercomputation</span><span class="mw-editsection"><span class="mw-editsection-bracket"></span></span></h2>
html=html.replace('Topology-typography-1A.jpg','Topology-typography-1A.png')# Using png's for Spec, Aug 2022
html=html.replace('Topology-typography-1B.jpg','Topology-typography-1B.png')# Using png's for Spec, Aug 2022
html=html.replace('Topology-typography-2A.jpg','Topology-typography-2A.png')# Using png's for Spec, Aug 2022
html=html.replace('Topology-typography-2B.jpg','Topology-typography-2B.png')# Using png's for Spec, Aug 2022
html=html.replace('<div class="contribution 2.5d-romance">','<div class="contribution romance">')# Aug 2022
html=html.replace('''</p><p>3D computation has historically co-evolved with Modern technosciences, and aligned with the regimes of optimization, normalization and hegemonic world order. The legacies and projections of industrial development leave traces of that imaginary and tell the stories of a lively tension between “the probable” and “the possible”. Defined as the techniques for measuring volumes, volumetrics all too easily (re)produce and accentuate the probable, and this process is intensified within the technocratic realm of contemporary hyper-computation.
</p><p>Thisbookbringstogetherdiversematerialsfromanongoingtrans<spanclass="star">✶</span>feministconversationbetweenartists,softwaredevelopersandtheoristsworkingwith<br>techniquesandtechnologiesfordetecting,tracking,capturing,printing,modelingandrenderingvolumes.''') # Aug 2022