Les membres ayant 30 points peuvent parler sur les canaux annonces, projets et hs du chat.
La shoutbox n'est pas chargée par défaut pour des raisons de performances. Cliquez pour charger.
Menu
Calculatrices
Graph 35 à 100
Graph 25+Pro/25+E/25+E II
Graph 35+USB/75(+E)/85/95 SD
Graph 100(+)
Classpad 300/330(+)
fx-CG 10/20 (Prizm)
Classpad 400(+E)
Graph 90+E
fx-92+ SC
Liens
¤ Vous cherchez une fonction ?
Utilitaires >> Graph 90+E >> Add-ins >> CGType
CGType
Version : 1.1 Taille : 84272 octets Ajouté le : 2026-01-21 14:32 Modifié le : 2026-01-25 11:32
Auteur et posteur :
JumpsushiHors ligneMembrePoints: 23 Défis: 0 Message
Planète Casio - Add-in Casio - CGType - JumpSushi - Calculatrices
Nombre de visites sur cette page : 275
Score au progrank : 15
Pas encore de note !
Vous devez être connecté(e) pour noter (inscription).
25 téléchargements | Soumettre un test


Description en français :

CGType transforme votre calculatrice Casio CG50/10/20 en un clavier USB HID pour saisir des expressions mathématiques en LaTeX. Connectez votre calculatrice à un PC via USB et utilisez son clavier physique pour entrer directement des formules mathématiques complexes dans n'importe quel éditeur de texte, éditeur LaTeX ou traitement de texte.
L'application propose deux modes : le Mode LaTeX, avec un éditeur d'équations arborescent de type vpam qui affiche votre expression au fur et à mesure que vous tapez (bien qu'il soit vraiment bâclé et en de nombreux points pire que l'original), et le Mode Pavé Numérique pour une saisie numérique rapide. Les expressions LaTeX sont générées automatiquement avec une syntaxe correcte pour les fractions, les exposants, les racines, les fonctions trigonométriques, etc. La calculatrice agit comme un clavier USB standard, elle est donc compatible avec toutes les applications sans nécessiter de logiciel spécifique sur votre ordinateur.
Vous pouvez appuyer sur shift + menu dans le mode LaTeX pour accéder à quelques paramètres.

(Le français n'étant pas ma langue maternelle, je m'excuse pour d'éventuelles erreurs.)

English description:

CGType transforms your Casio CG50/10/20 calculator into a USB HID keyboard for typing mathematical expressions in LaTeX. Connect your calculator to a PC via USB and use its physical keyboard to input complex math formulas directly into any text editor, LaTeX editor, or word processor.

The app features two modes: LaTeX Mode with a vpam-like tree-based equation editor that shows your expression as you type (though it's really botched and worse than the original in many ways), and Numpad Mode for quick numeric input. LaTeX expressions are generated automatically with proper syntax for fractions, exponents, roots, trig functions, and more. The calculator acts as a standard USB keyboard, so it works with any application without special software on your computer.

You may press shift + menu in the latex mode for some settings.


Hope you enjoy!


Commentaires :


LoieducodeEn ligneMembrePoints: 224 Défis: 6 Message
Posté le 22-01-2026 à 17:41 | #
Nice idea! As I'm on Linux however, I can't really test how the HID part works but the expression editor is pretty good

In case you're using gint: are you using the dev branch? There is a small bug with gint's USB stack, and, since lsusb reports that there is 1 bNumInterfaces (while USB's sample HID example shows 2), that could explain why it doesn't work
JumpsushiHors ligneMembrePoints: 23 Défis: 0 Message
Posté le 23-01-2026 à 03:27 | #
Indeed, I am using Gint but the main branch.
I'll take a look at the dev branch later next week, thanks for telling me

source code is here:
https://github.com/JumpSushi/CGType


LephenixnoirEn ligneAdministrateurPoints: 25684 Défis: 174 Message
Posté le 23-01-2026 à 11:41 | #
This looks amazing! I've wanted HID classes in gint for the longest time but never got around to writing them. If you're willing/interested in submitting a PR, I'd be more than happy to get into it and merge.
LoieducodeEn ligneMembrePoints: 224 Défis: 6 Message
Posté le 24-01-2026 à 13:17 | #
After some debugging, I've noticed that the problem (at least on Linux, but I believe MacOS would be similar) was that the HID report descriptor was never sent
HID is kind of annoying since you have to pay attention to special GET_DESCRIPTORS, which gint's API doesn't seem to let you do easily, so I guess it is time to write up a proper PR...
JumpsushiHors ligneMembrePoints: 23 Défis: 0 Message
Posté le 25-01-2026 à 11:29 | #
I had a quicklook in wireshark

it was because blength was set to 12 and not 9, and now it works

I was debugging for such a long time because I kept on running the wrong deploy script to my rpi...

but hey, atleast it works now
JumpsushiHors ligneMembrePoints: 23 Défis: 0 Message
Posté le 25-01-2026 à 11:30 | #
more specifically, i did the following:
HID descriptor struct padding → Changed to raw 9-byte array (dc_hid_raw)
Configuration descriptor → Excluded report descriptors (0x22) since they're fetched separately
HID descriptor handling → Added proper req_get_hid_descriptor() for (0x21) requests
Report descriptor handling → Added req_get_hid_report_descriptor() for (0x22) requests
LoieducodeEn ligneMembrePoints: 224 Défis: 6 Message
Posté le 25-01-2026 à 12:16 | #
Oh, and as a (nitpicky) side note, you should probably ask for a git.planet-casio.com account from @Lephenixnoir and move the gint-side changes to its own fork (and ideally the CGType code as its separate repository), as it would make attempts to merge much easier (and would also allow the community to just
giteapc install
it)

As for the padding, wouldn't the
GPACKED(1)
attribute have done the trick?


(I also feel like gint should have better support for unusual descriptor requests without having to code support for every class, but eh...)

Planète Casio v4.3 © créé par Neuronix et Muelsaco 2004 - 2026 | Il y a 156 connectés | Nous contacter | Qui sommes-nous ? | Licences et remerciements

Planète Casio est un site communautaire non affilié à Casio. Toute reproduction de Planète Casio, même partielle, est interdite.
Les programmes et autres publications présentes sur Planète Casio restent la propriété de leurs auteurs et peuvent être soumis à des licences ou copyrights.
CASIO est une marque déposée par CASIO Computer Co., Ltd