maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Emojifix (iOS/Android Emoji SMS fix) (https://talk.maemo.org/showthread.php?t=94027)

peterleinchen 2015-07-08 07:31

Re: Emojifix (iOS/Android Emoji SMS fix)
 
Quote:

Originally Posted by OVK (Post 1476014)
Excellent. I have got lost in all these instructions&solutions which some need openmode, some need something else...

You do not need open mode!
http://talk.maemo.org/showpost.php?p...1&postcount=25

So, you might try this out
http://talk.maemo.org/showpost.php?p...1&postcount=26
as Iryus confirmed to work (just above).

hedayat 2015-07-08 09:02

Re: Emojifix (iOS/Android Emoji SMS fix)
 
Quote:

Originally Posted by Iryus (Post 1475998)
@hadayat

I forgot to mention that my N9 is openmode, Kernel Plus and aegis install hack.

Then I installed libsms-utils0_0.5.17.3 0m7_armel-mod.deb. I was in Harmoji 0.6.6 because I could not send text messages with the latest version...few weeks later, thanks to you, i copy paste libsms-utils.so.0.0.0 in /usr/lib and voila!

Send sms/mms containing emojis with Harmoji 0.7.3 works perfectly :)

PS : Switching from UCS-2 to UTF-16 it was THE solution.

Furthermore, I'll test with my second N9 without openmode & hacks ;-)

Thanks for the clarification. However, while open mode is not required, aegis-install-hack (or any other method which allows you to update your refhashlist IS required. If you replaced your libsms-utils, make sure that you update refhashlist before rebooting/powering off your phone; or your phone will not boot (I've not tried such a scenario, but others say that your phone will enter into reboot loop; so you'll probably prefer to not try it too!). ).

hedayat 2015-07-08 11:58

Re: Emojifix (iOS/Android Emoji SMS fix)
 
Yes, sending SMSes containing real Emoji characters (as used by harmoji 0.7.3) works for me too! :)
An important improvement of harmoji 0.7.3 compared to 0.6.6 is that 0.7.3 uses different unicode characters which will be displayed correctly on Android phones (and probably everywhere!). Thanks to Iryus tests, packaging my libsms-utils (or a patcher) probably makes sense now!

There is one remaining problem though: as soon as you insert an Emoji character into your SMS, the SMS count and remaining characters count will become zero. But I successfully sent an SMS with Emoji and it was received at the other side. However, I've not tried sending a multi-part SMS with Emoji.

My "guess" is that libsms-utils was also trying to send SMSes using UCS-2, and my hack has fixed both sending & receiving.

What about color Emoji? Well, I think "at least" it requires Freetype 2.5 according to its release announcement. So, updating freetype is probably the first step towards that.

Iryus 2015-07-08 16:52

Re: Emojifix (iOS/Android Emoji SMS fix)
 
@hedayat

Niiiice, good to know! :)

You're welcome, I haven't made big thing unlike you. About color emojis, why not, nobody will say no :D

@peterleinchen

I think aegis hack is mandatory, you confirm that? Because I cannot install "libsms-utils0_0.5.17.3 + 0m7_armel-mod.deb"

Also I tried update cheksum (not found) and refhashlist via terminal in devel-su or root without success...permission denied for my second N9 (no hacks), is it normal or did i something wrong? :/

hedayat 2015-07-08 18:15

Re: Emojifix (iOS/Android Emoji SMS fix)
 
I didn't either, because the problem (UCS-2) was discovered by others. :)

Yes, as I said in post #62, you need "real" root access to update refhashlist; which can be achieved using opensudo, which in turns requires aegis-hack to be installed.

coderus 2015-07-08 18:24

Re: Emojifix (iOS/Android Emoji SMS fix)
 
I know no any working solution for linux to get color emoji fonts working.

peterleinchen 2015-07-08 18:40

Re: Emojifix (iOS/Android Emoji SMS fix)
 
Quote:

Originally Posted by Iryus (Post 1476089)
@peterleinchen

I think aegis hack is mandatory, you confirm that? Because I cannot install "libsms-utils0_0.5.17.3 + 0m7_armel-mod.deb"

Also I tried update cheksum (not found) and refhashlist via terminal in devel-su or root without success...permission denied for my second N9 (no hacks), is it normal or did i something wrong? :/

About using aegis-hack I cannot confirm (as my device is in open mode) but I am quite sure it is needed.
When doing manually above quoted post should give you the pointers.
get the new sha1sum of libsms-utils
put that in /var/lib/aegis/refhashlist
and do the accli command

You need to do that as root (devel-su), possibly you need also to enter develsh.

peterleinchen 2015-07-08 18:56

Re: Emojifix (iOS/Android Emoji SMS fix)
 
@hedayat
I really appreciate your findings and tinkering with hex Editor (reminds me of Symbian times :)).
Did not check myself but believe you two guys that SMS sending also works.

But I would like thp's opinion about that.
Furthermore I would like him to ask to update his solution in following way:
Quote:

The wrapper function is straightforward - just replace fromcode with "UTF-16"
when when function is called with tocode="UTF-8" and fromcode="UCS-2":
Code:

    iconv_t
    xconv_open(const char *tocode, const char *fromcode)
    {
        if (strcmp(tocode, "UTF-8") == 0 && strcmp(fromcode, "UCS-2") == 0) {
            fromcode = "UTF-16";
        }

        return iconv_open(tocode, fromcode);
    }


to
Code:

iconv_t
    xconv_open(const char *tocode, const char *fromcode)
    {
        if (strcmp(tocode, "UTF-8") == 0 && strcmp(fromcode, "UCS-2") == 0) {
            fromcode = "UTF-16";
        }
      if (strcmp(tocode, "UCS-2") == 0 && strcmp(fromcode, "UTF-8") == 0) {
            tocode = "UTF-16";
        }

        return iconv_open(tocode, fromcode);
    }

This should do the trick!?

coderus 2015-07-08 19:09

Re: Emojifix (iOS/Android Emoji SMS fix)
 
refhashlist patcher: http://talk.maemo.org/showpost.php?p...9&postcount=70

hedayat 2015-07-08 21:51

Re: Emojifix (iOS/Android Emoji SMS fix)
 
@coderus: Freetype 2.5 says that it supports color emoji fonts (http://freetype.org/). However, it seems that upper layers should support it too and I have not yet seen "color" emojis while I'm able to use google's Noto Color Emoji font in gedit, it is monochrome and also it doesn't work in many other applications. So, you probably are right; but I didn't want to say that for sure. (It might need changes in Qt itself too).

@peterleinchen Thanks. And I also think that your proposed modification to thp's code will work too.


All times are GMT. The time now is 02:48.

vBulletin® Version 3.8.8