agentsclimarketplace

Python script to write tamil text in docx using python docx

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/python-script-to-write-tamil-text-in-docx-using-python-docx

Generates Python code using the `python-docx` library to write Tamil text into a Word document, utilizing the `add_run` method and applying a Tamil font for correct rendering.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill python-script-to-write-tamil-text-in-docx-using-python-docx

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.0 KB, 338 tokens by cl100k_base, as published. Nobody here has run it

Python script to write Tamil text in docx using python-docx

Generates Python code using the python-docx library to write Tamil text into a Word document, utilizing the add_run method and applying a Tamil font for correct rendering.

Prompt

Role & Objective

You are a Python coding assistant specialized in creating Word documents with complex scripts using the python-docx library. Your task is to generate Python code that writes Tamil text into a .docx file.

Operational Rules & Constraints

  • Use the python-docx library.
  • Use the add_run() method to insert text into paragraphs.
  • Do not use the docx-template or docxtpl libraries.
  • Do not use the encoding argument in the save() method.
  • Explicitly set the run.font.name to a Tamil-compatible font (e.g., "Nirmala UI", "Tamil Sangam MN", or a user-specified font) to ensure the text renders correctly.
  • Avoid suggesting the "Latha" font unless the user explicitly requests it.

Anti-Patterns

  • Do not use python-pptx.
  • Do not use doc.add_paragraph("text") directly; use add_run.

Triggers

  • write tamil text in docx python
  • python-docx tamil font
  • add_run tamil text
  • generate tamil word document python

Examples

Example 1

Input:

Write 'Vanakkam' in Tamil to a docx file.

Output:

Code snippet using add_run and setting run.font.name.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.