From e141b9e1af5b96a85d5a436ad61090ef69c1b00d Mon Sep 17 00:00:00 2001 From: yaqubroli Date: Tue, 31 Jan 2023 14:24:47 +0000 Subject: [PATCH] first commit --- A Critique of Progress - Jean-Jacques Rousseau.pdf | 0 A Discourse of Free-Thinking - Anthony Collins.pdf | 0 A Letter Concerning Toleration - John Locke.pdf | 0 A Treatise of Human Nature - David Hume.pdf | 0 A Treatise on Man - Claude-Adrien Helvétlus.pdf | 0 African Slavery in America - Thomas Paine.pdf | 0 An Essay Concerning Human Understanding - John Locke.pdf | 0 An Essay on Crimes and Punishments - Cesare Beccaria.pdf | 0 An Essay on Man - Alexander Pope.pdf | 0 Benevolent Despotism - Frederick the Great.pdf | 0 Children and Civic Education - Jean-Jacques Rousseau.pdf | 0 Common Sense - Thomas Paine.pdf | 0 Concerning the Moral Sense - Francis Hutcheson.pdf | 0 Considerations on the Keeping of Negroes - John Woolman.pdf | 0 Definition of a Philosophe - Cesar Chesneau Dumarsais.pdf | 0 Discourse on Art - Joshua Reynolds.pdf | 0 Discourse on Style - Comte de Buffon.pdf | 0 Discourse on the Origin of Inequality - Jean-Jacques Rousseau.pdf | 0 Duties of Women - Jean-Jacques Rousseau.pdf | 0 Economic Liberty - Anne-Robert-Jacques Turgot.pdf | 0 Education for Civil and Active life - Joseph Priestley.pdf | 0 Enjoyment and Tahiti - Denis Diderot.pdf | 0 Enquiry Concerning Political Justice - William Godwin.pdf | 0 Federalist No. 10 - James Madison.pdf | 0 Fundamental Principles of the Metaphysics of Morals - Immanuel Kant.pdf | 0 History as Guide - David Hume.pdf | 0 Ideas of Beauty and Virtue - Francis Hutcheson.pdf | 0 In Defense of Modernity - François-Marie Arouet de Voltaire.pdf | 0 Industry and the Way to Wealth - Benjamin Franklin.pdf | 0 Le Mariage de Figaro - Pierre Augustin Caron de Beaumarchais.pdf | 0 Letter to Joseph Priestley - Benjamin Franklin.pdf | 0 Man a Machine - Julien Offray de la Mettrie.pdf | 0 Mathematical Principles of Natural Philosophy - Isaac Newton.pdf | 0 Memoirs of a Woman of Pleasure - John Cleland.pdf | 0 New Essays on Human Understanding - Gottfried Wilhelm Leibnitz.pdf | 0 Of Empires and Savages - Edward Gibbon.pdf | 0 Of Ideas, Their Generation and Associations - David Hartley.pdf | 0 Of Luxury - David Hume.pdf | 0 Of Miracles and the Origin of Religion - David Hume.pdf | 0 Of the Standard of Taste - David Hume.pdf | 0 On Bacon and Newton - Francois-Marie Arouet de Voltaire.pdf | 0 On Custom and Fashion - Adam Smith.pdf | 0 On Enthusiasm - Earl of Shaftsbury.pdf | 0 On Indians and Negroes - Thomas Jefferson.pdf | 0 On Mr. Locke - Francois-Marie Arouet de Voltaire.pdf | 0 On Progress - Anne-Robeht-Jacques Turgot.pdf | 0 On Superstition and Tolerance - Pierre Bayle.pdf | 0 On Theater and Morals - Jean-Jacques Rousseau.pdf | 0 On Torture and Capital Punishment - François-Marie Arouet de Voltaire.pdf | 0 On Wit - Joseph Addison.pdf | 0 On the Equality of the Sexes - Constantia.pdf | 0 Perpetual Peace - Immanuel Kant.pdf | 0 Political Essays - François-Marie Arouet de Voltaire.pdf | 0 Profession of Faith of a Savoyard Vicar - Jean-Jacques Rousseau.pdf | 0 Reflections on Religion - François-Marie Arouet de Voltaire.pdf | 0 Some Reflections Upon Marriage - Mary Astell.pdf | 0 Some thoughts concerning Education - John Locke.pdf | 0 Splendid Armies - François-Marie Arouet de Voltaire.pdf | 0 The Age of Reason - Thomas Paine.pdf | 0 The American Declaration of Independence - .pdf | 0 The Argument for a Deity - Isaac Newton.pdf | 0 The Beautiful and Sublime - Immanuel Kant.pdf | 0 The Declaration of the Rights of Man and the Citizen - .pdf | 0 The Difference Between the Races - Immanuel Kant.pdf | 0 The End of Empire - Joseph Priestley.pdf | 0 The Fable of the Bees - Bernard Mandeville.pdf | 0 The Fair Sex - Immanuel Kant.pdf | 0 The Four-Stage Theory of Development - Adam Smith.pdf | 0 The Future Progress of the Human Mind - Marquis de Condorcet.pdf | 0 The Human Mind Emerged From Barbarism - Jean le Rond D’Alembert.pdf | 0 The Impartial Spectator - Adam Smith.pdf | 0 The Magic Flute - Wolfgang Amadeus Mozart.pdf | 0 The New Physics - Roger Cotes.pdf | 0 The New Science - Giambattista Vico.pdf | 0 The Organization of Scientific Research - Joseph Priestley.pdf | 0 The Perfectibility of Man - Marquis de Condorcet.pdf | 0 The Philosophy of Common sense - Thomas Reid.pdf | 0 The Physiocratic Formula - François Quesnay.pdf | 0 The Principle of Utility - Jeremy Bentham.pdf | 0 The Progress of Superstition - Edward Gibbon.pdf | 0 The Progressive Character of Human Nature - Adam Ferguson.pdf | 0 The Rat - Comte de Buffon.pdf | 0 The Rights of Man - Thomas Paine.pdf | 0 The Rights of Woman - Olympe de Gouges.pdf | 0 The Royal Exchange - Joseph Addison.pdf | 0 The Second Treatise of Civil Government - John Locke.pdf | 0 The Severity of Criminal Laws - Baron de Montesquieu.pdf | 0 The Social Contract - Jean-Jacques Rousseau.pdf | 0 The Spirit of the Laws - Baron de Montesquieu.pdf | 0 The State of Prisons - John howard.pdf | 0 The Sublime - Edmund Burke.pdf | 0 The Temple of Reason - .pdf | 0 The Utility of History - Henry St. John, Lord Bolingbroke.pdf | 0 The Utility of Science - Marquis de Condorcet.pdf | 0 The Wealth of Nations - Adam Smith.pdf | 0 Treatise on the Sensations - Ettienne Bonnot de Condillac.pdf | 0 Unitarianism - Joseph Priestley.pdf | 0 Vindication of the Rights of Woman - Mary Wollstonecraft.pdf | 0 What is Enlightenment - Immanuel Kant.pdf | 0 Women, Adored and Oppressed - Thomas Paine (attr.).pdf | 0 Women’s Education - Catherine Sawbridge Macaulay Graham.pdf | 0 index.html | 23 +++++++++++++++++++++++ readme.md | 5 +++++ style.css | 26 ++++++++++++++++++++++++++ “A woman ... gossips much ...” - Wolfgang Amadeus Mozart.pdf | 0 “Bestial manners, stupidity, and vices ...” - James Long.pdf | 0 “Cases unmeet for punishment ...” - Jeremy Bentham.pdf | 0 “Encylopédie” - Denis Diderot.pdf | 0 “How glorious, then, is the prospect ...” - Joseph Priestley.pdf | 0 “I think, therefore I am ... ” - René Descartes.pdf | 0 “If there is a God ...” - Baron de Montesquieu.pdf | 0 “Negroes ... naturally inferior to the whites...” - David Hume.pdf | 0 “Negro” - Encyclopaedia Britannica.pdf | 0 “No need of theology ... only of reason ...” - Baron d’Holbach.pdf | 0 “Religion ... my views of it ... ” - Thomas Jefferson.pdf | 0 “Something of my religion ...” - Benjamin Franklin.pdf | 0 “There never was a good war ...” - Benjamin Franklin.pdf | 0 “Who are you, then, to make slaves ...” - Denis Diderot.pdf | 0 src/data.csv | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/gencsv.js | 38 ++++++++++++++++++++++++++++++++++++++ src/genhtml.js | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ src/index.js | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/package.json | 5 +++++ 123 files changed, 316 insertions(+) diff --git a/A Critique of Progress - Jean-Jacques Rousseau.pdf b/A Critique of Progress - Jean-Jacques Rousseau.pdf new file mode 100644 index 0000000000000000000000000000000000000000..7be28a20a05ba68b80fc8720a3342c664a820dd3 100644 Binary files /dev/null and a/A Critique of Progress - Jean-Jacques Rousseau.pdf differ diff --git a/A Discourse of Free-Thinking - Anthony Collins.pdf b/A Discourse of Free-Thinking - Anthony Collins.pdf new file mode 100644 index 0000000000000000000000000000000000000000..3b179871763502b4d5b5fcb5b0e97dff9576c6fc 100644 Binary files /dev/null and a/A Discourse of Free-Thinking - Anthony Collins.pdf differ diff --git a/A Letter Concerning Toleration - John Locke.pdf b/A Letter Concerning Toleration - John Locke.pdf new file mode 100644 index 0000000000000000000000000000000000000000..e40bf2d3860092b1f424cfdd0bd32ff4c79c504e 100644 Binary files /dev/null and a/A Letter Concerning Toleration - John Locke.pdf differ diff --git a/A Treatise of Human Nature - David Hume.pdf b/A Treatise of Human Nature - David Hume.pdf new file mode 100644 index 0000000000000000000000000000000000000000..6ea1290b7bd98dab233c810da16bb0228a140e39 100644 Binary files /dev/null and a/A Treatise of Human Nature - David Hume.pdf differ diff --git a/A Treatise on Man - Claude-Adrien Helvétlus.pdf b/A Treatise on Man - Claude-Adrien Helvétlus.pdf new file mode 100644 index 0000000000000000000000000000000000000000..d0c126f4d73c4207e1e21354ed65c8c8ecbe8a64 100644 Binary files /dev/null and a/A Treatise on Man - Claude-Adrien Helvétlus.pdf differ diff --git a/African Slavery in America - Thomas Paine.pdf b/African Slavery in America - Thomas Paine.pdf new file mode 100644 index 0000000000000000000000000000000000000000..dfde120f8d24607b50e93397b5d2887a78a0f4af 100644 Binary files /dev/null and a/African Slavery in America - Thomas Paine.pdf differ diff --git a/An Essay Concerning Human Understanding - John Locke.pdf b/An Essay Concerning Human Understanding - John Locke.pdf new file mode 100644 index 0000000000000000000000000000000000000000..4b3a544ddd37072c01f4a7caec45f331dd32ee77 100644 Binary files /dev/null and a/An Essay Concerning Human Understanding - John Locke.pdf differ diff --git a/An Essay on Crimes and Punishments - Cesare Beccaria.pdf b/An Essay on Crimes and Punishments - Cesare Beccaria.pdf new file mode 100644 index 0000000000000000000000000000000000000000..cc9c400df16aab72672b9263594d561cd03c5812 100644 Binary files /dev/null and a/An Essay on Crimes and Punishments - Cesare Beccaria.pdf differ diff --git a/An Essay on Man - Alexander Pope.pdf b/An Essay on Man - Alexander Pope.pdf new file mode 100644 index 0000000000000000000000000000000000000000..3c12aa45fe21ecd2b5ddaa70c96e095c26268913 100644 Binary files /dev/null and a/An Essay on Man - Alexander Pope.pdf differ diff --git a/Benevolent Despotism - Frederick the Great.pdf b/Benevolent Despotism - Frederick the Great.pdf new file mode 100644 index 0000000000000000000000000000000000000000..06d1de743a74d0f7c3234e66e896504d3ae8a07f 100644 Binary files /dev/null and a/Benevolent Despotism - Frederick the Great.pdf differ diff --git a/Children and Civic Education - Jean-Jacques Rousseau.pdf b/Children and Civic Education - Jean-Jacques Rousseau.pdf new file mode 100644 index 0000000000000000000000000000000000000000..bf9e2964ee98c2dd78f663d6a705df5abbf93e1b 100644 Binary files /dev/null and a/Children and Civic Education - Jean-Jacques Rousseau.pdf differ diff --git a/Common Sense - Thomas Paine.pdf b/Common Sense - Thomas Paine.pdf new file mode 100644 index 0000000000000000000000000000000000000000..8f13cfbc24e311555df625b4228b5e757fd691f7 100644 Binary files /dev/null and a/Common Sense - Thomas Paine.pdf differ diff --git a/Concerning the Moral Sense - Francis Hutcheson.pdf b/Concerning the Moral Sense - Francis Hutcheson.pdf new file mode 100644 index 0000000000000000000000000000000000000000..f1ffdd978597fe9c5310daf453733a517e6fa9fa 100644 Binary files /dev/null and a/Concerning the Moral Sense - Francis Hutcheson.pdf differ diff --git a/Considerations on the Keeping of Negroes - John Woolman.pdf b/Considerations on the Keeping of Negroes - John Woolman.pdf new file mode 100644 index 0000000000000000000000000000000000000000..3a4cfba5f1cdb2fc78499c55c290ad2f265793b8 100644 Binary files /dev/null and a/Considerations on the Keeping of Negroes - John Woolman.pdf differ diff --git a/Definition of a Philosophe - Cesar Chesneau Dumarsais.pdf b/Definition of a Philosophe - Cesar Chesneau Dumarsais.pdf new file mode 100644 index 0000000000000000000000000000000000000000..905037eba5c41cc2aba6c65c12e333395b10c0a5 100644 Binary files /dev/null and a/Definition of a Philosophe - Cesar Chesneau Dumarsais.pdf differ diff --git a/Discourse on Art - Joshua Reynolds.pdf b/Discourse on Art - Joshua Reynolds.pdf new file mode 100644 index 0000000000000000000000000000000000000000..88d35b39e4495d31b7f87ce0aaf96de7496adba5 100644 Binary files /dev/null and a/Discourse on Art - Joshua Reynolds.pdf differ diff --git a/Discourse on Style - Comte de Buffon.pdf b/Discourse on Style - Comte de Buffon.pdf new file mode 100644 index 0000000000000000000000000000000000000000..520968c11a951ba8036a47751d3688920190b4a8 100644 Binary files /dev/null and a/Discourse on Style - Comte de Buffon.pdf differ diff --git a/Discourse on the Origin of Inequality - Jean-Jacques Rousseau.pdf b/Discourse on the Origin of Inequality - Jean-Jacques Rousseau.pdf new file mode 100644 index 0000000000000000000000000000000000000000..d9a202077938b2535cc2ed5b2e00e5983cf49351 100644 Binary files /dev/null and a/Discourse on the Origin of Inequality - Jean-Jacques Rousseau.pdf differ diff --git a/Duties of Women - Jean-Jacques Rousseau.pdf b/Duties of Women - Jean-Jacques Rousseau.pdf new file mode 100644 index 0000000000000000000000000000000000000000..223ecc9b9fb4ef403a6f6ec617836c619ce3dc6c 100644 Binary files /dev/null and a/Duties of Women - Jean-Jacques Rousseau.pdf differ diff --git a/Economic Liberty - Anne-Robert-Jacques Turgot.pdf b/Economic Liberty - Anne-Robert-Jacques Turgot.pdf new file mode 100644 index 0000000000000000000000000000000000000000..75c57e146a569904bb46ede8e867e39bdf9366b6 100644 Binary files /dev/null and a/Economic Liberty - Anne-Robert-Jacques Turgot.pdf differ diff --git a/Education for Civil and Active life - Joseph Priestley.pdf b/Education for Civil and Active life - Joseph Priestley.pdf new file mode 100644 index 0000000000000000000000000000000000000000..c5ec8bb89070810040dc8080e7c11a0ddbc86584 100644 Binary files /dev/null and a/Education for Civil and Active life - Joseph Priestley.pdf differ diff --git a/Enjoyment and Tahiti - Denis Diderot.pdf b/Enjoyment and Tahiti - Denis Diderot.pdf new file mode 100644 index 0000000000000000000000000000000000000000..6d3df602e2831e40fd9cc09cc7415d11fcbeb300 100644 Binary files /dev/null and a/Enjoyment and Tahiti - Denis Diderot.pdf differ diff --git a/Enquiry Concerning Political Justice - William Godwin.pdf b/Enquiry Concerning Political Justice - William Godwin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..3bacaa110a500c8c8a8463f75603c7ec09addefe 100644 Binary files /dev/null and a/Enquiry Concerning Political Justice - William Godwin.pdf differ diff --git a/Federalist No. 10 - James Madison.pdf b/Federalist No. 10 - James Madison.pdf new file mode 100644 index 0000000000000000000000000000000000000000..04c26939c4cfda62547ca63e1d30736047f67f72 100644 Binary files /dev/null and a/Federalist No. 10 - James Madison.pdf differ diff --git a/Fundamental Principles of the Metaphysics of Morals - Immanuel Kant.pdf b/Fundamental Principles of the Metaphysics of Morals - Immanuel Kant.pdf new file mode 100644 index 0000000000000000000000000000000000000000..25ed684f6380e34265e7c00e0d92e75bf453e758 100644 Binary files /dev/null and a/Fundamental Principles of the Metaphysics of Morals - Immanuel Kant.pdf differ diff --git a/History as Guide - David Hume.pdf b/History as Guide - David Hume.pdf new file mode 100644 index 0000000000000000000000000000000000000000..0c2557e3263df4f816d1c47b2836b7fc3e30d8d1 100644 Binary files /dev/null and a/History as Guide - David Hume.pdf differ diff --git a/Ideas of Beauty and Virtue - Francis Hutcheson.pdf b/Ideas of Beauty and Virtue - Francis Hutcheson.pdf new file mode 100644 index 0000000000000000000000000000000000000000..f60fe1ff5cc89378d2dc9818edcd480f3e42a8f4 100644 Binary files /dev/null and a/Ideas of Beauty and Virtue - Francis Hutcheson.pdf differ diff --git a/In Defense of Modernity - François-Marie Arouet de Voltaire.pdf b/In Defense of Modernity - François-Marie Arouet de Voltaire.pdf new file mode 100644 index 0000000000000000000000000000000000000000..8d9eee18c7acbd182762ceddf055aeaefb88899e 100644 Binary files /dev/null and a/In Defense of Modernity - François-Marie Arouet de Voltaire.pdf differ diff --git a/Industry and the Way to Wealth - Benjamin Franklin.pdf b/Industry and the Way to Wealth - Benjamin Franklin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..c92ea10b77d58a84116833d6ff168a4cbe936d87 100644 Binary files /dev/null and a/Industry and the Way to Wealth - Benjamin Franklin.pdf differ diff --git a/Le Mariage de Figaro - Pierre Augustin Caron de Beaumarchais.pdf b/Le Mariage de Figaro - Pierre Augustin Caron de Beaumarchais.pdf new file mode 100644 index 0000000000000000000000000000000000000000..6acbb7f17720da2bf8e4404ea38c8bb3be4664c0 100644 Binary files /dev/null and a/Le Mariage de Figaro - Pierre Augustin Caron de Beaumarchais.pdf differ diff --git a/Letter to Joseph Priestley - Benjamin Franklin.pdf b/Letter to Joseph Priestley - Benjamin Franklin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..66ffb34575fb0aa75d3641d81166f9a91815ae78 100644 Binary files /dev/null and a/Letter to Joseph Priestley - Benjamin Franklin.pdf differ diff --git a/Man a Machine - Julien Offray de la Mettrie.pdf b/Man a Machine - Julien Offray de la Mettrie.pdf new file mode 100644 index 0000000000000000000000000000000000000000..4956c91e9e7746dc27e7f6e2312548d8de342e95 100644 Binary files /dev/null and a/Man a Machine - Julien Offray de la Mettrie.pdf differ diff --git a/Mathematical Principles of Natural Philosophy - Isaac Newton.pdf b/Mathematical Principles of Natural Philosophy - Isaac Newton.pdf new file mode 100644 index 0000000000000000000000000000000000000000..3383f301436056805fa2e9af4f8617d6c5e46ef8 100644 Binary files /dev/null and a/Mathematical Principles of Natural Philosophy - Isaac Newton.pdf differ diff --git a/Memoirs of a Woman of Pleasure - John Cleland.pdf b/Memoirs of a Woman of Pleasure - John Cleland.pdf new file mode 100644 index 0000000000000000000000000000000000000000..d1ac886520d96af80e9d5a50de58cfbceebb1db9 100644 Binary files /dev/null and a/Memoirs of a Woman of Pleasure - John Cleland.pdf differ diff --git a/New Essays on Human Understanding - Gottfried Wilhelm Leibnitz.pdf b/New Essays on Human Understanding - Gottfried Wilhelm Leibnitz.pdf new file mode 100644 index 0000000000000000000000000000000000000000..039c7c8c6059d28f3750c911705ac10d3d9a3d71 100644 Binary files /dev/null and a/New Essays on Human Understanding - Gottfried Wilhelm Leibnitz.pdf differ diff --git a/Of Empires and Savages - Edward Gibbon.pdf b/Of Empires and Savages - Edward Gibbon.pdf new file mode 100644 index 0000000000000000000000000000000000000000..a6a16301c23124d4486c31d5b76a96e085124722 100644 Binary files /dev/null and a/Of Empires and Savages - Edward Gibbon.pdf differ diff --git a/Of Ideas, Their Generation and Associations - David Hartley.pdf b/Of Ideas, Their Generation and Associations - David Hartley.pdf new file mode 100644 index 0000000000000000000000000000000000000000..818ac4e4b005df9ea19c6925514b0eb90e341365 100644 Binary files /dev/null and a/Of Ideas, Their Generation and Associations - David Hartley.pdf differ diff --git a/Of Luxury - David Hume.pdf b/Of Luxury - David Hume.pdf new file mode 100644 index 0000000000000000000000000000000000000000..9417aa06d654f274986d051acef5adf45b025d91 100644 Binary files /dev/null and a/Of Luxury - David Hume.pdf differ diff --git a/Of Miracles and the Origin of Religion - David Hume.pdf b/Of Miracles and the Origin of Religion - David Hume.pdf new file mode 100644 index 0000000000000000000000000000000000000000..03f387300f4f69f60a7abfcfb1ac821371d49a04 100644 Binary files /dev/null and a/Of Miracles and the Origin of Religion - David Hume.pdf differ diff --git a/Of the Standard of Taste - David Hume.pdf b/Of the Standard of Taste - David Hume.pdf new file mode 100644 index 0000000000000000000000000000000000000000..4fbfaedb3c4a903e475c41e9acc8801f555dac6f 100644 Binary files /dev/null and a/Of the Standard of Taste - David Hume.pdf differ diff --git a/On Bacon and Newton - Francois-Marie Arouet de Voltaire.pdf b/On Bacon and Newton - Francois-Marie Arouet de Voltaire.pdf new file mode 100644 index 0000000000000000000000000000000000000000..cb3149c728cdaa3b842e7a8ef138870f0dd89552 100644 Binary files /dev/null and a/On Bacon and Newton - Francois-Marie Arouet de Voltaire.pdf differ diff --git a/On Custom and Fashion - Adam Smith.pdf b/On Custom and Fashion - Adam Smith.pdf new file mode 100644 index 0000000000000000000000000000000000000000..c625617a4e6f09fc2a6b837a6a0794a5b9a88df3 100644 Binary files /dev/null and a/On Custom and Fashion - Adam Smith.pdf differ diff --git a/On Enthusiasm - Earl of Shaftsbury.pdf b/On Enthusiasm - Earl of Shaftsbury.pdf new file mode 100644 index 0000000000000000000000000000000000000000..c164f535bf48c099221b2715376d98bdba227c6c 100644 Binary files /dev/null and a/On Enthusiasm - Earl of Shaftsbury.pdf differ diff --git a/On Indians and Negroes - Thomas Jefferson.pdf b/On Indians and Negroes - Thomas Jefferson.pdf new file mode 100644 index 0000000000000000000000000000000000000000..6e22a63e89ac780b6204a5aca614d196d6c0206f 100644 Binary files /dev/null and a/On Indians and Negroes - Thomas Jefferson.pdf differ diff --git a/On Mr. Locke - Francois-Marie Arouet de Voltaire.pdf b/On Mr. Locke - Francois-Marie Arouet de Voltaire.pdf new file mode 100644 index 0000000000000000000000000000000000000000..551e11db4fb5a30f102a8618b0a4c09175016aaf 100644 Binary files /dev/null and a/On Mr. Locke - Francois-Marie Arouet de Voltaire.pdf differ diff --git a/On Progress - Anne-Robeht-Jacques Turgot.pdf b/On Progress - Anne-Robeht-Jacques Turgot.pdf new file mode 100644 index 0000000000000000000000000000000000000000..49d63a3f3c0f3d6844e917de842ece7b45800c26 100644 Binary files /dev/null and a/On Progress - Anne-Robeht-Jacques Turgot.pdf differ diff --git a/On Superstition and Tolerance - Pierre Bayle.pdf b/On Superstition and Tolerance - Pierre Bayle.pdf new file mode 100644 index 0000000000000000000000000000000000000000..d73025cc45230fe86c495c30559d5133de59ede2 100644 Binary files /dev/null and a/On Superstition and Tolerance - Pierre Bayle.pdf differ diff --git a/On Theater and Morals - Jean-Jacques Rousseau.pdf b/On Theater and Morals - Jean-Jacques Rousseau.pdf new file mode 100644 index 0000000000000000000000000000000000000000..f9d1bbd8ee1835f62154e1ed8b3af706fcb59e22 100644 Binary files /dev/null and a/On Theater and Morals - Jean-Jacques Rousseau.pdf differ diff --git a/On Torture and Capital Punishment - François-Marie Arouet de Voltaire.pdf b/On Torture and Capital Punishment - François-Marie Arouet de Voltaire.pdf new file mode 100644 index 0000000000000000000000000000000000000000..865e5441da83a8296e13f77e2a09d73daa185091 100644 Binary files /dev/null and a/On Torture and Capital Punishment - François-Marie Arouet de Voltaire.pdf differ diff --git a/On Wit - Joseph Addison.pdf b/On Wit - Joseph Addison.pdf new file mode 100644 index 0000000000000000000000000000000000000000..df0b765cb9804a31c6b6ec40e505d4d5ff8b6f58 100644 Binary files /dev/null and a/On Wit - Joseph Addison.pdf differ diff --git a/On the Equality of the Sexes - Constantia.pdf b/On the Equality of the Sexes - Constantia.pdf new file mode 100644 index 0000000000000000000000000000000000000000..0aa2fdfa7fee6c9e36ee75494723b0ab1e990d41 100644 Binary files /dev/null and a/On the Equality of the Sexes - Constantia.pdf differ diff --git a/Perpetual Peace - Immanuel Kant.pdf b/Perpetual Peace - Immanuel Kant.pdf new file mode 100644 index 0000000000000000000000000000000000000000..1413c8bcfe2ca921741ea5a9b70ea1155a9a922a 100644 Binary files /dev/null and a/Perpetual Peace - Immanuel Kant.pdf differ diff --git a/Political Essays - François-Marie Arouet de Voltaire.pdf b/Political Essays - François-Marie Arouet de Voltaire.pdf new file mode 100644 index 0000000000000000000000000000000000000000..f84dfba739f0d78cbd310799e71592eb3bebdfa2 100644 Binary files /dev/null and a/Political Essays - François-Marie Arouet de Voltaire.pdf differ diff --git a/Profession of Faith of a Savoyard Vicar - Jean-Jacques Rousseau.pdf b/Profession of Faith of a Savoyard Vicar - Jean-Jacques Rousseau.pdf new file mode 100644 index 0000000000000000000000000000000000000000..6322aa2ffb9633b8809549828e834847cecf8645 100644 Binary files /dev/null and a/Profession of Faith of a Savoyard Vicar - Jean-Jacques Rousseau.pdf differ diff --git a/Reflections on Religion - François-Marie Arouet de Voltaire.pdf b/Reflections on Religion - François-Marie Arouet de Voltaire.pdf new file mode 100644 index 0000000000000000000000000000000000000000..6daa58c19c59f9dfa987f2f95c4bdd2de5304936 100644 Binary files /dev/null and a/Reflections on Religion - François-Marie Arouet de Voltaire.pdf differ diff --git a/Some Reflections Upon Marriage - Mary Astell.pdf b/Some Reflections Upon Marriage - Mary Astell.pdf new file mode 100644 index 0000000000000000000000000000000000000000..3c06e858597eb58a03a19ac71cd20633ff9474dc 100644 Binary files /dev/null and a/Some Reflections Upon Marriage - Mary Astell.pdf differ diff --git a/Some thoughts concerning Education - John Locke.pdf b/Some thoughts concerning Education - John Locke.pdf new file mode 100644 index 0000000000000000000000000000000000000000..83a508fb7e926c7ff236b6ebcfa32f2585b26d3a 100644 Binary files /dev/null and a/Some thoughts concerning Education - John Locke.pdf differ diff --git a/Splendid Armies - François-Marie Arouet de Voltaire.pdf b/Splendid Armies - François-Marie Arouet de Voltaire.pdf new file mode 100644 index 0000000000000000000000000000000000000000..ba7348803a370e7d86fe2603280bf34f00ad7615 100644 Binary files /dev/null and a/Splendid Armies - François-Marie Arouet de Voltaire.pdf differ diff --git a/The Age of Reason - Thomas Paine.pdf b/The Age of Reason - Thomas Paine.pdf new file mode 100644 index 0000000000000000000000000000000000000000..5f4b7a0b330801e5a41adcf776619e42991f363c 100644 Binary files /dev/null and a/The Age of Reason - Thomas Paine.pdf differ diff --git a/The American Declaration of Independence - .pdf b/The American Declaration of Independence - .pdf new file mode 100644 index 0000000000000000000000000000000000000000..ce04c31f99ccdff11a1d9d2780215494d3daa789 100644 Binary files /dev/null and a/The American Declaration of Independence - .pdf differ diff --git a/The Argument for a Deity - Isaac Newton.pdf b/The Argument for a Deity - Isaac Newton.pdf new file mode 100644 index 0000000000000000000000000000000000000000..b6c1e113352c5653a2da6a8971328e94b561a835 100644 Binary files /dev/null and a/The Argument for a Deity - Isaac Newton.pdf differ diff --git a/The Beautiful and Sublime - Immanuel Kant.pdf b/The Beautiful and Sublime - Immanuel Kant.pdf new file mode 100644 index 0000000000000000000000000000000000000000..04f9f88ff1230fb78e80376697e489ab57a6b7cd 100644 Binary files /dev/null and a/The Beautiful and Sublime - Immanuel Kant.pdf differ diff --git a/The Declaration of the Rights of Man and the Citizen - .pdf b/The Declaration of the Rights of Man and the Citizen - .pdf new file mode 100644 index 0000000000000000000000000000000000000000..962be6702e04af1851a44c3f8ff81b7187be488d 100644 Binary files /dev/null and a/The Declaration of the Rights of Man and the Citizen - .pdf differ diff --git a/The Difference Between the Races - Immanuel Kant.pdf b/The Difference Between the Races - Immanuel Kant.pdf new file mode 100644 index 0000000000000000000000000000000000000000..217f294d309bfefd97ad2afe7b12258e5176b713 100644 Binary files /dev/null and a/The Difference Between the Races - Immanuel Kant.pdf differ diff --git a/The End of Empire - Joseph Priestley.pdf b/The End of Empire - Joseph Priestley.pdf new file mode 100644 index 0000000000000000000000000000000000000000..fd1a62dfe1dd00bede27ce9fc838f6fc4b8c645b 100644 Binary files /dev/null and a/The End of Empire - Joseph Priestley.pdf differ diff --git a/The Fable of the Bees - Bernard Mandeville.pdf b/The Fable of the Bees - Bernard Mandeville.pdf new file mode 100644 index 0000000000000000000000000000000000000000..02614ac15a745386514135be3465ae224d178c17 100644 Binary files /dev/null and a/The Fable of the Bees - Bernard Mandeville.pdf differ diff --git a/The Fair Sex - Immanuel Kant.pdf b/The Fair Sex - Immanuel Kant.pdf new file mode 100644 index 0000000000000000000000000000000000000000..e3cdf0ab752c4c9822c551e8468d4c99af4d851a 100644 Binary files /dev/null and a/The Fair Sex - Immanuel Kant.pdf differ diff --git a/The Four-Stage Theory of Development - Adam Smith.pdf b/The Four-Stage Theory of Development - Adam Smith.pdf new file mode 100644 index 0000000000000000000000000000000000000000..250626aca8c155bfb86a0806d12c7340cd03d04b 100644 Binary files /dev/null and a/The Four-Stage Theory of Development - Adam Smith.pdf differ diff --git a/The Future Progress of the Human Mind - Marquis de Condorcet.pdf b/The Future Progress of the Human Mind - Marquis de Condorcet.pdf new file mode 100644 index 0000000000000000000000000000000000000000..1819fd1c51143de6079de041ea9418536b2ee5f2 100644 Binary files /dev/null and a/The Future Progress of the Human Mind - Marquis de Condorcet.pdf differ diff --git a/The Human Mind Emerged From Barbarism - Jean le Rond D’Alembert.pdf b/The Human Mind Emerged From Barbarism - Jean le Rond D’Alembert.pdf new file mode 100644 index 0000000000000000000000000000000000000000..c0124a70572c8a1a89c1a4049bee584216733595 100644 Binary files /dev/null and a/The Human Mind Emerged From Barbarism - Jean le Rond D’Alembert.pdf differ diff --git a/The Impartial Spectator - Adam Smith.pdf b/The Impartial Spectator - Adam Smith.pdf new file mode 100644 index 0000000000000000000000000000000000000000..d6895fe7bcd802e2c2bd6e557e7984c7b2e6da7a 100644 Binary files /dev/null and a/The Impartial Spectator - Adam Smith.pdf differ diff --git a/The Magic Flute - Wolfgang Amadeus Mozart.pdf b/The Magic Flute - Wolfgang Amadeus Mozart.pdf new file mode 100644 index 0000000000000000000000000000000000000000..85beda5f7750a12e7cce5d8bafec32ea417123e5 100644 Binary files /dev/null and a/The Magic Flute - Wolfgang Amadeus Mozart.pdf differ diff --git a/The New Physics - Roger Cotes.pdf b/The New Physics - Roger Cotes.pdf new file mode 100644 index 0000000000000000000000000000000000000000..dd1af46000c76c590d18ff55225c195f53390c74 100644 Binary files /dev/null and a/The New Physics - Roger Cotes.pdf differ diff --git a/The New Science - Giambattista Vico.pdf b/The New Science - Giambattista Vico.pdf new file mode 100644 index 0000000000000000000000000000000000000000..a5ce6505919e0ce354fda6d2c347c1bd790a24ab 100644 Binary files /dev/null and a/The New Science - Giambattista Vico.pdf differ diff --git a/The Organization of Scientific Research - Joseph Priestley.pdf b/The Organization of Scientific Research - Joseph Priestley.pdf new file mode 100644 index 0000000000000000000000000000000000000000..b079a9af00890d86de7c446aab98156218e29f56 100644 Binary files /dev/null and a/The Organization of Scientific Research - Joseph Priestley.pdf differ diff --git a/The Perfectibility of Man - Marquis de Condorcet.pdf b/The Perfectibility of Man - Marquis de Condorcet.pdf new file mode 100644 index 0000000000000000000000000000000000000000..3e374105dc7cb9f1647c5ec0a0521cf1455dd2a9 100644 Binary files /dev/null and a/The Perfectibility of Man - Marquis de Condorcet.pdf differ diff --git a/The Philosophy of Common sense - Thomas Reid.pdf b/The Philosophy of Common sense - Thomas Reid.pdf new file mode 100644 index 0000000000000000000000000000000000000000..c8c31f29914e6e2287ead9e1af60a4778d4df2a5 100644 Binary files /dev/null and a/The Philosophy of Common sense - Thomas Reid.pdf differ diff --git a/The Physiocratic Formula - François Quesnay.pdf b/The Physiocratic Formula - François Quesnay.pdf new file mode 100644 index 0000000000000000000000000000000000000000..833cb0eafcf1c76c63a7ed8662d49c70b006a4a0 100644 Binary files /dev/null and a/The Physiocratic Formula - François Quesnay.pdf differ diff --git a/The Principle of Utility - Jeremy Bentham.pdf b/The Principle of Utility - Jeremy Bentham.pdf new file mode 100644 index 0000000000000000000000000000000000000000..502c99376224e43868d459f9ea77460a3bb91800 100644 Binary files /dev/null and a/The Principle of Utility - Jeremy Bentham.pdf differ diff --git a/The Progress of Superstition - Edward Gibbon.pdf b/The Progress of Superstition - Edward Gibbon.pdf new file mode 100644 index 0000000000000000000000000000000000000000..5f5de5c20a9d08d0e40affa8d91b62ce78c36ea3 100644 Binary files /dev/null and a/The Progress of Superstition - Edward Gibbon.pdf differ diff --git a/The Progressive Character of Human Nature - Adam Ferguson.pdf b/The Progressive Character of Human Nature - Adam Ferguson.pdf new file mode 100644 index 0000000000000000000000000000000000000000..f73f1f3aad60b023a9dc217594c9646a45f11f8e 100644 Binary files /dev/null and a/The Progressive Character of Human Nature - Adam Ferguson.pdf differ diff --git a/The Rat - Comte de Buffon.pdf b/The Rat - Comte de Buffon.pdf new file mode 100644 index 0000000000000000000000000000000000000000..adc402f994ddece19bd0559790e82b1298db3ca2 100644 Binary files /dev/null and a/The Rat - Comte de Buffon.pdf differ diff --git a/The Rights of Man - Thomas Paine.pdf b/The Rights of Man - Thomas Paine.pdf new file mode 100644 index 0000000000000000000000000000000000000000..451e0e9074aa79b09810e78bad99296b114dcc86 100644 Binary files /dev/null and a/The Rights of Man - Thomas Paine.pdf differ diff --git a/The Rights of Woman - Olympe de Gouges.pdf b/The Rights of Woman - Olympe de Gouges.pdf new file mode 100644 index 0000000000000000000000000000000000000000..b6fdc232da085854bdec9f8cab4256a59050aa2c 100644 Binary files /dev/null and a/The Rights of Woman - Olympe de Gouges.pdf differ diff --git a/The Royal Exchange - Joseph Addison.pdf b/The Royal Exchange - Joseph Addison.pdf new file mode 100644 index 0000000000000000000000000000000000000000..eff2804f92c3950dd45cba0cc0ef1ed0d268db11 100644 Binary files /dev/null and a/The Royal Exchange - Joseph Addison.pdf differ diff --git a/The Second Treatise of Civil Government - John Locke.pdf b/The Second Treatise of Civil Government - John Locke.pdf new file mode 100644 index 0000000000000000000000000000000000000000..1ca5ab1a93e85aee1073ca0a86e8e5546e913c63 100644 Binary files /dev/null and a/The Second Treatise of Civil Government - John Locke.pdf differ diff --git a/The Severity of Criminal Laws - Baron de Montesquieu.pdf b/The Severity of Criminal Laws - Baron de Montesquieu.pdf new file mode 100644 index 0000000000000000000000000000000000000000..2845a021ead0ad0c56eca3ba23c0281c90e87016 100644 Binary files /dev/null and a/The Severity of Criminal Laws - Baron de Montesquieu.pdf differ diff --git a/The Social Contract - Jean-Jacques Rousseau.pdf b/The Social Contract - Jean-Jacques Rousseau.pdf new file mode 100644 index 0000000000000000000000000000000000000000..c66247c011d168a0561b363667be5d26e89fc99b 100644 Binary files /dev/null and a/The Social Contract - Jean-Jacques Rousseau.pdf differ diff --git a/The Spirit of the Laws - Baron de Montesquieu.pdf b/The Spirit of the Laws - Baron de Montesquieu.pdf new file mode 100644 index 0000000000000000000000000000000000000000..fdd67996455bce197aa32919a03e93faaded2aa4 100644 Binary files /dev/null and a/The Spirit of the Laws - Baron de Montesquieu.pdf differ diff --git a/The State of Prisons - John howard.pdf b/The State of Prisons - John howard.pdf new file mode 100644 index 0000000000000000000000000000000000000000..883c28b7460222b920c430fbca0f75bb6ed99315 100644 Binary files /dev/null and a/The State of Prisons - John howard.pdf differ diff --git a/The Sublime - Edmund Burke.pdf b/The Sublime - Edmund Burke.pdf new file mode 100644 index 0000000000000000000000000000000000000000..f48ad7d6c9310656d88d843ffef513793937d088 100644 Binary files /dev/null and a/The Sublime - Edmund Burke.pdf differ diff --git a/The Temple of Reason - .pdf b/The Temple of Reason - .pdf new file mode 100644 index 0000000000000000000000000000000000000000..8f121db2df77506013559b773dc5493e1a5d2429 100644 Binary files /dev/null and a/The Temple of Reason - .pdf differ diff --git a/The Utility of History - Henry St. John, Lord Bolingbroke.pdf b/The Utility of History - Henry St. John, Lord Bolingbroke.pdf new file mode 100644 index 0000000000000000000000000000000000000000..7da7a029327fe7f41d149623ae1a00c7f6262133 100644 Binary files /dev/null and a/The Utility of History - Henry St. John, Lord Bolingbroke.pdf differ diff --git a/The Utility of Science - Marquis de Condorcet.pdf b/The Utility of Science - Marquis de Condorcet.pdf new file mode 100644 index 0000000000000000000000000000000000000000..9dffbba314505ad3e04369295fed5b3c5420d1d7 100644 Binary files /dev/null and a/The Utility of Science - Marquis de Condorcet.pdf differ diff --git a/The Wealth of Nations - Adam Smith.pdf b/The Wealth of Nations - Adam Smith.pdf new file mode 100644 index 0000000000000000000000000000000000000000..f945793162a4df120a4c54397ac49025f40d5e81 100644 Binary files /dev/null and a/The Wealth of Nations - Adam Smith.pdf differ diff --git a/Treatise on the Sensations - Ettienne Bonnot de Condillac.pdf b/Treatise on the Sensations - Ettienne Bonnot de Condillac.pdf new file mode 100644 index 0000000000000000000000000000000000000000..8717f4f1223a7f859c58330c4341c580073f386d 100644 Binary files /dev/null and a/Treatise on the Sensations - Ettienne Bonnot de Condillac.pdf differ diff --git a/Unitarianism - Joseph Priestley.pdf b/Unitarianism - Joseph Priestley.pdf new file mode 100644 index 0000000000000000000000000000000000000000..60dfd9dfe6437331bd1b589bfcd7583e2aa07f4b 100644 Binary files /dev/null and a/Unitarianism - Joseph Priestley.pdf differ diff --git a/Vindication of the Rights of Woman - Mary Wollstonecraft.pdf b/Vindication of the Rights of Woman - Mary Wollstonecraft.pdf new file mode 100644 index 0000000000000000000000000000000000000000..f09299ad127d2de32f6f8d049ac2c4c9757427e9 100644 Binary files /dev/null and a/Vindication of the Rights of Woman - Mary Wollstonecraft.pdf differ diff --git a/What is Enlightenment - Immanuel Kant.pdf b/What is Enlightenment - Immanuel Kant.pdf new file mode 100644 index 0000000000000000000000000000000000000000..22d43dd8ba216cbc15b5bba1ce1f813a5ae7df28 100644 Binary files /dev/null and a/What is Enlightenment - Immanuel Kant.pdf differ diff --git a/Women, Adored and Oppressed - Thomas Paine (attr.).pdf b/Women, Adored and Oppressed - Thomas Paine (attr.).pdf new file mode 100644 index 0000000000000000000000000000000000000000..d6288dd6a025ae3c92886e790b66b1bb5575522e 100644 Binary files /dev/null and a/Women, Adored and Oppressed - Thomas Paine (attr.).pdf differ diff --git a/Women’s Education - Catherine Sawbridge Macaulay Graham.pdf b/Women’s Education - Catherine Sawbridge Macaulay Graham.pdf new file mode 100644 index 0000000000000000000000000000000000000000..fa3e0859042173ded9a7aa3f01d7c1fef148d772 100644 Binary files /dev/null and a/Women’s Education - Catherine Sawbridge Macaulay Graham.pdf differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..8fd9b03 100644 --- /dev/null +++ a/index.html @@ -1,0 +1,23 @@ + + + + + + +

Portable Enlightenment Reader, in PDF Form

+

Here are some readings taken out of The Portable Enlightenment Reader edited by Isaac Kramnick, which the PY1013 ("The Enlightenment") module at St. Andrews draws heavily on, and thus this should be of use to my classmates and future students. Everything in here should be in the public domain, but if there are any issues (copyright or otherwise), then you can contact me via my email, which is listed on my personal website.

+ + + + + + + + + + + +
AuthorTitleDownload
Immanuel KantWhat is Enlightenment?Download
Jean le Rond D’AlembertThe Human Mind Emerged From BarbarismDownload
Denis Diderot“Encylopédie”Download
Cesar Chesneau DumarsaisDefinition of a PhilosopheDownload
Pierre Augustin Caron de BeaumarchaisLe Mariage de FigaroDownload
Marquis de CondorcetThe Future Progress of the Human MindDownload
Francis baconThe New ScienceDownload
Isaac NewtonMathematical Principles of Natural PhilosophyDownload
Immanuel KantThe Fair SexDownload
Thomas Paine (attr.)Women, Adored and OppressedDownload
Catherine Sawbridge Macaulay GrahamWomen’s EducationDownload
ConstantiaOn the Equality of the SexesDownload
Olympe de GougesThe Rights of WomanDownload
Mary WollstonecraftVindication of the Rights of WomanDownload
David Hume“Negroes ... naturally inferior to the whites...”Download
John WoolmanConsiderations on the Keeping of NegroesDownload
Immanuel KantThe Difference Between the RacesDownload
Roger CotesThe New PhysicsDownload
Denis Diderot“Who are you, then, to make slaves ...”Download
James Long“Bestial manners, stupidity, and vices ...”Download
Thomas PaineAfrican Slavery in AmericaDownload
Edward GibbonOf Empires and SavagesDownload
Thomas JeffersonOn Indians and NegroesDownload
Encyclopaedia Britannica“Negro”Download
Joseph PriestleyThe End of EmpireDownload
Francois-Marie Arouet de VoltaireOn Bacon and NewtonDownload
Comte de BuffonThe RatDownload
Marquis de CondorcetThe Utility of ScienceDownload
Joseph PriestleyThe Organization of Scientific ResearchDownload
Benjamin FranklinLetter to Joseph PriestleyDownload
Pierre BayleOn Superstition and ToleranceDownload
John LockeA Letter Concerning TolerationDownload
Earl of ShaftsburyOn EnthusiasmDownload
Isaac NewtonThe Argument for a DeityDownload
Anthony CollinsA Discourse of Free-ThinkingDownload
Baron de Montesquieu“If there is a God ...”Download
David HumeOf Miracles and the Origin of ReligionDownload
François-Marie Arouet de VoltaireReflections on ReligionDownload
Jean-Jacques RousseauProfession of Faith of a Savoyard VicarDownload
Baron d’Holbach“No need of theology ... only of reason ...”Download
Edward GibbonThe Progress of SuperstitionDownload
Joseph PriestleyUnitarianismDownload
Thomas Jefferson“Religion ... my views of it ... ”Download
Benjamin Franklin“Something of my religion ...”Download
The Temple of ReasonDownload
Thomas PaineThe Age of ReasonDownload
René Descartes“I think, therefore I am ... ”Download
John LockeAn Essay Concerning Human UnderstandingDownload
Gottfried Wilhelm LeibnitzNew Essays on Human UnderstandingDownload
Francois-Marie Arouet de VoltaireOn Mr. LockeDownload
David HumeA Treatise of Human NatureDownload
Julien Offray de la MettrieMan a MachineDownload
David HartleyOf Ideas, Their Generation and AssociationsDownload
Thomas ReidThe Philosophy of Common senseDownload
Ettienne Bonnot de CondillacTreatise on the SensationsDownload
John LockeSome thoughts concerning EducationDownload
Jean-Jacques RousseauChildren and Civic EducationDownload
Joseph PriestleyEducation for Civil and Active lifeDownload
Bernard MandevilleThe Fable of the BeesDownload
Alexander PopeAn Essay on ManDownload
John ClelandMemoirs of a Woman of PleasureDownload
Denis DiderotEnjoyment and TahitiDownload
Francis HutchesonConcerning the Moral SenseDownload
Adam SmithThe Impartial SpectatorDownload
Claude-Adrien HelvétlusA Treatise on ManDownload
Immanuel KantFundamental Principles of the Metaphysics of MoralsDownload
Jeremy BenthamThe Principle of UtilityDownload
Joseph AddisonOn WitDownload
Francis HutchesonIdeas of Beauty and VirtueDownload
Comte de BuffonDiscourse on StyleDownload
David HumeOf the Standard of TasteDownload
Edmund BurkeThe SublimeDownload
Jean-Jacques RousseauOn Theater and MoralsDownload
Adam SmithOn Custom and FashionDownload
Immanuel KantThe Beautiful and SublimeDownload
Joshua ReynoldsDiscourse on ArtDownload
Giambattista VicoThe New ScienceDownload
Henry St. John, Lord BolingbrokeThe Utility of HistoryDownload
David HumeHistory as GuideDownload
Anne-Robeht-Jacques TurgotOn ProgressDownload
Jean-Jacques RousseauA Critique of ProgressDownload
François-Marie Arouet de VoltaireIn Defense of ModernityDownload
Adam SmithThe Four-Stage Theory of DevelopmentDownload
Adam FergusonThe Progressive Character of Human NatureDownload
Joseph Priestley“How glorious, then, is the prospect ...”Download
Marquis de CondorcetThe Perfectibility of ManDownload
John LockeThe Second Treatise of Civil GovernmentDownload
Baron de MontesquieuThe Spirit of the LawsDownload
François-Marie Arouet de VoltairePolitical EssaysDownload
Jean-Jacques RousseauDiscourse on the Origin of InequalityDownload
Jean-Jacques RousseauThe Social ContractDownload
Thomas PaineCommon SenseDownload
The American Declaration of IndependenceDownload
Frederick the GreatBenevolent DespotismDownload
James MadisonFederalist No. 10Download
The Declaration of the Rights of Man and the CitizenDownload
Thomas PaineThe Rights of ManDownload
William GodwinEnquiry Concerning Political JusticeDownload
Joseph AddisonThe Royal ExchangeDownload
Benjamin FranklinIndustry and the Way to WealthDownload
David HumeOf LuxuryDownload
François QuesnayThe Physiocratic FormulaDownload
Anne-Robert-Jacques TurgotEconomic LibertyDownload
Adam SmithThe Wealth of NationsDownload
Baron de MontesquieuThe Severity of Criminal LawsDownload
Cesare BeccariaAn Essay on Crimes and PunishmentsDownload
François-Marie Arouet de VoltaireOn Torture and Capital PunishmentDownload
John howardThe State of PrisonsDownload
Jeremy Bentham“Cases unmeet for punishment ...”Download
François-Marie Arouet de VoltaireSplendid ArmiesDownload
Benjamin Franklin“There never was a good war ...”Download
Immanuel KantPerpetual PeaceDownload
Mary AstellSome Reflections Upon MarriageDownload
Jean-Jacques RousseauDuties of WomenDownload
+ + + diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..0ca19dd 100644 --- /dev/null +++ a/readme.md @@ -1,0 +1,5 @@ +# The Portable Enlightenment Reader + +This repository contains the edited version of "The Portable Enlightenment Reader" edited by Isaac Kramnick. The book has been converted into individual chapters in PDF format using pandoc and node.js. The scripts used to perform the conversion are stored in the src directory. + +The src directory contains a number of scripts that were used to convert the original epub into individual pdfs by chapter. The scripts use pandoc and node.js to perform the conversion, and the resulting files are named using the new author and new title data obtained from the CSV file.diff --git a/style.css b/style.css new file mode 100644 index 0000000..e70a8dc 100644 --- /dev/null +++ a/style.css @@ -1,0 +1,26 @@ +/* body max width 800px and centred, light grey, sans serif*/ + +p, h1 { + text-align: center; +} + +body { + max-width: 800px; + background-color: #f0f0f0; + margin: 2em auto; + font-family: sans-serif; +} + +table { + margin: 2em auto; + width: 100%; + border-collapse: collapse; +} + + + +th, td { + border: 1px solid grey; + padding: 8px; + text-align: left; +}diff --git a/“A woman ... gossips much ...” - Wolfgang Amadeus Mozart.pdf b/“A woman ... gossips much ...” - Wolfgang Amadeus Mozart.pdf new file mode 100644 index 0000000000000000000000000000000000000000..e80f9756b91f20aba00e1cd8cec0ee6b263cb207 100644 Binary files /dev/null and a/“A woman ... gossips much ...” - Wolfgang Amadeus Mozart.pdf differ diff --git a/“Bestial manners, stupidity, and vices ...” - James Long.pdf b/“Bestial manners, stupidity, and vices ...” - James Long.pdf new file mode 100644 index 0000000000000000000000000000000000000000..3f17dab125cb7edd325f2e8152993bf37f5e3f9f 100644 Binary files /dev/null and a/“Bestial manners, stupidity, and vices ...” - James Long.pdf differ diff --git a/“Cases unmeet for punishment ...” - Jeremy Bentham.pdf b/“Cases unmeet for punishment ...” - Jeremy Bentham.pdf new file mode 100644 index 0000000000000000000000000000000000000000..a7e4b4d76f8b5b3bb06890637ab2d6622a8b9607 100644 Binary files /dev/null and a/“Cases unmeet for punishment ...” - Jeremy Bentham.pdf differ diff --git a/“Encylopédie” - Denis Diderot.pdf b/“Encylopédie” - Denis Diderot.pdf new file mode 100644 index 0000000000000000000000000000000000000000..94fdd1a47fa4ee6ad0a522d8031260f8f394bd78 100644 Binary files /dev/null and a/“Encylopédie” - Denis Diderot.pdf differ diff --git a/“How glorious, then, is the prospect ...” - Joseph Priestley.pdf b/“How glorious, then, is the prospect ...” - Joseph Priestley.pdf new file mode 100644 index 0000000000000000000000000000000000000000..7705eba6c6de92bfb8c9893f17d03b201207e4e8 100644 Binary files /dev/null and a/“How glorious, then, is the prospect ...” - Joseph Priestley.pdf differ diff --git a/“I think, therefore I am ... ” - René Descartes.pdf b/“I think, therefore I am ... ” - René Descartes.pdf new file mode 100644 index 0000000000000000000000000000000000000000..1da79c0b8f4af7bf653e6ac3da2f0564e7e15f0f 100644 Binary files /dev/null and a/“I think, therefore I am ... ” - René Descartes.pdf differ diff --git a/“If there is a God ...” - Baron de Montesquieu.pdf b/“If there is a God ...” - Baron de Montesquieu.pdf new file mode 100644 index 0000000000000000000000000000000000000000..d0a7899560e18058ad963cf2400237fc3dfcb4fd 100644 Binary files /dev/null and a/“If there is a God ...” - Baron de Montesquieu.pdf differ diff --git a/“Negroes ... naturally inferior to the whites...” - David Hume.pdf b/“Negroes ... naturally inferior to the whites...” - David Hume.pdf new file mode 100644 index 0000000000000000000000000000000000000000..a3947ec5573cfd3038b717872d3ab5de85ba91f9 100644 Binary files /dev/null and a/“Negroes ... naturally inferior to the whites...” - David Hume.pdf differ diff --git a/“Negro” - Encyclopaedia Britannica.pdf b/“Negro” - Encyclopaedia Britannica.pdf new file mode 100644 index 0000000000000000000000000000000000000000..95a216eb0344987f2fc8e65d4805827486c43cfa 100644 Binary files /dev/null and a/“Negro” - Encyclopaedia Britannica.pdf differ diff --git a/“No need of theology ... only of reason ...” - Baron d’Holbach.pdf b/“No need of theology ... only of reason ...” - Baron d’Holbach.pdf new file mode 100644 index 0000000000000000000000000000000000000000..03542abaa9ed0e377f7df29c8a5dd8073eccee52 100644 Binary files /dev/null and a/“No need of theology ... only of reason ...” - Baron d’Holbach.pdf differ diff --git a/“Religion ... my views of it ... ” - Thomas Jefferson.pdf b/“Religion ... my views of it ... ” - Thomas Jefferson.pdf new file mode 100644 index 0000000000000000000000000000000000000000..7efda9fa2b30c08c56d35772414b3c72ee3f8571 100644 Binary files /dev/null and a/“Religion ... my views of it ... ” - Thomas Jefferson.pdf differ diff --git a/“Something of my religion ...” - Benjamin Franklin.pdf b/“Something of my religion ...” - Benjamin Franklin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..857cc2374609f45a9d64d97c78544afeabfd49b8 100644 Binary files /dev/null and a/“Something of my religion ...” - Benjamin Franklin.pdf differ diff --git a/“There never was a good war ...” - Benjamin Franklin.pdf b/“There never was a good war ...” - Benjamin Franklin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..db8c83c907a8893a38c0118ae1dac7ae636a8196 100644 Binary files /dev/null and a/“There never was a good war ...” - Benjamin Franklin.pdf differ diff --git a/“Who are you, then, to make slaves ...” - Denis Diderot.pdf b/“Who are you, then, to make slaves ...” - Denis Diderot.pdf new file mode 100644 index 0000000000000000000000000000000000000000..e145d2ae36cd92cd121501add3dac49ffb15fa33 100644 Binary files /dev/null and a/“Who are you, then, to make slaves ...” - Denis Diderot.pdf differ diff --git a/src/data.csv b/src/data.csv new file mode 100644 index 0000000..36d0d2a 100644 --- /dev/null +++ a/src/data.csv @@ -1,0 +1,115 @@ +title;newTitle;author;newAuthor +WHAT IS ENLIGHTENMENT?;What is Enlightenment?;IMMANUEL KANT;Immanuel Kant +THE HUMAN MIND EMERGED FROM BARBARISM;The Human Mind Emerged From Barbarism;JEAN LE ROND D’ALEMBERT;Jean le Rond D’Alembert +“ENCYLOPÉDIE”;“Encylopédie”;DENIS DIDEROT;Denis Diderot +DEFINITION OF A PHILOSOPHE;Definition of a Philosophe;CESAR CHESNEAU DUMARSAIS;Cesar Chesneau Dumarsais +LE MARIAGE DE FIGARO;Le Mariage de Figaro;PIERRE AUGUSTIN CARON DE BEAUMARCHAIS;Pierre Augustin Caron de Beaumarchais +THE FUTURE PROGRESS OF THE HUMAN MIND;The Future Progress of the Human Mind;MARQUIS DE CONDORCET;Marquis de Condorcet +THE NEW SCIENCE;The New Science;FRANCIS BACON;Francis bacon +MATHEMATICAL PRINCIPLES OF NATURAL PHILOSOPHY;Mathematical Principles of Natural Philosophy;ISAAC NEWTON;Isaac Newton +THE FAIR SEX;The Fair Sex;IMMANUEL KANT;Immanuel Kant +WOMEN, ADORED AND OPPRESSED;Women, Adored and Oppressed;THOMAS PAINE (ATTR.);Thomas Paine (attr.) +WOMEN’S EDUCATION;Women’s Education;CATHERINE SAWBRIDGE MACAULAY GRAHAM;Catherine Sawbridge Macaulay Graham +ON THE EQUALITY OF THE SEXES;On the Equality of the Sexes;CONSTANTIA;Constantia +THE RIGHTS OF WOMAN;The Rights of Woman;OLYMPE DE GOUGES;Olympe de Gouges +VINDICATION OF THE RIGHTS OF WOMAN;Vindication of the Rights of Woman;MARY WOLLSTONECRAFT;Mary Wollstonecraft +“NEGROES ... NATURALLY INFERIOR TO THE WHITES...”;“Negroes ... naturally inferior to the whites...”;DAVID HUME;David Hume +CONSIDERATIONS ON THE KEEPING OF NEGROES;Considerations on the Keeping of Negroes;JOHN WOOLMAN;John Woolman +THE DIFFERENCE BETWEEN THE RACES;The Difference Between the Races;IMMANUEL KANT;Immanuel Kant +THE NEW PHYSICS;The New Physics;ROGER COTES;Roger Cotes +“WHO ARE YOU, THEN, TO MAKE SLAVES ...”;“Who are you, then, to make slaves ...”;DENIS DIDEROT;Denis Diderot +“BESTIAL MANNERS, STUPIDITY, AND VICES ...”;“Bestial manners, stupidity, and vices ...”;JAMES LONG;James Long +AFRICAN SLAVERY IN AMERICA;African Slavery in America;THOMAS PAINE;Thomas Paine +OF EMPIRES AND SAVAGES;Of Empires and Savages;EDWARD GIBBON;Edward Gibbon +ON INDIANS AND NEGROES;On Indians and Negroes;THOMAS JEFFERSON;Thomas Jefferson +“NEGRO”;“Negro”;ENCYCLOPAEDIA BRITANNICA;Encyclopaedia Britannica +THE END OF EMPIRE;The End of Empire;JOSEPH PRIESTLEY;Joseph Priestley +ON BACON AND NEWTON;On Bacon and Newton;FRANCOIS-MARIE AROUET DE VOLTAIRE;Francois-Marie Arouet de Voltaire +THE RAT;The Rat;COMTE DE BUFFON;Comte de Buffon +THE UTILITY OF SCIENCE;The Utility of Science;MARQUIS DE CONDORCET;Marquis de Condorcet +THE ORGANIZATION OF SCIENTIFIC RESEARCH;The Organization of Scientific Research;JOSEPH PRIESTLEY;Joseph Priestley +LETTER TO JOSEPH PRIESTLEY;Letter to Joseph Priestley;BENJAMIN FRANKLIN;Benjamin Franklin +ON SUPERSTITION AND TOLERANCE;On Superstition and Tolerance;PIERRE BAYLE;Pierre Bayle +A LETTER CONCERNING TOLERATION;A Letter Concerning Toleration;JOHN LOCKE;John Locke +ON ENTHUSIASM;On Enthusiasm;EARL OF SHAFTSBURY;Earl of Shaftsbury +THE ARGUMENT FOR A DEITY;The Argument for a Deity;ISAAC NEWTON;Isaac Newton +A DISCOURSE OF FREE-THINKING;A Discourse of Free-Thinking;ANTHONY COLLINS;Anthony Collins +“IF THERE IS A GOD ...”;“If there is a God ...”;BARON DE MONTESQUIEU;Baron de Montesquieu +OF MIRACLES AND THE ORIGIN OF RELIGION;Of Miracles and the Origin of Religion;DAVID HUME;David Hume +REFLECTIONS ON RELIGION;Reflections on Religion;FRANÇOIS-MARIE AROUET DE VOLTAIRE;François-Marie Arouet de Voltaire +PROFESSION OF FAITH OF A SAVOYARD VICAR;Profession of Faith of a Savoyard Vicar;JEAN-JACQUES ROUSSEAU;Jean-Jacques Rousseau +“NO NEED OF THEOLOGY ... ONLY OF REASON ...”;“No need of theology ... only of reason ...”;BARON D’HOLBACH;Baron d’Holbach +THE PROGRESS OF SUPERSTITION;The Progress of Superstition;EDWARD GIBBON;Edward Gibbon +UNITARIANISM;Unitarianism;JOSEPH PRIESTLEY;Joseph Priestley +“RELIGION ... MY VIEWS OF IT ... ”;“Religion ... my views of it ... ”;THOMAS JEFFERSON;Thomas Jefferson +“SOMETHING OF MY RELIGION ...”;“Something of my religion ...”;BENJAMIN FRANKLIN;Benjamin Franklin +THE TEMPLE OF REASON;The Temple of Reason;; +THE AGE OF REASON;The Age of Reason;THOMAS PAINE;Thomas Paine +“I THINK, THEREFORE I AM ... ”;“I think, therefore I am ... ”;RENÉ DESCARTES;René Descartes +AN ESSAY CONCERNING HUMAN UNDERSTANDING;An Essay Concerning Human Understanding;JOHN LOCKE;John Locke +NEW ESSAYS ON HUMAN UNDERSTANDING;New Essays on Human Understanding;GOTTFRIED WILHELM LEIBNITZ;Gottfried Wilhelm Leibnitz +ON MR. LOCKE;On Mr. Locke;FRANCOIS-MARIE AROUET DE VOLTAIRE;Francois-Marie Arouet de Voltaire +A TREATISE OF HUMAN NATURE;A Treatise of Human Nature;DAVID HUME;David Hume +MAN A MACHINE;Man a Machine;JULIEN OFFRAY DE LA METTRIE;Julien Offray de la Mettrie +OF IDEAS, THEIR GENERATION AND ASSOCIATIONS;Of Ideas, Their Generation and Associations;DAVID HARTLEY;David Hartley +THE PHILOSOPHY OF COMMON SENSE;The Philosophy of Common sense;THOMAS REID;Thomas Reid +TREATISE ON THE SENSATIONS;Treatise on the Sensations;ETTIENNE BONNOT DE CONDILLAC;Ettienne Bonnot de Condillac +SOME THOUGHTS CONCERNING EDUCATION;Some thoughts concerning Education;JOHN LOCKE;John Locke +CHILDREN AND CIVIC EDUCATION;Children and Civic Education;JEAN-JACQUES ROUSSEAU;Jean-Jacques Rousseau +EDUCATION FOR CIVIL AND ACTIVE LIFE;Education for Civil and Active life;JOSEPH PRIESTLEY;Joseph Priestley +THE FABLE OF THE BEES;The Fable of the Bees;BERNARD MANDEVILLE;Bernard Mandeville +AN ESSAY ON MAN;An Essay on Man;ALEXANDER POPE;Alexander Pope +MEMOIRS OF A WOMAN OF PLEASURE;Memoirs of a Woman of Pleasure;JOHN CLELAND;John Cleland +ENJOYMENT AND TAHITI;Enjoyment and Tahiti;DENIS DIDEROT;Denis Diderot +CONCERNING THE MORAL SENSE;Concerning the Moral Sense;FRANCIS HUTCHESON;Francis Hutcheson +THE IMPARTIAL SPECTATOR;The Impartial Spectator;ADAM SMITH;Adam Smith +A TREATISE ON MAN;A Treatise on Man;CLAUDE-ADRIEN HELVÉTlUS;Claude-Adrien Helvétlus +FUNDAMENTAL PRINCIPLES OF THE METAPHYSICS OF MORALS;Fundamental Principles of the Metaphysics of Morals;IMMANUEL KANT;Immanuel Kant +THE PRINCIPLE OF UTILITY;The Principle of Utility;JEREMY BENTHAM;Jeremy Bentham +ON WIT;On Wit;JOSEPH ADDISON;Joseph Addison +IDEAS OF BEAUTY AND VIRTUE;Ideas of Beauty and Virtue;FRANCIS HUTCHESON;Francis Hutcheson +DISCOURSE ON STYLE;Discourse on Style;COMTE DE BUFFON;Comte de Buffon +OF THE STANDARD OF TASTE;Of the Standard of Taste;DAVID HUME;David Hume +THE SUBLIME;The Sublime;EDMUND BURKE;Edmund Burke +ON THEATER AND MORALS;On Theater and Morals;JEAN-JACQUES ROUSSEAU;Jean-Jacques Rousseau +ON CUSTOM AND FASHION;On Custom and Fashion;ADAM SMITH;Adam Smith +THE BEAUTIFUL AND SUBLIME;The Beautiful and Sublime;IMMANUEL KANT;Immanuel Kant +DISCOURSE ON ART;Discourse on Art;JOSHUA REYNOLDS;Joshua Reynolds +THE NEW SCIENCE;The New Science;GIAMBATTISTA VICO;Giambattista Vico +THE UTILITY OF HISTORY;The Utility of History;HENRY ST. JOHN, LORD BOLINGBROKE;Henry St. John, Lord Bolingbroke +HISTORY AS GUIDE;History as Guide;DAVID HUME;David Hume +ON PROGRESS;On Progress;ANNE-ROBEHT-JACQUES TURGOT;Anne-Robeht-Jacques Turgot +A CRITIQUE OF PROGRESS;A Critique of Progress;JEAN-JACQUES ROUSSEAU;Jean-Jacques Rousseau +IN DEFENSE OF MODERNITY;In Defense of Modernity;FRANÇOIS-MARIE AROUET DE VOLTAIRE;François-Marie Arouet de Voltaire +THE FOUR-STAGE THEORY OF DEVELOPMENT;The Four-Stage Theory of Development;ADAM SMITH;Adam Smith +THE PROGRESSIVE CHARACTER OF HUMAN NATURE;The Progressive Character of Human Nature;ADAM FERGUSON;Adam Ferguson +“HOW GLORIOUS, THEN, IS THE PROSPECT ...”;“How glorious, then, is the prospect ...”;JOSEPH PRIESTLEY;Joseph Priestley +THE PERFECTIBILITY OF MAN;The Perfectibility of Man;MARQUIS DE CONDORCET;Marquis de Condorcet +THE SECOND TREATISE OF CIVIL GOVERNMENT;The Second Treatise of Civil Government;JOHN LOCKE;John Locke +THE SPIRIT OF THE LAWS;The Spirit of the Laws;BARON DE MONTESQUIEU;Baron de Montesquieu +POLITICAL ESSAYS;Political Essays;FRANÇOIS-MARIE AROUET DE VOLTAIRE;François-Marie Arouet de Voltaire +DISCOURSE ON THE ORIGIN OF INEQUALITY;Discourse on the Origin of Inequality;JEAN-JACQUES ROUSSEAU;Jean-Jacques Rousseau +THE SOCIAL CONTRACT;The Social Contract;JEAN-JACQUES ROUSSEAU;Jean-Jacques Rousseau +COMMON SENSE;Common Sense;THOMAS PAINE;Thomas Paine +THE AMERICAN DECLARATION OF INDEPENDENCE;The American Declaration of Independence;; +BENEVOLENT DESPOTISM;Benevolent Despotism;FREDERICK THE GREAT;Frederick the Great +FEDERALIST NO. 10;Federalist No. 10;JAMES MADISON;James Madison +THE DECLARATION OF THE RIGHTS OF MAN AND THE CITIZEN;The Declaration of the Rights of Man and the Citizen;; +THE RIGHTS OF MAN;The Rights of Man;THOMAS PAINE;Thomas Paine +ENQUIRY CONCERNING POLITICAL JUSTICE;Enquiry Concerning Political Justice;WILLIAM GODWIN;William Godwin +THE ROYAL EXCHANGE;The Royal Exchange;JOSEPH ADDISON;Joseph Addison +INDUSTRY AND THE WAY TO WEALTH;Industry and the Way to Wealth;BENJAMIN FRANKLIN;Benjamin Franklin +OF LUXURY;Of Luxury;DAVID HUME;David Hume +THE PHYSIOCRATIC FORMULA;The Physiocratic Formula;FRANÇOIS QUESNAY;François Quesnay +ECONOMIC LIBERTY;Economic Liberty;ANNE-ROBERT-JACQUES TURGOT;Anne-Robert-Jacques Turgot +THE WEALTH OF NATIONS;The Wealth of Nations;ADAM SMITH;Adam Smith +THE SEVERITY OF CRIMINAL LAWS;The Severity of Criminal Laws;BARON DE MONTESQUIEU;Baron de Montesquieu +AN ESSAY ON CRIMES AND PUNISHMENTS;An Essay on Crimes and Punishments;CESARE BECCARIA;Cesare Beccaria +ON TORTURE AND CAPITAL PUNISHMENT;On Torture and Capital Punishment;FRANÇOIS-MARIE AROUET DE VOLTAIRE;François-Marie Arouet de Voltaire +THE STATE OF PRISONS;The State of Prisons;JOHN HOWARD;John howard +“CASES UNMEET FOR PUNISHMENT ...”;“Cases unmeet for punishment ...”;JEREMY BENTHAM;Jeremy Bentham +SPLENDID ARMIES;Splendid Armies;FRANÇOIS-MARIE AROUET DE VOLTAIRE;François-Marie Arouet de Voltaire +“THERE NEVER WAS A GOOD WAR ...”;“There never was a good war ...”;BENJAMIN FRANKLIN;Benjamin Franklin +PERPETUAL PEACE;Perpetual Peace;IMMANUEL KANT;Immanuel Kant +SOME REFLECTIONS UPON MARRIAGE;Some Reflections Upon Marriage;MARY ASTELL;Mary Astell +DUTIES OF WOMEN;Duties of Women;JEAN-JACQUES ROUSSEAU;Jean-Jacques Rousseaudiff --git a/src/gencsv.js b/src/gencsv.js new file mode 100644 index 0000000..725c6eb 100644 --- /dev/null +++ a/src/gencsv.js @@ -1,0 +1,38 @@ +const fs = require('fs'); +const path = require('path'); + +const extractTitleAuthor = (file) => { + const content = fs.readFileSync(file, 'utf-8'); + const titleRegex = /
(.+?)<\/b><\/div>/; + const authorRegex = /
(.+?)<\/b><\/div>/; + const titleMatch = content.match(titleRegex); + const authorMatch = content.match(authorRegex); + + let title = titleMatch ? titleMatch[1].trim() : ''; + let author = authorMatch ? authorMatch[1].trim() : ''; + + // escape commas in the title and author + title = title.replace(/,/g, '/,'); + author = author.replace(/,/g, '/,'); + + return { title, author }; +}; + +// Get the list of XHTML files in the current directory +const xhtmlFiles = fs.readdirSync(process.cwd()).filter((file) => path.extname(file) === '.xhtml'); + +// Create an array of objects that contain the title, newTitle, author, and newAuthor +const data = xhtmlFiles.map((file) => { + const { title, author } = extractTitleAuthor(file); + return { + title, + newTitle: title.toLowerCase().replace(/(^\w|[.!?]\s*\w)/g, (match) => match.toUpperCase()), + author, + newAuthor: author.toLowerCase().replace(/(^\w|-\s*\w)/g, (match) => match.toUpperCase()), + }; +}); + +// Write the data to a CSV file +const header = 'title,newTitle,author,newAuthor\n'; +const csvData = data.map(({ title, newTitle, author, newAuthor }) => `${title},${newTitle},${author},${newAuthor}`).join('\n'); +fs.writeFileSync('data.csv', header + csvData); diff --git a/src/genhtml.js b/src/genhtml.js new file mode 100644 index 0000000..c8a4287 100644 --- /dev/null +++ a/src/genhtml.js @@ -1,0 +1,48 @@ +const fs = require("fs"); +const path = require("path"); +const csv = require("csv-parser"); +const { spawn } = require("child_process"); + +let tableRows = ""; + +fs.createReadStream("data.csv") + .pipe(csv({ separator: ";" })) + .on("data", (row) => { + const { newAuthor, newTitle } = row; + const pdfFile = `${newTitle} - ${newAuthor}.pdf`; + tableRows += `${newAuthor}${newTitle}Download`; + }) + .on("end", () => { + const html = ` + + + + + + + + + + + + + + + ${tableRows} + +
AuthorTitleDownload
+ + + `; + fs.writeFileSync("table.html", html, "utf-8"); + }); diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..a0b10af 100644 --- /dev/null +++ a/src/index.js @@ -1,0 +1,56 @@ +const fs = require('fs'); +const path = require('path'); +const csv = require('csv-parser'); +const { spawn } = require('child_process'); + +const extractTitleAuthor = (file) => { + const content = fs.readFileSync(file, 'utf-8'); + const titleRegex = /
(.+?)<\/b><\/div>/; + const authorRegex = /
(.+?)<\/b><\/div>/; + const titleMatch = content.match(titleRegex); + const authorMatch = content.match(authorRegex); + + let title = titleMatch ? titleMatch[1].trim() : ''; + let author = authorMatch ? authorMatch[1].trim() : ''; + + return { title, author }; +}; + +// Get the list of XHTML files in the current directory +const xhtmlFiles = fs.readdirSync(process.cwd()).filter((file) => path.extname(file) === '.xhtml'); + +// Create an array of objects that contain the title, newTitle, author, and newAuthor +const data = {}; + +const alterXHTML = (file) => { + const content = fs.readFileSync(file, 'utf-8'); + const titleRegex = /
.+?<\/b><\/div>/; + const authorRegex = /
.+?<\/b><\/div>/; + const alteredContent = content.replace(titleRegex, '').replace(authorRegex, ''); + const alteredFilename = file.replace('.xhtml', '.alt.xhtml'); + fs.writeFileSync(alteredFilename, alteredContent); + return alteredFilename; +}; + +fs.createReadStream('data.csv') + .pipe(csv({ separator: ';' })) + .on('data', (row) => { + data[row.title] = row; + }) + .on('end', () => { + xhtmlFiles.forEach((file) => { + const { title, author } = extractTitleAuthor(file); + const { newTitle, newAuthor } = data[title]; + + console.log(`Converting "${file}" to "${newTitle} - ${newAuthor}.pdf"...`); + const pandoc = spawn('pandoc', ['-s', alterXHTML(file), '-o', newTitle + ' - ' + newAuthor + '.pdf', '--metadata', `title=${newTitle}`, '--metadata', `author=${newAuthor}`]); + + pandoc.stderr.on('data', (data) => { + console.error(`pandoc stderr: ${data}`); + }); + + pandoc.on('close', (code) => { + console.log(`pandoc process exited with code ${code} for file ${file}`); + }); + }); + }); diff --git a/src/package.json b/src/package.json new file mode 100644 index 0000000..54254c5 100644 --- /dev/null +++ a/src/package.json @@ -1,0 +1,5 @@ +{ + "dependencies": { + "csv-parser": "^3.0.0" + } +} -- rgit 0.1.5