texlive[43300] Master/texmf-dist/doc/support/wintools:
commits+kakuto at tug.org
commits+kakuto at tug.org
Wed Feb 22 13:17:23 CET 2017
Revision: 43300
http://tug.org/svn/texlive?view=revision&revision=43300
Author: kakuto
Date: 2017-02-22 13:17:23 +0100 (Wed, 22 Feb 2017)
Log Message:
-----------
doc/support/wintools: Documents for poppler utilities
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/support/wintools/pdfdetach.pdf
trunk/Master/texmf-dist/doc/support/wintools/pdffonts.pdf
trunk/Master/texmf-dist/doc/support/wintools/pdfimages.pdf
trunk/Master/texmf-dist/doc/support/wintools/pdfinfo.pdf
trunk/Master/texmf-dist/doc/support/wintools/pdftohtml.pdf
trunk/Master/texmf-dist/doc/support/wintools/pdftoppm.pdf
trunk/Master/texmf-dist/doc/support/wintools/pdftops.pdf
trunk/Master/texmf-dist/doc/support/wintools/pdftotext.pdf
Added Paths:
-----------
trunk/Master/texmf-dist/doc/support/wintools/pdfseparate.pdf
trunk/Master/texmf-dist/doc/support/wintools/pdfsig.pdf
trunk/Master/texmf-dist/doc/support/wintools/pdftocairo.pdf
trunk/Master/texmf-dist/doc/support/wintools/pdfunite.pdf
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/support/wintools/install-xpdf-data
trunk/Master/texmf-dist/doc/support/wintools/pdftopng.pdf
trunk/Master/texmf-dist/doc/support/wintools/xpdfrc.pdf
trunk/Master/texmf-dist/doc/support/wintools/xpdfutil-install.txt
trunk/Master/texmf-dist/doc/support/wintools/xpdfutil-supp.zip
Deleted: trunk/Master/texmf-dist/doc/support/wintools/install-xpdf-data
===================================================================
--- trunk/Master/texmf-dist/doc/support/wintools/install-xpdf-data 2017-02-22 12:11:13 UTC (rev 43299)
+++ trunk/Master/texmf-dist/doc/support/wintools/install-xpdf-data 2017-02-22 12:17:23 UTC (rev 43300)
@@ -1,180 +0,0 @@
-#!/usr/bin/env texlua
---*-Lua-*-
--- $Id$
-
--- Copyright (C) 2015 Reinhard Kotucha.
--- You may freely use, modify and/or distribute this file.
-
-kpse.set_program_name('texlua')
-
-
-local function qquote (s)
- -- doublequote string
- return '"'..s..'"'
-end
-
-
-local function action (s)
- -- print message and return string with padding
- local msg=s..' ...'
- local done='[done]'
- io.write(msg)
- local padding=string.rep(' ', 77-string.len(msg)-string.len(done))
- return string.format('%s%s', padding, done)
-end
-
-
-local function get_path (envvar)
- -- get environment variable
- local path=os.getenv(envvar)
- if not path then
- error('Environment Variable '..envvar..' not set.')
- end
- -- we can't use backslashes in the config file
- path=path:gsub('\\', '/')
- -- remove trailing slash if present
- if path:match('/$') then path=path:gsub('/$', '') end
- --check path
- if not lfs.isdir(path) then
- error('Path '..qquote(path)..' doesn\'t esist.')
- end
- return path
-end
-
-
-local function find_datafile (file)
- -- locate data file
- local format='TeX system documentation'
- local datafile=kpse.find_file(file, format)
- -- check
- if not datafile then
- error('File '..file..' not found. Did you run mktexlsr?')
- end
- return datafile
-end
-
-
-local function install_data (source, targetdir)
- -- create target directory and extract zip file
- if not lfs.isdir (targetdir) then
- assert(lfs.mkdir(targetdir),
- "Can't create directory "..targetdir..': Permission denied.')
- end
- -- os.execute() doesn't quote arguments automatically
- local cmd='unzip -q -o -d "'..targetdir..'" "'..source..'"'
- local retval=os.execute(cmd)
- if retval ~= 0 then
- error('unzip.exe returned error code '..retval..'.')
- end
-end
-
-
-local function write_xpdfrc (FILE, datadir, xpdfrc_raw)
- local xpdfrc=xpdfrc_raw:explode('\n')
- for _,line in ipairs (xpdfrc) do
- line=line:gsub('%s+', ' ')
- line=line:gsub('@XPDF%-DATA%-DIR@', datadir)
- if line:match('#----- begin') then FILE:write('\n') end
- FILE:write(line..'\n')
- end
-end
-
-
-local xpdfrc=[===[
-# xpdfrc (for xpdf utilities)
-#
-# This file was created by install-xpdf-data. Don't edit
-#
-#----- begin Arabic support package (2011-sep-02)
-unicodeMap ISO-8859-6 "@XPDF-DATA-DIR@/arabic/ISO-8859-6.unicodeMap"
-#----- end Arabic support package
-#----- begin Chinese Simplified support package (2011-sep-02)
-cidToUnicode Adobe-GB1 "@XPDF-DATA-DIR@/chinese-simplified/Adobe-GB1.cidToUnicode"
-unicodeMap ISO-2022-CN "@XPDF-DATA-DIR@/chinese-simplified/ISO-2022-CN.unicodeMap"
-unicodeMap EUC-CN "@XPDF-DATA-DIR@/chinese-simplified/EUC-CN.unicodeMap"
-unicodeMap GBK "@XPDF-DATA-DIR@/chinese-simplified/GBK.unicodeMap"
-cMapDir Adobe-GB1 "@XPDF-DATA-DIR@/chinese-simplified/CMap"
-toUnicodeDir "@XPDF-DATA-DIR@/chinese-simplified/CMap"
-#fontFileCC Adobe-GB1 c:/windows/fonts/gkai00mp.ttf
-#----- end Chinese Simplified support package
-#----- begin Chinese Traditional support package (2011-sep-02)
-cidToUnicode Adobe-CNS1 "@XPDF-DATA-DIR@/chinese-traditional/Adobe-CNS1.cidToUnicode"
-unicodeMap Big5 "@XPDF-DATA-DIR@/chinese-traditional/Big5.unicodeMap"
-unicodeMap Big5ascii "@XPDF-DATA-DIR@/chinese-traditional/Big5ascii.unicodeMap"
-cMapDir Adobe-CNS1 "@XPDF-DATA-DIR@/chinese-traditional/CMap"
-toUnicodeDir "@XPDF-DATA-DIR@/chinese-traditional/CMap"
-#fontFileCC Adobe-CNS1 c:/windows/fonts/bkai00mp.ttf
-#----- end Chinese Traditional support package
-#----- begin Cyrillic support package (2011-aug-15)
-nameToUnicode "@XPDF-DATA-DIR@/cyrillic/Bulgarian.nameToUnicode"
-unicodeMap KOI8-R "@XPDF-DATA-DIR@/cyrillic/KOI8-R.unicodeMap"
-#----- end Cyrillic support package
-#----- begin Greek support package (2011-aug-15)
-nameToUnicode "@XPDF-DATA-DIR@/greek/Greek.nameToUnicode"
-unicodeMap ISO-8859-7 "@XPDF-DATA-DIR@/greek/ISO-8859-7.unicodeMap"
-#----- end Greek support package
-#----- begin Hebrew support package (2011-aug-15)
-unicodeMap ISO-8859-8 "@XPDF-DATA-DIR@/hebrew/ISO-8859-8.unicodeMap"
-unicodeMap Windows-1255 "@XPDF-DATA-DIR@/hebrew/Windows-1255.unicodeMap"
-#----- end Hebrew support package
-#----- begin Japanese support package (2011-sep-02)
-cidToUnicode Adobe-Japan1 "@XPDF-DATA-DIR@/japanese/Adobe-Japan1.cidToUnicode"
-unicodeMap ISO-2022-JP "@XPDF-DATA-DIR@/japanese/ISO-2022-JP.unicodeMap"
-unicodeMap EUC-JP "@XPDF-DATA-DIR@/japanese/EUC-JP.unicodeMap"
-unicodeMap Shift-JIS "@XPDF-DATA-DIR@/japanese/Shift-JIS.unicodeMap"
-cMapDir Adobe-Japan1 "@XPDF-DATA-DIR@/japanese/CMap"
-toUnicodeDir "@XPDF-DATA-DIR@/japanese/CMap"
-#fontFileCC Adobe-Japan1 c:/windows/fonts/msmincho.ttf
-#----- end Japanese support package
-#----- begin Korean support package (2011-sep-02)
-cidToUnicode Adobe-Korea1 "@XPDF-DATA-DIR@/korean/Adobe-Korea1.cidToUnicode"
-unicodeMap ISO-2022-KR "@XPDF-DATA-DIR@/korean/ISO-2022-KR.unicodeMap"
-cMapDir Adobe-Korea1 "@XPDF-DATA-DIR@/korean/CMap"
-toUnicodeDir "@XPDF-DATA-DIR@/korean/CMap"
-#fontFileCC Adobe-Korea1 c:/windows/fonts/batang.ttf
-#fontFileCC Unidocs-Korea1 c:/windows/fonts/batang.ttf
-#----- end Korean support package
-#----- begin Latin2 support package (2011-aug-15)
-unicodeMap Latin2 "@XPDF-DATA-DIR@/latin2/Latin2.unicodeMap"
-#----- end Latin2 support package
-#----- begin Thai support package (2011-aug-15)
-nameToUnicode "@XPDF-DATA-DIR@/thai/Thai.nameToUnicode"
-unicodeMap TIS-620 "@XPDF-DATA-DIR@/thai/TIS-620.unicodeMap"
-#----- end Thai support package
-#----- begin Turkish support package (2011-aug-15)
-unicodeMap ISO-8859-9 "@XPDF-DATA-DIR@/turkish/ISO-8859-9.unicodeMap"
-#----- end Turkish support package
-]===]
-
--- main --
-
-local datafile=find_datafile('xpdfutil-supp.zip')
-local xpdf_datadir=get_path('APPDATA')..'/xpdfutil'
-local xpdf_config =get_path('USERPROFILE')..'/xpdfrc'
-
-print('Source: '..qquote(datafile))
-print('Directory for Data Files: '..qquote(xpdf_datadir))
-print('Config File: '..qquote(xpdf_config))
-print()
-
-local done=action('Extracting Data Files')
-install_data(datafile, xpdf_datadir)
-print(done)
-
-local done=action('Installing Config File')
-local CONF=assert(io.open(xpdf_config, 'wb'),
- "Can't open file "..qquote(xpdf_config))
-write_xpdfrc(CONF, xpdf_datadir, xpdfrc)
-io.close(CONF)
-print(done)
-
-print('Done.')
-
-
--- Local Variables:
--- lua-indent-level: 2
--- tab-width: 2
--- indent-tabs-mode: nil
--- End:
--- vim:set tabstop=2 expandtab: #
-
Modified: trunk/Master/texmf-dist/doc/support/wintools/pdfdetach.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/support/wintools/pdffonts.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/support/wintools/pdfimages.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/support/wintools/pdfinfo.pdf
===================================================================
(Binary files differ)
Added: trunk/Master/texmf-dist/doc/support/wintools/pdfseparate.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/support/wintools/pdfseparate.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/support/wintools/pdfseparate.pdf 2017-02-22 12:11:13 UTC (rev 43299)
+++ trunk/Master/texmf-dist/doc/support/wintools/pdfseparate.pdf 2017-02-22 12:17:23 UTC (rev 43300)
Property changes on: trunk/Master/texmf-dist/doc/support/wintools/pdfseparate.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/support/wintools/pdfsig.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/support/wintools/pdfsig.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/support/wintools/pdfsig.pdf 2017-02-22 12:11:13 UTC (rev 43299)
+++ trunk/Master/texmf-dist/doc/support/wintools/pdfsig.pdf 2017-02-22 12:17:23 UTC (rev 43300)
Property changes on: trunk/Master/texmf-dist/doc/support/wintools/pdfsig.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/support/wintools/pdftocairo.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/support/wintools/pdftocairo.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/support/wintools/pdftocairo.pdf 2017-02-22 12:11:13 UTC (rev 43299)
+++ trunk/Master/texmf-dist/doc/support/wintools/pdftocairo.pdf 2017-02-22 12:17:23 UTC (rev 43300)
Property changes on: trunk/Master/texmf-dist/doc/support/wintools/pdftocairo.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/support/wintools/pdftohtml.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/support/wintools/pdftopng.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/support/wintools/pdftoppm.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/support/wintools/pdftops.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/support/wintools/pdftotext.pdf
===================================================================
(Binary files differ)
Added: trunk/Master/texmf-dist/doc/support/wintools/pdfunite.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/support/wintools/pdfunite.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/support/wintools/pdfunite.pdf 2017-02-22 12:11:13 UTC (rev 43299)
+++ trunk/Master/texmf-dist/doc/support/wintools/pdfunite.pdf 2017-02-22 12:17:23 UTC (rev 43300)
Property changes on: trunk/Master/texmf-dist/doc/support/wintools/pdfunite.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/support/wintools/xpdfrc.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/support/wintools/xpdfutil-install.txt
===================================================================
--- trunk/Master/texmf-dist/doc/support/wintools/xpdfutil-install.txt 2017-02-22 12:11:13 UTC (rev 43299)
+++ trunk/Master/texmf-dist/doc/support/wintools/xpdfutil-install.txt 2017-02-22 12:17:23 UTC (rev 43300)
@@ -1,26 +0,0 @@
-$Id$
-
- Installation of resources for xpdf utilities
-
-Run a command
-
-texlua install-xpdf-data
-
-This command expands xpdfutil-supp.zip in $APPDATA/xpdfutil,
-and creates a suitable configuration file xpdfrc in $USERPROFILE.
-After the installation of the resource data, full functions of
-xpdf utilities are available.
-
-Contents in the file xpdfutil-supp.zip are those in
-Arabic: xpdf-arabic.tar.gz
-Chinese/simplified: xpdf-chinese-simplified.tar.gz
-Chinese/traditional: xpdf-chinese-traditional.tar.gz
-Cyrillic: xpdf-cyrillic.tar.gz
-Greek: xpdf-greek.tar.gz
-Hebrew: xpdf-hebrew.tar.gz
-Japanese: xpdf-japanese.tar.gz
-Korean: xpdf-korean.tar.gz
-Latin2: xpdf-latin2.tar.gz
-Thai: xpdf-thai.tar.gz
-Turkish: xpdf-turkish.tar.gz
-provided at http://www.foolabs.com/xpdf/download.html.
Deleted: trunk/Master/texmf-dist/doc/support/wintools/xpdfutil-supp.zip
===================================================================
(Binary files differ)
More information about the tex-live-commits
mailing list