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.


    Braille application.

    Pythonista
    6
    334
    212210
    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.
    • cvp
      cvp @shinya.ta last edited by

      @shinya.ta said:

      For example, how do you decide if you enter only Hiragana "あ"?

      I don't know how to send it to the text field.
      The decision button will disappear.

      Tap dot 1
      Tap ✅ at bottom right
      Tap conversion (漢字) button at left of Hirgana
      Select the green あ

      And this hirgana is automatically sent to the TextField above

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

        @shinya.ta said:

        And you can't convert kanji.

        ↑ ”なな” → “七”

        Tap dots 13, then ✅
        Tap dots 13, then ✅
        Tap conversion (漢字) button
        Select 七 and it is done

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

          @shinya.ta If you want another sequence of taps, please try to give a clear explanation.
          I've programmed all with what I did understand and I agree it was perhaps incorrect, due to the fact that English is not our usual language for both of us.

          First, confirm that the ✅ button at bottom right is what you call "decision".
          For me, it is the "end of dots" for an Hiragana

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

            @cvp

            The size was changed when it used to be used in Pythonisa.

            The conversion list doesn't come out.

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

              @shinya.ta said:

              The conversion list doesn't come out.

              The conversion list is not visible or do you want it does not come?

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

                @shinya.ta said:

                The size was changed when it used to be used in Pythonisa.

                I don't understand this sentence, sorry

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

                  @cvp

                  "Oprational Error" appears.

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

                    @shinya.ta said:

                    Oprational Error" appears.

                    Could you, step by step, explain what you did before to get this error

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

                      @cvp

                      The size was different when I started the program using the Pythonisa application.

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

                        @shinya.ta said:

                        The size was different when I started the program using the Pythonisa application.

                        Do you want to say that since the beta version, the displayed keyboard size is different?
                        If yes, I really don't know why.

                        Do you work on the same iPhone?
                        If no, you could have different size.

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

                          @shinya.ta You can get this operationalerror message if the .db file is not present in the same folder as the program

                          Do you work on the same iPhone?
                          If no, did you also install HiraganaToKanji.db file?

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

                            @cvp

                            I probably didn't install "HiraganaToKanji. db".
                            I'm sorry, but I forgot where I was.

                            The change of size is the work on the same iPhone.

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

                              @shinya.ta Do you have normal and beta version installed on same iPhone?

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

                                @cvp

                                Now, the normal one is overwritten and it is only the beta version.

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

                                  @shinya.ta Then how HiraganaToKanji. db has disappeared?

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

                                    @cvp

                                    import sqlite3
                                    import ui
                                    
                                    conn = sqlite3.connect("HiraganaToKanji.db",check_same_thread=False)
                                    cursor = conn.cursor()
                                    
                                    v = ui.View()
                                    v.frame = (0,0,400,400)
                                    v.name = 'Test Hiragana_to_Kanji.db'
                                    
                                    class MyTextFieldDelegate ():
                                    	def textfield_should_return(textfield):
                                    		cursor.execute(
                                    			'select hiragana, kanji from Hiragana_to_Kanji where hiragana = ?',
                                    			(textfield.text, ))
                                    		t = ''
                                    		for row in cursor:
                                    			t = t + row[1] + '\n'
                                    		textfield.superview['tv'].text = t
                                    		textfield.end_editing()
                                    		return True
                                    
                                    tf = ui.TextField()
                                    tf.frame = (10,10,380,32)
                                    tf.delegate = MyTextFieldDelegate
                                    v.add_subview(tf)
                                    
                                    tv =ui.TextView(name='tv')
                                    tv.frame = (10,50,380,340)
                                    tv.background_color = 'white'
                                    tv.editable = False
                                    v.add_subview(tv)
                                    
                                    v.present('sheet')
                                    v.wait_modal()
                                    conn.close()
                                    

                                    I installed this.

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

                                      @shinya.ta said:

                                      I installed this.

                                      Why? I don't understand why you did reinstall this test program

                                      It is sure that Test Hiragana_to_Kanji db and Japanese Braille Input do not have same keyboard, it is normal

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

                                        @cvp

                                        Where can I download HiraganaToKanji. db?

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

                                          @shinya.ta It is explained above in the topic..file is . here

                                          tapping
                                          Download
                                          options
                                          Run Pythonista3 script
                                          Import file

                                          1 Reply Last reply Reply Quote 0
                                          • cvp
                                            cvp last edited by

                                            I'm back in less than one hour, bye

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