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
    212236
    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 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
                    • shinya.ta
                      shinya.ta @cvp last edited by

                      @cvp

                      I downloaded the imported file, but the error appears. Why?

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

                        @cvp

                        Is there a way to confirm whether it is downloaded properly?

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

                          @shinya.ta First, be sure the dB file is in the same folder as the script
                          And Pythonista shows a size of 6,4 MB

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

                            @cvp

                            It was included in the item "FAVORITES".
                            I don't know the basics.
                            Please tell me how to solve it.

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

                              @shinya.ta said:

                              @cvp

                              It was included in the item "FAVORITES".
                              I don't know the basics.
                              Please tell me how to solve it.

                              You can delete it from favorites, it will not really delete the file

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

                                @shinya.ta to find where is your file, type HiraganaToKanji.db in search field

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

                                  @cvp

                                  I searched for it in search field.
                                  After all, it is in my favorite column.
                                  I tried to import it again, but it hasn't changed.

                                  It should be done according to the procedure, but why?

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

                                    @shinya.ta what do you call "favorite column"?

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

                                      @shinya.ta could you run this little script and after, paste the clipboard here in the forum
                                      The content of your root folder will so be visible here, to check if the Braille keyboard script and the dB file are present

                                      import os
                                      import clipboard
                                      l = os.listdir()
                                      t = ''
                                      for e in l:
                                      	t = t+e+'\n'
                                      clipboard.set(t)
                                      
                                      shinya.ta 2 Replies Last reply Reply Quote 0
                                      • shinya.ta
                                        shinya.ta @cvp last edited by

                                        @cvp

                                        It's in the "FAVORITES" column.

                                        And when you open "Open New.", you'll find it there.

                                        Even if the program is activated, there is no response.

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

                                          @cvp

                                          I converted the kanji to the normal one with iPad.

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

                                            @shinya.ta said:

                                            And when you open "Open New.", you'll find it there.

                                            I don't understand that

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