[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 1a7b2bf 18/48: Adjust coding system for Japanese
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 1a7b2bf 18/48: Adjust coding system for Japanese pTeX engine on w32 |
Date: |
Sun, 16 Sep 2018 01:47:22 -0400 (EDT) |
branch: externals/auctex
commit 1a7b2bfaafd6ba17b93c77e9727cdad86181c967
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>
Adjust coding system for Japanese pTeX engine on w32
Default coding system of Japanese pTeX engine in w32 TeXLive changed
from SHIFT JIS to UTF-8 in 2018. Make tex-jp.el to work with both
TeXLive 2017 and 2018 on w32 platform, with higher priority on newer
engine with regard to the behavior in non default case.
* tex-jp.el (japanese-TeX-use-kanji-opt-flag): Set default value to t
even on w32 platform.
(japanese-TeX-set-process-coding-system): Change coding system for non
default case from `shift_jis' to `utf-8' on w32 platform.
(TeX-expand-list-builtin): Remove mule feature check.
---
tex-jp.el | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
diff --git a/tex-jp.el b/tex-jp.el
index a3e20fe..2bd2ff2 100644
--- a/tex-jp.el
+++ b/tex-jp.el
@@ -50,7 +50,7 @@
(const :tag "jTeX" jtex)
(const :tag "upTeX" uptex)))
-(defcustom japanese-TeX-use-kanji-opt-flag (not (eq system-type 'windows-nt))
+(defcustom japanese-TeX-use-kanji-opt-flag t
"Add kanji option to Japanese pTeX family if non-nil.
If `TeX-japanese-process-input-coding-system' or
`TeX-japanese-process-output-coding-system' are non-nil, the process coding
@@ -96,12 +96,7 @@ systems are determined by their values regardless of the
kanji option."
'(
;; -kanji $B%*%W%7%g%s$NJ8;zNs$r:n$k!#(B
("%(kanjiopt)" (lambda ()
- (if (and
- ;; non-mule $B$J(B emacsen
$B$O$=$b$=$bF|K\8l(B
- ;; $BJ8=q$r(B typeset
$B$9$k$3$H$O9M$($J$/$F$b(B
- ;; address@hidden&!"$H$O;W$&$1$I0l1~!D!#(B
- (featurep 'mule)
- japanese-TeX-use-kanji-opt-flag)
+ (if japanese-TeX-use-kanji-opt-flag
(let ((str (japanese-TeX-get-encoding-string)))
(if str (format " -kanji=%s " str) ""))
"")))
@@ -134,8 +129,7 @@ systems are determined by their values regardless of the
kanji option."
(t "makeindex"))))
;; mendex $BMQF|K\8l%3!<%I%*%W%7%g%s!#(B
("%(mendexkopt)" (lambda ()
- (if (and (featurep 'mule)
- japanese-TeX-use-kanji-opt-flag)
+ (if japanese-TeX-use-kanji-opt-flag
(let ((str (japanese-TeX-get-encoding-string)))
;; $B#1J8;zL\$rBgJ8;z$K!#(B
(if str (format " -%c " (upcase (aref str 0)))
@@ -313,12 +307,14 @@ See also a user custom option
`TeX-japanese-process-input-coding-system'."
;; ptex $B$J$i(B mac $B$O(B utf-8$B!#(B
;; windows $B$G(B -kanji
$B%*%W%7%g%s$"$j$N;~$O$=$NJ8;z%3!<%I!"(B
;; $B$J$7$N;~$O(B sjis$B!#(B
+ ;; texlive 2018 $B$+$i$O(B sjis $B$G$O$J$/(B utf-8
$B$K$J$C$?$N$G(B
+ ;; $B$=$A$i$K9g$o$;$k!#(B
((eq TeX-engine 'ptex)
(cond ((eq system-type 'darwin)
'utf-8)
((and japanese-TeX-use-kanji-opt-flag kanji)
kanji)
- (t 'shift_jis)))
+ (t 'utf-8)))
;; jtex $B$J$i(B sjis $B$K8GDj$9$k!#(B
((eq TeX-engine 'jtex)
'shift_jis)
@@ -343,11 +339,12 @@ See also a user custom option
`TeX-japanese-process-input-coding-system'."
(enc (cond
;; ptex $B$G(B -kanji
$B%*%W%7%g%s$"$j$J$i!"$=$NJ8;z%3!<%I!#(B
;; $B$J$7$J$i(B utf-8 $B$+(B sjis$B!#(B
+ ;; texlive 2018 $B$G(B w32 $B$G$b(B utf-8
$B$,%G%U%)%k%H$K$J$C(B
+ ;; $B$?$h$&$J$N$G!"$=$l$K9g$o$;$k!#(B
((eq TeX-engine 'ptex)
(if (and japanese-TeX-use-kanji-opt-flag kanji)
kanji
- (if (eq system-type 'windows-nt)
- 'shift_jis 'utf-8)))
+ 'utf-8))
;; jtex $B$J$i(B euc $B$+(B sjis $B$K8GDj$9$k!#(B
((eq TeX-engine 'jtex)
(if (memq system-type '(windows-nt darwin))
- [elpa] externals/auctex updated (0e878e9 -> f761ab4), Tassilo Horn, 2018/09/16
- [elpa] externals/auctex f107ca1 02/48: Make compatible with emacs 24, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex cff0781 01/48: Fix incorrect FSF address, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex e783b97 04/48: Fix TeX-dwim-master, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 6112351 12/48: ; * style/geometry.el (LaTeX-geometry-preamble-key-val-options): Add luatex key., Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 3b758bf 06/48: Use `TeX-search-files-by-type' to assist input \includegraphics, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex a16a510 22/48: Replace another cl function with cl-lib, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 1a7b2bf 18/48: Adjust coding system for Japanese pTeX engine on w32,
Tassilo Horn <=
- [elpa] externals/auctex 52d6a54 03/48: Make `TeX-clean' to work in ams-tex-mode, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 15d3d97 08/48: Quote %b expansion string for SumatraPDF, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 68095a3 15/48: Fix previous removal of xemacs compatibility code, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 59fa964 05/48: Resolve conflict of argument spec between regexp and literal, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 94378c1 09/48: Correct record in changes.texi, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 00f0e0e 13/48: ; * tex.el (TeX-expand-list): Fix docstring (bug#31217)., Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 59a9e5b 10/48: Correct how `TeX-record-buffer' is used, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex c64a0e1 27/48: Quote %b expansion string for Zathura, Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 4775f96 21/48: ; * tex-jp.el (japanese-TeX-self-insert-command): Silence byte compiler., Tassilo Horn, 2018/09/16
- [elpa] externals/auctex 96ba113 23/48: Support UTF-8 with BOM in Japanese TeX documents, Tassilo Horn, 2018/09/16