omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Flick button keyboard.

    Pythonista
    5
    491
    7889
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • shinya.ta
      shinya.ta @cvp last edited by

      @cvp
      I'm sorry. I've got the wrong word.
      I put it in the folder "Emoji keyboard. py".

      cvp 1 Reply Last reply Reply Quote 0
      • shinya.ta
        shinya.ta @cvp last edited by

        @cvp

        When I opened "Emoji keyboard. py", only a few buttons were displayed, and when I closed the application, a sentence like this appeared.

        “Traceback (most recent call last):
        File "/private/var/mobile/Containers/Shared/AppGroup/ 263EB98D-49AC-45A8-9637-2EF523D820AC/Pythonista3/

        Documents/custom-keyboard/Emojis Keyboard. py' line 119,
        in dimensions

        long_press (b, long_press_handler)
        NameError: name
        'long_press is not defined”

        cvp 1 Reply Last reply Reply Quote 0
        • cvp
          cvp @shinya.ta last edited by cvp

          @shinya.ta when you say folder, you mean "file"? 😭

          Please, let us be serious:

          1. copy and paste Emojis keyboard.py in the same file name
          2. copy and paste gestures.py in the same file name

          And both files in th same folder, like the Pythonista's root

          I've just tried to install both files on my iPhone and all is like I expect ...

          1 Reply Last reply Reply Quote 0
          • cvp
            cvp @shinya.ta last edited by cvp

            @shinya.ta said

            'long_press is not defined”

            That will say that you did not create a gestures.py with the right content in the same folder

            shinya.ta 1 Reply Last reply Reply Quote 0
            • shinya.ta
              shinya.ta @cvp last edited by

              @cvp said:

              @shinya.ta Could you test this version of Emojis Keyboard.py, and tell me if the A button works as a flick button when you tap it with a long press.

              Important: the modified script imports a gestures module that you have to download from https://github.com/mikaelho/pythonista-gestures/blob/master/gestures.py and to save in your site-packages folder.

              Of course, this is only a test to check if I have correctly understood what you ask, thus don't hope to find here the solution.
              If it is ok, you would have to give me a full description of wanted keys and their content when flicked.

              Only tested on iPad

              Long press on A key gives

              Moving finger on E key gives

              I've finally made it this far.
              The test is OK.
              The order of the buttons is "A" in the middle, "B" on the left, "C" on the top, "D" on the right, and "E" on the bottom.
              In Japanese, "A", "あ", "B", "い", "C", "う", "D", "え", "E" and "お".

              cvp 1 Reply Last reply Reply Quote 0
              • shinya.ta
                shinya.ta @cvp last edited by

                @cvp
                Also, "Voice Over" doesn't work after the text is displayed. It doesn't read out the button.
                "Voice Over" is important. "A" is read aloud, but the following "B, C, D, E" is not read.

                cvp 3 Replies Last reply Reply Quote 0
                • cvp
                  cvp @shinya.ta last edited by

                  @shinya.ta said

                  I've finally made it this far.

                  Ok, we are a step more. Now, as gestures.py is installed, next steps would be easier with only several new versions of Emojis keyboard.py.

                  I'll display a version (at right, you will see) of the script so we will always be sure we speak about the same code.

                  Most important, at this stage, is to be sure I understood what flicking is for you.

                  1 Reply Last reply Reply Quote 0
                  • cvp
                    cvp @shinya.ta last edited by

                    @shinya.ta said

                    Also, "Voice Over" doesn't work after the text is displayed. It doesn't read out the button.
                    "Voice Over" is important. "A" is read aloud, but the following "B, C, D, E" is not read.

                    First bug of my side, I'm also authorized to do some bugs, not only you (joke 😂)

                    1 Reply Last reply Reply Quote 0
                    • cvp
                      cvp @shinya.ta last edited by

                      @shinya.ta new version V00.01, https://raw.githubusercontent.com/cvpe/Pythonista-scripts/master/Emojis%20Keyboard.py

                      shinya.ta 1 Reply Last reply Reply Quote 0
                      • cvp
                        cvp @shinya.ta last edited by cvp

                        @shinya.ta said

                        Also, "Voice Over" doesn't work after the text is displayed. It doesn't read out the button.
                        "Voice Over" is important. "A" is read aloud, but the following "B, C, D, E" is not read.

                        I've to admit that I don't know anything about Voice Over and I don't remember all what I've eventually learned two years ago
                        Which settings I have to set on my IPhone.

                        Anyway, you say that "A" is read aloud. But there are two ways to generate the "A":

                        • when you tap the key
                        • when you have a long press and that your move ends on the "A"
                          Did you try both ways and which one(s) do Speech the "A"?
                        shinya.ta 2 Replies Last reply Reply Quote 0
                        • shinya.ta
                          shinya.ta @cvp last edited by

                          @cvp
                          I'm sorry. English is too difficult for me to understand.

                          cvp 1 Reply Last reply Reply Quote 0
                          • cvp
                            cvp @shinya.ta last edited by cvp

                            @shinya.ta which part of my message? Do you never copy an English text in Google Translate app and ask it to translate in Japanese.

                            Anyway, there is a new version of Emojis Keyboard.py with two flicking keys in Japanese

                            1 Reply Last reply Reply Quote 0
                            • shinya.ta
                              shinya.ta @cvp last edited by

                              @cvp
                              I read only the first tap. I don't read at all when I move.

                              1 Reply Last reply Reply Quote 0
                              • shinya.ta
                                shinya.ta @cvp last edited by

                                @cvp said:

                                @shinya.ta new version V00.01, https://raw.githubusercontent.com/cvpe/Pythonista-scripts/master/Emojis%20Keyboard.py

                                I'm sorry. I understand it after I translate it on Google. There are times when I don't understand the meaning because it's too literal translation.

                                I have tried this version. Only the first letter is read aloud, and the moved letter is not read.

                                cvp 1 Reply Last reply Reply Quote 0
                                • cvp
                                  cvp @shinya.ta last edited by

                                  @shinya.ta Anyway, I don't remember how does voice over works. Do you need to type twice on a key? And how if long press?

                                  shinya.ta 1 Reply Last reply Reply Quote 0
                                  • shinya.ta
                                    shinya.ta @cvp last edited by

                                    @cvp
                                    You need to tap two times. After that, you need to select characters in a long press state, but you don't read during that time.

                                    cvp 1 Reply Last reply Reply Quote 0
                                    • cvp
                                      cvp @shinya.ta last edited by

                                      @shinya.ta after the long press and the move on a character, when the finger leaves the screen, the letter is inserted and readout . Do you want the letter becomes said when letter becomes blue?

                                      shinya.ta 1 Reply Last reply Reply Quote 0
                                      • shinya.ta
                                        shinya.ta @cvp last edited by

                                        @cvp
                                        Please do so. The flick input button in Japan is also like that.

                                        cvp 2 Replies Last reply Reply Quote 0
                                        • cvp
                                          cvp @shinya.ta last edited by

                                          @shinya.ta I try but I don't yet find a way to do that.

                                          1 Reply Last reply Reply Quote 0
                                          • cvp
                                            cvp @shinya.ta last edited by

                                            @shinya.ta VoiceOver is an IOS feature that automatically reads aloud the title of a tapped key but our flicked keys are generated by our script without iOS knows it is a simulated key, thus does not reads aloud them. I try without success to speech a key which becomes blue, but without success.

                                            shinya.ta 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB Forums | Contributors