Cowsay.jl/dev/search_index.js

4 lines
28 KiB
JavaScript
Raw Normal View History

2021-09-15 22:57:52 +00:00
var documenterSearchIndex = {"docs":
2022-01-12 01:39:26 +00:00
[{"location":"cowfiles/#Making-a-cow-function","page":"Make your own Cowfile","title":"Making a cow function","text":"","category":"section"},{"location":"cowfiles/","page":"Make your own Cowfile","title":"Make your own Cowfile","text":"The original cowsay used Perl scripts (called 'cowfiles') to allow for creating more ASCII cow art. Cowsay.jl uses Julia functions, instead. In order to be usable by Cowsay.cowsay, a cow function must","category":"page"},{"location":"cowfiles/","page":"Make your own Cowfile","title":"Make your own Cowfile","text":"Take the correct arguments\nThe function must take three (3) keyword arguments of the form\neyes::AbstractString=\"oo\"\ntongue::AbstractString=\" \"\nthoughts::AbstractString=\"\\\\\"\nWhen drawing the cow artwork, you may then use the variables eyes in place of the eyes, tongue in place of the tongue, and thoughts in place of the speech ballon trail. Use of these variables in constructing the cow is optional (but makes the use of your cow function far more fun), but all three arguments must be present in the signature, regardless.\nReturn a string\nThe cow artwork must be returned from the function as a string. This is distinctly different from how the original cowsay modified the $the_cow variable.","category":"page"},{"location":"cowfiles/#Helpful-hints-for-making-cow-functions","page":"Make your own Cowfile","title":"Helpful hints for making cow functions","text":"","category":"section"},{"location":"cowfiles/","page":"Make your own Cowfile","title":"Make your own Cowfile","text":"Include one function per file, with the extension .cow.jl\nDo not indent within a .cow.jl file to better see the artwork\nMake use of string literals (\"\"\") and string interpolation ($) to build the cow art\nBe sure to escape backslashes (\\) and dollar signs ($) within your artwork\nWhen converting from Perl cowfiles, unescape at symbols (@), as these are not special in Julia strings\nSplit the eyes variable to get individual left- and right-eye when creating large cow functions\nHave fun!","category":"page"},{"location":"cows/#Cows","page":"Available Cowfiles","title":"Cows","text":"","category":"section"},{"location":"cows/","page":"Available Cowfiles","title":"Available Cowfiles","text":"Examples of all the cowfiles available.","category":"page"},{"location":"cows/#Bovine","page":"Available Cowfiles","title":"Bovine","text":"","category":"section"},{"location":"cows/","page":"Available Cowfiles","title":"Available Cowfiles","text":"Cowsay.default\nCowsay.cower\nCowsay.moofasa\nCowsay.mutilated\nCowsay.skeleton\nCowsay.small\nCowsay.supermilker\nCowsay.three_eyes\nCowsay.udder\nCowsay.vader\nCowsay.www","category":"page"},{"location":"cows/#Cowsay.default","page":"Available Cowfiles","title":"Cowsay.default","text":"function default()\n\nThe original cowfile\n\nExample\n\njulia> cowsay(\"Moo\", cow=Cowsay.default)\n _____\n< Moo >\n -----\n \\ ^__^\n \\ (oo)\\_______\n (__)\\ )\\/\\\n ||----w |\n || ||\n\n\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.cower","page":"Available Cowfiles","title":"Cowsay.cower","text":"function cower()\n\nA cowering cow\n\nExample\n\njulia> cowsay(\"Is it safe to come out yet?\", cow=Cowsay.cower)\n _____________________________\n< Is it safe to come out yet? >\n -----------------------------\n \\\n \\\n ,__, | |\n (oo)\\| |___\n (__)\\| | )\\_\n | |_w | \\\n | | || *\n\n Cower....\n\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.moofasa","page":"Available Cowfiles","title":"Cowsay.moofasa","text":"function moofasa()\n\nMOOfasa\n\nExample\n\njulia> cowsay(\"It's the circle of life\", cow=Cowsay.moofasa)\n _________________________\n< It's the circle of life >\n -------------------------\n \\ ____\n \\ / \\\n | ^__^ |\n | (oo) |______\n | (__) | )\\/\\\n \\____/|----w |\n || ||\n\n
2021-09-15 22:57:52 +00:00
}