@@ -9,9 +9,9 @@ our own marks. Let's write a sample mark of our own, then chain
9it together with some preexisting ones to have fun with type
9it together with some preexisting ones to have fun with type
10conversions.
10conversions.
12−Let's make a small "cord" mark. "Cord" is a name we use for `@t`
12+Let's make a small "examples-cord" mark. "Cord" is a name we use for `@t`
13−text, but there's no predefined mark for it. This is
13+text, but there's no predefined mark for it. Let's put the following code in:
14−`/mar/cord.hoon`:
14+`/mar/examples/cord.hoon`:
@@ -57,9 +57,9 @@ marked atom and convert it to our new mark.
58~fintud-macrep:dojo> &atom 9
58~fintud-macrep:dojo> &atom 9
60−~fintud-macrep:dojo> &cord &atom 9
60+~fintud-macrep:dojo> &examples-cord &atom 9
62−~fintud-macrep:dojo> &cord &atom &cord &atom 9
62+~fintud-macrep:dojo> &examples-cord &atom &examples-cord &atom 9
@@ -71,9 +71,9 @@ same concept. They're not isomorphisms.
71Let's play around a little more:
71Let's play around a little more:
74−~fintud-macrep:dojo> &md &cord &atom 17
74+~fintud-macrep:dojo> &md &examples-cord &atom 17
76−~fintud-macrep:dojo> &hymn &md &cord &atom 17
76+~fintud-macrep:dojo> &hymn &md &examples-cord &atom 17
77[ [%html ~]
77[ [%html ~]
78 [[%head ~] [[%title ~] [[%~. [%~. "Untitled"] ~] ~] ~] ~]
78 [[%head ~] [[%title ~] [[%~. [%~. "Untitled"] ~] ~] ~] ~]
79 [ [%body ~]
79 [ [%body ~]
@@ -93,7 +93,7 @@ the time this gets to the web page, it's plain html. Let's do
93the final step in the conversion.
93the final step in the conversion.
96−~fintud-macrep:dojo> &mime &hymn &md &cord &atom 17
96+~fintud-macrep:dojo> &mime &hymn &md &examples-cord &atom 17
97[ [%text %html ~]
97[ [%text %html ~]
99 q='<html><head><title>Untitled</title></head><body><meta value="{}" name="frontmatter" urb:front="" /><p>17</p></body></html>'
99 q='<html><head><title>Untitled</title></head><body><meta value="{}" name="frontmatter" urb:front="" /><p>17</p></body></html>'
@@ -102,26 +102,26 @@ the final step in the conversion.
103This is a mime-typed octet stream with type `/text/html`, length
103This is a mime-typed octet stream with type `/text/html`, length
104121 bytes, and our lowly number `17` rendered to a web page.
104121 bytes, and our lowly number `17` rendered to a web page.
105−`cord` was just one step in the chain.
105+`examples-cord` was just one step in the chain.
107Of course, arvo can infer some parts of this chain:
107Of course, arvo can infer some parts of this chain:
110−~fintud-macrep:dojo> &cord 17
110+~fintud-macrep:dojo> &examples-cord 17
114−Likewise, `md` is the only way to get from `cord` to `hymn`, so
114+Likewise, `md` is the only way to get from `examples-cord` to `hymn`, so
115that can be omitted. If we omit the `hymn`, though, we get:
115that can be omitted. If we omit the `hymn`, though, we get:
118−~fintud-macrep:dojo> &mime &cord 17
118+~fintud-macrep:dojo> &mime &examples-cord 17
119[[%text %x-markdown ~] p=1 q='7']
119[[%text %x-markdown ~] p=1 q='7']
122−Here, we converted straight from `cord` to `md` to `mime`. Arvo
122+Here, we converted straight from `examples-cord` to `md` to `mime`. Arvo
123decided that was the most straightforward conversion, but it
123decided that was the most straightforward conversion, but it
124gives a different result than passing it through the `hymn`
124gives a different result than passing it through the `hymn`
127−The minimal correct input, then, is `&mime &hymn &cord &atom 17`.
127+The minimal correct input, then, is `&mime &hymn &examples-cord &atom 17`.