Just some ideas.
]]>this is a really nice application. Great work!
The only thing which annoyed me a little bit is this: When opening an encrypted pdf I have to put the cursor into the password input line. It would be very handy if it would be there automatically and I could immediatly start typing in the password. It's just a minor issue but maybe easy to implement!?
Anyways, keep it up!
Regards
]]>The website has been updated: http://pwmt.org
The new website looks very nice.
Can you please fill in a feature request.
I have just filled a feature request for that. For me it is the only feature which I miss in zathura.
Everything else is just perfect. Especially, the speed and and robustness.
Thanks for such a great app.
Regards,
Ignas
The website has been updated: http://pwmt.org
I have two small patches
Thank you, I will check them out.
Would it be hard to implement showing two A4 (LTR, whatever) pages side-by-side? Switching to one page mode if A3 (or double-width LTR) would be a bonus. Basically, the idea is to fill 16:10 screen.
While the concept behind zathura is nice, it is quite useless right now for reading datasheets, manuals, books, and >50% of other documents.
Can you please fill in a feature request.
Best regards
]]>I have two small patches, they worke for me, but I am not an expert
The first is useful, for scripting. You can get open pdfs with something like xprop | grep _URI. The second is just for people with small screens.
I don't know where to put the atom_uri variable. You may have to clean this.
Maybe it would be cool to have an option for a tiny status bar, but I'm fine with patching.
regards
atom uri:
--- src/zathura/zathura.c 2011-02-28 23:30:15.566667385 +0100
+++ src/zathuraatomuri/zathura.c 2011-03-04 22:47:19.550000406 +0100
@@ -16,6 +16,8 @@
#include <glib/gstdio.h>
#include <gtk/gtk.h>
+#include <gdk/gdkx.h>
+#include <X11/Xatom.h>
#include <gdk/gdkkeysyms.h>
/* macros */
@@ -49,6 +51,8 @@
#define INDEX (1 << 2)
#define NORMAL (1 << 3)
+static Atom atom_uri = NULL;
+
/* typedefs */
struct CElement
{
@@ -696,6 +700,9 @@
Zathura.StdinSupport.file = NULL;
+ atom_uri = XInternAtom(GDK_DISPLAY(),"_URI",False);
+
+
/* window */
if(Zathura.UI.embed)
Zathura.UI.window = gtk_plug_new(Zathura.UI.embed);
@@ -1420,6 +1427,7 @@
/* set window title */
gtk_window_set_title(GTK_WINDOW(Zathura.UI.window), basename(file));
+
/* show document */
set_page(start_page);
update_status();
@@ -1491,6 +1499,9 @@
g_free(Zathura.StdinSupport.file);
Zathura.StdinSupport.file = file;
+ XSync(GDK_DISPLAY(), False);
+ XChangeProperty(GDK_DISPLAY(), GDK_WINDOW_XID(Zathura.UI.window->window), atom_uri, XA_STRING, 8, PropModeReplace, (unsigned char *)file,strlen(file) + 1);
+
return open_file(Zathura.StdinSupport.file, password);
}
tiny status bar:
--- zathura/zathura.c 2011-02-09 18:26:34.996666668 +0100
+++ zathuracust/zathura.c 2011-02-10 18:30:56.750002083 +0100
@@ -676,7 +676,7 @@
Zathura.Global.recolor = 0;
Zathura.Global.goto_mode = GOTO_MODE;
Zathura.Global.show_index = FALSE;
- Zathura.Global.show_inputbar = TRUE;
+ Zathura.Global.show_inputbar = FALSE;
Zathura.Global.show_statusbar = TRUE;
Zathura.State.pages = g_strdup("");
@@ -756,9 +756,9 @@
gtk_misc_set_alignment(GTK_MISC(Zathura.Global.status_state), 1.0, 0.0);
gtk_misc_set_alignment(GTK_MISC(Zathura.Global.status_buffer), 1.0, 0.0);
- gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_text), 2.0, 4.0);
- gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_state), 2.0, 4.0);
- gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_buffer), 2.0, 4.0);
+ gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_text), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_state), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_buffer), 0.0, 0.0);
gtk_label_set_use_markup(Zathura.Global.status_text, TRUE);
gtk_label_set_use_markup(Zathura.Global.status_state, TRUE);
@@ -771,7 +771,7 @@
gtk_container_add(GTK_CONTAINER(Zathura.UI.statusbar), GTK_WIDGET(Zathura.UI.statusbar_entries));
/* inputbar */
- gtk_entry_set_inner_border(Zathura.UI.inputbar, NULL);
+ gtk_entry_set_inner_border(Zathura.UI.inputbar, gtk_border_new());
gtk_entry_set_has_frame( Zathura.UI.inputbar, FALSE);
gtk_editable_set_editable( GTK_EDITABLE(Zathura.UI.inputbar), TRUE);
@@ -1990,7 +1990,10 @@
}
if(!Zathura.Global.show_inputbar)
+ {
gtk_widget_hide(GTK_WIDGET(Zathura.UI.inputbar));
+ gtk_widget_show(GTK_WIDGET(Zathura.UI.statusbar));
+ }
/* Set back to normal mode */
change_mode(NORMAL);
@@ -2077,6 +2080,7 @@
{
if(!(GTK_WIDGET_VISIBLE(GTK_WIDGET(Zathura.UI.inputbar))))
gtk_widget_show(GTK_WIDGET(Zathura.UI.inputbar));
+ gtk_widget_hide(GTK_WIDGET(Zathura.UI.statusbar));
if(argument->data)
{
Are they the same as pdftk options? Something else I just don't know? Thanks for any suggestions. If the options are from some other library, perhaps the man page could say something like, "For print options, see x."
zathura uses the lp command for printing the files. You should find the information needed with "man lp". I know that zathura as well as jumanji lacks a bit of documentation which I want to change with the new release in the future.
Best regards
]]>Are they the same as pdftk options? Something else I just don't know? Thanks for any suggestions. If the options are from some other library, perhaps the man page could say something like, "For print options, see x."
Thanks
]]>Would be awesome to have an image viewer like that, with the same look.
]]>edit: nvm, it's because the page needs some time to load, and the defaultbg_color is 'black' so it looks like it's flickering. Cheers!
]]>tjwoosta wrote:It seems the options for reading such formats in linux are extremely limited.
You have calibre, but still... The options are very limited. zathura reading those formats would just be the perfect program for my 4:5 screen!
girara branch in the zathura git repository.
Best regards
]]>