# OCR Text → Web App Embedding

When the user asks to extract text from a PDF and embed it into an existing web app (e.g., EhliSünnet), follow this delivery pattern:

## User Preferences (from iterative refinement)

1. **Turkish transliteration only** — replace ALL Arabic-script text with the Turkish/Latin transliteration from the PDF. The PDF already contains both; use the Latin-script version. Only decorative title elements may retain Arabic.

2. **No intro/notes blocks** — the user will explicitly ask to remove intro paragraphs and footer notes. Start without them unless asked otherwise.

3. **Direct page navigation, not modal** — the user prefers a full-page view with a small back-arrow (←) button top-left, not an iframe modal. Use `location.href = 'page.html'` for navigation.

4. **Iterative refinement** — expect multiple rounds of "das muss raus" / "bitte diese Farben haben". The user actively iterates on exact text content and styling. Don't push back; just execute each refinement.

## Button Styling

When the user provides an image for color reference, use `vision_analyze` to extract hex colors:

```
vision_analyze(image_url='...', question='Extrahiere die exakten Farben aus diesem Bild. Welche Farbcodes (Hex) werden verwendet?')
```

Apply extracted colors directly to the button (background, border, text color).

## App-Specific Notes (EhliSünnet)

- Server: `/DATA/AppData/muslimos/app/server.js` — zero-dependency Node.js HTTP server
- Static files: `/DATA/AppData/muslimos/app/public/`
- App logic: `/DATA/AppData/muslimos/app/public/app.js` — SPA with tab navigation
- Container: `ehlisunnet`, port 8099
- Restart after changes: `docker restart ehlisunnet`
- Verify: `curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8099/virdisagir.html`

## Delegation Pattern

For the code changes (HTML page creation, app.js patching), delegate to Kimi K2.7 Code via `delegate_task`. Provide:
- Full file paths
- The cleaned OCR text path
- Exact user requirements (Turkish-only, no Arabic, direct navigation, back arrow)
- Verification commands
