maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   work in progress: simple vertical sms app: vertsms (https://talk.maemo.org/showthread.php?t=51635)

ossipena 2010-05-20 15:40

Re: work in progress: simple vertical sms app: vertsms
 
I quess the PDU string creation must be modified in addition to ui. the PDU is as low as it can get and every SMS in the world uses it so I see no technical blockers...

MohammadAG 2010-05-20 15:42

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by gri (Post 667845)
Can you tell me what you actually changed for the russian version? Only some strings or more?
Qt supports translations as well as Right-To-Left support, so it should be possible to make a version containing latin, russian and arabic languages?

Hebrew is also RTL.
Anyways, VertSMS is programmed in GTK not Qt, it should be possible to create .pot files and load translations accordingly.
http://en.wikipedia.org/wiki/GNU_gettext#Translating

Oh, v0.4 pushed to -devel,
2010-05-20 15:20 UTC
It should've been imported between 15:35 and 15:40, but *sigh*
The importer should run again at 16:05, so expect the package to show up around that time.

gri 2010-05-20 15:55

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by MohammadAG (Post 667885)
Anyways, VertSMS is programmed in GTK not Qt ....

Ups, sorry. It's confusing to always remember which project was Qt and which is GTK :)

InoHacker 2010-05-20 19:15

Re: work in progress: simple vertical sms app: vertsms
 
delete ...

InoHacker 2010-05-20 19:16

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by gri (Post 667845)
Can you tell me what you actually changed for the russian version? Only some strings or more?
Qt supports translations as well as Right-To-Left support, so it should be possible to make a version containing latin, russian and arabic languages?

For PDU-string in Russian (for example) it is used two bytes on the character, against one byte in a Latin.
Therefore maximum length of one message of only 70 characters, against 160.
Plus should be translated a message text in the coding utf-8.

I'am very sorry for my bad english :(

MohammadAG 2010-05-21 17:49

Re: work in progress: simple vertical sms app: vertsms
 
@ ossipena

Were any more dependecies needed for this release?
Code:

python /opt/vertsms/vertsms_gui.pyc
Traceback (most recent call last):
 *  File "/home/opt/vertsms/vertsms_gui.py", line 19, in <module>
 * * *  from vertsms import config, sms, pygobject
 *  File "/home/opt/vertsms/vertsms/sms.py", line 5, in <module>
 * * *  import ctypes, uuid, glib, gobject
ImportError: No module named glib

Got that via email btw.

aspidites 2010-05-21 19:08

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by MohammadAG (Post 669647)
@ ossipena

Were any more dependecies needed for this release?
Code:

python /opt/vertsms/vertsms_gui.pyc
Traceback (most recent call last):
 *  File "/home/opt/vertsms/vertsms_gui.py", line 19, in <module>
 * * *  from vertsms import config, sms, pygobject
 *  File "/home/opt/vertsms/vertsms/sms.py", line 5, in <module>
 * * *  import ctypes, uuid, glib, gobject
ImportError: No module named glib

Got that via email btw.

No. Mine works just fine. Make sure their python installation went through without a hithc. Here's what I have installed

Code:

dpkg -l | grep python
ii  python                                              2.5.2-3maemo3                    An interactive high-level object-oriented la
ii  python-all                                          2.5.2-3maemo3                    Package depending on all supported Python ru
ii  python-cairo                                        1.4.12-1.2maemo1                Python bindings for the Cairo vector graphic
ii  python-central                                      0.6.11.1maemo2                  register and build utility for Python packag
ii  python-conic                                        0.1-5                            Python bindings for Internet Connectivity li
ii  python-dbus                                        0.83.0-1maemo3                  simple interprocess messaging system (Python
ii  python-evolution                                    0.0.4-maemo2                    Python bindings for Evolution Data Server.
ii  python-gconf                                        2.26.1-1maemo1                  Python bindings for the GConf configuration
ii  python-gobject                                      2.16.1-1maemo1                  Python bindings for the GObject library
ii  python-gst0.10                                      0.10.14-2maemo5                  generic media-playing framework (Python bind
ii  python-gtk2                                        2.12.1-6maemo10                  Python bindings for the GTK+ widget set
ii  python-hildon                                      0.9.0-1maemo15                  Python bindings for Hildon Framework.
ii  python-imaging                                      1.1.6-3maemo2                    Python Imaging Library
ii  python-minimal                                      2.5.2-3maemo3                    A minimal subset of the Python language (def
ii  python-notify                                      0.1.1-2maemo1                    Python bindings for libnotify
ii  python-numeric                                      24.2-9maemo4                    Numerical (matrix-oriented) Mathematics for
ii  python-osso                                        0.4-0maemo3                      Python bindings for libosso library
ii  python-support                                      1.0.6maemo1                      automated rebuilding support for Python modu
ii  python2.5                                          2.5.4-1maemo5                    An interactive high-level object-oriented la
ii  python2.5-minimal                                  2.5.4-1maemo5                    A minimal subset of the Python language (ver
ii  python2.5-py2deb                                    0.5.3-4                          Generate simple deb(/rpm) from python
ii  python2.5-qt4                                      4.7.3-maemo2                    Complete Python binding set for Qt4
ii  python2.5-qt4-common                                4.7.3-maemo2                    Shared files for PyQt4
ii  python2.5-qt4-core                                  4.7.3-maemo2                    Python bindings for Qt4 Core components.
ii  python2.5-qt4-dbus                                  4.7.3-maemo2                    Python bindings for Qt dbus mainloop.
ii  python2.5-qt4-gl                                    4.7.3-maemo2                    Python bindings for Qt4 Core components.
ii  python2.5-qt4-gui                                  4.7.3-maemo2                    Python bindings for Qt4 Core components.
ii  python2.5-qt4-maemo5                                4.7.3-maemo2                    Python bindings for Qt4 Core components.
ii  python2.5-qt4-multimedia                            4.7.3-maemo2                    Python bindings for Qt4 Core components.
ii  python2.5-qt4-network                              4.7.3-maemo2                    Python bindings for Qt4 Core components.
ii  python2.5-qt4-phonon                                4.7.3-maemo2                    Python bindings for Qt4 Core components.
ii  python2.5-qt4-script                                4.7.3-maemo2                    Python bindings for Qt4 Core components.
ii  python2.5-qt4-sql                                  4.7.3-maemo2                    Python bindings for PyQt4's SQL module
ii  python2.5-qt4-svg                                  4.7.3-maemo2                    Python bindings for Qt4 Core components.
ii  python2.5-qt4-test                                  4.7.3-maemo2                    Python bindings for Qt4 Core components.
ii  python2.5-qt4-webkit                                4.7.3-maemo2                    Python bindings for Qt4 Core components.
ii  python2.5-qt4-xml                                  4.7.3-maemo2                    Python bindings for Qt4 Core components.
ii  python2.5-qt4-xmlpatterns                          4.7.3-maemo2                    Python bindings for Qt4 Core components.
ii  python2.5-sip4                                      4.10.2-maemo0                    Python/C++ bindings generator runtime librar

Of course the qt4 related packages aren't neccessary. The only other python-base program I have is aptly which pulls nohting but python itself and fmms.

frals 2010-05-22 22:20

Re: work in progress: simple vertical sms app: vertsms
 
bah, git merge requests seems to be rocket surgery, not sure if i managed to do it correctly.. :P

http://gitorious.org/vertsms/vertsms/merge_requests/9 anyway, qwerty keyboard which seems to be working fine here at least

rofo1000 2010-05-23 16:42

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by frals (Post 670940)
bah, git merge requests seems to be rocket surgery, not sure if i managed to do it correctly.. :P

http://gitorious.org/vertsms/vertsms/merge_requests/9 anyway, qwerty keyboard which seems to be working fine here at least

When sending a text written with your qwerty-keyboard, å,ä, and ö looks good when its written in vertsms. But it is just a bunch of symbols on the receivers phone.
What could be the problem?
It would be great to add åäö to original vertsms, you know: abcåä2, mnoö6.
For us swedes that is ;)

Joorin 2010-05-23 18:49

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by rofo1000 (Post 671865)
When sending a text written with your qwerty-keyboard, å,ä, and ö looks good when its written in vertsms. But it is just a bunch of symbols on the receivers phone.
What could be the problem?
It would be great to add åäö to original vertsms, you know: abcåä2, mnoö6.
For us swedes that is ;)

What symbols do you get? It helps a lot with debugging.

One reason for the problem might be that Python is unicode clean and produces UTF-8 somewhere along the way.

MohammadAG 2010-05-25 20:11

Re: work in progress: simple vertical sms app: vertsms
 
Version 0.5-1 now in -devel
Changes:
* Changed rtcom-eventlogger lib for PR 1.2
* Modified PDU string that should fix problems with some operators.
* Characters are inputted to cursor position instead to the end of the message.
* Added rtcom-messaging-ui version 1.2.22-1+0m5 as a dependency

Since the dependency was added, VertSMS should no longer be installable on PR1.1.1 devices (unless ossipena adds a way to detect which file to edit, which would be ideal :))

llaadd 2010-05-25 21:02

Re: work in progress: simple vertical sms app: vertsms
 
with this latest release, the application works a bit better.
0.4 said it sent the message but actually didn't actually send.

Current 0.5 now sends, then stores the message in conversations correctly, and also making the * key into + when entering number is good implementation!

keep up the good work.

p.s. I personally have basic-average programming experience but if you are able to provide me with the source for this, I will see what I can do in terms of converting and developing further in QT which I am soon going to start using. feel free to PM me!

ossipena 2010-05-25 21:12

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by llaadd (Post 677082)
with this latest release, the application works a bit better.
0.4 said it sent the message but actually didn't actually send.

p.s. I personally have basic-average programming experience but if you are able to provide me with the source for this, I will see what I can do in terms of converting and developing further in QT which I am soon going to start using. feel free to PM me!

this seems promising. your problem probably was TON=1 which doesn't suit to every carrier (1=international, 4=global). that should be fixed with 0.5 now.

source can be found at:
http://gitorious.org/vertsms

and I am trying to get frals version for testing as I write (struggling with git still) and if there aren't any surprises, will merge it to master.

rofo1000 2010-05-26 08:02

Re: work in progress: simple vertical sms app: vertsms
 
Can this be used?
http://qt.gitorious.org/maemo-6-ui-f...rk/duikeyboard?

I don't know much about programming. Ok, almost nothing...
This is QT and vertsms is python. Just stumbled over it and thought I share it...

ossipena 2010-05-26 08:43

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by frals (Post 670940)
bah, git merge requests seems to be rocket surgery, not sure if i managed to do it correctly.. :P

http://gitorious.org/vertsms/vertsms/merge_requests/9 anyway, qwerty keyboard which seems to be working fine here at least

does the send button etc move to the bottom of the screen intentionally?

just pushed a fix that should enable sms saving with both pr1.1 and pr1.2, thanks for it.

the problem with åöä seems to lie in octification function.

and the delivery reports don't work, do they? must look more at the bits and see what I have done wrong with those.

e: I got the byte wrong way with delivery report, should work now perfectly

frals 2010-05-26 19:50

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by ossipena (Post 678520)
does the send button etc move to the bottom of the screen intentionally?

just pushed a fix that should enable sms saving with both pr1.1 and pr1.2, thanks for it.

Ah, didn't think about that, yes, I placed it at the bottom intentionally, as for why, I have no idea :P

just change self.table.attach(self.send_button, 0, 5, 7, 8) or I'll try to update the merge request when I get home tonight or tomorrow :)

EDIT: http://gitorious.org/vertsms/vertsms/merge_requests/8... I redid the request, no idea why its claiming all those changes in config but it should match whats in your repo since i updated from there :)

EDIT2: merge request is clean now, should be no problems merging it :)

MohammadAG 2010-05-26 20:59

Re: work in progress: simple vertical sms app: vertsms
 
Version 0.6 loaded into -devel queue.
Changes:
  • Added QWERTY keyboard, thanks to frals for the code.
  • Can detect which file to edit (PR1.2 vs pre-PR1.2), thanks to frals.
  • Removed rtcom-messaging-ui from the Depends field.
  • Status report now working.

It should be in -devel in the next few minutes.

llaadd 2010-05-26 21:26

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by MohammadAG (Post 680747)
Version 0.6 loaded into -devel queue.
Changes:
  • Added QWERTY keyboard, thanks to frals for the code.
  • Can detect which file to edit (PR1.2 vs pre-PR1.2), thanks to frals.
  • Removed rtcom-messaging-ui from the Depends field.
  • Status report now working.

It should be in -devel in the next few minutes.

again working well

I'm going to make a post on my new blog, thetekblogger.com with this application but because of the quick development of the app, i'm going to hold off for now.

The things the application needs ideally are:
  • Support for capitals (On qwerty: caps lock, shift button & maybe long press - On alphanumeric, something similar to other nokia's using # to change mode [abc & ABC, and Abc if possible])
  • Full character map from the phone's database, i.e. currency symbols, etc
  • Long press for numbers on alphanumeric
  • T9 support but I know this is extermely hard...maybe in 2.0 ;) hehe

aspidites 2010-05-27 05:42

Re: work in progress: simple vertical sms app: vertsms
 
T9 support isnt' extremely hard, its nearly impossible considering T9 is a proprietary implementation. There has, however, already been work done in the past on predictive text that works similarly to T9, but it's rather slow, which is why I imagine it hasn't been merged into trunk.

I also noticed that the implementation didn't technically come up with all possible combinations, though I suspect this is on purpose, considering my implementation whcih does do so is far slower.

@ossipena: sorry for the lack of contributions, I have been so busy with my other projects that I kind of left vertsms alone (though you seem to be managing just fine without my help ;-)).

kennibal 2010-05-27 05:54

Re: work in progress: simple vertical sms app: vertsms
 
I'm currently testing VertSMS v 0.6 on my newly installed official PR1.2.

It has qwerty now, and I was able to save my sent messages in Conversations.

However, the recipient doesn't receive anything.

Should the recipient have this format:

+639xxxxxxxxx

or

09xxxxxxxxx

??

Thanks!

llaadd 2010-05-27 07:21

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by aspidites (Post 681639)
T9 support isnt' extremely hard, its nearly impossible considering T9 is a proprietary implementation. There has, however, already been work done in the past on predictive text that works similarly to T9, but it's rather slow, which is why I imagine it hasn't been merged into trunk.

fair enough, thought as much!

Quote:

Originally Posted by kennibal (Post 681655)
Should the recipient have this format:

+639xxxxxxxxx

or

09xxxxxxxxx

??

Thanks!

needs to be in international format for now (i.e. +639... for you, or uk users use +44, etc)...local format does not seem to work right now.

blubbi 2010-05-27 07:22

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by Joorin (Post 672003)
What symbols do you get? It helps a lot with debugging.

One reason for the problem might be that Python is unicode clean and produces UTF-8 somewhere along the way.

I ran into the same problem with www2sms and i hat to decode/encode alle strings retrieved from the contact book and retrieved from the QT input fields before I could re display or pass them to the website:

MY_VAR.encode('utf-8')
or
ITEM.decode('utf-8')

This was very helpful:
http://www.joelonsoftware.com/articles/Unicode.html
http://farmdev.com/talks/unicode/

Cheers
Bjoern

kennibal 2010-05-27 07:26

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by llaadd (Post 681871)
fair enough, thought as much!


needs to be in international format for now (i.e. +639... for you, or uk users use +44, etc)...local format does not seem to work right now.

Neither of the formats work. I still can't figure it out why..

bari86 2010-05-27 15:12

Re: work in progress: simple vertical sms app: vertsms
 
my vertsms are not working. never tried it before. I just updated the new firmware 1.2.. please help..

wheatbisc 2010-05-27 19:38

Re: work in progress: simple vertical sms app: vertsms
 
Got the same problem. Haven't installed the previous versions, so something is probably missing from v 0.6
It seems to be loading, but ends up shutting down again! Hope this helps in some way :)

MohammadAG 2010-05-27 19:44

Re: work in progress: simple vertical sms app: vertsms
 
Code:

python /opt/vertsms/vertsms_gui.pyc
What does the output of that (in terminal) say?

neboja 2010-05-27 19:52

Re: work in progress: simple vertical sms app: vertsms
 
@MohammadAG
tell me please: i saw that is implemented that it stores sms-s in conversation, but someone said that recipient doesn't recive sms... but i think that it would be resolved.... anyhow, i was wondering is it implemented that you can READ a recived sms-s???
i am not still using this app, still waiting to be stable... ;)
cheers!

ossipena 2010-05-27 19:52

Re: work in progress: simple vertical sms app: vertsms
 
aspidetes, don't worry I've had other stuff to do also.

struggling now with åöä because octification doesn't know how to handle those.

the app should accept both numbers now. if number has + in front, it sends message with international format, if it doesn't it sends it with regional format. please report your operator and which numbers doesn't work to bugzilla (link at http://wiki.maemo.org/VertSMS)

ossipena 2010-05-27 19:53

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by neboja (Post 683894)
@MohammadAG
tell me please: i saw that is implemented that it stores sms-s in conversation, but someone said that recipient doesn't recive sms... but i think that it would be resolved.... anyhow, i was wondering is it implemented that you can READ a recived sms-s???
i am not still using this app, still waiting to be stable... ;)
cheers!

it could probably be done but there is gazillion other things to do first....

neboja 2010-05-27 19:54

Re: work in progress: simple vertical sms app: vertsms
 
i know i know! i was just wondering... :)

MohammadAG 2010-05-27 20:11

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by neboja (Post 683894)
@MohammadAG
tell me please: i saw that is implemented that it stores sms-s in conversation, but someone said that recipient doesn't recive sms... but i think that it would be resolved.... anyhow, i was wondering is it implemented that you can READ a recived sms-s???
i am not still using this app, still waiting to be stable... ;)
cheers!

Please note that I have not developed this app, all credit goes to ossipena, and contributers (aspidetes, qwerty12, frals etc...).
I only maintain the package itself.

ossipena 2010-05-28 07:31

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by neboja (Post 683903)
i know i know! i was just wondering... :)

and it will be very dirty piece of code if it will be done.... probably affect a bit to battery life etc...

no luck with current octification function. the current pulling ascii code works up all the way to z.

so it isn't even close to etsi standards :D so it will be rewritten and after that hopefully we can get every char available for texting to work. (and mapped behind buttons at some point)

damn if the sending doesn't work for everyone. do you get delivery reports with latest version?

now it would be nice if someone who knows how things should be implemented. the problem is TON. 1= international, 4=local. how in earth some carriers don't deliver to international number format when program assigns TON=1 in that case?!? you do have plus in front of the international number, don't you?

wheatbisc 2010-05-28 10:24

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by MohammadAG (Post 683869)
Code:

python /opt/vertsms/vertsms_gui.pyc
What does the output of that (in terminal) say?

Trackback (most recent call last):
File "/opt/vertsms/vertsms_gui.oy", line 19 in <module>
from vertsms import config, sms, pygobject
File "/opt/vertsms/vertsms/sms.py", line 5, in <module>
import ctypes, uuid, glib, gobject
ImportError: No module named glib

MohammadAG 2010-05-28 10:43

Re: work in progress: simple vertical sms app: vertsms
 
Hmm, same problem that was sent to me via email
http://talk.maemo.org/showpost.php?p...&postcount=206

Missing dependencies? I can't really check since I have all python packages installed

wheatbisc 2010-05-28 11:28

Re: work in progress: simple vertical sms app: vertsms
 
Can I check it somehow? With a little guidance, we might find the problem :)

MohammadAG 2010-05-28 11:30

Re: work in progress: simple vertical sms app: vertsms
 
apt-get install python-gobject
as root ^

wheatbisc 2010-05-28 12:21

Re: work in progress: simple vertical sms app: vertsms
 
I get the following:
Err http://repository.maemo.org fremantle-1.2/free python-gobject 2.16.1-1maemo1
Temporary failure resolving 'repository.maemo.org'
Failed to fetch http://repository.maemo.org/extras/p...emo1_armel.deb Temporary failure resolving 'repository.maemo.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Frank Banul 2010-05-28 14:22

Re: work in progress: simple vertical sms app: vertsms
 
You don't even need to import glib or gobject for the code you have in sms.py.

And for that matter, you can remove sqlite3 import and code, it's not being used if I'm interpreting correctly.

Code:

connection = sqlite3.connect(os.path.join(os.environ['HOME'],
                                    '.rtcom-eventlogger', 'el.db'))
        cursor = connection.cursor()       
        cursor.execute('SELECT id FROM Events')
        id_array = cursor.fetchall() 
        seq_id = max(id_array)[0] + 1

Yes I've been reusing your code in an application that I work on. :)

Frank

Quote:

Originally Posted by wheatbisc (Post 685201)
Trackback (most recent call last):
File "/opt/vertsms/vertsms_gui.oy", line 19 in <module>
from vertsms import config, sms, pygobject
File "/opt/vertsms/vertsms/sms.py", line 5, in <module>
import ctypes, uuid, glib, gobject
ImportError: No module named glib


aspidites 2010-05-28 15:53

Re: work in progress: simple vertical sms app: vertsms
 
Quote:

Originally Posted by Frank Banul (Post 685760)
You don't even need to import glib or gobject for the code you have in sms.py.

And for that matter, you can remove sqlite3 import and code, it's not being used if I'm interpreting correctly.

Code:

connection = sqlite3.connect(os.path.join(os.environ['HOME'],
                                    '.rtcom-eventlogger', 'el.db'))
        cursor = connection.cursor()       
        cursor.execute('SELECT id FROM Events')
        id_array = cursor.fetchall() 
        seq_id = max(id_array)[0] + 1

Yes I've been reusing your code in an application that I work on. :)

Frank

Probably left over from the swithc from direct database manipulation to the rtcom C library.

As for code reuse...that's what open source is about :-)

ossipena 2010-05-30 19:01

Re: work in progress: simple vertical sms app: vertsms
 
don't touch the sqlite! it fetches the unique id needed for adding a message. it seems to be easier than api way apparently and since it only reads one column through it shouldn't mess the db up.

phew just got new version of sms.py working. now with 100% compatibility to etsi standard except curly brackets and couple other special chars. so åäö shouldn't be a problem anymore (and any char that isn't at exactly same place ascii vs etsi)

will push it to git as soon as I get it cleaned up.

e: and someone copying code from me is a honor for me ;)

ee: damn it isn't working, something messes the codes up between creating array and sending... will be investigating it.


All times are GMT. The time now is 20:52.

vBulletin® Version 3.8.8