maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   PDF-Reader no longer able to display mathematical symbols in PR 1.2 (https://talk.maemo.org/showthread.php?t=53925)

rebhana 2010-05-26 22:19

PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
The PDF-Reader used to work perfectly for me to display documents containing mathematical formulae, for instance scientific papers from http://arxiv.org. After the upgrade to PR 1.2, it doesn't display any math any longer! :eek:

Other apps capable of displaying pdf files such as xournal don't have any problems after the upgrade, while the standard PDF reader, which I liked very much, is now almost completely useless for me.

Can anyone verify this problem? E.g., by opening a random physics preprint from arxiv.org, like the following short pdf file http://arxiv.org/pdf/1005.1132

Anyone any idea how to fix that? Could crucial files have been inadvertently removed from PR1.2 that would still be available in the older firmware?

UPDATE: Fixed finally in PR1.3.

lorelei 2010-05-26 23:04

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
yup, confirming that most of the math symbols are missing...wondering which font got removed from PR1.2...

lorelei 2010-05-26 23:07

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
uhm no, in fact it's possible that PDF-Reader doesn't read the embedded fonts anymore (by looking at the properties of the file (from acrobat) it looks like most of the symbols are from embedded fonts, and not from system-wide fonts...

rebhana 2010-05-26 23:07

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
Thanks for confirming that! Curiously xournal still can display everything fine, and that app certainly doesn't come with additional specialized fonts! I always thought that pdf files have their fonts embedded somehow.

rebhana 2010-05-26 23:12

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
If the pdf reader doesn't look at the embedded fonts any longer, I guess there is no easy fix.

Strangely enough, I didn't see osso-pdf-viewer in the changelog.

codeMonkey 2010-05-27 05:04

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
Evince also displays them without a problem.

rebhana 2010-05-27 06:03

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
Quote:

Originally Posted by codeMonkey (Post 681577)
Evince also displays them without a problem.

I know! I'm using it through Easy Debian in fact. Would it be possible to have evince opened automatically when viewing a pdf with microB?

Since osso-pdf-viewer is hopefully open source, is there a way to have that fixed by the community, and not have to wait for PR 1.3 now? :rolleyes:

HellFlyer 2010-05-27 06:06

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
What if we install Droid fonts? can that solve the problem?
Also I've noticed pdf viewer became less stable I tried to open big pdfs like i was doing in pr 1.1.1 but now it showed me a warning not enough memory and opened files after 10 seconds or so

jessi3k3 2010-05-27 06:14

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
Quote:

Originally Posted by HellFlyer (Post 681680)
What if we install Droid fonts? can that solve the problem?
Also I've noticed pdf viewer became less stable I tried to open big pdfs like i was doing in pr 1.1.1 but now it showed me a warning not enough memory and opened files after 10 seconds or so

I've already have Droid Fonts and it stlll has this issue.Unless the pdf reader specifically references Droid fonts i dont think it will use them.

rebhana 2010-05-27 06:21

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
I also already have Droid fonts and it didn't help. If the problem is simply that embedded fonts are not used, while the viewer in principle can handle them, one would have to find out what stopped that.

rebhana 2010-05-27 11:36

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
I've filed a bug. If you also suffer from this breakage, consider voting for it:
https://bugs.maemo.org/show_bug.cgi?id=10345

rebhana 2010-05-27 18:06

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
While I still hope for a quick fix for the standard pdf reader, I can report that evince from extras-devel is a good alternative (have been using evince from Easy Debian so far, but the native version is more convenient).

Does anybody know how to make microB use evince in place of the standard pdf reader when opening pdf documents in the browser?

rebhana 2010-05-27 19:13

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
I now found a quick fix for myself, so I don't have to wait for PR 1.3 any longer... :D

The problem is just the executable
Code:

-rwxr-xr-x    1 root    root      1008844 Feb 11 11:02 /usr/bin/osso_pdfviewer.launch
Having made a complete backup of my device some time ago, I replaced that by the one from PR1.1.1
Code:

-rwxr-xr-x    1 root    root      1050160 2009-09-30 16:03 /usr/bin/osso_pdfviewer.launch
which interestingly enough is a 5% larger binary file. Now the pdf reader works as before.

debernardis 2010-05-28 05:10

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
Wouldn't you attach the binary here please? ;)

rebhana 2010-05-28 06:36

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
1 Attachment(s)
Quote:

Originally Posted by debernardis (Post 684675)
Wouldn't you attach the binary here please? ;)

I failed at first, because it is too large. But gzipped it is just below the allowed limit for t.m.o. uploads, so here it is.

After you unpack, the md5sum should be
Code:

61f15005f78234b66ac75125edf270d6
So for all those who want to apply this quick fix of reverting to the previous version of osso pdf viewer, here are my instructions for backing up the PR1.2 binary and replacing it with the one in the attachment: As root do
Code:

gunzip osso_pdfviewer.launch.gz
md5sum osso_pdfviewer.launch
mv /usr/bin/osso_pdfviewer.launch \
 /home/user/osso_pdfviewer.launch-PR1.2
cp osso_pdfviewer.launch /usr/bin
chmod a+x /usr/bin/osso_pdfviewer.launch

Usual disclaimer: follow these instructions at your own risk, i.e. be careful and make sure you know what you are doing.

EDIT: No longer necessary/recommended in PR1.3, which fixed the regression.

arajantie 2010-05-28 14:41

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
Quote:

Originally Posted by rebhana (Post 683561)
While I still hope for a quick fix for the standard pdf reader, I can report that evince from extras-devel is a good alternative (have been using evince from Easy Debian so far, but the native version is more convenient).

Does anybody know how to make microB use evince in place of the standard pdf reader when opening pdf documents in the browser?

Change the application/pdf line in /usr/share/applications/defaults.list to
Code:

application/pdf=hildon-evince.desktop
and run
Code:

sudo update-mime-database /usr/share/mime
PDF files should then open in evince. (You may need to reboot.)

Big Phat Jan 2010-05-28 14:46

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
Quote:

Originally Posted by arajantie (Post 685809)
Change the application/pdf line in /usr/share/applications/defaults.list to
Code:

application/pdf=hildon-evince.desktop
and run
Code:

sudo update-mime-database /usr/share/mime
PDF files should then open in evince. (You may need to reboot.)

I think (not sure) that if you instead modify /etc/gnome/defaults.list there is no need to reboot (or update-mime-database).

Cheers,
Jan

arajantie 2010-05-28 14:59

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
In fact, /usr/share/applications/defaults.list seems to be a symbolic link to /etc/gnome/defaults.list, so it shouldn't matter which one you edit. Indeed, you may not need to update-mime-database or reboot. I did those, and it worked, but it could have worked without.

Big Phat Jan 2010-05-28 15:03

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
Quote:

Originally Posted by arajantie (Post 685860)
In fact, /usr/share/applications/defaults.list seems to be a symbolic link to /etc/gnome/defaults.list, so it shouldn't matter which one you edit. Indeed, you may not need to update-mime-database or reboot. I did those, and it worked, but it could have worked without.

This isn't the case on my phone. I have been playing with these today (and with your useful tvcatchup script!) and I have found that a reboot is required after editing /usr/share/applications/defaults.list and not after editing /etc/gnome/defaults.list. I suspect perhaps that /usr/share/applications/defaults.list is used to populate /etc/gnome/defaults.list at startup but not really sure.

Cheers,
Jan

arajantie 2010-05-28 15:39

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
Quote:

Originally Posted by Big Phat Jan (Post 685875)
This isn't the case on my phone. I have been playing with these today (and with your useful tvcatchup script!) and I have found that a reboot is required after editing /usr/share/applications/defaults.list and not after editing /etc/gnome/defaults.list. I suspect perhaps that /usr/share/applications/defaults.list is used to populate /etc/gnome/defaults.list at startup but not really sure.

Cheers,
Jan

Interesting...
Code:

~ $ ls -l /usr/share/applications/defaults.list
lrwxrwxrwx    1 root    root          24 May 18 10:50 /usr/share/applications/defaults.list -> /etc/gnome/defaults.list

Anyway, it would be great if you could get the script to launch directly from the browser, but it seems that the MIME system does not support command line arguments.

Big Phat Jan 2010-05-28 15:48

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
Quote:

Originally Posted by arajantie (Post 685960)
Interesting...
Code:

~ $ ls -l /usr/share/applications/defaults.list
lrwxrwxrwx    1 root    root          24 May 18 10:50 /usr/share/applications/defaults.list -> /etc/gnome/defaults.list

Anyway, it would be great if you could get the script to launch directly from the browser, but it seems that the MIME system does not support command line arguments.

Weird! Perhaps this changed in PR1.2 (I did a complete reflash). Well, not so important I suppose...

Cheers,
Jan

rebhana 2010-05-28 17:28

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
Quote:

Originally Posted by Big Phat Jan (Post 685987)
Weird! Perhaps this changed in PR1.2 (I did a complete reflash). Well, not so important I suppose...

Just checked on my backup: it was the same in PR1.1.1.

Anyway, many thanks to you guys from Imperial for this very useful piece of information! That could be useful for many other things!

arajantie 2010-05-29 09:46

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
I also tried setting Xournal as the default application for PDFs in the same way, but that does not seem to work. That is a shame, because Xournal is great for writing comments directly on the PDF.

rebhana 2010-05-29 11:49

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
qole told me that he is having success in making Easy Debian applications getting launched from the browser directly and that he will have something out soon. That would be phantastic. I found xournal from Easy Debian much more capable than the Maemo version. Also, evince from Easy Debian can display postscript and dvi, etcetc.

rebhana 2010-05-29 14:24

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
Quote:

Originally Posted by arajantie (Post 685809)
Change the application/pdf line in /usr/share/applications/defaults.list to
Code:

application/pdf=hildon-evince.desktop
and run
Code:

sudo update-mime-database /usr/share/mime
PDF files should then open in evince. (You may need to reboot.)

Adding also the line
Code:

image/vnd.djvu=hildon-evince.desktop
in defaults.list allows one to open djvu files directly from the browser! (Postscript and dvi however aren't supported (yet?) by qwerty12's evince app.)

pelago 2010-06-04 16:10

Re: PDF-Reader no longer able to display mathematical symbols in PR 1.2
 
Quote:

Originally Posted by rebhana (Post 681676)
Since osso-pdf-viewer is hopefully open source, is there a way to have that fixed by the community, and not have to wait for PR 1.3 now? :rolleyes:

It looks like http://repository.maemo.org/pool/mae...so-pdf-viewer/ contains the source for the working and broken version. Maybe someone who knows what they're doing could compare the source for the two versions to see where the bug is. The changes between the two versions are:
Code:

osso-pdf-viewer (1.8.06-1+0m5) unstable; urgency=low

  * This entry has been added by BIFH queue processor
    Suffix +0m5 added to package revision

 -- Aravind Venkata <ext-aravind.taduturi@nokia.com>  Thu, 11 Feb 2010 11:57:54 +0200

osso-pdf-viewer (1.8.06-1) unstable; urgency=low

  * Fixes: NB#145129 PDF reader crashes always when opening attached PDF file

 -- Maske Amish <amish.maske@nokia.com>  Tue, 09 Feb 2010 2:54:00 +0530

osso-pdf-viewer (1.7.53-1) unstable; urgency=low

  * Fixes:

 -- Maske Amish <amish.maske@nokia.com>  Mon, 28 Dec 2009 2:39:00 +0530

osso-pdf-viewer (1.7.52-1) unstable; urgency=low

  * Fixes: NB#142095 PDF Reader.Context-sensitive menu options are too small

 -- Maske Amish <amish.maske@nokia.com>  Tue, 22 Dec 2009 11:35:00 +0530

osso-pdf-viewer (1.7.48-1) unstable; urgency=low

  * Fixes: NB#122966 PDF Viewer, Unnecessary colons within Details dialog
  * Fixes: NB#131156 "unable to save" information banner is missing

 -- Maske Amish <amish.maske@nokia.com>  Wed, 25 Nov 2009 15:10:00 +0530

Does anyone know if osso-pdf-viewer is developed in the open, e.g. on gitorious, so that individual code changes can be analysed, as that might make it easier?


All times are GMT. The time now is 08:47.

vBulletin® Version 3.8.8