DEV Community

Cover image for My own language for making PPT
DG
DG

Posted on

My own language for making PPT

I made my own language named DGSL. DGSL is a language in which you can write code for PPTs. Yeah all you need to do to make a PPT is write code rest is handled by DGSL.

Why to choose DGSL

DGSL is very human and easy to write and fulfills the purpose significantly. Ex:

presentation "DGSL — DG Slide Language"

theme
    style "modern"
    accent "#00D4FF"
    background "#080B12"

slide "Title"
    title "DGSL"
    subtitle "A simple PPT language"
    body "Write presentations as code. Compile them into editable PowerPoint."
    tag "MADE BY DG"

slide "The Problem"
    title "PowerPoint Can Be Painful"
    bullets
        - "Manually position every element"
        - "Repeat the same layouts"
        - "Hard to keep designs consistent"
        - "Changing a large deck takes time"

slide "The Idea"
    title "What Is DGSL?"
    body "DGSL is a presentation language designed to describe slides using simple, readable code."

    code
        presentation "My Deck"
        slide "Hello"
            title "Hello World"

slide "How It Works"
    title "From Code to Presentation"

    process
        step "1" title "Write" body "Create your presentation in DGSL"
        step "2" title "Compile" body "DGSL processes your source"
        step "3" title "Export" body "Generate an editable PPTX"

slide "Simple Syntax"
    title "A Slide Can Be This Simple"

    code
        slide "AI"
            title "Artificial Intelligence"
            subtitle "The future of computing"

    caption "Readable enough for humans. Structured enough for a compiler."

slide "More Than Text"
    title "Build Real Presentations"

    cards
        card "Slides" body "Create structured slide layouts"
        card "Layouts" body "Use reusable presentation patterns"
        card "Components" body "Cards, metrics, timelines and more"
        card "PPTX" body "Export to editable PowerPoint"

slide "Why DGSL?"
    title "Code Your Presentation"

    comparison
        left "Traditional"
        right "DGSL"

        row "Manual editing" "Declarative code"
        row "Repeated formatting" "Reusable structures"
        row "Hard to automate" "Compiler-friendly"
        row "Messy changes" "Edit the source"

slide "The Vision"
    title "Presentations as Code"
    body "DGSL aims to make presentations reproducible, programmable, and easier to generate."

    metrics
        metric "01" label "Write"
        metric "02" label "Compile"
        metric "03" label "Present"

slide "Closing"
    title "DGSL"
    subtitle "Presentations. Written as code."
    footer "MADE WITH DGSL"
Enter fullscreen mode Exit fullscreen mode

See the language is this simple.

How to compile PPTs using DGSL

I have made a PPT Engine that compiles DGSL code and runs.

Github Repo: https://github.com/scriptsnsenses-sys/ppt-makers
PPT MAKERS (the generating engine): https://ppt-makers.onrender.com

NOTE: The generating engine is hosted on Render and may take some time to start for the first request.

My discord community: Click here to join

Top comments (0)