summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-05-07 23:12:20 +0000
committerKarl Berry <karl@freefriends.org>2013-05-07 23:12:20 +0000
commit2efc5dd6b50aaf251dbf029ce7e738f385a57d79 (patch)
tree02bc66754dee2714866d1a92d17f00c4553471e6
parent6a057b80e722d16245808902ad41f9586a4d8a89 (diff)
ptex2pdf (7may13)
git-svn-id: svn://tug.org/texlive/trunk@30321 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/ptex2pdf/ptex2pdf.lua20
-rw-r--r--Master/texmf-dist/doc/latex/ptex2pdf/README11
-rwxr-xr-xMaster/texmf-dist/scripts/ptex2pdf/ptex2pdf.lua20
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds2
4 files changed, 47 insertions, 6 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/ptex2pdf/ptex2pdf.lua b/Build/source/texk/texlive/linked_scripts/ptex2pdf/ptex2pdf.lua
index 618a4ec713e..46e42fa9cf8 100755
--- a/Build/source/texk/texlive/linked_scripts/ptex2pdf/ptex2pdf.lua
+++ b/Build/source/texk/texlive/linked_scripts/ptex2pdf/ptex2pdf.lua
@@ -1,7 +1,7 @@
#!/usr/bin/env texlua
NAME = "ptex2pdf[.lua]"
-VERSION = "0.3"
+VERSION = "0.4"
AUTHOR = "Norbert Preining <norbert@preining.info>"
SHORTDESC = NAME .. ": Convert Japanese TeX documents to pdf"
LONGDESC = [[
@@ -94,6 +94,17 @@ for uplatex files:
-ot
$synctexoption
$fullname
+
+If you need special kanji encodings for one of these programs,
+add the respective -kanji option after the $synctexoption. Example:
+
+for platex files in SJIS encoding:
+ Name: pLaTeX/SJIS to pdf
+ Program: ptex2pdf
+ Arguments: -l
+ -ot
+ $synctexoption -kanji=sjis
+ $fullname
]]
DEVELPLACE = "https://git.gitorious.org/tlptexlive/ptex2pdf.git"
@@ -108,6 +119,9 @@ CHANGELOG = [[
version 0.3 2013-05-01 NP
include the readme in the lua code
fix program name for -e -u
+ version 0.4 2013-05-07 NP
+ quote the filename with ", so that special chars do survive
+ add an example for TeXworks for files with different kanji encoding
]]
@@ -239,8 +253,8 @@ if not io.open(filename .. ".tex", "r") then
exit_code = 1
else
print("Processing ".. filename .. ".tex.")
- if (os.execute(tex .. " " .. texopts .. " " .. filename) == 0) and
- (dvipdf == "" or (os.execute(dvipdf .. " " .. dvipdfopts .. " " .. filename) == 0))
+ if (os.execute(tex .. " " .. texopts .. " \"" .. filename .. "\"") == 0) and
+ (dvipdf == "" or (os.execute(dvipdf .. " " .. dvipdfopts .. " \"" .. filename .. "\"") == 0))
then
if dvipdf ~= "" then
print(filename .. ".pdf generated by " .. dvipdf .. ".")
diff --git a/Master/texmf-dist/doc/latex/ptex2pdf/README b/Master/texmf-dist/doc/latex/ptex2pdf/README
index f63acc66427..5b6d10169a5 100644
--- a/Master/texmf-dist/doc/latex/ptex2pdf/README
+++ b/Master/texmf-dist/doc/latex/ptex2pdf/README
@@ -71,6 +71,17 @@ for uplatex files:
$synctexoption
$fullname
+If you need special kanji encodings for one of these programs,
+add the respective -kanji option after the $synctexoption. Example:
+
+for platex files in SJIS encoding:
+ Name: pLaTeX/SJIS to pdf
+ Program: ptex2pdf
+ Arguments: -l
+ -ot
+ $synctexoption -kanji=sjis
+ $fullname
+
Development place
-----------------
https://git.gitorious.org/tlptexlive/ptex2pdf.git
diff --git a/Master/texmf-dist/scripts/ptex2pdf/ptex2pdf.lua b/Master/texmf-dist/scripts/ptex2pdf/ptex2pdf.lua
index 618a4ec713e..46e42fa9cf8 100755
--- a/Master/texmf-dist/scripts/ptex2pdf/ptex2pdf.lua
+++ b/Master/texmf-dist/scripts/ptex2pdf/ptex2pdf.lua
@@ -1,7 +1,7 @@
#!/usr/bin/env texlua
NAME = "ptex2pdf[.lua]"
-VERSION = "0.3"
+VERSION = "0.4"
AUTHOR = "Norbert Preining <norbert@preining.info>"
SHORTDESC = NAME .. ": Convert Japanese TeX documents to pdf"
LONGDESC = [[
@@ -94,6 +94,17 @@ for uplatex files:
-ot
$synctexoption
$fullname
+
+If you need special kanji encodings for one of these programs,
+add the respective -kanji option after the $synctexoption. Example:
+
+for platex files in SJIS encoding:
+ Name: pLaTeX/SJIS to pdf
+ Program: ptex2pdf
+ Arguments: -l
+ -ot
+ $synctexoption -kanji=sjis
+ $fullname
]]
DEVELPLACE = "https://git.gitorious.org/tlptexlive/ptex2pdf.git"
@@ -108,6 +119,9 @@ CHANGELOG = [[
version 0.3 2013-05-01 NP
include the readme in the lua code
fix program name for -e -u
+ version 0.4 2013-05-07 NP
+ quote the filename with ", so that special chars do survive
+ add an example for TeXworks for files with different kanji encoding
]]
@@ -239,8 +253,8 @@ if not io.open(filename .. ".tex", "r") then
exit_code = 1
else
print("Processing ".. filename .. ".tex.")
- if (os.execute(tex .. " " .. texopts .. " " .. filename) == 0) and
- (dvipdf == "" or (os.execute(dvipdf .. " " .. dvipdfopts .. " " .. filename) == 0))
+ if (os.execute(tex .. " " .. texopts .. " \"" .. filename .. "\"") == 0) and
+ (dvipdf == "" or (os.execute(dvipdf .. " " .. dvipdfopts .. " \"" .. filename .. "\"") == 0))
then
if dvipdf ~= "" then
print(filename .. ".pdf generated by " .. dvipdf .. ".")
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index 833621408cd..345833e9b17 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -138,6 +138,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`);
'bardiag', "&MAKEbardiag",
'base', "die 'skipping, what package did you really mean?'",
'baskervald', "&MAKEcopy",
+ 'basque', "die 'skipping, use babel-basque'",
'bbm-macros', "&MAKEnosymlinks",
'bclogo', "&MAKEflatten",
'beamer', "&MAKEbeamer",
@@ -404,6 +405,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`);
'fpl', "&MAKEflatten",
'fraktur', "die 'skipping, replaced by yfonts'",
'free-math-font-survey', "die 'skipping, noinfo license'",
+ 'frenchb', "die 'skipping, use babel-frenchb'",
'frenchpro', "die 'skipping, complicated format, filename conflicts'",
'fribrief', "die 'skipping, nonfree license'",
'fullpict', "die 'skipping, noinfo license'",