Skip to content

Ejecuta pospell con un comentario en el PR #1825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ jobs:
- name: Instalar dependencias
run: |
sudo apt-get update
sudo apt-get install -y hunspell hunspell-es gettext
sudo apt-get install -y hunspell hunspell-es gettext language-pack-es
python -m pip install -r requirements.txt
pip list
pospell --version
powrap --version
- name: TRANSLATORS
run: |
diff -Naur TRANSLATORS <(LANG=es python scripts/sort.py < TRANSLATORS)
- name: Powrap
run: powrap --check --quiet **/*.po
- name: Pospell
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/pospell-on-demand.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: pospell
on:
issue_comment:
types:
- edited
- created

jobs:
fix-spell:
name: Fix spelling
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && github.event.comment.body == 'pospell-fix' }}
steps:
- name: Confirmar ejecucion
uses: actions/github-script@v6
with:
script: |
await github.rest.issues.createForIssueComment({
context.repo.owner,
context.repo.repo,
comment_id: context.payload.comment.id,
content: "+1",
});
- uses: actions/checkout@v3
- name: Preparar Python v3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- name: Instalar dependencias
run: |
sudo apt-get update
sudo apt-get install -y hunspell hunspell-es gettext
python -m pip install -r requirements.txt
- name: Ejecutar Powrap
run: powrap --quiet **/*.po
- name: Revisar con Pospell
run: python scripts/check_spell.py
continue-on-error: true
- name: Commit & Push changes
uses: actions-js/push@master
with:
message: "auto: spell check"
github_token: ${{ secrets.GITHUB_TOKEN }}
58 changes: 58 additions & 0 deletions .overrides/logo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
README
======

Introducción
------------

Este README describe la técnica utilizada en Inkscape para generar
el logo de python-docs-es con el nombre de todos los traductores.

La tecnica se llama a veces "Text portrait" y consiste simplemente
en utilizar una imagen como mascara para un texto. Muchos tutoriales
en línea explican el proceso de forma mas o menos completa.

Los archivos `ready-centered.svg` y `ready-fullpage.svg` ya tienen
la tecnica aplicada sobre la imágen de una letra "ñ".

La lista de todos los traductores está en el archivo `./TRANSLATORS`.
Lo ideal es transformar los `\n` en espacios poder copiar y pegar.
Por ejemplo: `$ cat TRANSLATORS | tr '\n' ' ' `


Modificar la lista de traductores
---------------------------------

Si sólo se quiere modificar la lista de traductores:

0. En Inkscape abrir uno de los archivos SVG (`ready-centered.svg` o `ready-fullpage.svg`)
1. Abrir el panel de objetos (`Object`/`Objects...`).
2. Seleccionar el objeto `text`
3. Abrir el panel de texto (`Text`/`Text and fonts...` o `Shift`+`Ctrl`+`T`)
4. Elegir el tabs `Text` del panel de texto
5. Remplazar el contenido y cliquear `Apply`

Si el texto es mas corto o mas largo, para que el texto ocupe toda la imágen
puede que haya que adaptar la fuente utilizada (fuente, tamaño, espaciado, ...).


Modificar la imágen
-------------------

Si se quiere modificar la imágen utilizada:

0. En Inkscape abrir uno de los archivos SVG (`ready-centered.svg` o `ready-fullpage.svg`)
1. Abrir el panel de objetos (`Object`/`Objects...`)
2. Seleccionar el objeto `text`
3. Elegir la opción `Object`/`Mask`/`Release` para "soltar" la máscara utilizada
4. En el panel de objetos, aparece un grupo (`gXXXXX`) con la la ñ y un fondo gris
5. Eliminar u ocultar el grupo
6. Agregar la nueva imágen a utilizar (via Drag and Drop o `File`/`Import...`)
7. Aseguarse que la imágen tiene el mismo tamaño que el texto:
a. Seleccionar el objeto texto -> `Ctrl`+`C`
b. Seleccionar la imágen agregada -> `Edit`/`Paste Size`/`Paste Size`
8. Centrar la imágen sobre la página (panel `Object`/`Align and Distribute`)
9. En el panel de objetos, seleccionar la imágen y luego el texto
10. Setear la máscara con `Object`/`Mask`/`Set`

En las partes oscuras de la imágen aparece el texto claro y viceversa.
Puede que sea necesario ajustar la imágen para obtener un buen resultado.
526 changes: 526 additions & 0 deletions .overrides/logo/ready-centered.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
526 changes: 526 additions & 0 deletions .overrides/logo/ready-fullpage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading