From 8d9e4b1a9428ac23cb8d6aafc70bdbf5072b0b44 Mon Sep 17 00:00:00 2001 From: MeowcaTheoRange Date: Wed, 11 Jan 2023 00:36:50 -0600 Subject: [PATCH] DAU Initial Commit - Everything, God Damn It! --- .github/ISSUE_TEMPLATE/fan-content.md | 10 + .github/ISSUE_TEMPLATE/fan-theory.md | 10 + .../ISSUE_TEMPLATE/grammar-typo-correction.md | 27 +++ .github/workflows/main.yml | 41 ++++ .gitignore | 1 + README.md | 1 + STORY.md | 1 + code/converter.js | 63 ++++++ code/filer.js | 27 +++ code/parser.js | 89 +++++++++ format/converted/markdown/readme.md | 49 +++++ format/converted/markdown/readme/README.md | 49 +++++ format/source/json/readme.json | 84 ++++++++ format/source/master.dau | 182 ++++++++++++++++++ format/source/readme.dau | 32 +++ package.json | 19 ++ 16 files changed, 685 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/fan-content.md create mode 100644 .github/ISSUE_TEMPLATE/fan-theory.md create mode 100644 .github/ISSUE_TEMPLATE/grammar-typo-correction.md create mode 100644 .github/workflows/main.yml create mode 100644 .gitignore create mode 120000 README.md create mode 120000 STORY.md create mode 100644 code/converter.js create mode 100644 code/filer.js create mode 100644 code/parser.js create mode 100644 format/converted/markdown/readme.md create mode 100644 format/converted/markdown/readme/README.md create mode 100644 format/source/json/readme.json create mode 100644 format/source/master.dau create mode 100644 format/source/readme.dau create mode 100644 package.json diff --git a/.github/ISSUE_TEMPLATE/fan-content.md b/.github/ISSUE_TEMPLATE/fan-content.md new file mode 100644 index 0000000..6d9de6a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/fan-content.md @@ -0,0 +1,10 @@ +--- +name: Fan Content +about: Some fan content for the community's liking. +title: "[FC] Title..." +labels: Fan Content +assignees: '' + +--- + + diff --git a/.github/ISSUE_TEMPLATE/fan-theory.md b/.github/ISSUE_TEMPLATE/fan-theory.md new file mode 100644 index 0000000..971e90b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/fan-theory.md @@ -0,0 +1,10 @@ +--- +name: Fan Theory +about: What's This Mean????? +title: "[FC-T] Title..." +labels: Fan Content, Fanon/Theory +assignees: '' + +--- + + diff --git a/.github/ISSUE_TEMPLATE/grammar-typo-correction.md b/.github/ISSUE_TEMPLATE/grammar-typo-correction.md new file mode 100644 index 0000000..a63088d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/grammar-typo-correction.md @@ -0,0 +1,27 @@ +--- +name: Grammar/Typo Correction +about: " This section of text has a typo, outdated language or lacks an Oxford comma." +title: "[GTC] Excerpt from..." +labels: Grammar/Typo Correction +assignees: MeowcaTheoRange + +--- + +## What file the typo is in + + +Dizzy-AU/**story/human-readable/...** + +## Affected excerpt + +Lorem ipsum **dollar sit** amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. + +## What the excerpt should look like + +Lorem ipsum **dolor sit** amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. + +## Type of grammar mistake and why it is valid + +This is an example of... diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..883f5d5 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,41 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + push: + paths: + - 'format/source/master.dau' + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + cd $GITHUB_WORKSPACE + ls $GITHUB_WORKSPACE + node code/filer.js master Markdown + + - name: Setup git + run: | + git config user.name "GitHub Actions Bot" + git config user.email "<>" + + - name: Run git + run: | + git add $GITHUB_WORKSPACE/format/converted/* + git commit -m "Update DAU contents" + git push origin main diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f9d00a6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +database.json \ No newline at end of file diff --git a/README.md b/README.md new file mode 120000 index 0000000..b2c44c8 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +format/converted/markdown/readme.md \ No newline at end of file diff --git a/STORY.md b/STORY.md new file mode 120000 index 0000000..900f31e --- /dev/null +++ b/STORY.md @@ -0,0 +1 @@ +format/converted/markdown/master.md \ No newline at end of file diff --git a/code/converter.js b/code/converter.js new file mode 100644 index 0000000..778b671 --- /dev/null +++ b/code/converter.js @@ -0,0 +1,63 @@ +var { Chapter, Character, Dialogue } = require("./parser.js"); +class Export { + folder; + extension; + data = []; + constructor (folder, extension) { + this.folder = folder; + this.extension = extension; + } +} + +var currentExport; +var narrator = new Character("%", "Narrator"); +var DAUConverters = { + Markdown (js) { + currentExport = new Export("markdown", ".md"); + js.forEach((chapter, i) => { + currentExport.data[i] = { + data: "", + name: chapter.name + }; + currentExport.data[i].data += `# ${chapter.name}\n`; + if (chapter.info) { + if (chapter.info.location) currentExport.data[i].data += `> ${chapter.info.location}`; + if (!(chapter.info.location || chapter.info.time)) currentExport.data[i].data += `\n`; + if (chapter.info.location && chapter.info.time) currentExport.data[i].data += ` - `; + if (!chapter.info.location) currentExport.data[i].data += `> `; + if (chapter.info.time) currentExport.data[i].data += `${chapter.info.time}`; + } + currentExport.data[i].data += `\n\n`; + currentExport.data[i].data += `Characters:\n`; + Object.entries(chapter.characters).forEach(([_, character]) => { + currentExport.data[i].data += `- ${character.name.join(" ")}\n`; + }); + currentExport.data[i].data += `\n`; + chapter.characters["%"] = narrator; + chapter.dialogue.forEach((dialogue) => { + currentExport.data[i].data += `## ${chapter.characters[dialogue.speaker].name.join(" ")}\n`; + dialogue.dialogue.forEach((text) => { + var plctext; + if (Array.isArray(text)) + plctext = text.map( + x => ( + x.endsWith("\" >>") || ( + x.startsWith("\"") && + x.endsWith("\"") + ) || + x.startsWith("<< \"") + ) ? + "**" + x + "**" : + x + ).join("") + "\n\n"; + else plctext = text + "\n\n"; + currentExport.data[i].data += plctext.replace(/(:\/)|(\/:)/gi, "*"); + }); + }); + }); + + return currentExport; + } +} + +exports.DAUConverters = DAUConverters; \ No newline at end of file diff --git a/code/filer.js b/code/filer.js new file mode 100644 index 0000000..82e778b --- /dev/null +++ b/code/filer.js @@ -0,0 +1,27 @@ +var { DAUTokenizer } = require("./parser.js"); +var { DAUConverters } = require("./converter.js"); +const path = require("path"); +const fs = require("fs"); + +function TokenizeFiles(name, output) { + if (!fs.existsSync(path.join("format"))) fs.mkdirSync(path.join("format")); + if (!fs.existsSync(path.join("format", "converted"))) fs.mkdirSync(path.join("format", "converted")); + if (!fs.existsSync(path.join("format", "source"))) fs.mkdirSync(path.join("format", "source")); + if (!fs.existsSync(path.join("format", "source", "json"))) fs.mkdirSync(path.join("format", "source", "json")); + var file = fs.readFileSync(path.join("format", "source", name + ".dau"), {encoding: "utf-8"}); + var jsop = DAUTokenizer(file); + fs.writeFileSync(path.join("format", "source", "json", name + ".json"), JSON.stringify(jsop, null, 2)); + var convop = DAUConverters[output](jsop); + var folder = path.join("format", "converted", convop.folder); + var namefolder = path.join("format", "converted", convop.folder, name); + if (!fs.existsSync(folder)) fs.mkdirSync(folder); + if (!fs.existsSync(namefolder)) fs.mkdirSync(namefolder); + var allFileData = convop.data.map(x=>x.data); + fs.writeFileSync(path.join(folder, name + convop.extension), allFileData.join("")); + convop.data.forEach((data) => { + fs.writeFileSync(path.join(namefolder, data.name.replace(/[/\\?%*:|"<> ]/g, '_') + convop.extension), data.data); + }) + +} + +TokenizeFiles(process.argv[2], process.argv[3]); \ No newline at end of file diff --git a/code/parser.js b/code/parser.js new file mode 100644 index 0000000..95ff8a8 --- /dev/null +++ b/code/parser.js @@ -0,0 +1,89 @@ +var defaultFunctions = { + splitAt: (index, xs, length) => [xs.slice(0, index), xs.slice(index, index + length), xs.slice(index + length)] +} + +class Chapter { + name = ""; + info = { + location: "", + time: "" + }; + characters = {}; + dialogue = []; + constructor (name, info) { + this.name = name; + this.info = info; + } +} + +class Character { + id = ""; + name = []; + constructor (id, name) { + this.id = id; + this.name = name.split(" "); + } +} + +class Dialogue { + speaker; + dialogue = []; + constructor (speaker) { + this.speaker = speaker; + } +} + +function DAUTokenizer(string) { + var TokenizerCtx = { + document: [], + currentChapter: null, + currentDialogueBlock: null + }; + var temp = (string.includes("\r\n") ? string.split("\r\n") : string.split("\n")); + var linearray = []; + temp.forEach((v) => { + if (/^\t*\S+/.test(v)) linearray.push(v.replace(/\s*$/, "")); + }); + for (line of linearray) { + if (/^\? /.test(line)) { + var ine = line.replace(/^\? /, "").split(" :: "); + if (ine[1]) { + ine[1] = ine[1].split(" @ "); + ine[1] = {location: ine[1][0], time: ine[1][1]}; + } + TokenizerCtx.currentChapter = new Chapter(...ine); + TokenizerCtx.document.push(TokenizerCtx.currentChapter); + } else if (/^\- /.test(line)) { + var ine = line.replace(/^\- /, "").split(" :: "); + TokenizerCtx.currentChapter.characters[ine[0]] = new Character(...ine); + } else if (/^(\t\t)|( )/.test(line)){ + var ine = line.replace(/^(\t\t)|( )/, ""); + var sliced = sliceDialogue(ine); + TokenizerCtx.currentDialogueBlock.dialogue.push(sliced); + + } else if (/^(\t)|( )/.test(line)){ + var ine = line.replace(/^(\t)|( )/, ""); + TokenizerCtx.currentDialogueBlock = new Dialogue(ine); + TokenizerCtx.currentChapter.dialogue.push(TokenizerCtx.currentDialogueBlock); + } + } + return TokenizerCtx.document; +} + +function sliceDialogue(obj) { + var restOfArray = (Array.isArray(obj) ? obj.slice(0, -1) : []); + var tester = (Array.isArray(obj) ? obj[obj.length - 1] : obj); + var matches = tester.match(/(?:((?:<< )?"(?:\\"|[^"])*"(?: >>)?))/); + if (matches == null) return obj; + return sliceDialogue( + [ + ...(Array.isArray(restOfArray) ? restOfArray : [restOfArray]), + ...defaultFunctions.splitAt(matches.index, tester, matches[0].length) + ] + ).filter(x=>x!=""); +} + +exports.DAUTokenizer = DAUTokenizer; +exports.Chapter = Chapter; +exports.Character = Character; +exports.Dialogue = Dialogue; \ No newline at end of file diff --git a/format/converted/markdown/readme.md b/format/converted/markdown/readme.md new file mode 100644 index 0000000..fddd284 --- /dev/null +++ b/format/converted/markdown/readme.md @@ -0,0 +1,49 @@ +# README + + +Characters: +- Content Warning +- Welcome +- What is the Dizzy AU/Dizzy Rewrite? +- Hold on, what's DAU? + +## Content Warning +Mature content is ahead. Please, be wary of these themes: + +- Mentions of suicide/suicidal thoughts + +- Depression or mentions of self-harm + +- Sexual themes + +- Trauma and traumatic events + +- Homosexual animals. + +By reading the Dizzy Rewrite, you acknowledge these warnings. + +[>> Read the Dizzy Rewrite](/STORY.md) + +## Welcome +Hello, welcome to the DAU/Dizzy Rewrite repository! + +## What is the Dizzy AU/Dizzy Rewrite? +The Dizzy Rewrite is a *revamped* version of the original Dizzy AU story. + +It's written in DAU, a new markup language made specifically for the Dizzy Rewrite. + +You can find the original Dizzy AU story at [MeowcaTheoRange/Dizzy-AU](https*/github.com/MeowcaTheoRange/Dizzy-AU). + +## Hold on, what's DAU? +DAU is an acronym for **"Dizzy AU"**. Pretty obvious there. + +It's a markup language made for creating fictional stories in an easy-to-transport manner. + +If you want to quickly whip up an HTML document and a Markdown file at the same time, you can use DAU to do so. + +In fact, this README page you're reading was originally made in DAU. Don't believe me? Check out [the source file](/format/source/readme.dau). + +Anyway, you're free to use DAU to start your fictonal endeavors today. Check out [the reuse guide](/format/converted/markdown/reuse.md) for more info. + +-- By the way, DAU is licensed under the [GNU GPL v3](https*/www.gnu.org/licenses/gpl-3.0.html), but the *original contents* of the Dizzy Rewrite repository are licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](http*/creativecommons.org/licenses/by-nc-sa/4.0/). + diff --git a/format/converted/markdown/readme/README.md b/format/converted/markdown/readme/README.md new file mode 100644 index 0000000..fddd284 --- /dev/null +++ b/format/converted/markdown/readme/README.md @@ -0,0 +1,49 @@ +# README + + +Characters: +- Content Warning +- Welcome +- What is the Dizzy AU/Dizzy Rewrite? +- Hold on, what's DAU? + +## Content Warning +Mature content is ahead. Please, be wary of these themes: + +- Mentions of suicide/suicidal thoughts + +- Depression or mentions of self-harm + +- Sexual themes + +- Trauma and traumatic events + +- Homosexual animals. + +By reading the Dizzy Rewrite, you acknowledge these warnings. + +[>> Read the Dizzy Rewrite](/STORY.md) + +## Welcome +Hello, welcome to the DAU/Dizzy Rewrite repository! + +## What is the Dizzy AU/Dizzy Rewrite? +The Dizzy Rewrite is a *revamped* version of the original Dizzy AU story. + +It's written in DAU, a new markup language made specifically for the Dizzy Rewrite. + +You can find the original Dizzy AU story at [MeowcaTheoRange/Dizzy-AU](https*/github.com/MeowcaTheoRange/Dizzy-AU). + +## Hold on, what's DAU? +DAU is an acronym for **"Dizzy AU"**. Pretty obvious there. + +It's a markup language made for creating fictional stories in an easy-to-transport manner. + +If you want to quickly whip up an HTML document and a Markdown file at the same time, you can use DAU to do so. + +In fact, this README page you're reading was originally made in DAU. Don't believe me? Check out [the source file](/format/source/readme.dau). + +Anyway, you're free to use DAU to start your fictonal endeavors today. Check out [the reuse guide](/format/converted/markdown/reuse.md) for more info. + +-- By the way, DAU is licensed under the [GNU GPL v3](https*/www.gnu.org/licenses/gpl-3.0.html), but the *original contents* of the Dizzy Rewrite repository are licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](http*/creativecommons.org/licenses/by-nc-sa/4.0/). + diff --git a/format/source/json/readme.json b/format/source/json/readme.json new file mode 100644 index 0000000..fbd2fd6 --- /dev/null +++ b/format/source/json/readme.json @@ -0,0 +1,84 @@ +[ + { + "name": "README", + "characters": { + "cw": { + "id": "cw", + "name": [ + "Content", + "Warning" + ] + }, + "w": { + "id": "w", + "name": [ + "Welcome" + ] + }, + "wh": { + "id": "wh", + "name": [ + "What", + "is", + "the", + "Dizzy", + "AU/Dizzy", + "Rewrite?" + ] + }, + "dau": { + "id": "dau", + "name": [ + "Hold", + "on,", + "what's", + "DAU?" + ] + } + }, + "dialogue": [ + { + "speaker": "cw", + "dialogue": [ + "Mature content is ahead. Please, be wary of these themes:", + "- Mentions of suicide/suicidal thoughts", + "- Depression or mentions of self-harm", + "- Sexual themes", + "- Trauma and traumatic events", + "- Homosexual animals.", + "By reading the Dizzy Rewrite, you acknowledge these warnings.", + "[>> Read the Dizzy Rewrite](/STORY.md)" + ] + }, + { + "speaker": "w", + "dialogue": [ + "Hello, welcome to the DAU/Dizzy Rewrite repository!" + ] + }, + { + "speaker": "wh", + "dialogue": [ + "The Dizzy Rewrite is a :/revamped/: version of the original Dizzy AU story.", + "It's written in DAU, a new markup language made specifically for the Dizzy Rewrite.", + "You can find the original Dizzy AU story at [MeowcaTheoRange/Dizzy-AU](https://github.com/MeowcaTheoRange/Dizzy-AU)." + ] + }, + { + "speaker": "dau", + "dialogue": [ + [ + "DAU is an acronym for ", + "\"Dizzy AU\"", + ". Pretty obvious there." + ], + "It's a markup language made for creating fictional stories in an easy-to-transport manner.", + "If you want to quickly whip up an HTML document and a Markdown file at the same time, you can use DAU to do so.", + "In fact, this README page you're reading was originally made in DAU. Don't believe me? Check out [the source file](/format/source/readme.dau).", + "Anyway, you're free to use DAU to start your fictonal endeavors today. Check out [the reuse guide](/format/converted/markdown/reuse.md) for more info.", + "-- By the way, DAU is licensed under the [GNU GPL v3](https://www.gnu.org/licenses/gpl-3.0.html), but the :/original contents/: of the Dizzy Rewrite repository are licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-nc-sa/4.0/)." + ] + } + ] + } +] \ No newline at end of file diff --git a/format/source/master.dau b/format/source/master.dau new file mode 100644 index 0000000..0010224 --- /dev/null +++ b/format/source/master.dau @@ -0,0 +1,182 @@ +? Introduction :: Miles' Apartment +- s :: Silver Blure +- m :: Miles Prower + + m + Miles is sleeping on his couch again. He's been doing this since the day he got his first place. It saves space, but it gives him headaches the day after. Oh well. + His TV is idling, using that bouncing screensaver with the TV logo on it. It's been like this the entire time he's been sleeping. + Other than that, everything's completely normal to him. + + % + A knock is heard on the door, followed by what seems like feet shuffling away from the door. + The buzzer rings shortly after the steps are heard departing, which wakes Miles up. + + m + "Agh, in a MINUTE!" he shouts, crawling out of bed and up to get the door. "And this late, too... What happened to calling first?" + He opens the door, and on the other side is a package, addressed to Miles himself. "Oh, a package. Okay." he says, nabbing the package off of the ground and shutting the door behind him. "...wonder what it is." + He grabs a nearby knife... stopping after he picks it up. He observes it... there's a little bit of blood on the edge. "...oh. right. Wrong knife." + He takes a detour into his kitchen, to get another, cleaner knife. Then, he cuts the tape with said knife, opening up the box. + It's a box of donuts, packaged neatly in a colourful box. The address line says "Miles Prower, 14th b." and the return address reads "Silver". + Miles pauses as he reads the word "Silver" on the return address. + "...Silver? Why would he..." + He notices the note affixed to the lid with a neat slice of tape. Miles detaches the note from the box, sitting down on his couch and setting the box on the coffee table in front of it. + He opens up the note, reading it. It has hand-drawn art, neat penmanship, the works. Miles looks these details over, smiling at all of the work put on this single piece of paper. + + s + Hello, Miles! I sincerely hope you're alive and well while reading this. This box of donuts is for you, sir. I'm so thankful you've been found alive. + Your willingness to end it all was truly depressing to hear... I seriously wish I could have changed what you did, at least somewhat. Suicide was never the way to go, and I hope you realize that now. + I know losing one of my best friends wasn't something I wanted to go through. And I should have done more, Miles. I really really should have done more to help you. + I hope you're doing better right now. I hope you're aware there are people who care for you and love you dearly, even if it doesn't seem like it. + I'd love to see you again, Miles. Please, call me or text me. Either way, I don't care. We should arrange a hangout, if you're not busy. + Your dearest manager and friend, + - Silver Blure + + m + Miles continues to stay silent, smiling embarrasingly. He seems to blush a little, dropping the note on the donut box and hiding his head in his hands. + "Fuck... god damn it, he's so caring, how could I possibly..." + Miles sighs, sitting up and taking his phone off of the coffee table. His lockscreen hits him immediately, a picture of last year's Christmas party at the burger shop with Silver. + Silver had been the manager of this burger shop for almost his entire life, after he came backwards from the future. + He threw holiday parties every year, and the last year Miles had been employed there was the best bash overall. Through these parties, Silver connected with his employees and treated them like family. + It was amazing, and a night Miles could never forget. Miles and Silver had a great dynamic with each other, and it really showed with this picture. + But, as Miles looked at the picture, he only grew sadder. What could've been. If he didn't... fuck it all up a few months later. + Looking at this picture, Miles set his phone down, contemplating if he should actually contact Silver again. + + % + A chime rings from Miles' phone. + Miles looks at the phone, slowly reaching over to pick it up and read whatever dinged him. + + s + "Silver work - Now - Hey, Miles! I... hope you can see this. Please." >> + + m + Miles quickly unlocked his phone, hunching over and typing away a message. + +? Introduction Part 2 :: Silver's House +- s :: Silver Blure +- m :: Miles Prower + + s + Silver laid front down on his bed, silent noise coming from the television he had on. He stared at the blank canvas that was his messages with Miles. + Silver hadn't seen a shred of activity from Miles at all. His status dot was a dull, uninspiring grey. Holefully sometime - maybe even someday, the dot would turn green. + Until then, Silver sat in worry. In worry of if Miles had forgotten about him, or had... just no way to access his texts in general. He hoped the donut box he sent wasn't going stale on an empty doorstep. + Silver's stomach rumbled out of hunger. He usually tried to keep himself well-fed, but his worrying about Miles had him staring at his computer screen almost 24/7. Silver sighed, getting up and rubbing his eyes, stretching. + He walked out of his room, leaving the computer on and open as he went to hunt for some food to eat. + + s + Opening the fridge, Silver looked into the clutter that was his fridge. He squinted in the fridge light, hoping to find something to inspire him. + A thing that caught his eye was a singular Hot Pocket, sitting there packaged in the middle of the fridge. + Silver grabbed the Hot Pocket, breaking open the seal and shutting the fridge with those mighty-useful telekinetic powers. He didn't use them for very much these days, but it is nice to have an extra hand to water more of his plants with. + As Silver opened the microwave and followed the instructions on the partially-busted seal, he looked over briefly at his plants. + He brought his focus back to the microwave then, putting the Hot Pocket smack-dab in the middle of the rotating plate and shutting it, setting the instructed time. + He looked again at his plants. The sweet and colourful patterns of the flowers, the spindling vines from some of the more mischevious plants... and hell, even their overwhelming green-ness. + These were the things that Silver loved most about his plants. They are the things that make him happy, to be able to take care of them and watch the mystical results brought by Mother Nature herself. They also make his living room smell nice. + + % + Four uniform beeps echoed from the microwave, and Silver opened the microwave, grabbing the Hot Pocket from the inside with the easy carry sleeve. + He walked back to his room, waving goodbye to his plants. + + s + Silver bit into the Hot Pocket as he laid down in front of his computer. As his eyes processed what was in front of him, he saw something. + + m + Miles Prower is typing... + + s + After seeing this, he dropped his Hot Pocket and stared intently at the screen. Those damn flickering dots... what message are they hiding from him? + Silver stared in a mix of shock and excitement. He hadn't heard from Miles in almost a month... and here he is, showing activity. + Maybe he got the donut box, then. Maybe he even read the note? All of these questions flooded Silver's mind as the dots simply flickered. + Then, a message. + + m + "hey, silver. it's been long" >> + + s + ...Silver was a bit disappointed, but he was nonetheless thrilled to hear from Miles. The second the message appeared on the screen, Silver got to work. + He typed up his message in a blaze, dropping some letters in the process. + << "MUIOLES HOLYCAP????? YOUJ GOT Y nOTE????????????????????" + Silver wasn't too happy with the spelling errors and excessive typos in his message. Taking a breather, he typed a neater message. + << "I'm so sorry, Miles, I got excited. Did you get my note?" + + m + "excited? to see me? interesting" >> + "also yes i did. i liked the penmanwhatever. you're very good at that lol" >> + + s + Silver grabbed his Hot Pocket off of his bed, taking another bite. + << "Do you mean penmanship? If that's what you mean, thank you! I'm so glad you were able to get back to me, Miles." + + m + "nice to see you too." >> + Miles typed for a long time. Seeing this, Silver got... a bit confused, but he waited paitently. + Miles was never really the type to do long messages, so whatever this was, it was probably important. + "hey, silv. i got a question for you. do you still work at the burger shop? i found a picture of the christmas party last year on my lockscreen and i thought of you." >> + + s + << "I do! Would you want to work there again? I could re-hire you, it's not :/too/: hard, and it would be great to have you there again." + + m + "..." >> + "i'll think about it." >> + "ijust wanna go to bed, silver. see you soon" >> + And as he sent that message, the green blip of activity transformed into a dead, dull gray. + + s + Silver sighed, hoping to at least see him tomorrow. At this point, though, he had been lost. There was a chance he would never appear online again. + He closed his computer, not even typing a goodbye. He just sat on his bed, watching the stuff on his TV. + +? Introduction Part 3 :: Miles' Apartment +- s :: Silver Blure +- m :: Miles Prower + + m + Miles had fallen asleep, snoring soundly. + His phone was once in his hand, as he forgot to put it down before passing out. It ended up on the floor, vibrating slowly as it tries to tell Miles there's an alarm. + Its attempts are futile, and Miles stays asleep. Miles wanted to set an alarm tone, but he didn't like any of the ones the system came with, and he was too lazy to make his own. + Finally, a call comes through. It plays a loud ringtone, notifying Miles that someone is calling him - duh. + Miles writhes around, opening his eyes and looking around for his phone to hopefully deny the call and head back to sleep. + It's not on the coffee table, or in his hand... He looks down. It's, of course, on the floor. Miles picks up his phone, rubbing his eyes to read the text. + + % + "Silver work is calling. Swipe up to answer - Swipe down to reject" + + m + "Ah, fuck... why is he calling so early?" + He sees the clock, immediately realizing. It's 1PM, and he's most definitely overslept. Thankfully, he has nothing to do, but if he did, he would most absolutely be late. + He decides to answer the call, putting the phone on speaker and setting it on the table. + + s + "Miles, hey, uh.... are you there?" + "Hi, it's Silver, uhh... how are you?" + + m + "You sound like you're talking to yourself, Silver. I'm here." Miles replies in the most crackly, morning-wound voice possible. He didn't mean it, but it's whatever. + "I've been... fine, mostly. I slept through... like, half of the day." + + s + "You haven't been doing anything at all? Just sleeping?" + + m + "Yeah, what about it?" + + s + "Nothing, you just sound so tired, and... I just called to ask if you wanted to come over to my place." + Silver hesitates for a while, causing Miles to think he's open to talk, but just as Miles gets his first breath -- + "You know, I... got a cat, recently! Her name's Jan, and she's such a sweetheart. You should meet her, if you're not, you know... Allergic to cat dander, haha-" + + m + Miles waits for longer after Silver's second line, seeing if he has anything else to say. + "Well, uh... Sure, sounds good. When... should I come over?" + + s + Silver gets a bit excited, and it's definitely audible through his voice. + "Oh, oh, uh... you can come anytime today! I'll be waiting, no pressure." + + m + "Aww, haha... Alright, I'll see what I can do. I'll be over as soon as possible, OK, Silver?" + + s + "Niice! I can't wait to see you! It'll be fun, trust me. I have so much board games." + + m + "Boo, board games, boooo... haha, I'm kidding. Sure, whatever. I'll be there, see ya." + Miles hangs up, grabbing his phone and trying to get out of the door as soon as possible, making sure to grab his keys. \ No newline at end of file diff --git a/format/source/readme.dau b/format/source/readme.dau new file mode 100644 index 0000000..d8f1bfb --- /dev/null +++ b/format/source/readme.dau @@ -0,0 +1,32 @@ +? README +- cw :: Content Warning +- w :: Welcome +- wh :: What is the Dizzy AU/Dizzy Rewrite? +- dau :: Hold on, what's DAU? + + cw + Mature content is ahead. Please, be wary of these themes: + - Mentions of suicide/suicidal thoughts + - Depression or mentions of self-harm + - Sexual themes + - Trauma and traumatic events + - Homosexual animals. + By reading the Dizzy Rewrite, you acknowledge these warnings. + [>> Read the Dizzy Rewrite](/STORY.md) + + w + Hello, welcome to the DAU/Dizzy Rewrite repository! + + wh + The Dizzy Rewrite is a :/revamped/: version of the original Dizzy AU story. + It's written in DAU, a new markup language made specifically for the Dizzy Rewrite. + You can find the original Dizzy AU story at [MeowcaTheoRange/Dizzy-AU](https://github.com/MeowcaTheoRange/Dizzy-AU). + + dau + DAU is an acronym for "Dizzy AU". Pretty obvious there. + It's a markup language made for creating fictional stories in an easy-to-transport manner. + If you want to quickly whip up an HTML document and a Markdown file at the same time, you can use DAU to do so. + In fact, this README page you're reading was originally made in DAU. Don't believe me? Check out [the source file](/format/source/readme.dau). + Anyway, you're free to use DAU to start your fictonal endeavors today. Check out [the reuse guide](/format/converted/markdown/reuse.md) for more info. + + -- By the way, DAU is licensed under the [GNU GPL v3](https://www.gnu.org/licenses/gpl-3.0.html), but the :/original contents/: of the Dizzy Rewrite repository are licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-nc-sa/4.0/). \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..fa02598 --- /dev/null +++ b/package.json @@ -0,0 +1,19 @@ +{ + "name": "dau", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/MeowcaTheoRange/Dizzy-Rewrite.git" + }, + "author": "MeowcaTheoRange", + "license": "GPL-3.0-or-later", + "bugs": { + "url": "https://github.com/MeowcaTheoRange/Dizzy-Rewrite/issues" + }, + "homepage": "https://github.com/MeowcaTheoRange/Dizzy-Rewrite#readme" +}