diff --git a/.gitignore b/.gitignore index bbb08866..1be7dd76 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,15 @@ .env_variables.json .DS_Store .env_shell.json -.env \ No newline at end of file +.env +dev/ +*.bat +*.ps1 +test_*.py +*_request.json +*_POST*.md +*_COMMANDS.md +*_SUMMARY.md +*_CAMBIOS*.md +PULL_REQUEST.md +QUICK_START*.md \ No newline at end of file diff --git a/CREAR_PULL_REQUEST.md b/CREAR_PULL_REQUEST.md new file mode 100644 index 00000000..490257fe --- /dev/null +++ b/CREAR_PULL_REQUEST.md @@ -0,0 +1,76 @@ +# Guía para Crear Pull Request + +## Paso 1: Crear Fork en GitHub + +1. Abre tu navegador y ve a: + ``` + https://github.com/stephengpope/no-code-architects-toolkit + ``` + +2. Haz clic en el botón **"Fork"** (arriba a la derecha, al lado de "Star") + +3. Espera a que GitHub cree tu fork. Esto creará: + ``` + https://github.com/gneuman/no-code-architects-toolkit + ``` + +## Paso 2: Configurar Remote y Push + +Una vez creado el fork, ejecuta estos comandos en PowerShell: + +```powershell +# Agregar tu fork como remote +git remote add fork https://github.com/gneuman/no-code-architects-toolkit.git + +# Verificar que se agregó correctamente +git remote -v + +# Push tu branch al fork +git push fork arabic-fonts-feature +``` + +## Paso 3: Crear Pull Request + +Después del push, GitHub te mostrará un link para crear el PR. O puedes: + +1. Ve a: https://github.com/stephengpope/no-code-architects-toolkit +2. GitHub mostrará un banner amarillo con "Compare & pull request" +3. O ve a: https://github.com/gneuman/no-code-architects-toolkit +4. Click en **"Pull requests"** → **"New pull request"** +5. Selecciona: + - **Base repository**: `stephengpope/no-code-architects-toolkit` (main) + - **Head repository**: `gneuman/no-code-architects-toolkit` (arabic-fonts-feature) +6. Completa el título y descripción del PR +7. Click en **"Create pull request"** + +## Título Sugerido para el PR: +``` +feat: Add Arabic font support with RTL rendering +``` + +## Descripción Sugerida: +```markdown +## Summary +This PR adds comprehensive support for Arabic fonts and Right-to-Left (RTL) text rendering in video captions. + +## Changes +- Added support for multiple Arabic fonts (Amiri, Cairo, Tajawal, Almarai, Scheherazade, NotoSansArabic) +- Implemented RTL text rendering for Arabic captions +- Added auto-detection of Arabic text for automatic RTL handling +- Fixed highlight style to correctly display sequential word highlighting in RTL mode +- Updated font detection to support local fonts directory on Windows +- Added font name to output filename (captioned_{fontname}.mp4) + +## Testing +- Tested with multiple Arabic fonts +- Verified RTL rendering works correctly +- Tested on Windows local environment + +## Files Changed +- `routes/v1/video/caption_video.py` - Added RTL parameter to schema +- `services/ass_toolkit.py` - Implemented RTL logic and auto-detection +- `services/caption_video.py` - Updated font detection and output filename +- `fonts/*.ttf` - Added 27 Arabic font files +- `.gitignore` - Updated to exclude development files +``` + diff --git a/fonts/Almarai-Bold.ttf b/fonts/Almarai-Bold.ttf new file mode 100644 index 00000000..3713a468 Binary files /dev/null and b/fonts/Almarai-Bold.ttf differ diff --git a/fonts/Almarai-ExtraBold.ttf b/fonts/Almarai-ExtraBold.ttf new file mode 100644 index 00000000..aecbef1b Binary files /dev/null and b/fonts/Almarai-ExtraBold.ttf differ diff --git a/fonts/Almarai-Light.ttf b/fonts/Almarai-Light.ttf new file mode 100644 index 00000000..b4093bdc Binary files /dev/null and b/fonts/Almarai-Light.ttf differ diff --git a/fonts/Almarai-Regular.ttf b/fonts/Almarai-Regular.ttf new file mode 100644 index 00000000..1ce664a9 Binary files /dev/null and b/fonts/Almarai-Regular.ttf differ diff --git a/fonts/Amiri-Bold.ttf b/fonts/Amiri-Bold.ttf new file mode 100644 index 00000000..017afa9a Binary files /dev/null and b/fonts/Amiri-Bold.ttf differ diff --git a/fonts/Amiri-BoldItalic.ttf b/fonts/Amiri-BoldItalic.ttf new file mode 100644 index 00000000..9ddad061 Binary files /dev/null and b/fonts/Amiri-BoldItalic.ttf differ diff --git a/fonts/Amiri-Italic.ttf b/fonts/Amiri-Italic.ttf new file mode 100644 index 00000000..df72bf38 Binary files /dev/null and b/fonts/Amiri-Italic.ttf differ diff --git a/fonts/Amiri-Regular.ttf b/fonts/Amiri-Regular.ttf new file mode 100644 index 00000000..14dfa0d6 Binary files /dev/null and b/fonts/Amiri-Regular.ttf differ diff --git a/fonts/Cairo-Black.ttf b/fonts/Cairo-Black.ttf new file mode 100644 index 00000000..e371ab66 Binary files /dev/null and b/fonts/Cairo-Black.ttf differ diff --git a/fonts/Cairo-Bold.ttf b/fonts/Cairo-Bold.ttf new file mode 100644 index 00000000..041abaf6 Binary files /dev/null and b/fonts/Cairo-Bold.ttf differ diff --git a/fonts/Cairo-ExtraBold.ttf b/fonts/Cairo-ExtraBold.ttf new file mode 100644 index 00000000..4fc547de Binary files /dev/null and b/fonts/Cairo-ExtraBold.ttf differ diff --git a/fonts/Cairo-ExtraLight.ttf b/fonts/Cairo-ExtraLight.ttf new file mode 100644 index 00000000..8d9e787b Binary files /dev/null and b/fonts/Cairo-ExtraLight.ttf differ diff --git a/fonts/Cairo-Light.ttf b/fonts/Cairo-Light.ttf new file mode 100644 index 00000000..7e0f9427 Binary files /dev/null and b/fonts/Cairo-Light.ttf differ diff --git a/fonts/Cairo-Medium.ttf b/fonts/Cairo-Medium.ttf new file mode 100644 index 00000000..5b8d0f70 Binary files /dev/null and b/fonts/Cairo-Medium.ttf differ diff --git a/fonts/Cairo-Regular.ttf b/fonts/Cairo-Regular.ttf new file mode 100644 index 00000000..36ac46bf Binary files /dev/null and b/fonts/Cairo-Regular.ttf differ diff --git a/fonts/Cairo-SemiBold.ttf b/fonts/Cairo-SemiBold.ttf new file mode 100644 index 00000000..fd01d422 Binary files /dev/null and b/fonts/Cairo-SemiBold.ttf differ diff --git a/fonts/NotoSansArabicUI-VariableFont_wdth,wght.ttf b/fonts/NotoSansArabicUI-VariableFont_wdth,wght.ttf new file mode 100644 index 00000000..7852c6ee Binary files /dev/null and b/fonts/NotoSansArabicUI-VariableFont_wdth,wght.ttf differ diff --git a/fonts/ScheherazadeNew-Bold.ttf b/fonts/ScheherazadeNew-Bold.ttf new file mode 100644 index 00000000..eaff105b Binary files /dev/null and b/fonts/ScheherazadeNew-Bold.ttf differ diff --git a/fonts/ScheherazadeNew-Regular.ttf b/fonts/ScheherazadeNew-Regular.ttf new file mode 100644 index 00000000..c096711b Binary files /dev/null and b/fonts/ScheherazadeNew-Regular.ttf differ diff --git a/fonts/Tajawal-Black.ttf b/fonts/Tajawal-Black.ttf new file mode 100644 index 00000000..eed4f4f3 Binary files /dev/null and b/fonts/Tajawal-Black.ttf differ diff --git a/fonts/Tajawal-Bold.ttf b/fonts/Tajawal-Bold.ttf new file mode 100644 index 00000000..71e1488e Binary files /dev/null and b/fonts/Tajawal-Bold.ttf differ diff --git a/fonts/Tajawal-ExtraBold.ttf b/fonts/Tajawal-ExtraBold.ttf new file mode 100644 index 00000000..e5abae90 Binary files /dev/null and b/fonts/Tajawal-ExtraBold.ttf differ diff --git a/fonts/Tajawal-ExtraLight.ttf b/fonts/Tajawal-ExtraLight.ttf new file mode 100644 index 00000000..ae6cba8a Binary files /dev/null and b/fonts/Tajawal-ExtraLight.ttf differ diff --git a/fonts/Tajawal-Light.ttf b/fonts/Tajawal-Light.ttf new file mode 100644 index 00000000..a3daa165 Binary files /dev/null and b/fonts/Tajawal-Light.ttf differ diff --git a/fonts/Tajawal-Medium.ttf b/fonts/Tajawal-Medium.ttf new file mode 100644 index 00000000..96dee541 Binary files /dev/null and b/fonts/Tajawal-Medium.ttf differ diff --git a/fonts/Tajawal-Regular.ttf b/fonts/Tajawal-Regular.ttf new file mode 100644 index 00000000..d23d25b8 Binary files /dev/null and b/fonts/Tajawal-Regular.ttf differ