Untitled

mail@pastecode.io avatar
unknown
plain_text
4 months ago
4.5 kB
2
Indexable
from pptx import Presentation
from pptx.util import Inches
from pptx.enum.text import PP_ALIGN
from pptx.dml.color import RGBColor
from pptx.util import Pt

# Create a presentation object
prs = Presentation()

# Slide 1: Title Slide
slide_1 = prs.slides.add_slide(prs.slide_layouts[0])
title_1 = slide_1.shapes.title
subtitle_1 = slide_1.placeholders[1]

title_1.text = "Arnis: The Filipino Martial Art"
subtitle_1.text = "An Introduction to the Art of Stick Fighting"

# Slide 2: What is Arnis?
slide_2 = prs.slides.add_slide(prs.slide_layouts[1])
title_2 = slide_2.shapes.title
title_2.text = "What is Arnis?"

content_2 = slide_2.shapes.placeholders[1]
content_2.text = ("Arnis, also known as Eskrima or Kali, is a Filipino martial art that emphasizes "
                  "the use of sticks, knives, and other bladed weapons, as well as open-hand techniques. "
                  "It is a versatile and practical form of self-defense with deep cultural roots in the Philippines.")

# Slide 3: Historical Background
slide_3 = prs.slides.add_slide(prs.slide_layouts[1])
title_3 = slide_3.shapes.title
title_3.text = "Historical Background"

content_3 = slide_3.shapes.placeholders[1]
content_3.text = ("Arnis has a rich history that dates back to pre-colonial Philippines. "
                  "It was traditionally passed down orally and through practice, making it a crucial part of Filipino heritage. "
                  "The art evolved over time, influenced by Spanish colonization and other cultural interactions.")

# Slide 4: Basic Techniques
slide_4 = prs.slides.add_slide(prs.slide_layouts[1])
title_4 = slide_4.shapes.title
title_4.text = "Basic Techniques"

content_4 = slide_4.shapes.placeholders[1]
content_4.text = ("Arnis techniques can be categorized into several areas:\n"
                  "- Single Stick (Solo Baston)\n"
                  "- Double Stick (Doble Baston)\n"
                  "- Knife Techniques\n"
                  "- Empty Hand Techniques (Panantukan)\n"
                  "Each technique focuses on fluidity, speed, and precision.")

# Slide 5: Modern Arnis
slide_5 = prs.slides.add_slide(prs.slide_layouts[1])
title_5 = slide_5.shapes.title
title_5.text = "Modern Arnis"

content_5 = slide_5.shapes.placeholders[1]
content_5.text = ("In contemporary times, Arnis has gained international recognition and is practiced worldwide. "
                  "It has been adapted into various systems and is often incorporated into military and law enforcement training. "
                  "In 2009, Arnis was declared the national martial art and sport of the Philippines.")

# Slide 6: Benefits of Learning Arnis
slide_6 = prs.slides.add_slide(prs.slide_layouts[1])
title_6 = slide_6.shapes.title
title_6.text = "Benefits of Learning Arnis"

content_6 = slide_6.shapes.placeholders[1]
content_6.text = ("Learning Arnis offers numerous benefits:\n"
                  "- Improves hand-eye coordination\n"
                  "- Enhances physical fitness and reflexes\n"
                  "- Teaches practical self-defense skills\n"
                  "- Fosters discipline and mental focus\n"
                  "- Promotes cultural appreciation")

# Slide 7: Conclusion
slide_7 = prs.slides.add_slide(prs.slide_layouts[1])
title_7 = slide_7.shapes.title
title_7.text = "Conclusion"

content_7 = slide_7.shapes.placeholders[1]
content_7.text = ("Arnis is not just a martial art but a cultural treasure that embodies the spirit of the Filipino people. "
                  "Whether for self-defense, physical fitness, or cultural enrichment, Arnis offers valuable lessons for everyone. "
                  "Embrace the art, honor its traditions, and carry forward its legacy.")

# Adding images to the slides
img_path = '/mnt/data/arnis_img.jpg'  # Placeholder path, replace with an actual image path if available

# Slide 2: Add image
left = Inches(5)
top = Inches(1.5)
pic = slide_2.shapes.add_picture(img_path, left, top, height=Inches(3))

# Slide 4: Add image
left = Inches(5)
top = Inches(1.5)
pic = slide_4.shapes.add_picture(img_path, left, top, height=Inches(3))

# Slide 5: Add image
left = Inches(5)
top = Inches(1.5)
pic = slide_5.shapes.add_picture(img_path, left, top, height=Inches(3))

# Slide 7: Add image
left = Inches(5)
top = Inches(1.5)
pic = slide_7.shapes.add_picture(img_path, left, top, height=Inches(3))

# Save the presentation
file_path = "/mnt/data/Arnis_Presentation.pptx"
prs.save(file_path)

file_path
Leave a Comment