From 678a72f4e0eacf1b939d7ca0d954378122d579de Mon Sep 17 00:00:00 2001 From: Staszek Wawrykiewicz Date: Mon, 6 Jul 2009 17:30:42 +0000 Subject: ps_view 5.11 git-svn-id: svn://tug.org/texlive/trunk@14154 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/tlpsv/README | 5 +- Master/tlpkg/tlpsv/cs/LC_MESSAGES/psv.mo | Bin 0 -> 15295 bytes Master/tlpkg/tlpsv/de/LC_MESSAGES/psv.mo | Bin 15820 -> 15861 bytes Master/tlpkg/tlpsv/en/LC_MESSAGES/psv.mo | Bin 14950 -> 14988 bytes Master/tlpkg/tlpsv/nl/LC_MESSAGES/psv.mo | Bin 15016 -> 15059 bytes Master/tlpkg/tlpsv/pl/LC_MESSAGES/psv.mo | Bin 15696 -> 15735 bytes Master/tlpkg/tlpsv/psv.wx.lua | 95 ++++++++++++++++++------------- Master/tlpkg/tlpsv/psv_help_en.htb | Bin 78470 -> 104158 bytes Master/tlpkg/tlpsv/psv_help_pl.htb | Bin 80630 -> 108962 bytes Master/tlpkg/tlpsv/psv_view.ps | 52 +++++++++++++---- 10 files changed, 99 insertions(+), 53 deletions(-) create mode 100644 Master/tlpkg/tlpsv/cs/LC_MESSAGES/psv.mo (limited to 'Master/tlpkg/tlpsv') diff --git a/Master/tlpkg/tlpsv/README b/Master/tlpkg/tlpsv/README index fbf9478a4b3..51a65a0ae56 100644 --- a/Master/tlpkg/tlpsv/README +++ b/Master/tlpkg/tlpsv/README @@ -1,7 +1,7 @@ PS_View README This is PS_View (a previewing utility for Ghostscript interpreter) -version 5.09. It is initial TeX-Live release -- it is fully +version 5.11. It is TeX-Live 2009 release -- it is fully functional and needs through testing. It can be used as a basic PostScript viewer, but it still probably has bugs. @@ -26,6 +26,7 @@ Package consists of: psv.xpm -- icon for Xwindow psv_about*.ps -- about info files psv_help*.htb -- help files + psv_usage*.pdf -- usage help files pl/, de/, en/, nl/ -- locale messages @@ -72,7 +73,7 @@ Some paths are discovered automatically: Contact: BOP s.c., ul. T. Bora-Komorowskiego 24, 80-377 Gda\'nsk, Poland bop@bop.com.pl -Copyright 1993-2008 P. Strzelczyk, P. Pianowski, B. Jackowski +Copyright 1993-2009 P. Strzelczyk, P. Pianowski, B. Jackowski This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/Master/tlpkg/tlpsv/cs/LC_MESSAGES/psv.mo b/Master/tlpkg/tlpsv/cs/LC_MESSAGES/psv.mo new file mode 100644 index 00000000000..39518bfc059 Binary files /dev/null and b/Master/tlpkg/tlpsv/cs/LC_MESSAGES/psv.mo differ diff --git a/Master/tlpkg/tlpsv/de/LC_MESSAGES/psv.mo b/Master/tlpkg/tlpsv/de/LC_MESSAGES/psv.mo index 6a6f5a7734c..45a613d6cdb 100644 Binary files a/Master/tlpkg/tlpsv/de/LC_MESSAGES/psv.mo and b/Master/tlpkg/tlpsv/de/LC_MESSAGES/psv.mo differ diff --git a/Master/tlpkg/tlpsv/en/LC_MESSAGES/psv.mo b/Master/tlpkg/tlpsv/en/LC_MESSAGES/psv.mo index 071b922fe53..70f72e65136 100644 Binary files a/Master/tlpkg/tlpsv/en/LC_MESSAGES/psv.mo and b/Master/tlpkg/tlpsv/en/LC_MESSAGES/psv.mo differ diff --git a/Master/tlpkg/tlpsv/nl/LC_MESSAGES/psv.mo b/Master/tlpkg/tlpsv/nl/LC_MESSAGES/psv.mo index dd2c97467f8..2550a877589 100644 Binary files a/Master/tlpkg/tlpsv/nl/LC_MESSAGES/psv.mo and b/Master/tlpkg/tlpsv/nl/LC_MESSAGES/psv.mo differ diff --git a/Master/tlpkg/tlpsv/pl/LC_MESSAGES/psv.mo b/Master/tlpkg/tlpsv/pl/LC_MESSAGES/psv.mo index 4518f24f98f..b0ea85b86f8 100644 Binary files a/Master/tlpkg/tlpsv/pl/LC_MESSAGES/psv.mo and b/Master/tlpkg/tlpsv/pl/LC_MESSAGES/psv.mo differ diff --git a/Master/tlpkg/tlpsv/psv.wx.lua b/Master/tlpkg/tlpsv/psv.wx.lua index 6c4f470b537..476d11d5a65 100644 --- a/Master/tlpkg/tlpsv/psv.wx.lua +++ b/Master/tlpkg/tlpsv/psv.wx.lua @@ -5,7 +5,7 @@ -- bop@bop.com.pl -- Copyright: (c) 2008 BOP s.c. -- Licence: GPL --- Current version: 5.09; 02.07.2008 +-- Current version: 5.11; 06.07.2009 -- -- 4.95 -- first working version of Lua engine -- 4.96 -- mouse interface added (and many other changes) @@ -24,12 +24,14 @@ -- 5.07 -- post BachoTeX release -- 5.08 -- full-screen mode -- 5.09 -- LaTeX/HTML help added +-- 5.10 -- bug in DSC reading corrected +-- 5.11 -- some changes to compatibility with GS 8.64, and builtin inits ------------------------------------------------------------------------------]] local PS_VIEW_NAME="PS_View" -local PS_VIEW_VERSION=5.09 +local PS_VIEW_VERSION=5.11 local PS_VIEW_VERSION_STRING -- defined later, after locale loading -local PSV_GsPars = {"-dNOPAUSE","-dDELAYBIND","-dNOEPS"} +local PSV_DftGsPars = {"-dNOPAUSE","-dDELAYBIND","-dNOEPS"} local frame, console = nil, nil @@ -70,13 +72,12 @@ local gsargs = { psvlib= "", -- path to PS_View files (from config file or discovered from -- paths in progs or path to this program -- arg[0]) progs = {}, -- PostScript program to run during init (added at the end of args) - dftpars = PSV_GsPars, -- default GS arguments (can be overriden by config file, - -- added ath the begin of args) + cmd_pars = {}, -- default GS arguments (can be overriden by config file, + -- added at the begin of args) psf_dir = "", -- directory with the curently opened file psf_name = "", -- name of the curently opened file } local psvpars = { - cmd_pars = "", language = "", } local gsstat = { @@ -398,24 +399,24 @@ local Mouse = { Cnone=0, Czoom=1, Cpane=2, Cmeasure=3, Cscroll=4, bx=0, by=0, ex=0, ey=0, scroln=0, CMD=0, mod=0, timer=0,} local Dobject = { n=0, id={}, -Oline=1, Orect=2, Ocros=3, } -Dobject.pens={ [-1] = wx.wxTRANSPARENT_PEN, [0] = -wx.wxBLACK_PEN, wx.wxPen("BLUE",1,wx.wxSOLID), -wx.wxGREEN_PEN, wx.wxCYAN_PEN, -wx.wxRED_PEN, wx.wxPen("MAGENTA",1,wx.wxSOLID), -wx.wxPen("YELLOW",1,wx.wxSOLID), wx.wxWHITE_PEN, -wx.wxPen("BLACK",3,wx.wxSOLID), wx.wxPen("BLUE",3,wx.wxSOLID), -wx.wxPen("GREEN",3,wx.wxSOLID), wx.wxPen("CYAN",3,wx.wxSOLID), -wx.wxPen("RED",3,wx.wxSOLID), wx.wxPen("MAGENTA",3,wx.wxSOLID), -wx.wxPen("YELLOW",3,wx.wxSOLID), wx.wxPen("WHITE",3,wx.wxSOLID), -} -Dobject.brushess={ [-1] = wx.wxTRANSPARENT_BRUSH, [0] = -wxBLACK_BRUSH, wx.wxBLUE_BRUSH, -wxGREEN_BRUSH, wxCYAN_BRUSH, -wxRED_BRUSH, wx.wxBrush("MAGENTA",wx.wxSOLID), -wx.wxBrush("YELLOW",wx.wxSOLID), wxWHITE_BRUSH, -wxGREY_BRUSH -} + Oline=1, Orect=2, Ocros=3, } + Dobject.pens={ [-1] = wx.wxTRANSPARENT_PEN, [0] = + wx.wxBLACK_PEN, wx.wxPen("BLUE",1,wx.wxSOLID), + wx.wxGREEN_PEN, wx.wxCYAN_PEN, + wx.wxRED_PEN, wx.wxPen("MAGENTA",1,wx.wxSOLID), + wx.wxPen("YELLOW",1,wx.wxSOLID), wx.wxWHITE_PEN, + wx.wxPen("BLACK",3,wx.wxSOLID), wx.wxPen("BLUE",3,wx.wxSOLID), + wx.wxPen("GREEN",3,wx.wxSOLID), wx.wxPen("CYAN",3,wx.wxSOLID), + wx.wxPen("RED",3,wx.wxSOLID), wx.wxPen("MAGENTA",3,wx.wxSOLID), + wx.wxPen("YELLOW",3,wx.wxSOLID), wx.wxPen("WHITE",3,wx.wxSOLID), + } + Dobject.brushess={ [-1] = wx.wxTRANSPARENT_BRUSH, [0] = + wxBLACK_BRUSH, wx.wxBLUE_BRUSH, + wxGREEN_BRUSH, wxCYAN_BRUSH, + wxRED_BRUSH, wx.wxBrush("MAGENTA",wx.wxSOLID), + wx.wxBrush("YELLOW",wx.wxSOLID), wxWHITE_BRUSH, + wxGREY_BRUSH + } local v_quiet,v_normal,v_verbose=2,6,10 @@ -615,7 +616,7 @@ function SendLocaleEvent(f,a) SendEventCommand ("LOCALE","(%s) (%s) -1",a,a) end elseif f=="I" then - SendEventCommand ("LOCALE","(%s) (%s) 0", gsobj.locale:GetLocale(), + SendEventCommand ("LOCALE","(%s) (%s) 0", gsobj.locale:GetLocale(), string.sub(gsobj.locale:GetName(),1,2)) elseif f=="S" then local lang=gsobj.locale.FindLanguageInfo(a) @@ -689,14 +690,14 @@ function ReadDSCcomments(fname) psb,pse = pstr:find("%%",pse,true) if psb then if pstr:sub(psb-1,pse):match("[\n\r]%%[%%D!]") then - pseb,psee = pstr:find("[\n\r]+",pse) + pseb,psee = pstr:find("[\n\r]+",pse) if pseb then pse=psee SendDSCComment(pstr:sub(psb,pseb-1),pp+psb,pp+pse) elseif pn==psend then pse=pstr:len() SendDSCComment(pstr:sub(psb,pse),pp+psb,pp+pse) - elseif psb+1024