Re: [Ubuntu-phone] Search in contacts

2015-06-21 Thread Matthew Paul Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Simos Xenitellis wrote on 19/06/15 18:52: On Fri, Jun 19, 2015 at 2:06 AM, Roman Shchekin mrqt...@gmail.com It's quite easier to check if text contains only digits and (or) other symbols which are available in a phone number. But which

Re: [Ubuntu-phone] Search in contacts

2015-06-19 Thread Sebastien Bacher
Le 19/06/2015 00:52, Roman Shchekin a écrit : I will propose fix now. Thanks for working on a fix! Just for the record you can use bzr blame on a source to see when a line was added/edited, in this case the code is coming from that changeset

Re: [Ubuntu-phone] Search in contacts

2015-06-19 Thread Renato Filho
Hi guys, Thanks for the proposals. But did this fix the problem? Looking at the code this only check if there is digits on the search string, and if it has, it will search for phone numbers in additional. Otherwise it will search only for contacts names. In theory this should not cause the

Re: [Ubuntu-phone] Search in contacts

2015-06-19 Thread Simos Xenitellis
On Fri, Jun 19, 2015 at 2:06 AM, Roman Shchekin mrqt...@gmail.com wrote: It's quite easier to check if text contains only digits and (or) other symbols which are available in a phone number. But which symbols are available in phone number? +, whitespace, (, ), -, any suggestions? Add '#',

Re: [Ubuntu-phone] Search in contacts

2015-06-18 Thread Roman Shchekin
Who wrote this code? *var containsLetter = /^[a-zA-Z]/.test(value)* Are you serious? English-only letter checking in OS with best internationalization. Can I unsee this? I will propose fix now. 2015-06-12 17:38 GMT+03:00 Christian Dywan christian.dy...@canonical.com: More specifically

Re: [Ubuntu-phone] Search in contacts

2015-06-18 Thread Roman Shchekin
It's quite easier to check if text contains only digits and (or) other symbols which are available in a phone number. But which symbols are available in phone number? +, whitespace, (, ), -, any suggestions? I want to write something like this: var containsNumber = /^[0-9\s\+\-\(\)]+$/ var

Re: [Ubuntu-phone] Search in contacts

2015-06-12 Thread Roman Shchekin
Renato, hello! How can I provide an example? I can type few Russian names if you want :) For example: Роман Щекин (My name =P) Дмитрий Ященко Фёдор Емельяненко Владимир Путин I hope you will be able to copy-paste them into your contacts :) 2015-06-11 23:37 GMT+03:00 Alexey Balmashnov

Re: [Ubuntu-phone] Search in contacts

2015-06-12 Thread Sebastien Bacher
Le 11/06/2015 21:19, Renato Filho a écrit : Could you give me some example? What is the contact name and what is the string that you are looking for? And which app are you using? That's a known/reported issue https://bugs.launchpad.net/ubuntu/+source/address-book-app/+bug/1421245 Easy way to

Re: [Ubuntu-phone] Search in contacts

2015-06-12 Thread Simos Xenitellis
On Fri, Jun 12, 2015 at 3:25 PM, Sebastien Bacher sebastien.bac...@canonical.com wrote: Le 11/06/2015 21:19, Renato Filho a écrit : Could you give me some example? What is the contact name and what is the string that you are looking for? And which app are you using? That's a

Re: [Ubuntu-phone] Search in contacts

2015-06-12 Thread Christian Dywan
More specifically https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/wily/address-book-app/wily/view/head:/src/imports/Ubuntu/Contacts/ContactListModel.qml The looks a bit suspicious: var containsLetter = /^[a-zA-Z]/.test(value) Am Fr, 12. Jun, 2015 um 9:28 schrieb Sebastien Bacher

Re: [Ubuntu-phone] Search in contacts

2015-06-12 Thread Sebastien Bacher
Le 12/06/2015 15:17, Simos Xenitellis a écrit : I did not find something relevant in the source regarding to searching or filtering, https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/wily/address-book-app/wily/files/head:/src/app/

Re: [Ubuntu-phone] Search in contacts

2015-06-11 Thread Alexey Balmashnov
Have not noticed it before, but actually Roman is right. Search in standard Contacts: * when Latin letters are typed in contacts are filtered * when Cyrillic letters are typed in filter does not work bq4.5 r22 Cheers, Alexey On Thu, Jun 11, 2015 at 9:19 PM, Renato Filho

[Ubuntu-phone] Search in contacts

2015-06-11 Thread Roman Shchekin
Hi all Seems that search isn't working in contacts for Russian language. Can't find anyone. Does anybody else meet this issue? -- Mailing list: https://launchpad.net/~ubuntu-phone Post to : ubuntu-phone@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-phone More help :

Re: [Ubuntu-phone] Search in contacts

2015-06-11 Thread Renato Filho
Could you give me some example? What is the contact name and what is the string that you are looking for? And which app are you using? Thanks On Thu, Jun 11, 2015 at 3:37 PM, Roman Shchekin mrqt...@gmail.com wrote: Hi all Seems that search isn't working in contacts for Russian language. Can't