New port for a Japanese translation of the

GNU Emacs Lisp Reference Manual edition 2.5.

PR:		ports/17771
Submitted by:	OKAZAKI Tetsurou <okazaki@be.to>
This commit is contained in:
SADA Kenji 2000-07-24 22:29:46 +00:00
parent 62d86a993a
commit 64c1cad545
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31004
9 changed files with 183 additions and 0 deletions

View File

@ -0,0 +1,56 @@
# New ports collection makefile for: ja-elisp-manual
# Date created: 28 Mar 2000
# Whom: OKAZAKI Tetsurou
#
# $FreeBSD$
#
PORTNAME= elisp-manual
PORTVERSION= 2.5.20000508
CATEGORIES= japanese lang
MASTER_SITES= ftp://ftp.ascii.co.jp/pub/GNU/elisp-manual-20/
DISTNAME= elisp-manual-20-2.5-jp
EXTRACT_SUFX= .tgz
PATCH_SITES= ftp://ftp.ascii.co.jp/pub/GNU/elisp-manual-20/
PATCHFILES= elisp-manual-20-2.5-jp.ERRATA.000422.jis \
elisp-manual-20-2.5-jp.ERRATA.000508.jis
MAINTAINER= okazaki@be.to
EMACS_PORT_NAME= emacs20
EMACS_NO_RUN_DEPENDS= YES
# emacs port setup
EXTRA_FILES= ${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/lisp/textmodes/texinfmt.el
# We must apply this patch at first.
EXTRA_PATCHES= ${WRKSRC}/patch-texinfmt.el
post-extract:
${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile
${CP} ${FILESDIR}/PORT_TEXIFMT.MK ${WRKSRC}
${CP} ${EXTRA_FILES} ${WRKSRC}
${MKDIR} ${WRKDIR}/info
${LN} -sf index.unperm ${WRKSRC}/index.texi
pre-patch:
@(cd ${WRKSRC} && \
${PATCH} ${PATCH_ARGS} < ${FILESDIR}/patch-texinfmt.el.patch ; \
)
post-patch:
cd ${WRKSRC} && \
${PERL} -pi -e 's/(@[^@]*ref{.*,.*,.*, *emacs),/$$1-ja,/;' *.texi
pre-build:
@${ECHO_MSG} "===> Now start formatting texinfo. Please wait."
post-build:
@${ECHO_MSG} "===> Done."
post-install:
install-info ${PREFIX}/info/elisp-ja ${PREFIX}/info/dir
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (elisp-manual-20-2.5-jp.tgz) = db1bc051680d99fa1e80bd4a2a204d07
MD5 (elisp-manual-20-2.5-jp.ERRATA.000422.jis) = 1c82071aebee7b3cd1611589828a57b6
MD5 (elisp-manual-20-2.5-jp.ERRATA.000508.jis) = ec1a557a5d81a09574b047a5bc0e5183

View File

@ -0,0 +1,19 @@
TEXIFILE= elisp.texi
INFOFILE= ../info/elisp-ja
EMACS?= emacs
EMACS_ARGS= -batch -nw --multibyte -no-init-file -no-site-file
EMACS_LOADLIBS= --load=texinfmt.el --load=PORT_TEXIFMT.MK
EMACS_FUNCALLS= --eval "(port-texinfo-format \"${TEXIFILE}\" 'junet)"
all: ${INFOFILE}
${INFOFILE}: ${TEXIFILE}
${EMACS} ${EMACS_ARGS} ${EMACS_LOADLIBS} ${EMACS_FUNCALLS}
install: all
${BSD_INSTALL_DATA} ${INFOFILE} ${PREFIX}/info
clean:
rm -f ${INFOFILE}

View File

@ -0,0 +1,17 @@
;;; -*- Emacs-Lisp -*-
;;; PORT_TEXIFMT.MK --- for texinfo-format
;;; Code:
(defun port-texinfo-format (file &optional coding-system)
(let (obuf)
(find-file (expand-file-name file))
(setq obuf (current-buffer))
(require 'texinfmt)
(texinfo-format-buffer t)
(if coding-system
(set-buffer-file-coding-system coding-system))
(save-buffer)
(kill-buffer (current-buffer))
(kill-buffer obuf)))
;;; PORT_TEXIFMT.MK ends here

View File

@ -0,0 +1,41 @@
--- patch-texinfmt.el.orig Fri Mar 3 21:26:16 2000
+++ patch-texinfmt.el Thu Jul 13 18:17:38 2000
@@ -1,5 +1,5 @@
---- texinfmt.el-ORIG Sun May 30 04:21:06 1999
-+++ texinfmt.el Thu Jan 13 10:52:58 2000
+--- texinfmt.el.orig Thu Jul 13 18:12:19 2000
++++ texinfmt.el Thu Jul 13 18:17:28 2000
@@ -1111,6 +1111,78 @@
;;; @node, @menu, @detailmenu
@@ -112,17 +112,18 @@
(texinfo-discard-command)
(setq texinfo-last-node name)
(let ((tem (if texinfo-fold-nodename-case (downcase name) name)))
-@@ -1212,7 +1308,8 @@
+@@ -1212,7 +1308,9 @@
(insert (or fname (car args)) ": ")
(if (nth 3 args)
(insert "(" (nth 3 args) ")"))
-- (insert (car args))))))
+- (and (car args) (insert (car args)))))))
+ (insert (or (car args) ""))
+ (or (save-excursion (looking-at "[.,]")) (insert "."))))))
++
(put 'pxref 'texinfo-format 'texinfo-format-pxref)
(defun texinfo-format-pxref ()
-@@ -1220,6 +1317,7 @@
+@@ -1220,6 +1318,7 @@
(or (save-excursion
(forward-char -2)
(looking-at "::"))
@@ -130,7 +131,7 @@
(insert ".")))
;; @inforef{NODE, FNAME, FILE}
-@@ -1230,7 +1328,8 @@
+@@ -1230,7 +1329,8 @@
(let ((args (texinfo-format-parse-args)))
(texinfo-discard-command)
(if (nth 1 args)

View File

@ -0,0 +1,19 @@
--- elisp.texi.~1~ Mon Mar 6 12:40:41 2000
+++ elisp.texi Wed Mar 29 17:50:21 2000
@@ -1,13 +1,13 @@
\input texinfo @c -*-texinfo-*-
@c %**start of header
-@setfilename elisp
+@setfilename ../info/elisp-ja
@c @settitle GNU Emacs Lisp Reference Manual
@settitle GNU Emacs Lisp$B%j%U%!%l%s%9%^%K%e%"%k(B
@c %**end of header
-@dircategory Editors
+@dircategory Emacs Lisp programming
@direntry
-* Elisp: (elisp). The Emacs Lisp Reference Manual.
+* Elisp manual-ja: (elisp-ja). The Emacs Lisp Reference Manual. (Japanese)
@end direntry
@smallbook

View File

@ -0,0 +1 @@
Japanese translation of the GNU Emacs Lisp Reference Manual

View File

@ -0,0 +1,24 @@
This is a Japanese translation of the GNU Emacs Lisp Reference Manual.
Most of the GNU Emacs text editor is written in the programming
language called Emacs Lisp. You can write new code in Emacs Lisp and
install it as an extension to the editor. However, Emacs Lisp is more
than a mere ``extension language''; it is a full computer programming
language in its own right. You can use it as you would any other
programming language.
Because Emacs Lisp is designed for use in an editor, it has special
features for scanning and parsing text as well as features for handling
files, buffers, displays, subprocesses, and so on. Emacs Lisp is
closely integrated with the editing facilities; thus, editing commands
are functions that can also conveniently be called from Lisp programs,
and parameters for customization are ordinary Lisp variables.
This manual describes Emacs Lisp, presuming considerable familiarity
with the use of Emacs for editing. (See The GNU Emacs Manual for this
basic information.) Generally speaking, the earlier chapters describe
features of Emacs Lisp that have counterparts in many programming
languages, and later chapters describe features that are peculiar to
Emacs Lisp or relate specifically to editing.
This is edition 2.5.

View File

@ -0,0 +1,3 @@
@unexec install-info --delete %D/info/elisp-ja %D/info/dir
info/elisp-ja
@exec install-info %D/info/elisp-ja %D/info/dir