diff options
author | Karl Berry <karl@freefriends.org> | 2013-05-07 23:12:20 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-05-07 23:12:20 +0000 |
commit | 2efc5dd6b50aaf251dbf029ce7e738f385a57d79 (patch) | |
tree | 02bc66754dee2714866d1a92d17f00c4553471e6 /Build | |
parent | 6a057b80e722d16245808902ad41f9586a4d8a89 (diff) |
ptex2pdf (7may13)
git-svn-id: svn://tug.org/texlive/trunk@30321 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rwxr-xr-x | Build/source/texk/texlive/linked_scripts/ptex2pdf/ptex2pdf.lua | 20 |
1 files changed, 17 insertions, 3 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 .. ".") |