diff --git a/Lesson1.md b/Lesson1.md index 8952462..891658e 100644 --- a/Lesson1.md +++ b/Lesson1.md @@ -21,7 +21,7 @@ We believe in approaching text writing by first understanding the core inscripti ### History -As everyone heard of the byte format? If you didn't it's about time you do as you employ this legacy format daily when using your computer. A byte is the most basic quanta of computing and is composed of 8 bits, where a bit stands for what is commonly represented by a 0 or 1. Hence a byte is a 8-bits "packet" which can represent decimal numbers ranging from 0 to 255 (or -128 to 127). In this lesson we will use the [Hexadecimal](https://en.wikipedia.org/wiki/Hexadecimal) notation to represent bytes. A byte is an historical format and encapsulate the most basic data structure in computing machinery, a standard introduced by IBM for its flagship [IBM/360](http://www.computermuseum.li/Testpage/IBM-360-1964.htm) mainframe machine in 1964.[^1] +Has everyone heard of the byte format? If you didn't it's about time you do as you employ this legacy format daily when using your computer. A byte is the most basic quanta of computing and is composed of 8 bits, where a bit stands for what is commonly represented by a 0 or 1. Hence a byte is a 8-bits "packet" which can represent decimal numbers ranging from 0 to 255 (or -128 to 127). In this lesson we will use the [Hexadecimal](https://en.wikipedia.org/wiki/Hexadecimal) notation to represent bytes. A byte is an historical format and encapsulate the most basic data structure in computing machinery, a standard introduced by IBM for its flagship [IBM/360](http://www.computermuseum.li/Testpage/IBM-360-1964.htm) mainframe machine in 1964.[^1] Roughly at the same time (1963) another (updated) standard was devised for the encoding of characters: ASCII [ref]. ASCII conceived a 7-bit format for characters that was factorised into an 8-bit format on the IBM/360. With a 7-bit format, ASCII had the possibility to encode 127 characters. However, the IBM/360 opted to use the legacy [EBCDIC](https://en.wikipedia.org/wiki/EBCDIC) 8-bit format as default character set (dubbed "charset") on all software developed for the IBM/360[^2]. Hence the mass adoption of ASCII as main default charset in computing systems came years after mainly with the advent of PCs. diff --git a/Lesson2.md b/Lesson2.md index 4552385..bd91609 100644 --- a/Lesson2.md +++ b/Lesson2.md @@ -14,7 +14,7 @@ The aim of this lesson is for readers to develop an appreciation of the advantag The goals of the lesson are: 1. Acquire basic knowledge on how to operate the CLI of your own computer. -2. Acquire just-enough basic CLI vocabulary to be used in future work. +2. Acquire just-enough CLI vocabulary to be used in future work. ### How diff --git a/Lesson3.html b/Lesson3.html new file mode 100644 index 0000000..791ac1b --- /dev/null +++ b/Lesson3.html @@ -0,0 +1,167 @@ + + +
+ + + +Markup languages are one of the most pervasive and common types of language on the Internet. In fact HTML is a type of markup language responsible to instruct our web browsers on how to layout text, images and the likes on our screens. Behind all web pages, there is a markup text file that is sent from a server to our browsers when we type in a URL. The beauty of markup languages is that they are both human-readable and machine-readable and written in plain text format. Reading a marked up text one can notice the special "meta-codes" and related syntax that direct machines in interpreting the same text. The idea is thus to have some standards and conventions describing these meta-codes and expected machine interpretation.
+In this lesson we will introduce the Markdown language for writing (academic) texts. Markdown is a type of markup language that features very intuitive set of meta-codes and a simple syntax that can seamlessly integrate with normal text without transforming them much.
+The aims of this lesson are:
+Before we delve into the Markdown language, it is important to understand why we use it. A file written in the language has the benefit of being interpreted and hence converted into various types of output formats. Depending on the type markdown interpreter / converter, documents formats such as HTML, PDF, EPUB, DOC, etc. can be produced out of a single markdown file source. This is the main reason the language is widely used; to easily generate web pages, pdf publications and epub without having to directly code their actual inner formats. In using markdown as a source language, all of the above formats are made available for you to publish in. How to convert markdown file is discussed in the next lesson.
+The premise of this lesson is going to be very simple. Since this lesson is written in Markdown, snippets the language/syntax will be discussed and exemplified in-line in HTML format.1
+Let's start with the simplest: italic and bold
+Let's start with the simplest: _italic_ and __bold__
+Notice the single (italic) and double (bold) underscores '_'?
+Let's continue with the same: italic and bold
+Let's continue with the same: *italic* and **bold**
+Notice the single (italic) and double (bold) stars '*'?
+Now since we are writing text, let's now look at how Markdown detonates headers.
+Using the hash mark '#' one can generate various types of headers by prefixing a "title" with a concatenation of hash marks '#'.
+# Title: Un
+## Title: Deux
+### Title: Trois
+#### Title: Quattre
+##### Title: Cinq
+###### Title: Six
+Simple. When writing text following a structure (sections, sub-sections, etc.), the heading syntax becomes handy as it can be used to generate a Table Of Content (TOC) out of your markup file. We will see this more in details shortly.
+Blockquotes are also very simple.
+++"Mais la seule question quand on écrit, c'est de savoir avec quelle autre machine la machine littéraire peut être brancheé, et doit être branchée pour fonctionner."
+
-- Deleuze & Guattari, Milles Plateaux
+> "Mais la seule question quand on écrit, c'est de savoir avec quelle autre machine la machine littéraire peut être brancheé, et doit être branchée pour fonctionner."
+
+-- Deleuze & Guattari, _Milles Plateaux_
+There is a few valid syntax for lists.
+Below are two common ones:
+ 1. List 1 item 1
+ 2. List 1 item 2
+ 3. List 1 item 3
+ 4. List 1 item 4
+
+
+- List 2 item 1
+- List 2 item 2
+- List 2 item 3
+- List 2 item 4
+
+
+Nested lists:
++ List 3 item 1
+ - List 3 item 1.1
+ - List 3 item 1.2
++ List 3 item 2
+ - List 3 item 2.1
+ - List 3 item 2.1.1
+ - List 3 item 2.1.1.1
+
+
+Now the interesting stuff. (Hyper)-Linking is one of the salient feature of digital documents. Hence markdown makes it very easy to write links to a URL.
+this is a link to Lesson2 with an absolute URL
+this is a [link to Lesson2](http://gauthiier.github.io/wwwriting/Lesson2.html) with an absolute URL
+this is the same link to Lesson2 but with an relative URL
+this is the same [link to Lesson2](Lesson2.html) with an relative URL
+See the distinction between absolute and relative URLs? You can always use an absolute URL to link any documents on the web using their full address. However, when your file linking other files that reside on the same address space (meaning that they are placed on the same server / filesystem), it is best to use relative URLs.
+Inserting images into the document is done in a similar fashion, linking the image using the same syntax as above.
+For example - absolute URL
+
Jules Henri Poincaré
+
+and - relative URL
+
Jules Henri Poincaré
+
+As you can see, the bang character '!' is the only add-on to link syntax while the caption of the image replaces the text on the link.
+When one has something to write that does not directly relate the core argument of a paragraph but nonetheless relates to its context, footnotes are a very practical way to branch of topic while keeping the reader not far from getting back into the main flow.
+The markdown syntax of a footnotes is as follow:
+I think you are eager to start writing markdown2.
+I think you are eager to start writing markdown[^2].
+And further down in the document
+[^2]: And I hope you will do so very soon!
+A delimiter line is represented by
+and denoted by
+---
+Such delimiters are useful when one wants to graphically separate parts of a text.
+We have now covered the most basic syntactic elements of the markdown language. In most cases these are enough to write great texts and even write entire books. All of the above syntax is suited for the content of texts, however you are yet to introduce how to layout and style the output of a markdown text file.
+The idea of behind markup languages is to create a clear division between content and style. Here we have covered the content side . Document conversion is covered in Lesson 4 while Lesson 6 introduces how styling can be applied to the output of such conversion.
+A thorough list of all markdown syntax
+A very handy functionality of Sublime Text is its syntax highlighting for markdown. To enable such feature:
+Menu --> Syntax --> Markdown --> Markdown
+Covers fundamentals of representation of text looking up how text is encoded/decoded as data.
Lesson 2: CLI or the Command Line Interface
Presents how one can manipulate files and issue computing commands using what is known as a terminal.
Introduces a markup language (Markdown) that is used to format and annotate text.
Lesson 4: (Text/Document) Processor
Introduces a text / document processor (Pandoc) which converts files written in a format into another.
Looks at how to compile and maintain a bibliography using open source software (Zotero) and export references into a document
Looks at how to compile and maintain a bibliography using open source software (Zotero) and export references into a document.
Discuss how to style (colour, margins, cover image, etc.) a given output from the text / document processor