Posté le 19/05/2020 10:33
Planète Casio v4.3 © créé par Neuronix et Muelsaco 2004 - 2024 | Il y a 105 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
Citer : Posté le 19/05/2020 11:16 | #
This is a bit hard to understand, but I think I get the gist of it. This seems to be a standard approach. Could you specify the encoding that you're using? Also, what is your memory allocation strategy for lines of text?
Citer : Posté le 19/05/2020 12:12 | # | Fichier joint
That's NOT a code. That's the process of Editor.
(I atteched the file of image, and I will edit the file)
DL:
A Chinese text reader.
Citer : Posté le 19/05/2020 13:38 | #
You've lost me now, I don't understand anymore. The language is not easy to follow, too. Can you provide further detail (even if you have to repeat yourself a bit) to make sure the points get accross?
Citer : Posté le 19/05/2020 13:48 | #
If I understood well, this is an idea for a chinese text editor but he doesn't know how to make it in C (with the Casio SDK I guess), thus the "thinking" in the title for thoughts?
Citer : Posté le 19/05/2020 14:45 | #
I can guess that, but I definitely don't understand the "NOT a code". Also I think an image is missing?
Citer : Posté le 20/05/2020 15:42 | #
If I understood well, this is an idea for a chinese text editor but he doesn't know how to make it in C (with the Casio SDK I guess), thus the "thinking" in the title for thoughts?
Yes, it's CASIO SDK.
DL:
A Chinese text reader.
Citer : Posté le 20/05/2020 16:09 | #
Okay, so back to my original questions I suppose.
• How do you represent Chinese characters? Is that UTF-8? Is there another encoding? You describe a cursor that moves bytes but a Chinese character can't reasonably by a single byte.
• Do you have lines of fixed width or resizeable lines? Because the resizing should be taken in consideration while designing the cursor movement.
Citer : Posté le 21/05/2020 09:32 | #
How do you represent Chinese characters? Is that UTF-8? Is there another encoding? You describe a cursor that moves bytes but a Chinese character can't reasonably by a single byte.
That's not UTF-8, it's GB/T 2312 (can only display Chinese using A0-FE double bytes)
Do you have lines of fixed width or resizeable lines? Because the resizing should be taken in consideration while designing the cursor movement.
It's fixed width.
2. Chinese Text
As I know, GB/T 2312 has 6763 (Chinese characters) and 682 symbols. We use it from A1-FE zone of A1-FE which is called “机内码”. And the 00-7F is ASCII, so that’s easy to write.
The final code is:
Then If the “cursor minus 1th” is 0xA1-0xFE
Then save cursor minus 2 to cursor
Else save cursor minus 1 to cursor
Else if the key is RIGHT
Then If the “cursorth” is 0xA1-0xFE
Then save cursor plus 2 to cursor
Else save cursor plus 1 to cursor
Else if the key is DEL
Then If the “cursor minus 1th” is 0xA1-0xFE
Then join the string “0 to cursor minus 2 bytes of text” and “cursor to limit of text”
Else join the string “0 to cursor minus 1 bytes of text” and “cursor to limit of text”
Else join the string “0 to cursor minus 1 bytes of text”, “characters corresponding to the case” and “cursor to limit of text”
DL:
A Chinese text reader.
Citer : Posté le 21/05/2020 09:37 | #
I didn't know this encoding, thank you
It's looking nice. Do you need help writing the C program for this?
Citer : Posté le 23/05/2020 16:57 | #
Do you need help writing the C program for this?
DL:
A Chinese text reader.
Citer : Posté le 23/05/2020 17:10 | #
Well... do you have any existing codebase? Usually we help solve specific code problems or write small functions. Do you have any specific problem yet?
Citer : Posté le 23/05/2020 17:12 | #
So... I'll make a Python version.
DL:
A Chinese text reader.
Citer : Posté le 24/05/2020 11:48 | #
C.Basic for CG supports editing programs that contain built-in GB code, but it is limited.
Overclocking utilitaire Ftune/Ptune2/Ptune3 est également disponible.
Si vous avez des questions ou un rapport de bogue, n'hésitez pas à me le faire savoir.
Citer : Posté le 31/05/2020 17:41 | #
C.Basic for CG supports editing programs that contain built-in GB code, but it is limited.
DL:
A Chinese text reader.
Citer : Posté le 01/06/2020 08:53 | #
Please set the following settings in the setup.
Direct GB cnvt : On
Plain text file of GB code can be read by the built-in editor.
(extension is txt)
Overclocking utilitaire Ftune/Ptune2/Ptune3 est également disponible.
Si vous avez des questions ou un rapport de bogue, n'hésitez pas à me le faire savoir.
Citer : Posté le 07/06/2020 11:19 | #
Please set the following settings in the setup.
Direct GB cnvt : On
Plain text file of GB code can be read by the built-in editor.
(extension is txt)
DL:
A Chinese text reader.