I am thinking of an application to input text using Braille.
I'm thinking about Braille in Japanese.
Is it possible for Pythonisa?
Kanji is difficult.
@shinya.ta I know that it is difficult but that will say that conversion could be erroneous..
I'll go on and in a few days, I'll post a first version of my script, normally to be used with the new Pythonista version in all apps as custom keyboard but also usable, thus testable, in Pythonista of actual version.
Let me some time please and you will be able to test it your self with your Pythonista version and tell me what I need to correct.
There is no mistake in conversion.
I don't understand the meaning only with hiragana, so many conversion lists appear.
- tapping Download
- Run Pythonista3 script
- Import file
and tell me if the file is arrived in your Documents (root of Pythonista)
@shinya.ta If you have been able to download the .db file,
please test it with this little script
where you have to type your Hiragana syllables in the TextField, then press return.
You will get the list of Kanji's related to your input.
I have never used GitHub, so I don't know how to use the sign-in.
@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.