issue198:python
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue198:python [2023/10/28 15:58] – créée auntiee | issue198:python [2023/10/31 17:55] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Greetings fellow beings. I’m back again with more Python stuff. | + | **Greetings fellow beings. I’m back again with more Python stuff. |
As you might know, Python 3.12.0 was released on 2 October, 2023, bringing with it many new features and changes. One of the most welcome features is the more robust f-string parsing, that allows many things that would previously cause errors. I was originally planning on discussing the new release, but as I often do, I change plans. You can do an Internet search to find out more – until I get back to it. | As you might know, Python 3.12.0 was released on 2 October, 2023, bringing with it many new features and changes. One of the most welcome features is the more robust f-string parsing, that allows many things that would previously cause errors. I was originally planning on discussing the new release, but as I often do, I change plans. You can do an Internet search to find out more – until I get back to it. | ||
Ligne 5: | Ligne 5: | ||
Then I thought that I would revisit SpeechRecognition in Python, since it was almost four years ago that I first wrote about it in Full Circle. There have been many advancements and changes, especially in the offline API routines, and more added. I had started working with a couple of the new API packages and was pretty pleased with the results. | Then I thought that I would revisit SpeechRecognition in Python, since it was almost four years ago that I first wrote about it in Full Circle. There have been many advancements and changes, especially in the offline API routines, and more added. I had started working with a couple of the new API packages and was pretty pleased with the results. | ||
- | I was almost about to start the article when I heard from a friend with the handle of “Marvin”, | + | I was almost about to start the article when I heard from a friend with the handle of “Marvin”, |
- | I’ve always enjoyed crosswords and have wanted to try my hand at creating a crossword program for quite a while, but never took the time to get started. Something always comes up. | + | Bonjour à tous. Je suis de retour avec plus d' |
+ | |||
+ | Comme vous le savez peut-être, Python 3.12.0 a été publié le 2 octobre 2023, apportant avec lui de nombreuses nouvelles fonctionnalités et des changements. L'une des fonctionnalités les plus appréciées est l' | ||
+ | |||
+ | J'ai alors pensé revenir sur la reconnaissance de la parole en Python, puisque cela fait presque quatre ans que j'ai écrit pour la première fois à ce sujet dans le Full Circle. Il y a eu beaucoup d' | ||
+ | |||
+ | J' | ||
+ | |||
+ | |||
+ | **I’ve always enjoyed crosswords and have wanted to try my hand at creating a crossword program for quite a while, but never took the time to get started. Something always comes up. | ||
The third party program is named “Cursewords” and uses Blessed as its “display engine”. Intrigued, I did a web search for Cursewords and found it pretty quickly (https:// | The third party program is named “Cursewords” and uses Blessed as its “display engine”. Intrigued, I did a web search for Cursewords and found it pretty quickly (https:// | ||
- | The big problem is that the Cursewords distribution does not come with any puzzle files at all. This led me to do another web search for puzzles in the .puz format. I found a number of sites that had some puzzles, but many required some sort of subscription. Luckily, I not only installed Cursewords, but also downloaded the zip file from the github website. So I dug into the source code and found that it includes a module named “puz.py”. This, it turns out, is the module that reads the .puz file. Another web search turned up a python library called (remarkably enough) “puzpy” (https:// | + | The big problem is that the Cursewords distribution does not come with any puzzle files at all. This led me to do another web search for puzzles in the .puz format. I found a number of sites that had some puzzles, but many required some sort of subscription. Luckily, I not only installed Cursewords, but also downloaded the zip file from the github website. So I dug into the source code and found that it includes a module named “puz.py”. This, it turns out, is the module that reads the .puz file. Another web search turned up a python library called (remarkably enough) “puzpy” (https:// |
- | So, if you want to “hit the ground running'' | + | J'ai toujours aimé les mots croisés et je voulais essayer de créer un programme de mots croisés depuis un certain temps, mais je n'ai jamais pris le temps de commencer. Il y a toujours quelque chose qui arrive. |
+ | |||
+ | Le programme tiers s' | ||
+ | |||
+ | Le gros problème est que la distribution de Cursewords ne contient aucun fichier de mots croisés. Cela m'a amené à faire une autre recherche sur Internet pour trouver des puzzles au format .puz. J'ai trouvé un certain nombre de sites qui proposaient des puzzles, mais beaucoup d' | ||
+ | |||
+ | |||
+ | **So, if you want to “hit the ground running'' | ||
If you are curious about the actual Across Lite file format, originally there was no documentation for the file format. However, thanks to some curious programmers, | If you are curious about the actual Across Lite file format, originally there was no documentation for the file format. However, thanks to some curious programmers, | ||
Ligne 19: | Ligne 35: | ||
So that’s it for this month. Have a wonderful rest of the month. | So that’s it for this month. Have a wonderful rest of the month. | ||
- | Until next time, as always; stay safe, healthy, positive and creative! | + | Until next time, as always; stay safe, healthy, positive and creative!** |
+ | |||
+ | Donc, si vous voulez être opérationnel tout de suite et avoir des fichiers de puzzle pour Cursewords, allez simplement sur le dépôt github de puzpy et téléchargez le zip de la distribution. | ||
+ | |||
+ | Si vous êtes curieux de connaître le format du fichier Across Lite, sachez qu'il n' | ||
+ | |||
+ | C'est tout pour ce mois-ci. Je vous souhaite une excellente fin du mois. | ||
+ | |||
+ | Jusqu' | ||
issue198/python.1698501535.txt.gz · Dernière modification : 2023/10/28 15:58 de auntiee