Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [ANNOUNCE] VertSMS - portrait sms'ing in extras-dev

    Reply
    Page 5 of 21 | Prev |   3     4   5   6     7   15 | Next | Last
    CepiPerez | # 41 | 2010-05-05, 13:15 | Report

    Uppercase first letters at firts word, and after . ! ?

    I've changed this function:

    Code:
    def input(feed):
        text = update_text(0)
    
        if text == "":
            buffer.set_text(text + feed.swapcase())
        elif text[-2:] == ". ":
            buffer.set_text(text + feed.swapcase())
        elif text[-2:] == "? ":
            buffer.set_text(text + feed.swapcase())
        elif text[-2:] == "! ":
            buffer.set_text(text + feed.swapcase())
        else:
            buffer.set_text(text + feed)

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 4 Users Say Thank You to CepiPerez For This Useful Post:
    aspidites, BN900, casper27, qwerty12

     
    tangs | # 42 | 2010-05-05, 14:29 | Report

    would it be possible that the keyb will appear when the device is vertical ? i mean that it will show with the accelerometer

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to tangs For This Useful Post:
    BN900

     
    ppriyank | # 43 | 2010-05-05, 15:09 | Report

    Originally Posted by ossipena View Post
    improving backspace is in todo-list. now it only deletes the last character at textbox

    arrows will be added as soon as I improve the text input part and backspace improvements.

    I'll have to look into higlighting words etc.
    thank u for the info. lovin the app. I must say.
    great work

    Dr. P!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    aspidites | # 44 | 2010-05-05, 15:20 | Report

    Originally Posted by CepiPerez View Post
    Uppercase first letters at firts word, and after . ! ?

    I've changed this function:

    Code:
    def input(feed):
        text = update_text(0)
    
        if text == "":
            buffer.set_text(text + feed.swapcase())
        elif text[-2:] == ". ":
            buffer.set_text(text + feed.swapcase())
        elif text[-2:] == "? ":
            buffer.set_text(text + feed.swapcase())
        elif text[-2:] == "! ":
            buffer.set_text(text + feed.swapcase())
        else:
            buffer.set_text(text + feed)
    Or more concisely:
    Code:
    def input(feed):
        text = update_text(0)
        if text == "" or text[-2:] in [". ", "? ", "! "]:
            buffer.set_text(text + feed.upper())
        else:
            buffer.set_text(text + feed)
    Good Idea though.

    * just making the comparison more 1:1
    ** new snippet more future proof, assuming user already pressed shift or caps lock.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by aspidites; 2010-05-05 at 15:45.

     
    casper27 | # 45 | 2010-05-05, 15:38 | Report

    Originally Posted by ossipena View Post
    try

    Code:
    apt-get install python-dbus
    as root.

    note to self: add that to dependencies
    Worked a treat thanks again for the brilliant app.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to casper27 For This Useful Post:
    ossipena

     
    aspidites | # 46 | 2010-05-05, 15:42 | Report

    Originally Posted by ossipena View Post

    and I have a vision that there should be multiple layouts for the keypad. and if that is doable, qwerty keys will be there too as an option.
    It's doable. I'd suggests a seperate module for it though. Some pseudo code:


    vertsms.py
    Code:
    import keypad
    ...
    # uncomment which ever layout you would like to use
    window.add(keypad.standard)
    #window.add(keypad.qwerty)
    #window.add(keypad.bb) # mimicks blackberry pearl
    ...
    keypad.py
    Code:
    import gtk
    import hildon
    ...
    def standard():
        table = gtk.Table(9, 3, True)
        # code defining the layout would go here
        return table
    
    def qwerty(): pass
    
    def bbpearl(): pass
    If you glance at my repository, you'll see that I make use of SafeConfigParser, which would allow the user to change this option by changing a config file or eventually a preferences ui.

    BTW, any way you can package the raw .py file instead of the binary pyc? It's probably easier for people to help contribute without having to go to the gitorious page just to have a peak at the code. Plus, using a binary file prevents the above snippet from being practical :-P

    Edit | Forward | Quote | Quick Reply | Thanks

     
    casper27 | # 47 | 2010-05-05, 18:07 | Report

    Im on UK Vodafone and have noticed that it will only send Txt to numbers that start with international code aswell ie
    0044 then mobile number without the first 0 infront. Not a problem though as I will go through my entire address book and add them all if it means I can use this. Brilliant..

    Edit | Forward | Quote | Quick Reply | Thanks

     
    x61 | # 48 | 2010-05-05, 18:18 | Report

    Wonderful. You should be employed by Nokia...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    ToJa92 | # 49 | 2010-05-05, 18:29 | Report

    Suggestions
    • To-button + number field should be smaller, or it should be on a different screen once you press send(AKA more space for content)
    • Send+backspace should move to the bottom, IMO
    • Display name instead of number
    • Tap and hold backspace button -> clear the whole text area
    • Tap and hold a number button -> Jump straight to the number(AKA insert the number in the SMS)

    That's all I can think of now. Oh and either use a database you create or use the existing Conversations database(that would be more desirable). If you use the Conversations database, maybe you could make it more like the Conversations app, so you can read SMS'es as well.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by ToJa92; 2010-05-05 at 18:45.

     
    benh_n900 | # 50 | 2010-05-05, 18:39 | Report

    Originally Posted by ossipena View Post
    it probably is. I've had reports that non-international numbers only work and international numbers only work from two different providers. shame that those can conflict, it would have been easier to fix if one case works for everyone.

    hey nokia, could someone spare a tip with this issue? how is it implemented in os?

    with saunalahti finland both ways work.
    I am not part of Nokia, but I have worked with SMS and telecomms a lot, there are a couple of possibilities, but I haven't time right now to download and analyse your code.

    When you send a text message, you may need to set the Destination and Source Type of Number and/or Numbering Plan Indicator in the SMS PDU. See https://www.watchguard.com/help/docs..._smpp_faq.html. Look for smpp-submit-dest-addr-ton and smpp-submit-dest-addr-npi

    It's possible that right now that the Destination (and maybe Source) TON is not being set and picking up the default for the various providers, some of whom default to 1 (international) and some whom default to 4 (Subscriber Number).
    Alternatively, you may already be setting the TON and some operators are recognising and overriding the setting, some are not.

    My guess is that it's just the TON that might need changing and the NPI is fine.

    Another possibility is that when you send the message you send 00nnnnnnn instead of +nnnnnnnnn. IIRC, the + is the correct thing to send as it translates to "use international routing" in the switches. The 00 prefix does the same in most countries, but I don't think it's guaranteed, whereas + is. I am not 100% sure on the accuracy of this statement though .

    Cheers,

    Ben

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to benh_n900 For This Useful Post:
    ossipena, tzsm98

     
    Page 5 of 21 | Prev |   3     4   5   6     7   15 | Next | Last
vBulletin® Version 3.8.8
Normal Logout