Files
homepage/extract_crown.py
Alexander Bocken 6de3d76504 refactor: unify recipe routes into [recipeLang] slug with full bilingual support
Consolidate /rezepte and /recipes routes into single [recipeLang] structure to eliminate code duplication. All pages now use conditional API routing and reactive labels based on language parameter.

- Merge duplicate route structures into /[recipeLang] with 404 for invalid slugs
- Add English API endpoints for search, favorites, tags, and categories
- Implement language dropdown in header with localStorage persistence
- Convert all pages to use Svelte 5 runes (, , )
- Add German-only redirects (301) for add/edit pages
- Make all view pages (list, detail, filters, search, favorites) fully bilingual
- Remove floating language switcher in favor of header dropdown
2025-12-26 21:19:27 +01:00

39 lines
904 B
Python

#!/usr/bin/env python3
"""Extract crown emoji from Symbola font as SVG."""
import fontforge
import sys
# Path to Symbola font
font_path = "/usr/share/fonts/TTF/Symbola.ttf"
# Dove emoji Unicode codepoint
dove_codepoint = 0x1F54A # U+1F54A 🕊️
# Output SVG file
output_path = "dove.svg"
try:
# Open the font
font = fontforge.open(font_path)
# Select the dove glyph by Unicode codepoint
if dove_codepoint in font:
glyph = font[dove_codepoint]
# Export as SVG
glyph.export(output_path)
print(f"✓ Successfully extracted dove emoji to {output_path}")
print(f" Glyph name: {glyph.glyphname}")
print(f" Unicode: U+{dove_codepoint:04X}")
else:
print(f"✗ Dove emoji (U+{dove_codepoint:04X}) not found in font")
sys.exit(1)
font.close()
except Exception as e:
print(f"✗ Error: {e}")
sys.exit(1)