UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Tip: call a contact with one hand (secret UT key !)

    Scheduled Pinned Locked Moved Off topic
    24 Posts 7 Posters 470 Views 1 Watching
    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.
      • G Offline
        gpatel-fr @wally
        last edited by

        @wally said in Tip: call a contact with one hand (secret UT key !):

        this was all introduced before 24.04.

        from the code history, it seems that this is correct, you should have this feature.
        FWIW it's based on 3 digits when searching for local numbers, and 2 digits after the '+' for international numbers.

        1 Reply Last reply Reply Quote 1
        • W Offline
          wally
          last edited by

          @lduboeuf Aha! I've gotten somewhere. In short, it relates to what language my system is set to.

          I was suspecting some sort of regional dialing syntax issue. I tried changing my location in System Settings, to no effect. Then I tried changing my language to Français (France), and sure enough, up comes the cidrerie after dialing +33029, or also after dialing 029.
          Attempting to dial Canadian numbers while set to Français (France) didn't yield any predictions regardless of syntax.

          It only then occurred to me that my language is normally set to English (UK), not English (Canada). Setting it to English (Canada), I CAN get certain contacts to be predicted, but only if I start by dialing +1, and only then for contacts that happen to have the number saved starting with +1. My Contacts seem to have a wide variety of snytaxes, some starting in +1, others simply with 1, others without the regional code at all. Also some using parentheses, some not. Perhaps this relates to a Contact list that has been exported from one device to another and from 16.04 to 20.04, with different contacts being added at different times. The contact list has always been within UT.

          I have never dialed a plus sign, living here. Using Google Maps, if I set my VPN to Canada, I see (555) 555-5555, where if set to, for example, France and searching a Canadian business I see +1 555-555-5555.
          So in short, even with my language set to Canadian English, I wouldn't have stumbled across any predictions based on phone numbers. It only works for numbers stored with a +, and only if I type the + when dialing.

          If it weren't too complicated a change, perhaps if the numeric prediction search dropped all special characters like + and (, it would work more internationally? But I have no idea how feasible this is.
          The predictions based on contact name are probably useful to a lot more people anyway, and I don't want to create more work for you. Just trying to be helpful in the small ways that I can by testing and reporting.

          lduboeufL G 2 Replies Last reply Reply Quote 0
          • lduboeufL Offline
            lduboeuf @wally
            last edited by lduboeuf

            @wally said in Tip: call a contact with one hand (secret UT key !):

            @lduboeuf Aha! I've gotten somewhere. In short, it relates to what language my system is set to.

            I was suspecting some sort of regional dialing syntax issue. I tried changing my location in System Settings, to no effect. Then I tried changing my language to Français (France), and sure enough, up comes the cidrerie after dialing +33029, or also after dialing 029.
            Attempting to dial Canadian numbers while set to Français (France) didn't yield any predictions regardless of syntax.

            It only then occurred to me that my language is normally set to English (UK), not English (Canada). Setting it to English (Canada), I CAN get certain contacts to be predicted, but only if I start by dialing +1, and only then for contacts that happen to have the number saved starting with +1. My Contacts seem to have a wide variety of snytaxes, some starting in +1, others simply with 1, others without the regional code at all. Also some using parentheses, some not. Perhaps this relates to a Contact list that has been exported from one device to another and from 16.04 to 20.04, with different contacts being added at different times. The contact list has always been within UT.

            I have never dialed a plus sign, living here. Using Google Maps, if I set my VPN to Canada, I see (555) 555-5555, where if set to, for example, France and searching a Canadian business I see +1 555-555-5555.
            So in short, even with my language set to Canadian English, I wouldn't have stumbled across any predictions based on phone numbers. It only works for numbers stored with a +, and only if I type the + when dialing.

            If it weren't too complicated a change, perhaps if the numeric prediction search dropped all special characters like + and (, it would work more internationally? But I have no idea how feasible this is.
            The predictions based on contact name are probably useful to a lot more people anyway, and I don't want to create more work for you. Just trying to be helpful in the small ways that I can by testing and reporting.

            Thanks for the feedback, will look at it one day. But i'm surprised prefixes change with language and not timezone

            1 Reply Last reply Reply Quote 0
            • G Offline
              gpatel-fr @wally
              last edited by

              @wally

              what's the return of

              locale -k LC_TELEPHONE

              for your phone ?
              I get:
              tel_int_fmt="+%c %a %l"
              tel_dom_fmt="%a %l"

              1 Reply Last reply Reply Quote 0
              • First post
                Last post