texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

texinfo update (Tue Feb 14 14:52:01 EST 2006)


From: Karl Berry
Subject: texinfo update (Tue Feb 14 14:52:01 EST 2006)
Date: Tue, 14 Feb 2006 14:52:04 -0500

Index: ChangeLog
===================================================================
RCS file: /sources/texinfo/texinfo/ChangeLog,v
retrieving revision 1.571
retrieving revision 1.572
diff -u -r1.571 -r1.572
--- ChangeLog   14 Feb 2006 01:10:40 -0000      1.571
+++ ChangeLog   14 Feb 2006 19:51:55 -0000      1.572
@@ -1,3 +1,7 @@
+2006-02-14  Sergey Poznyakoff  <address@hidden>
+
+       * util/texi2dvi: New options --translate-file and --recode-from.
+
 2006-02-13  Karl Berry  <address@hidden>
 
        * makeinfo/cmds.c (cm_enddots): output three dots, not four, for
Index: util/texi2dvi
===================================================================
RCS file: /sources/texinfo/texinfo/util/texi2dvi,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- util/texi2dvi       6 Feb 2006 01:25:50 -0000       1.74
+++ util/texi2dvi       14 Feb 2006 19:51:55 -0000      1.75
@@ -1,6 +1,6 @@
 #! /bin/sh
 # texi2dvi --- produce DVI (or PDF) files from Texinfo (or (La)TeX) sources.
-# $Id: texi2dvi,v 1.74 2006/02/06 01:25:50 karl Exp $
+# $Id: texi2dvi,v 1.75 2006/02/14 19:51:55 karl Exp $
 #
 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001,
 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
@@ -35,7 +35,7 @@
 set -e
 
 # This string is expanded by rcs automatically when this file is checked out.
-rcs_revision='$Revision: 1.74 $'
+rcs_revision='$Revision: 1.75 $'
 rcs_version=`set - $rcs_revision; echo $2`
 program=`echo $0 | sed -e 's!.*/!!'`
 version="texi2dvi (GNU Texinfo 4.8) $rcs_version
@@ -70,7 +70,6 @@
   -b, --batch         no interaction
   -D, --debug         turn on shell debugging (set -x)
   -h, --help          display this help and exit successfully
-      --no-line-error do not pass --file-line-error to TeX
   -o, --output=OFILE  leave output in OFILE (implies --clean);
                       only one input FILE may be specified in this case
   -q, --quiet         no output unless errors (implies --batch)
@@ -83,10 +82,13 @@
   -e, -E, --expand     force macro expansion using makeinfo
   -I DIR               search DIR for Texinfo files
   -l, --language=LANG  specify the LANG of FILE (LaTeX or Texinfo)
+      --no-line-error  do not pass --file-line-error to TeX
   -p, --pdf            use pdftex or pdflatex for processing
   -r, --recode         call recode before TeX to translate input characters
+  --recode-from=ENC    recode from ENC to the @documentencoding       
   -t, --command=CMD    insert CMD in copy of input file
    or --texinfo=CMD    multiple values accumulate
+  --translate-file=FILE  use given charset translation file for TeX
 
 Build modes:
   --build=MODE         specify the treatment of auxiliary files [$build_mode]
@@ -157,6 +159,8 @@
 textra=         # Extra TeX commands to insert in the input file.
 txiprereq=19990129 # minimum texinfo.tex version with macro expansion
 verb=false      # true for verbose mode
+translate_file= # name of charset translation file
+recode_from=    # if not empty, recode from this encoding to @documentencoding
 
 orig_pwd=`pwd`
 
@@ -668,6 +672,9 @@
       true:*file-line-error*) cmd="$cmd --file-line-error";;
     esac
   fi
+  
+  # Tell TeX about TCX file, if specified.
+  test -n "$translate_file" && cmd="$cmd --translate-file=$translate_file"
 
   # Tell TeX to be batch if requested.
   if $batch; then
@@ -970,6 +977,9 @@
 # recode is available, then recode to plain 7 bit Texinfo.
 run_recode ()
 {
+  local from
+  local to
+  
   if test $language = texinfo; then
     pgm='s/^ address@hidden  *\([^ ][^ ]*\) *$/\1/
        t found
@@ -978,12 +988,19 @@
        q'
     encoding=`sed -e "$pgm" "$in_input"`
     if $recode && test -n "$encoding" && findprog recode; then
-      verbose "Recoding from $encoding to Texinfo."
+      if test -n "$recode_from"; then
+       from=$recode_from
+       to=$encoding
+      else
+        from=$encoding
+       to=$texinfo
+      fi
+      verbose "Recoding from $from to $to."
       # _rcd.  The Texinfo file recoded in 7bit.
       work_rcd=$workdir/recode
       in_rcd=$work_rcd/$in_base
       ensure_dir "$work_rcd"
-      if recode "$encoding"..texinfo <"$in_input" >"$in_rcd" \
+      if recode "$encoding..$to" <"$in_input" >"$in_rcd" \
          && test -s "$in_rcd"; then
         in_input=$in_rcd
       else
@@ -1194,8 +1211,10 @@
     -p | --pdf) out_lang=pdf;;
     -q | -s | --quiet | --silent) quiet=true; batch=true;;
     -r | --recode) recode=true;;
+    --recode-from) shift; recode=true; recode_from="$1";;
     -t | --texinfo | --command ) shift; textra="$textra\\
 "`echo "$1" | sed 's/\\\\/\\\\\\\\/g'`;;
+    --translate-file ) shift; translate_file="$1";;    
     --tidy) build_mode=tidy;;
     -v | --vers*) echo "$version"; exit 0;;
     -V | --verb*) verb=true;;
P ChangeLog
P util/texi2dvi


reply via email to

[Prev in Thread] Current Thread [Next in Thread]