LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-15-2018, 06:27 AM   #1
Toutatis
Member
 
Registered: Feb 2013
Posts: 411

Rep: Reputation: Disabled
problem with okular


Hello,

I have installed "recoll" (which can find keywords inside documents). It is possible to visualize documents from recoll, using okular (I use AlienBob's KDE5).
But when a postscript file compressed with bzip2 is found, the uncompressed postscript is stored in /tmp, in a file with the extension .ai .
But okular cannot open such a file, even if it is a valid postscript document.
What can be done ?
 
Old 05-15-2018, 06:40 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,090

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
I don't know the specific of that particular file, but usually *.ai files are Adobe Illustrator Artwork vector files, a special kind of proprietary-format postscript (maybe not supported by okular): I usually import them using inkscape, I'm not sure if karbon (included with kde 5) is actually able to open them.
alternatively you can use ghostscript to convert them (not tried this here).

Last edited by ponce; 05-15-2018 at 06:50 AM.
 
2 members found this post helpful.
Old 05-15-2018, 08:43 AM   #3
Toutatis
Member
 
Registered: Feb 2013
Posts: 411

Original Poster
Rep: Reputation: Disabled
in fact the uncompressed files in /tmp/ are exactly the same as the original ones, except the names ( *.ps for the original ones, *.ai for the files created by recoll in /tmp).
It seems that okular accepts or refuses files according to their names
 
1 members found this post helpful.
Old 05-15-2018, 08:48 AM   #4
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by Toutatis View Post

<<snip>>

It seems that okular accepts or refuses files according to their names
Sigh ... It is so sad to see the magic (*) leaving linux one GUI app at a time ...

-- kjh

(*) magic as in /etc/magic ...
 
2 members found this post helpful.
Old 05-15-2018, 12:34 PM   #5
Toutatis
Member
 
Registered: Feb 2013
Posts: 411

Original Poster
Rep: Reputation: Disabled
The author of recoll suggested the following trick to solve the problem : put a fake definition in ~/.recoll/mimemap:

.ai = application/postscript1

After that the uncompressed postscript files in /tmp are *.eps, and okular can show them.
(he said also that he will provide a more complete solution)
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Okular bookmarks, annotations lost for renamed PDFs, etc. (Okular 0.16.2, KDE 4.10.2) Geremia Linux - Software 6 10-22-2019 05:27 AM
[SOLVED] Okular-4.10.4 is broken? yars Slackware 7 06-15-2013 01:54 PM
[SOLVED] Problem with okular (or ghostscript ?) Toutatis Slackware 6 05-22-2013 03:58 AM
okular aarsh Linux - Software 1 05-05-2011 12:50 AM
Problem printing pdf files (okular 0.8.4 KDE 4.2.4) on openSuse 11.1 Kapten Beard Linux - Newbie 3 02-04-2010 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration