A Go library/binary to parse & execute data against template langauges.
git clone git://src.gearsix.net/dati
Log | Files | Refs | Atom | README | LICENSE

commit 02fbd1aa507bd89f037f130bce7ae5d45053ed47
parent 59b7f13af0cad7fd52447205755175fa9986f4ef
Author: gearsix <gearsix@tuta.io>
Date:   Sat, 20 Mar 2021 21:00:56 +0000

added a v.cool example

Aexamples/README | 11+++++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/1312-S01E02 Where No Man Has Gone Before.yaml | 24++++++++++++++++++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/1329-S01E04 Mudd's Woman.json | 14++++++++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/1512-S01E03 The Corbomite Maneuver.yaml | 8++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/1513-S01E06 The Man Trap.toml | 11+++++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/1533-S01E08 Charlie X.toml | 8++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/1672-S01E05 The Enemy Within.toml | 10++++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/1704-S01E07 The Naked Time.json | 12++++++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/1709-S01E09 Balance of Terror.yaml | 7+++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/2124-S01E18 The Squire of Gothos.toml | 9+++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/2254-S01E01 The Cage.toml | 3+++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/2712-S01E10 What Are Little Girls Made Of?.yaml | 6++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/2713-S01E12 Miri.json | 12++++++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/2715-S01E11 Dagger Of The Mind.yaml | 6++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/2817-S01E13 The Conscience of the King.toml | 10++++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/2821-S01E14 The Galileo Seven.yaml | 25+++++++++++++++++++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/2947-S01E15 Court Martial.toml | 10++++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/3012-S01E16 The Menagerie, part 1.toml | 9+++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/3012-S01E16b The Menagerie, part 2.toml | 7+++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/3025-S01E17 Shore Leave.json | 10++++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/3045-S01E19 Arena.yaml | 8++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/3087-S01E20 The Alternative Factor.yaml | 7+++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/3113-S01E21 Tomorrow is Yesterday.yaml | 9+++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/3134-S01E28 The City on the Edge of Forever.toml | 7+++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/3141-S01E24 Space Seed.yaml | 9+++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/3156-S01E22 The Return of The Archons.json | 10++++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/3192-S01E23 A Taste of Armageddon.json | 11+++++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/3196-S01E26 The Devil In The Dark.toml | 6++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/3198-S01E27 Errand of Mercy.json | 9+++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/3287-S01E29 Operation Annihilate.toml | 8++++++++
Aexamples/logs/NCC-1701 USS Enterprise/2266–2269/3417-S01E25 This Side of Paradise.yaml | 9+++++++++
Aexamples/project.toml | 3+++
Aexamples/suti.cfg | 3+++
Aexamples/template/html.hmpl | 26++++++++++++++++++++++++++
Aexamples/template/txt.mst | 13+++++++++++++
35 files changed, 350 insertions(+), 0 deletions(-)

diff --git a/examples/README b/examples/README @@ -0,0 +1,11 @@ +I collected all the log transcripts from Star Trek TOS :) + +To run this example you'll need to explicity set the root template to use (see +templates/ files). The root templates produce their different file formats +denoted by the filename (e.g. html.tmpl produces a html file). + +An example of how you can run one of these examples: + + suti -cfg suti.cfg -r templates/html.tmpl > out.html + +Then open out.html to see the results. diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/1312-S01E02 Where No Man Has Gone Before.yaml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/1312-S01E02 Where No Man Has Gone Before.yaml @@ -0,0 +1,24 @@ +--- +Stardate: 1312.4 +Starship: "U.S.S. Enterprise (NCC-1701)" +Captain: "James T. Kirk" +Logs: + - "Captain's log, Star date 1312.4. The impossible has happened. From +directly ahead, we're picking up a recorded distress signal, the call letters +of a vessel which has been missing for over two centuries. Did another Earth +ship once probe out of the galaxy as we intend to do? What happened to it out +there? Is this some warning they've left behind?" + - "Captain's log, Star date 1312.9. Ship's condition, heading back on +impulse power only. Main engines burned out. The ship's space warp ability +gone. Earth bases which were only days away are now years in the distance. Our +overriding question now is what destroyed the Valiant? They lived through the +barrier, just as we have. What happened to them after that?" + - "Captain's log, Star date 1313.3. Note commendations on Lieutenant Kelso +and the engineering staff. In orbit above us, the engines of the Enterprise are +almost fully regenerated. Balance of the landing party is being transported +back up. Mitchell, whatever he's become, keeps changing, growing stronger by +the minute." + - "Captain's log, Star date 1313.8. Add to official losses, Doctor +Elizabeth Dehner. Be it noted she gave her life in performance of her duty. +Lieutenant Commander Gary Mitchell, same notation. I want his service record to +end that way. He didn't ask for what happened to him." diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/1329-S01E04 Mudd's Woman.json b/examples/logs/NCC-1701 USS Enterprise/2266–2269/1329-S01E04 Mudd's Woman.json @@ -0,0 +1,14 @@ +{ + "Stardate": 1329.8, + "Starship": "U.S.S. Enterprise (NCC-1701)", + "Captain": "James T. Kirk", + "Logs": [ + "Captain's log, Stardate 1329.8. The U.S.S. Enterprise in pursuit of an unidentified vessel.", + "Captain's log, Stardate 1329.1. We've taken aboard from unregistered transport vessel its captain and, and three unusual females. These women have a mysterious magnetic effect on the male members of my crew, including myself. Explanation unknown at present.", + "Captain's log, Stardate 1329.2. On board the U.S.S. Enterprise, a ship's hearing is being convened against the transport vessel's captain. I'm becoming concerned about the almost-hypnotic effect produced by the women.", + "Captain's log-- Stardate 1330.1. Position, fourteen hours out of Rigel 12. We're on auxiliary impulse engines. Fuel low, barely sufficient to achieve orbit over the planet. Lithium replacements are now imperative. The effect of Mudd's women on my crew continues to grow, still totally unexplained. Harry Mudd is confined to his quarters under guard.", + "Captain's log. Transporting down to surface of planet Rigel 12 to acquire replacement lithium crystals. Expect further difficulty from miners.", + "Captain's log. Have transported aboard the Enterprise to implement search with infrared scanners and sensing system. Magnetic storms on the planet's surface are cutting down speed and efficiency of our equipment. Search now in progress for three hours, eighteen minutes.", + "Captain's log. Have expended all but forty three minutes of power. Ship's condition, critical. Search now in progress seven hours, thirty one minutes. Magnetic storms are easing." + ] +} diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/1512-S01E03 The Corbomite Maneuver.yaml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/1512-S01E03 The Corbomite Maneuver.yaml @@ -0,0 +1,8 @@ +Stardate: 1512.2 +Starship: "U.S.S. Enterprise (NCC-1701)" +Captain: "James T. Kirk" +Logs: + - "Captain's Log, star date 1512.2. On our third day of star mapping, an unexplained cubical object blocked our vessel's path. On the Bridge, Mister Spock immediately ordered general alert. My location, Sickbay. Quarterly physical check." + - "Captain's Log, star date 1513.8. Star maps reveal no indication of habitable planets nearby. Origin and purpose of the cube still unknown. We've been here, held motionless, for eighteen hours." + - "Captain's Log, star date 1514.0. The cube has been destroyed. Ship's damage minor but my next decision, major. Probe on ahead or turn back." + - "Captain's Log, star date 1514.1. The Enterprise is in tow. To this point, no resistance has been offered. My plan? A show of resignation. Balok's tractor beam has to be a heavy drain of power on his small ship. Question. Will he grow careless?" diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/1513-S01E06 The Man Trap.toml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/1513-S01E06 The Man Trap.toml @@ -0,0 +1,11 @@ +Stardate = 1513.1 +Starship = "U.S.S. Enterprise (NC-1701)" +Captain = "James T. Kirk" +Logs = [ + "Captain's log, Stardate 1513.1. Our position, orbiting planet M-113. On board the Enterprise, Mister Spock temporarily in command. On the planet the ruins of an ancient and long-dead civilisation. Ship's surgeon McCoy and myself are now beaming down to the planet's surface. Our mission, routine medical examination of archaeologist Robert Crater and his wife Nancy. Routine but for the fact that Nancy Crater is that one woman in Doctor McCoy's past.", + "Captain's log, additional entry. Since our mission was routine, we had beamed down to the planet without suspicion. We were unaware each member of the landing party was seeing a different woman, a different Nancy Crater.", + "Captain's log, Stardate 1513.4. In orbit around planet M-113. One crewman, member of the landing party, dead by violence. Cause unknown, but we are certain the cause of death was not poison.", + "Captain's log, Stardate 1513.8. I am now certain that the violent death of my crewmen was caused by some strange life-form.", + "Captain's log, additional. Armed and able-bodied crewmen are not attacked and slaughtered this easily. Apparently, the killer can immobilize them as it approaches perhaps with some hypnotic or paralysing power. The answer lies with Professor Crater.", + "Captain's log, continuing. The Enterprise has been invaded by a creature capable of assuming any form, and with the capacity to paralyse and draw the life from any one of us." +] diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/1533-S01E08 Charlie X.toml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/1533-S01E08 Charlie X.toml @@ -0,0 +1,8 @@ +Stardate = 1533.6 +Starship = "U.S.S. Enterprise (NCC-1701)" +Captain = "James T. Kirk" +Logs = [ + "Captain's Log, star date 1533.6. Now manoeuvring to come alongside cargo vessel Antares. Its Captain and First officer are beaming over to us with an unusual passenger.", + "Captain's Log, star date 1533.7. We have taken aboard an unusual passenger for transport to Colony Alpha Five. Charles Evans, the sole survivor of a transport crash fourteen years ago. The child, alone from age three, has not only survived, but has grown to intelligent, healthy adolescence. ", + "Captain's Log, star date 1535.8. UESPA headquarters notified of the mysterious loss of science probe vessel Antares." +] diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/1672-S01E05 The Enemy Within.toml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/1672-S01E05 The Enemy Within.toml @@ -0,0 +1,10 @@ +Stardate = 1672.1 +Starship = "U.S.S. Enterprise (NC-1701)" +Captain = "James T. Kirk" +Logs = [ + "Captain's Log, stardate 1672.1. Specimen-gathering mission on planet Alpha 177. Unknown to any of us during this time, a duplicate of me, some strange alter ego, had been created by the transporter malfunction.", + "Captain's Log, stardate 1672.9. On the planet's surface, temperatures are beginning to drop, our landing party there in growing jeopardy. Due to the malfunction of the ship's transporter, an unexplained duplicate of myself definitely exists.", + "Captain's Log, stardate 1673.1. Something has happened to me. Somehow, in being duplicated, I have lost my strength of will. Decisions are becoming more and more difficult.", + "Captain's Log, stardate 1673.5. Transporter still inoperable. My negative self is under restraint in Sickbay. My own indecisiveness growing. My force of will steadily weakening. On the planet, condition critical. Surface temperature is seventy five degrees below zero, still dropping.", + "Captain's Log, stardate 1673.1. Entry made by Second Officer Spock. Captain Kirk retains command of this vessel, but his force of will rapidly fading. Condition of landing party critical. Transporter unit still under repair." +] diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/1704-S01E07 The Naked Time.json b/examples/logs/NCC-1701 USS Enterprise/2266–2269/1704-S01E07 The Naked Time.json @@ -0,0 +1,12 @@ +{ + "Stardate": 1704.2, + "Starship": "U.S.S. Enterprise (NC-1701)", + "Captain": "James T. Kirk", + "Logs": [ + "Captain's Log. Our position, orbiting Psi 2000, an ancient world, now a frozen wasteland, about to rip apart in its death throes. Our mission, pick up a scientific party below, observe the disintegration of the planet.", + "Captain's Log: Stardate 1704.2. The science party we were to have picked up has been found dead. Life support systems had been turned off. Station personnel, frozen to death. Conditions highly unusual. Meanwhile, we remain in orbit to complete our mission, close scientific measurement of the break-up of this planet.", + "Captain's Log, supplemental. Our orbit tightening. Our need for efficiency, critical. But unknown to us, a totally new and unusual disease has been brought aboard.", + "Captain's Log, stardate 1704.4. Ship out of control, spiraling down towards planet Psi 2000. We have nineteen minutes of life left without engine power or helm control.", + "Captain's Log, supplemental. The Enterprise, spiraling down out of control. Ship's outer skin heating rapidly due to friction with planet atmosphere." + ] +} diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/1709-S01E09 Balance of Terror.yaml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/1709-S01E09 Balance of Terror.yaml @@ -0,0 +1,7 @@ +Stardate: 1709.2 +Starship: "U.S.S. Enterprise (NC-1701)" +Captain: "James T. Kirk" +Logs: + - "Captain's Log, stardate 1709.2. Patrolling outposts guarding the neutral zone between planets Romulus and Remus and the rest of the galaxy, received emergency call from outpost 4. The U.S.S. Enterprise is moving to investigate and assist." + - "Captain's log, Stardate 1709.6. We are at the Neutral Zone. Have lost contact with the intruder. No reaction on our motion sensors but believe the Romulan vessel to be somewhere close by. With all engines and systems shut down, the Enterprise is also playing the silent waiting game in hope of regaining contact." + - "Captain's log, supplemental. Now motionless for nine hours, forty seven minutes." diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/2124-S01E18 The Squire of Gothos.toml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/2124-S01E18 The Squire of Gothos.toml @@ -0,0 +1,9 @@ +Stardate = 2124.5 +Starship = "U.S.S. Enterprise (NC-1701)" +Captain = "James T. Kirk" +Logs = [ + "Ship's log Stardate 2124.5. First Officer Spock reporting for Captain James Kirk. We are orbiting the lone unrecorded planet in the star desert. For four hours, we have made every possible instrument sweep, but Captain Kirk and Helmsman Sulu remain unaccounted for. I have placed the ship on red alert.", + "Captain's Log Stardate 2125.7. Science Officer Spock reporting for Captain Kirk. We have completed fourteenth orbit of this planet without establishing contact with our missing officers or the parties sent to find them. Subspace communications remain blocked. However, by diverting impulse power to our sensors, we have made them operable, and we have detected one small area on the surface which seems relatively stable.", + "Captain's Log, stardate 2126.1. Delayed report. The whole bridge crew are the unwilling guests of the creature who calls himself Trelane. We are weaponless, powerless, and our only hope of escape with the Enterprise lies in playing his games. I've decided to make my move with the field of honour game, and everything depends on my one chance with the ancient duelling pistol.", + "Captain's Log, Stardate 2126.3. First Officer Spock reporting. Still no word from Captain Kirk on the surface below us. Waiting time is almost up. I will soon be forced to attempt departure as per instructions." +] diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/2254-S01E01 The Cage.toml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/2254-S01E01 The Cage.toml @@ -0,0 +1,3 @@ +Stardate = 2254 +Starship = "U.S.S. Enterprise (NC-1701)" +Captain = "Christopher Pike" diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/2712-S01E10 What Are Little Girls Made Of?.yaml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/2712-S01E10 What Are Little Girls Made Of?.yaml @@ -0,0 +1,6 @@ +--- +Stardate: 2712.4 +Starship: "U.S.S. Enterprise (NC-1701)" +Captain: "James T. Kirk" +Logs: + - "Captain's log, Stardate 2712.4. A signal from planet Exo 3. Doctor Roger Korby has been located, he and part of his expedition remaining alive due to the discovery of underground ruins Ieft by the former inhabitants of this world." diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/2713-S01E12 Miri.json b/examples/logs/NCC-1701 USS Enterprise/2266–2269/2713-S01E12 Miri.json @@ -0,0 +1,12 @@ +{ + "Stardate": 2713.5, + "Starship": "U.S.S. Enterprise (NC-1701)", + "Captain": "James T. Kirk", + "Log": [ + "Captain's Log, stardate 2713.5. In the distant reaches of our galaxy, we have made an astonishing discovery. Earth type radio signals coming from a planet which apparently is an exact duplicate of the Earth. It seems impossible, but there it is.", + "Captain's Log, stardate 2713.6. The building Miri led us to also housed an automatic transmission station, which sent out the signal that drew us to this planet. We also discovered something else. That the blues blotches, characteristic of the unknown disease had appeared on each of us, with the exception of Mister Spock. There was a well-equipped laboratory in the building. Doctor McCoy took tissue samples of each of us in an attempt to isolate the organism responsible.", + "Captain's Log. Doctor McCoy's biocomputer and a portable electronic microscope have been beamed down from the Enterprise. They will be used in conjunction with computer banks on-board ship.", + "Captain's Log, supplement. This is the second day of the seven left to us. We've found nothing. Enterprise is standing by with labs and computers ready to assist us.", + "Captain's Log, stardate 2717.3. Three days, seven hours left to us. Investigation proves that the supply of food in the area is running dangerously low. Unless something is done, the children will starve in a few months. The disease is working on each of us according to Doctor McCoy's prediction. Our tempers are growing short, and We're no further along than we were two days ago." + ] +} diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/2715-S01E11 Dagger Of The Mind.yaml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/2715-S01E11 Dagger Of The Mind.yaml @@ -0,0 +1,6 @@ +--- +Stardate: 2715.1 +Starship: "U.S.S. Enterprise (NC-1701)" +Captain: "James T. Kirk" +Log: + - "Captain's log, stardate 2715.2. Standard orbit, planet Tantalus V." diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/2817-S01E13 The Conscience of the King.toml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/2817-S01E13 The Conscience of the King.toml @@ -0,0 +1,10 @@ +Stardate = 2817.6 +Starship = "U.S.S. Enterprise (NC-1701)" +Captain = "James T. Kirk" +Logs = [ + "Captain's log, star date 2817.6. Starship Enterprise diverted from scheduled course. Purpose, to confirm discover by Doctor Thomas Leighton of an extraordinary new synthetic food which would totally end the threat of famine on Cygnia Minor, a nearby Earth colony.", + "Captain's log, stardate 2818.9. There are many questions in my mind, too many, perhaps, about the actor Karidian and his daughter. For personal reasons, I'm almost afraid to learn the answers.", + "Captain's log, stardate 2819.1. Ship's officer Riley's condition worsening. Doctor McCoy making lab analysis to determine cause and antidote. Entire crew deeply concerned.", + "Medical log. Lieutenant Riley's sufficiently recovered to be discharged, but the Captain's ordered him restricted to Sickbay to prevent contact with the passenger who calls himself Karidian and who's suspected of being Kodos the Executioner and of murdering the Lieutenant's family.", + "Captain's log, stardate 2819.8. Suspect under surveillance. Strategic areas under double guard. Performance of the Karidian Players taking place as scheduled." +] diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/2821-S01E14 The Galileo Seven.yaml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/2821-S01E14 The Galileo Seven.yaml @@ -0,0 +1,25 @@ +--- +Stardate: 2821.5 +Starship: "U.S.S. Enterprise (NC-1701)" +Captain: "James T. Kirk" +Logs: + - "Captain's Log, stardate 2821.5. On route to Makus Three with a cargo of +medical supplies. Our course leads us past Murasaki 312, a quasar-like +formation, vague, undefined. A priceless opportunity for scientific +investigation. On board is Galactic High Commissioner Ferris, overseeing the +deliver of the medicines to Makus Three." + - "Captain's Log, stardate 2821.7. The electromagnetic phenomenon known as +Murasaki Three Twelve whirls like some angry blight in space, a depressive +reminder that seven shipmates still have not been heard from. Equally bad, the +effect has rendered our normal searching systems useless. Without them, we are +blind and almost helpless." + - "Captain's Log, stardate 2822.3. We continue to search, but I find it +more difficult each moment to ward off a sense of utter futility and great +loss." + - "Captain's Log, stardate 2823.1. Our landing parties are on the surface +of Taurus Two. We continue to hope. Instruments are slowly returning to an +operable condition as the ion storm slowly disperses. On the ship, we can only +wait helplessly." + - "Captain's log, supplement. The search parties have returned to the +ship, and the Columbus is on its way back. I have been compelled to abandon +the search." diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/2947-S01E15 Court Martial.toml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/2947-S01E15 Court Martial.toml @@ -0,0 +1,10 @@ +Stardate = 2947.3 +Starship = "U.S.S. Enterprise (NC-1701)" +Captain = "James T. Kirk" +Logs = [ + "Captain's Log, Stardate 2947.3. We have been through a severe ion storm. One crewman is dead. Ship's damage is considerable. I have ordered a non-scheduled layover on Starbase Eleven for repairs. A full report of damages was made to the commanding officer of Starbase Eleven, Commodore Stone.", + "Captain's Log, Stardate 2948.5. Starship Enterprise remains in orbit around Starbase Eleven. Full repairs in progress. I've been ordered to stand by on Starbase Eleven until the inquiry into the death of Lieutenant Commander Finney can be conducted. I'm confident of the outcome.", + "Captain's Log, Stardate 2948.9. The officers who will comprise my court-martial board are proceeding to Starbase Eleven. Meanwhile, repairs on the Enterprise are almost complete.", + "Captain's Log, Stardate 2949.9. The evidence presented by the visual playback to my general court-martial was damning. I suspect even my attorney has begun to doubt me.", + "Captain's Log, Stardate 2950.1. After due consideration, the general court-martial has reconvened on board the Enterprise.", +] diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3012-S01E16 The Menagerie, part 1.toml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/3012-S01E16 The Menagerie, part 1.toml @@ -0,0 +1,9 @@ +Stardate = 3012.4 +Starship = "U.S.S. Enterprise (NC-1701)" +Captain = "James T. Kirk" +Log = [ + "Captain's log, stardate 3012.4. Despite our best efforts to disengage computers, the Enterprise is still locked on a heading for the mysterious planet Talos Four. Meanwhile, as required by Starfleet.", + "General Orders, a preliminary hearing on Lieutenant Commander Spock is being convened. And in all the years of my service, this is the most painful moment I've ever faced.", + "Captain's log, stardate 3012.6. General Court-Martial convened. Mister Spock has again waived counsel and has entered a plea of guilty.", + "Captain's log supplemental. Mister Spock, on trial for mutiny, has forced the court to accept unusual evidence. On our monitor screen, the voyage of Captain Pike and the Enterprise to the one forbidden world in all the galaxy." +] diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3012-S01E16b The Menagerie, part 2.toml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/3012-S01E16b The Menagerie, part 2.toml @@ -0,0 +1,7 @@ +Stardate = 3012.4 +Starship = "U.S.S. Enterprise (NC-1701)" +Captain = "James T. Kirk" +Logs = [ + "Personal log, stardate 3013.1. I find it hard to believe the events of the past twenty four hours or the plea of Mister Spock standing general court-martial.", + "Personal log, stardate 3013.2. Reconvening court-martial of Mister Spock and the strangest trial evidence ever heard aboard a starship. From the mysterious planet now only one hour ahead of us, the story of Captain Pike's imprisonment there." +] diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3025-S01E17 Shore Leave.json b/examples/logs/NCC-1701 USS Enterprise/2266–2269/3025-S01E17 Shore Leave.json @@ -0,0 +1,10 @@ +{ + "Stardate": 3025.3, + "Starship": "U.S.S. Enterprise (NC-1701)", + "Captain": "James T. Kirk", + "Logs": [ + "Captain's log. Stardate 3025 er, point 3. We are orbiting an uninhabited planet in the Omicron Delta region. A planet remarkably like Earth, or how we remember Earth to be. Park-like, beautiful, green, flowers, trees, green lawn, quiet and restful. Almost too good to be true.", + "Captain's log. Stardate 3025.8. Investigation of this increasingly unusual planet continues, and we are seeing things that cannot possibly exist, yet they are undeniably real.", + "Captain's log, supplemental. All contact with the Enterprise has been lost. We're trapped here. Our ship's surgeon, my personal friend, is dead. We're certain now that whatever we're facing is terribly real." + ] +} diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3045-S01E19 Arena.yaml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/3045-S01E19 Arena.yaml @@ -0,0 +1,8 @@ +--- +Stardate: 3045.6 +Starship: "U.S.S. Enterprise (NC-1701)" +Captain: "James T. Kirk" +Logs: + - "Captain's log, Stardate 3045.6 The Enterprise has responded to a call from Earth observation outpost on Cestus Three. On landing, we have discovered that the outpost has been destroyed." + - "Captain's log, supplement. We have beamed back to the Enterprise and immediately set out in pursuit of the alien vessel. It appears to be headed toward a largely unexplored section of the galaxy." + - "Captain's log, Stardate 3046.2. We are in hot pursuit of the alien vessel which destroyed the Earth outpost on Cestus Three." diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3087-S01E20 The Alternative Factor.yaml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/3087-S01E20 The Alternative Factor.yaml @@ -0,0 +1,7 @@ +Stardate: 3087.6 +Starship: "U.S.S. Enterprise (NC-1701)" +Captain: "James T. Kirk" +Logs: + - "Captain's log, stardate 3087.6. While investigating an uncharted planet, the Enterprise and at least this entire quadrant of space, has been subjected to violent, unexplained stress and force. Sensors have reported the presence of a human being on the planet below who might be connected with the phenomenon. With my first officer and a security team, I have set out in search of him." + - "Captain's log, stardate 3088.3. We continue to orbit the dead planet, which seems to be the source of the phenomenon which has struck the Enterprise and all sections of the galaxy once again. As for Lazarus, the story he tells me about the humanoid continues to trouble me." + - "Captain's log, stardate 3088.7. We are no closer to finding an answer to the strange phenomenon than we were at the beginning. Not only have two of my crewmen been attacked, two of our dilithium crystals are missing, and without them the Enterprise cannot operate at full power. They must be found." diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3113-S01E21 Tomorrow is Yesterday.yaml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/3113-S01E21 Tomorrow is Yesterday.yaml @@ -0,0 +1,9 @@ +Stardate: 3113.2 +Starship: "U.S.S. Enterprise (NC-1701)" +Captain: "James T. Kirk" +Logs: + - "Captain 's log Stardate 3113.2. We were en-route to Starbase 9 for resupply when a black star of high gravitational attraction began to drag us toward it. It required all warp power in reverse to pull us away from the star. But, like snapping a rubber band, the breakaway sent us plunging through space, out of control, to stop here, wherever we are." + - "Captain's log, supplemental. Engineering Officer Scott informs warp engines damaged, but can be made operational and reenergised." + - "Captain's Log Stardate 3113.7. Our engines are being repaired, but we are still locked in time, and we have aboard a passenger whom we do not want, and we cannot return." + - "Captain 's Log, Stardate 3113.9. First Officer Spock recording. Due to an unfortunate accident, we have taken aboard another unwanted passenger." + - "Captain's Log, Stardate 3114.1. We must make an attempt to break free of this time, or we and our reluctant passengers will remain its prisoners. All we have is a theory and a few facts." diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3134-S01E28 The City on the Edge of Forever.toml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/3134-S01E28 The City on the Edge of Forever.toml @@ -0,0 +1,7 @@ +Stardate = 3134.0 +Starship = "U.S.S. Enterprise (NC-1701)" +Captain = "James T. Kirk" +Logs = [ + "Captain's log, supplemental entry. Two drops of cordrazine can save a man's life. A hundred times that amount has just accidentally been pumped into Doctor McCoy's body. In a strange, wild frenzy, he has fled the ship's Bridge. All connecting decks have been placed on alert. We have no way of knowing if the madness is permanent or temporary, or in what direction it will drive McCoy.", + "Captain's log, no stardate. For us, time does not exist. McCoy, back somewhere in the past, has effected a change in the course of time. All Earth history has been changed. There is no starship Enterprise. We have only one chance. We have asked the Guardian to show us Earth's history again. Spock and I will go back into time ourselves and attempt to set right what ever it was that McCoy changed." +] diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3141-S01E24 Space Seed.yaml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/3141-S01E24 Space Seed.yaml @@ -0,0 +1,9 @@ +--- +Stardate: 3141.9 +Starship: "U.S.S. Enterprise (NC-1701)" +Captain: "James T. Kirk" +Logs: + - "Captain's log, stardate 3141.9. A full hour has elapsed since interception of the strange vessel. Our presence alongside is still being completely ignored. Although our sensors continue to show signs of equipment and life aboard, there has been no indication of danger to us." + - "Captain's log, supplemental. Alongside the SS Botany Bay for ten hours now. A boarding party of engineering and medical specialists are now completing their examination of the mysterious vessel. Attempts to revive other sleepers await our success or failure with the casualty already beamed over. Doctor McCoy is frankly amazed at his physical and recuperative power." + - "Stardate 3142.8. They have my ship, discarding their own worthless vessel. Only moments of air left on the Bridge now. Commendations recommended for Lieutenant Uhura, Technicians First Class Thule and Harrison, Lieutenant Spinelli and, of course, Mister Spock. I take full responsibility. I take full ..." + - "Captain's Log. Stardate 3143.3. Control of the Enterprise has been regained. I wish my next decisions were no more difficult. Khan and his people. What a waste to put them in a reorientation centre. And what do I do about McGivers?" diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3156-S01E22 The Return of The Archons.json b/examples/logs/NCC-1701 USS Enterprise/2266–2269/3156-S01E22 The Return of The Archons.json @@ -0,0 +1,10 @@ +{ + "Stardate": 3156.2, + "Starship": "U.S.S. Enterprise (NC-1701)", + "Captain": "James T. Kirk", + "Logs": [ + "Captain's Log. Stardate 3156.2. While orbiting planet Beta Three trying to find some trace of the starship Archon that disappeared here a hundred years ago, a search party consisting of two Enterprise officers were sent to the planet below. Mister Sulu has returned, but in a highly agitated mental state. His condition requires I beam down with an additional search detail.", + "Captain's log, stardate 3157.4. The Enterprise, still under attack by some sort of heat rays from the surface of Beta Three, is now being commanded by Engineering Officer Scott. The shore party has been taken by the creature called Landru.", + "Captain's log, stardate 3158.7 The Enterprise is preparing to leave Beta Three in Star system C One Eleven. Sociologist Lindstrom is remaining behind with a party of experts who will help restore the planet's culture to a human form." + ] +} diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3192-S01E23 A Taste of Armageddon.json b/examples/logs/NCC-1701 USS Enterprise/2266–2269/3192-S01E23 A Taste of Armageddon.json @@ -0,0 +1,11 @@ +{ + "Stardate": 3192.1, + "Starship": "U.S.S. Enterprise (NC-1701)", + "Captain": "James T. Kirk", + "Logs": [ + "Captain's log, stardate 3192.1. The Enterprise is en route to star cluster NGC 321. Objective, to open diplomatic relations with the civilisations known to be there. We have sent a message to Eminiar Seven, principal planet of the star cluster, informing them of our friendly intentions. We are awaiting an answer.", + "Captain's log, stardate 3192.5. Now in standard orbit around planet Eminiar Seven. My orders are clear. We must establish diplomatic relations at all cost. Preparing to beam down to planet surface.", + "Captain's log, delayed. The Enterprise, in orbit about Eminiar Seven, has been declared a casualty of an incredible war fought by computers. I and my landing party, though apparently not included as casualties aboard the Enterprise, are confined on the planet's surface, awaiting what?", + "Ship's log, stardate 3193.0. Chief Engineer Scott recording. The Captain and First Officer are overdue and missing on the surface of Eminiar Seven. I have taken standard precautionary measures while we continue our attempts to locate them." + ] +} diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3196-S01E26 The Devil In The Dark.toml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/3196-S01E26 The Devil In The Dark.toml @@ -0,0 +1,6 @@ +Stardate = 3196.1 +Starship = "U.S.S. Enterprise (NC-1701)" +Captain = "James T. Kirk" +Logs = [ + "Captain's log, stardate 3196.1. A distress call from the pergium production station on Janus Six has brought the Enterprise to that long-established colony. Mister Spock, Doctor McCoy, and I have beamed down to meet with Chief Engineer Vanderberg, administrative head of Janus Six." +] diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3198-S01E27 Errand of Mercy.json b/examples/logs/NCC-1701 USS Enterprise/2266–2269/3198-S01E27 Errand of Mercy.json @@ -0,0 +1,9 @@ +{ + "Stardate": 3198.4, + "Starship": "U.S.S. Enterprise (NC-1701)", + "Captain": "James T. Kirk", + "Logs": [ + "Captain's log, stardate 3198.4. We have reached Organia and established standard orbit. No signs of hostile activities in this area.", + "Captain's Log. stardate 3201.7. Mister Spock and I are trapped on the planet Organia, which is in the process of being occupied by the forces of the Klingon Empire. The Organians have provided us with native clothing in the hopes we may be taken for Organians." + ] +} diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3287-S01E29 Operation Annihilate.toml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/3287-S01E29 Operation Annihilate.toml @@ -0,0 +1,8 @@ +Stardate = 3287.2 +Starship = "U.S.S. Enterprise (NC-1701)" +Captain = "James T. Kirk" +Logs = [ + "Captain's log stardate 3287.2. The mass insanity we have tracked across this section of the galaxy seems to have already touched Deneva. That planet, colonised over a century ago, is one of the most beautiful in the galaxy.", + "Captain's log supplemental. Whatever the creatures are, they have apparently taken over all the inhabitants of Deneva. Meanwhile, ship's surgeon Doctor McCoy is examining a strange puncture wound left by one of the creatures on Mister Spock's back.", + "Captain's log, stardate 3289.8. I am faced with the most difficult decision of my life. Unless we find a way to destroy the creatures without killing their human hosts, my command responsibilities will force me to kill over a million people." +] diff --git a/examples/logs/NCC-1701 USS Enterprise/2266–2269/3417-S01E25 This Side of Paradise.yaml b/examples/logs/NCC-1701 USS Enterprise/2266–2269/3417-S01E25 This Side of Paradise.yaml @@ -0,0 +1,9 @@ +Stardate: 3417.3 +Starship: "U.S.S. Enterprise (NC-1701)" +Captain: "James T. Kirk" +Logs: + - "Captain's log, stardate 3417.3. We thought our mission to Omicron Ceti Three would be an unhappy one. We had expected to find no survivors of the agricultural colony there. Apparently, our information was incorrect." + - "Captain's log, supplemental. We have been ordered by Starfleet Command to evacuate the colony on Omicron Three. However, the colony leader, Elias Sandoval, has refused all co-operation and will not listen to any arguments." + - "Captain's log, stardate 3417.5. The pod plants have spread spores throughout the ship, carried by the ventilation system. Under their influence, my crew is deserting to join the Omicron colony, and I can't stop them. I don't know why I have not been infected, nor can I get Doctor McCoy to explain the physical-psychological aspects of the infection.<Paste>" + - "Captain's log, stardate 3417.7. Except for myself, all crew personnel have transported to the surface of the planet. Mutinied. Lieutenant Uhura has effectively sabotaged the communications station. I can only contact the surface of the planet. The ship can be maintained in orbit for several months, but even with automatic controls, I cannot pilot her alone. In effect, I am marooned here. I'm beginning to realise just how big this ship really is, how quiet. I don't know how to get my crew back, how to counteract the effect of the spores. I don't know what I can offer against paradise." + - "No. No! I can't leave! ... Emotions. Violent emotions. Needs. Anger. Captain's log, supplemental. I think I've discovered the answer, but to carry out my plan entails considerable risk. Mister Spock is much stronger than the ordinary human being. Aroused, his great physical strength could kill. But it's a risk I'll have to take." diff --git a/examples/project.toml b/examples/project.toml @@ -0,0 +1,3 @@ +Title = "Star Trek (The Original Series) Log Entries" +Description = "Transcriptions of all log entries in Star Trek TOS, sourced from http://www.chakoteya.net/StarTrek" +Author = "gearsix <gearsix@tuta.io>" diff --git a/examples/suti.cfg b/examples/suti.cfg @@ -0,0 +1,3 @@ +gd = project.toml +data = ./logs/ +datakey = logfiles diff --git a/examples/template/html.hmpl b/examples/template/html.hmpl @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <title>{{.Title}}</title> + <meta charset="UTF-8" /> + <meta name="author" content="{{.Author}}" /> + <meta name="description" content="{{.Description}}" /> + </head> + <body> + <h1>{{.Title}}</h1> + <p> + {{.Description}} + <address>{{.Author}}</address> + </p> + + <main>{{range $i, $l := .logfiles}} + <hr /> + <dl> + <dt><b>Stardate:</b></dt><dd>{{$l.Stardate}}</dd> + <dt><b>Starship:</b></dt><dd>{{$l.Starship}}</dd> + <dt><b>Captain:</b></dt><dd>{{$l.Captain}}</dd> + </dl> + {{range $nlogs, $log := $l.Logs}}<p>{{$log}}</p>{{end}} + {{end}}</main> + </body> +</html> diff --git a/examples/template/txt.mst b/examples/template/txt.mst @@ -0,0 +1,13 @@ +{{{Title}}} +{{{Description}}} +{{{Author}}} + +{{#logfiles}} +--- +Stardate: {{{Stardate}}} +Starship: {{{Starship}}} +Captain: {{{Captain}}} +{{#Logs}} + - {{{.}}} +{{/Logs}} +{{/logfiles}}