I am thinking of an application to input text using Braille.
I'm thinking about Braille in Japanese.
Is it possible for Pythonisa?
@shinya.ta I don't think that you need to login
I got a stain on my test.
The conversion is OK, but how should I decide the Kanji that I decided?
@shinya.ta one step at a time, do not be in a hurry 😀
This little script was only to test the conversion.
It is not yet included in my future big script of the keyboard and the selection of the right kanji is not yet programmed.
Wait, wait and (perhaps) see
@shinya.ta To to go on with my script, I have an important question.
Your wife will
- tap the Braille dots,
- tap the ok button and she will get an Hiragana.
- after some hiragana's, she will tap a conversion button to convert the Hiragana's into a list of possible Kanji's
- as she is visually impaired, how could she be able to see the Kanji's and select one?
1.2.3. No problem.
- If you use Voice Over, there should be a detailed description of the letters.
After hearing a detailed description of Voice Over, then tapping the necessary letters.
@shinya.ta ok, you will test it when I will send you the first version...
Sorry if I'm slow but it not so easy (for me)
This program is still in development, this only to show I really work for you. It has surely a lot of little bugs but that is not very important actually. Please confirm that the general process is what you wait for or not.
It supports to be used as a custom keyboard in any app with TextInput but will need in this case Pythonista 3.3 beta version.
You can also run it in any version of Pythonista for testing purposes. In this case, the script will create a view with only a TextField and will try to simulate a custom keyboard.
The program contains bugs, for sure, I know it but they are well hidden 😢.
Thus, don't be afraid, the script is not yet fully operational and I post it only to allow you perform initial tests.
As the script becomes very complex (at least for me, poor old guy 👴🏻), I ask you, when you will describe a bug/problem/error to try to give a very detailed description of the problem you met, with an identification number. By example:
E1: "when I press several dots, the first one is sometimes lost"
(known bug, not yet corrected)
If you want to change or add a functionality, do the same. By example:
N1: "please (word not needed), add a delete button also for the Kanji's"
In this case, you have to try to describe where to put this button and how it should work.
Enjoy...and if sufficiently usable, ask your wife to test it also.
What the program already allows, even imperfectly
tap some red Braille dots, ex: here 1 and 6
the program shows, in gray, the hirgana and its tapped dots just under
to accept it, you press the "ok" button, bottom right
the program accepts the hirgana, and shows it in blue the box.
A 'conversion Hirgana to Kanji' button appears at left of Hirgana's
You may continue to add some Hirgana's, accept them until you are ready
you tap the conversion button
you receive the list of possible Kanji's relative to this combination of Hirgana's
you select the Kanji you want (I really dont't know to do that if visually impaired)
and finally, the selected Kanji is inserted in your TextField
New version with some corrections
# Version 0.1 # - bug corrected: delete when cursor in TextField shows old Hirganas # - bug corrected: tap ourside buttons was processed as invalid Braille dots # - bug corrected: conversion button disappears if conversion gives no Kanji # - bug corrected: hide conversion buttons if all hirganas deleted # - bug corrected: back after close (x), closed conversion db error # - bug corrected: back after close (x), hirganas not cleared # - bug corrected: ok button was even if dots combination was invalid # - new: delete button deletes in textfield if no Hirgana in progress
There's an error at three hundred thirty four, and it doesn't work. Why?
I am going out, so I tried it on iPhone.
I understand the error. It's solved.
As I thought, on iPhone, the buttons were displayed only in 1.2.3.
Where do you insert the revised version?
From V0.2, I'll invert the versions in the comments above, so the first line will show the version of the script.
@shinya.ta Which error did you find and how did you solve it? tell me so I'll correct the program
And what is the problem on iPhone ? Are only buttons 123 showed?
Please give an identification to each error, like
E1: buttons 456 not visible on iPhone model ...
I'll correct that today so dimensions will be automatic, promised 😔
I didn't know the program download on GitHub, so it was compatible with the copy and paste of the program.
I can't copy all of them, so I copied and paste them in two times.
When the second paste was the first one, there was a space in the front, and there was an error.
I'm sorry, but I made a mistake in typing.
use webview to navigate until a Github RAW file to download in Pythonista local files
of course, an url can be pasted in the url TextField
a download button will be enabled and has to be tapped
In a few hours, a new version will be available with automatic positions of Braille dots on all machines in Portrait or Landscape...
The problem of iPhone was only the display of the left side.
That's why the delete button on the left is also displayed.
@shinya.ta I know, will be corrected in a few hours. Sorry but (very important in Belgium 😀) lunch Time now
Did you try to download my download script and did you try to use it to download a bigger script?
# Version 0.2 # - bug corrected: back after close (x), gray hirgana was not cleared # - bug corrected: TextField not visible on iPhone # - bug corrected: automatic buttons dimensions and positions for # ipad/iphone portrait/landscape Pythonista/custom keyboard