
Bilingual Form HTML Generator
Reads a YAML file describing form fields and writes an HTML file with two language versions side by side, handling right-to-left scripts and font fallbacks.
The package includes example form definitions for school, medical, and government use. The files open in your own spreadsheet, calendar and text programs. Not medical, legal or financial advice. It helps you organise your own records and letters.
Not medical, legal or financial advice. It helps you organise your own records and letters.
$10.00 USD, one-time
Buying this pack gets you a licence to use it, not ownership of the files.
- Download right after payment, and by email.
- Runs on your own computer.
- Refund within 14 days, for any reason.
- Payment is handled by Stripe.
Terms of Sale · Buyer Licence · Refund Policy · Privacy Policy
What it does
Reads a YAML file describing form fields and writes an HTML file with two language versions side by side, handling right-to-left scripts and font fallbacks. The package includes example form definitions for school, medical, and government use. The files open in your own spreadsheet, calendar and text programs. Not medical, legal or financial advice. It helps you organise your own records and letters.
What's inside
- Bilingual Form HTML Generator: README.md, generator.py, gov_application.yaml, medical_intake.yaml, school_consent.yaml and 1 Python file.
With a README and the Teranite Facet Buyer Licence.
Sample
Bilingual Form HTML Generator
Reads a YAML file describing form fields and writes an HTML file with two language versions side by side, handling right-to-left scripts and font fallbacks. The package includes example form definitions for school, medical, and government use.
Files: README.md, generator.py, gov_application.yaml, medical_intake.yaml, school_consent.yaml. generator.py, start of the file:
import yaml
import os
def generate_html(yaml_file, output_file):
with open(yaml_file, 'r', encoding='utf-8') as f:
data = yaml.safe_load(f)
form_title = data.get('title', 'Form')
lang1 = data.get('lang1', {'code': 'en', 'name': 'English', 'dir': 'ltr'})
lang2 = data.get('lang2', {'code': 'ar', 'name': 'Arabic', 'dir': 'rtl'})
html_content = f'''<!DOCTYPE html>
<html lang="{lang1['code']}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{form_title}</title>
<style>
body {{ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, "Noto Sans", "Arial Unicode MS"; margin: 40px; background: #f4f4f9; color: #333; }}
.container {{ max-width: 1000px; margin: 0 auto; background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }}
h1 {{ text-align: center; border-bottom: 2px solid #eee; padding-bottom: 20px; }}
.form-grid {{ display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }}
.column {{ padding: 10px; }}
.rtl {{ direction: rtl; text-align: right; }}
.ltr {{ direction: ltr; text-align:Requirements
- A program that opens the file types listed.
- Checked: every file opens and parses, and any spreadsheet formulas compute in Microsoft Excel for Windows.
- Not opened in other programs.
Install
Unzip the download, then the zip inside it. Each folder inside holds one set of files; open or import them in your own programs and work on a copy.
Licence
One licence covers one person. Your finished work is yours. Do not share or resell the files.
How it is made
Facet Packs are made with Teranite's own software tools, some of them written with help from AI, and rendered or built by standard software. They contain no AI-generated images.
Support
Questions, or a fault: support
More from Tools
See allToolAudio Normalizer for Voice-OversOutputs processed WAV files with minimal clipping.$18.00View
ToolBird Ringing Schedule for UK RingersUpdates automatically from a CSV of past ringing sessions.$10.00View
Tool packCascade Deadline Shifter SheetsDeadline Chain Shifter, Cascade Deadline Shifter.$18.00View
ToolClient Retention Follow-up CalendarIt outputs an ICS file with reminders for each client's check-in window.$10.00View