You are not logged in.

#51 2011-05-31 02:33:56

dubberx
Member
Registered: 2011-05-31
Posts: 1

Re: zathura - a document viewer

Hi,

Here is simple patch against 89e8ebdc / 0.0.8.3 to fix the key-grabbing issue when switching to fullscreen. I do believe this fixes http://bt.pwmt.org/view.php?id=33

 diff --git a/zathura.c b/zathura.c
 index 370c589..9e5b38a 100644
 --- a/zathura.c
 +++ b/zathura.c
 @@ -2559,6 +2559,8 @@ sc_toggle_fullscreen(Argument* argument)
  
      Zathura.Global.mode = FULLSCREEN;
      fs = FALSE;
 +
 +    isc_abort(NULL);
    }
    else
    {

/A

Offline

#52 2011-05-31 03:01:27

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: zathura - a document viewer

Is it possible to make Zathura compatible with the numpad for numbers and the +/- symbol?

Also to help with this bug:

https://bugs.archlinux.org/task/23387

Could a .desktop file be included in the Zathura source?

Offline

#53 2011-05-31 03:12:12

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: zathura - a document viewer

anonymous_user wrote:

Also to help with this bug:

https://bugs.archlinux.org/task/23387

Could a .desktop file be included in the Zathura source?

Write it and submit it. mlq has been extraordinarily receptive to community involvement, so there's a very good chance that it will be included.

Offline

#54 2011-05-31 07:28:09

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: zathura - a document viewer

anonymous_user wrote:

Is it possible to make Zathura compatible with the numpad for numbers and the +/- symbol?

Also to help with this bug:

https://bugs.archlinux.org/task/23387

Could a .desktop file be included in the Zathura source?

It does include one, it was just installed into the wrong directory by default. It's fixed now and works for me.

Offline

#55 2011-06-25 15:55:11

sironitomas
Member
From: Cordoba, Argentina
Registered: 2009-11-28
Posts: 174
Website

Re: zathura - a document viewer

Does anyone know the option equivalent to pressing 's' (zoom to width) in .zathurarc? Thanks

Offline

#56 2011-06-25 17:36:12

mlq
Member
Registered: 2011-03-15
Posts: 171
Website

Re: zathura - a document viewer

Hello,

sironitomas wrote:

Does anyone know the option equivalent to pressing 's' (zoom to width) in .zathurarc? Thanks

Like I answered you on the mailing list:

set adjust_open width

Best regards

Offline

#57 2011-06-25 23:56:58

lchr
Member
From: Denmark
Registered: 2011-05-10
Posts: 38
Website

Re: zathura - a document viewer

Zathura is stylish and it does everything I need. The fact that it uses vim keybindings is fantastic.

Thanks for this wonderful pdf viewer. I love it dearly.

Offline

#58 2011-06-26 01:56:30

sironitomas
Member
From: Cordoba, Argentina
Registered: 2009-11-28
Posts: 174
Website

Re: zathura - a document viewer

mlq wrote:

Like I answered you on the mailing list:

set adjust_open width

Best regards

Sorry, I didn't get the mail from the mailing list.

Thanks anyway.

Offline

#59 2011-07-10 10:47:35

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: zathura - a document viewer

Can you guys build the mupdf branch? I'm getting some kind of linker error, unfortunately my experience with C or linking is... underwhelming.

Offline

#60 2011-07-10 11:23:12

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: zathura - a document viewer

It builds here, but in the end it doesn't work.
Here's what I get

% zathura Einzelseiten_Katalog_GG_2011.pdf
error: could not open plugin directory: /usr/local/lib/zathura
info: /usr/lib/zathura/. is not a regular file. Skipping.
info: /usr/lib/zathura/.. is not a regular file. Skipping.
error: could not load plugin /usr/lib/zathura/pdf.so (/usr/lib/zathura/pdf.so: undefined symbol: opj_set_default_decoder_parameters)
error: Could not open configuration file '/etc/zathurarc'
error: Could not open configuration file '/home/army/.config/zathura/zathurarc'
% pacman -Qo /usr/lib/zathura/pdf.so
/usr/lib/zathura/pdf.so is owned by zathura-pdf-mupdf-git 20110707-1
% pacman -Qs zathura
local/zathura-girara-git 20110707-1 [0.11 MB]
    Vim like document viewer
local/zathura-pdf-mupdf-git 20110707-1 [5.45 MB]
    Adds PDF support to zathura by using the mupdf rendering library

So everyhting is installed, but there's a problem in the pdf plugin.

Offline

#61 2011-07-28 03:10:08

nXqd
Member
Registered: 2010-07-01
Posts: 173

Re: zathura - a document viewer

I would like to have highlighting feature in zathura ? Do you think about it ?


When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles

Offline

#62 2011-09-02 14:54:39

dwight
Member
From: Estonia
Registered: 2005-05-22
Posts: 18

Re: zathura - a document viewer

I was very glad to find this lightweight PDF viewer with a VIMesque approach. One question though.. I'm not able to change the print_command setting through the zathurarc file. If i do that, then I'm greeted with an error message:

sh: lp -d 'color' -P 1  '/home/ardo/docs/main.pdf': No such file or directory

This was obtained by just setting printer_command to the same value it has in config.h

set print_command "lp -d '%s' -P %s %s %s"

If I leave the print_command unchanged then printing with lp works just fine.

I want to change the print command because I need to print using gtklp which allows me to set all kinds of printing options that vary from one file to another. I can get it to work with this:

diff -aur old/config.def.h new/config.def.h
--- old/config.def.h	2011-09-02 17:41:07.949057270 +0300
+++ new/config.def.h	2011-09-02 17:27:57.000000000 +0300
@@ -74,7 +74,8 @@
 
 /* printing */
 char* list_printer_command = "lpstat -v | sed -n '/^.*device for \\(.*\\): .*$/s//\\1/p'";
-char* print_command = "lp -d '%s' -P %s %s %s"; /* printer / pages / file */
+//char* print_command = "lp -d '%s' -P %s %s %s"; /* printer / pages / file */
+char* print_command = "gtklp %s"; /* file */
 
 /* open uri */
 char* uri_command = "firefox %s"; /* uri */
diff -aur old/zathura.c new/zathura.c
--- old/zathura.c	2011-09-02 17:41:07.949057270 +0300
+++ new/zathura.c	2011-09-02 17:24:10.000000000 +0300
@@ -3629,11 +3629,11 @@
   if(!Zathura.PDF.document)
     return TRUE;
 
-  if(argc == 0)
+  /*if(argc == 0)
   {
     notify(WARNING, "No printer specified");
     return FALSE;
-  }
+  }*/
 
   char* printer    = argv[0];
   char* sites      = (argc >= 2) ? g_strdup(argv[1]) : g_strdup_printf("1-%i", Zathura.PDF.number_of_pages);
@@ -3649,7 +3649,7 @@
   }
 
   char* escaped_filename = g_shell_quote(Zathura.PDF.file);
-  char* command          = g_strdup_printf(print_command, printer, sites, addit->str, escaped_filename);
+  char* command          = g_strdup_printf(print_command, escaped_filename);
   system(command);
 
   g_free(sites);

This gives me what I want, but am I doing it the hard way? Should I be able to achieve the same goal with somehow editing the printer_command setting?

Offline

#63 2011-09-13 22:12:16

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: zathura - a document viewer

I'm not sure if this is a problem related to zathura or openbox and adeskbar but zathura opens without a proper icon in the taskbar which is difficult to identify when zathura is minimised. To better understand what I mean, I provide you a screenshot of my taskbar.

Zathura_bar.png

Regards

Offline

#64 2011-09-23 00:44:37

sunaku
Member
From: /dev/tty
Registered: 2010-09-29
Posts: 140
Website

Re: zathura - a document viewer

I'm not able to map the BackSpace key in zathura 0.0.8.4-2.

My ~/.config/zathura/zathurarc file has this:

map <BackSpace> scroll full_up

I also tried to define the mapping for normal mode only, but no luck:

map <BackSpace> scroll full_up normal

Has anyone been able to map BackSpace successfully?  Thanks.

*Edit: I got no responses here, so I filed a proper bug report.

Last edited by sunaku (2011-09-28 16:35:52)

Offline

#65 2011-09-28 11:18:14

manolomartinez
Member
Registered: 2011-04-29
Posts: 66
Website

Re: zathura - a document viewer

When I copy in Zathura, the text that that gets into the registry is one that is in the same page as the text inside the box, but not exactly the one inside the box. Is anyone else seen this (I guess) bug?

Cheers,
Manolo

Offline

#66 2011-09-28 16:25:56

sunaku
Member
From: /dev/tty
Registered: 2010-09-29
Posts: 140
Website

Re: zathura - a document viewer

manolomartinez wrote:

When I copy in Zathura, the text that that gets into the registry is one that is in the same page as the text inside the box, but not exactly the one inside the box. Is anyone else seen this (I guess) bug?

Cheers,
Manolo

Yes, that is a known bug.

Offline

#67 2011-09-29 02:10:24

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: zathura - a document viewer

How would I select all the text of a document with serveral pages and copy it to clipboard?

Is the visual mode capable to do that?

Regards

Offline

#68 2011-09-29 04:05:25

sunaku
Member
From: /dev/tty
Registered: 2010-09-29
Posts: 140
Website

Re: zathura - a document viewer

orschiro wrote:

How would I select all the text of a document with serveral pages and copy it to clipboard?

Is the visual mode capable to do that?

Regards

If you don't mind using tools outside of Zathura, then you could convert the entire document into text (using pdftotext program -- part of poppler package) and extract your wanted portions.

Offline

#69 2011-09-29 04:06:48

sunaku
Member
From: /dev/tty
Registered: 2010-09-29
Posts: 140
Website

Re: zathura - a document viewer

sunaku wrote:
orschiro wrote:

How would I select all the text of a document with serveral pages and copy it to clipboard?

Is the visual mode capable to do that?

Regards

If you don't mind using tools outside of Zathura, then you could convert the entire document into text (using pdftotext program -- part of poppler package) and extract your wanted portions.

Oh, it seems pdftotext is even smarter than that.  Its manpage shows that it accepts a page range to convert. cool

Last edited by sunaku (2011-09-29 04:07:04)

Offline

#70 2011-09-29 06:31:47

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: zathura - a document viewer

Good to know about pdtotext. However, there is no inbuild solution with zathura?

Offline

#71 2011-09-29 09:46:20

manolomartinez
Member
Registered: 2011-04-29
Posts: 66
Website

Re: zathura - a document viewer

sunaku wrote:
manolomartinez wrote:

When I copy in Zathura, the text that that gets into the registry is one that is in the same page as the text inside the box, but not exactly the one inside the box. Is anyone else seen this (I guess) bug?

Cheers,
Manolo

Yes, that is a known bug.

I see, thank you, I'll keep an eye on the bug report.

Offline

#72 2011-10-25 11:03:22

penguin
Member
From: Gotham City
Registered: 2010-12-31
Posts: 167

Re: zathura - a document viewer

Maybe a cardinal sin, but I'd like to see how "emacsy" I can get Zathura, but most of what I put in zathurarc doesn't work.

Like:

map <A-x> focus_inputbar

gives "no valid modifyer given"

What am I doing wrong?

I'm using version 0.8.4.

Offline

#73 2011-10-27 19:19:59

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: zathura - a document viewer

Can you please add the functionality to go to the next/previous slides by using left and right arrow keys as only up and down?

The current solution with up/down keys prevents presenters to be able to cycle through a presentation.

Regards

Offline

#74 2011-10-27 19:52:38

mallet
Member
Registered: 2011-10-27
Posts: 3

Re: zathura - a document viewer

Zathura is a good PDF reader. Thank you for your work.

Are there plans to include continuous scrolling (across pages)?

Also, I recommend you have a look at mupdf which I find significantly faster. Maybe there are clever optimizations in mupdf that zathura could use?

Offline

#75 2011-10-28 00:20:31

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: zathura - a document viewer

mallet wrote:

Are there plans to include continuous scrolling (across pages)?

If you read the bug tracker or the previous posts in this thread, you'll see its in the next version.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB