Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Agregar script para crear dict.txt#1059

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
cmaureir merged 4 commits intopython:3.8fromcmaureir:create_auto_dict
Dec 3, 2020

Conversation

cmaureir
Copy link
Collaborator

Usuarios en Windows, que no utilizan Git bash no pueden generar el
archivodict.txt, pues no tienen acceso al comando 'awk'.
Si bien, la construcción de toda la documentación no es necesaria,
este paso es importante incluso cuando se quiere hacer la verificación
pospell a un archivo determinado, pues necesitamos el diccionario
general que incluye todas las variaciones de 'dictionaries/'
y 'dict'.

Usuarios en Windows, que no utilizan Git bash no pueden generar elarchivo `dict.txt`, pues no tienen acceso al comando 'awk'.Si bien, la construcción de toda la documentación no es necesaria,este paso es importante incluso cuando se quiere hacer la verificaciónpospell a un archivo determinado, pues necesitamos el diccionariogeneral que incluye todas las variaciones de 'dictionaries/'y 'dict'.
Copy link
Contributor

@mondejamondeja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

¿Qué te parecen estos pequeños cambios en el script?

@cmaureir
Copy link
CollaboratorAuthor

En realidad deberíamos usarpathlib, pero como quería hacer algo simple, uséos.
glob está bastante en desuso, con lo que por tus sugerencias, voy a subir una nueva versión conpathlib,
gracias.

Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com>
@cmaureircmaureir marked this pull request as draftOctober 11, 2020 19:37
@cmaureir
Copy link
CollaboratorAuthor

Tengo que testear en Windows y macOS y lo convierto a 'ready for review'

@cmaureircmaureir added the hacktoberfest-acceptedmantainer-approved contribution to hacktoberfest labelOct 31, 2020
@cmaureircmaureir marked this pull request as ready for reviewOctober 31, 2020 23:19
Copy link

@BgeninattiBgeninatti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@cmaureir

No soy muy entendido sobre la parte de Travis, pero hice un comentario sobre el script de python.

Gracias por el aporte!

# Read custom dictionaries
for filename in Path("dictionaries").glob("*.txt"):
with open(filename, "r") as f:
lines = [i.rstrip() for i in f.readlines()]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Que te parece hacerlo case insensitive?
y hacer

lines = [i.rstrip().lower() for i in f.readlines()]

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Lo habíamos discutido antes de implementar lo dedictionaries/ pero al final el tema fue que si algo decía por ejemplo lathe PythonClassImportantBla y alguien lo deja comola pythonclassimportantbla no iba a dejar un error, entonces lo mismo ocurre cuando algo que comienza despues de un punto o un párrafo.

Copy link
Contributor

@mondejamondeja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Me parece que está perfecto 👍

@cmaureir
Copy link
CollaboratorAuthor

Gracias por sus approvals@mondeja@eamanu, hacemos el merge entonces :)

mondeja reacted with hooray emoji

@cmaureircmaureir merged commitfa0d4fe intopython:3.8Dec 3, 2020
@cmaureircmaureir deleted the create_auto_dict branchDecember 3, 2020 16:33
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@BgeninattiBgeninattiBgeninatti requested changes

@eamanueamanueamanu approved these changes

@mondejamondejamondeja approved these changes

Assignees
No one assigned
Labels
hacktoberfest-acceptedmantainer-approved contribution to hacktoberfest
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@cmaureir@Bgeninatti@eamanu@mondeja

[8]ページ先頭

©2009-2025 Movatter.jp