Re: texinfo.tex assorted special characters issue

2016-09-17 Thread Gavin Smith
On 17 September 2016 at 07:18, Masamichi Hosoda  wrote:
>> I've found that compiling the following texi file failed.
>>
>> ```
>> \input texinfo
>> @documentencoding UTF-8
>>
>> @node «
>> @section a
>>
>> @bye
>> ```
>
> I've created a patch which fixes the issue.
> If there is no problem, I'd like to commit it.

I see why it failed. Yes, please commit the patch.



Re: texinfo.tex assorted special characters issue

2016-09-17 Thread Masamichi Hosoda
> I've found that compiling the following texi file failed.
> 
> ```
> \input texinfo
> @documentencoding UTF-8
> 
> @node «
> @section a
> 
> @bye
> ```

I've created a patch which fixes the issue.
If there is no problem, I'd like to commit it.
Index: ChangeLog
===
--- ChangeLog	(revision 7367)
+++ ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2016-09-XX  Masamichi Hosoda  
+
+	* doc/texinfo.tex
+	(\latonechardefs, \latninechardefs)
+	(\lattwochardefs, \unicodechardefs):
+	Add missing braces for symbol insertion commands with no arguments.
+
 2016-09-12  Gavin Smith  
 
 	* doc/texinfo.tex
Index: doc/texinfo.tex
===
--- doc/texinfo.tex	(revision 7367)
+++ doc/texinfo.tex	(working copy)
@@ -10037,18 +10037,18 @@
   \gdefchar^^a0{\tie}
   \gdefchar^^a1{\exclamdown}
   \gdefchar^^a2{{\tcfont \char162}} % cent
-  \gdefchar^^a3{\pounds}
+  \gdefchar^^a3{\pounds{}}
   \gdefchar^^a4{{\tcfont \char164}} % currency
   \gdefchar^^a5{{\tcfont \char165}} % yen
   \gdefchar^^a6{{\tcfont \char166}} % broken bar
   \gdefchar^^a7{\S}
   \gdefchar^^a8{\"{}}
-  \gdefchar^^a9{\copyright}
+  \gdefchar^^a9{\copyright{}}
   \gdefchar^^aa{\ordf}
-  \gdefchar^^ab{\guillemetleft}
+  \gdefchar^^ab{\guillemetleft{}}
   \gdefchar^^ac{\ensuremath\lnot}
   \gdefchar^^ad{\-}
-  \gdefchar^^ae{\registeredsymbol}
+  \gdefchar^^ae{\registeredsymbol{}}
   \gdefchar^^af{\={}}
   %
   \gdefchar^^b0{\textdegree}
@@ -10062,7 +10062,7 @@
   \gdefchar^^b8{\cedilla\ }
   \gdefchar^^b9{$^1$}
   \gdefchar^^ba{\ordm}
-  \gdefchar^^bb{\guillemetright}
+  \gdefchar^^bb{\guillemetright{}}
   \gdefchar^^bc{$1\over4$}
   \gdefchar^^bd{$1\over2$}
   \gdefchar^^be{$3\over4$}
@@ -10142,7 +10142,7 @@
   % Encoding is almost identical to Latin1.
   \latonechardefs
   %
-  \gdefchar^^a4{\euro}
+  \gdefchar^^a4{\euro{}}
   \gdefchar^^a6{\v S}
   \gdefchar^^a8{\v s}
   \gdefchar^^b4{\v Z}
@@ -10171,7 +10171,7 @@
   \gdefchar^^ae{\v Z}
   \gdefchar^^af{\dotaccent Z}
   %
-  \gdefchar^^b0{\textdegree}
+  \gdefchar^^b0{\textdegree{}}
   \gdefchar^^b1{\ogonek{a}}
   \gdefchar^^b2{\ogonek{ }}
   \gdefchar^^b3{\l}
@@ -10483,18 +10483,18 @@
   \DeclareUnicodeCharacter{00A0}{\tie}%
   \DeclareUnicodeCharacter{00A1}{\exclamdown}%
   \DeclareUnicodeCharacter{00A2}{{\tcfont \char162}}% 0242=cent
-  \DeclareUnicodeCharacter{00A3}{\pounds}%
+  \DeclareUnicodeCharacter{00A3}{\pounds{}}%
   \DeclareUnicodeCharacter{00A4}{{\tcfont \char164}}% 0244=currency
   \DeclareUnicodeCharacter{00A5}{{\tcfont \char165}}% 0245=yen
   \DeclareUnicodeCharacter{00A6}{{\tcfont \char166}}% 0246=brokenbar
   \DeclareUnicodeCharacter{00A7}{\S}%
   \DeclareUnicodeCharacter{00A8}{\"{ }}%
-  \DeclareUnicodeCharacter{00A9}{\copyright}%
+  \DeclareUnicodeCharacter{00A9}{\copyright{}}%
   \DeclareUnicodeCharacter{00AA}{\ordf}%
-  \DeclareUnicodeCharacter{00AB}{\guillemetleft}%
+  \DeclareUnicodeCharacter{00AB}{\guillemetleft{}}%
   \DeclareUnicodeCharacter{00AC}{\ensuremath\lnot}%
   \DeclareUnicodeCharacter{00AD}{\-}%
-  \DeclareUnicodeCharacter{00AE}{\registeredsymbol}%
+  \DeclareUnicodeCharacter{00AE}{\registeredsymbol{}}%
   \DeclareUnicodeCharacter{00AF}{\={ }}%
   %
   \DeclareUnicodeCharacter{00B0}{\ringaccent{ }}%
@@ -10508,7 +10508,7 @@
   \DeclareUnicodeCharacter{00B8}{\cedilla{ }}%
   \DeclareUnicodeCharacter{00B9}{$^1$}%
   \DeclareUnicodeCharacter{00BA}{\ordm}%
-  \DeclareUnicodeCharacter{00BB}{\guillemetright}%
+  \DeclareUnicodeCharacter{00BB}{\guillemetright{}}%
   \DeclareUnicodeCharacter{00BC}{$1\over4$}%
   \DeclareUnicodeCharacter{00BD}{$1\over2$}%
   \DeclareUnicodeCharacter{00BE}{$3\over4$}%
@@ -10980,36 +10980,36 @@
   % Punctuation
   \DeclareUnicodeCharacter{2013}{--}%
   \DeclareUnicodeCharacter{2014}{---}%
-  \DeclareUnicodeCharacter{2018}{\quoteleft}%
-  \DeclareUnicodeCharacter{2019}{\quoteright}%
-  \DeclareUnicodeCharacter{201A}{\quotesinglbase}%
-  \DeclareUnicodeCharacter{201C}{\quotedblleft}%
-  \DeclareUnicodeCharacter{201D}{\quotedblright}%
-  \DeclareUnicodeCharacter{201E}{\quotedblbase}%
+  \DeclareUnicodeCharacter{2018}{\quoteleft{}}%
+  \DeclareUnicodeCharacter{2019}{\quoteright{}}%
+  \DeclareUnicodeCharacter{201A}{\quotesinglbase{}}%
+  \DeclareUnicodeCharacter{201C}{\quotedblleft{}}%
+  \DeclareUnicodeCharacter{201D}{\quotedblright{}}%
+  \DeclareUnicodeCharacter{201E}{\quotedblbase{}}%
   \DeclareUnicodeCharacter{2020}{\ensuremath\dagger}%
   \DeclareUnicodeCharacter{2021}{\ensuremath\ddagger}%
-  \DeclareUnicodeCharacter{2022}{\bullet}%
+  \DeclareUnicodeCharacter{2022}{\bullet{}}%
   \DeclareUnicodeCharacter{202F}{\thinspace}%
-  \DeclareUnicodeCharacter{2026}{\dots}%
-  \DeclareUnicodeCharacter{2039}{\guilsinglleft}%
-  \DeclareUnicodeCharacter{203A}{\guilsinglright}%
+  \DeclareUnicodeCharacter{2026}{\dots{}}%
+  \DeclareUnicodeCharacter{2039}{\guilsinglleft{}}%
+  

texinfo.tex assorted special characters issue

2016-09-16 Thread Masamichi Hosoda
I've found that compiling the following texi file failed.

```
\input texinfo
@documentencoding UTF-8

@node «
@section a

@bye
```

Here is error messages in my environment.

```
$ texi2pdf aaa.texi
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Cygwin) 
(preloaded format=pdfetex)
 restricted \write18 enabled.
entering extended mode
(./aaa.texi (/home/trueroad/tex/texinfo.tex
Loading texinfo [version 2016-09-12.20]: pdf, fonts, markup, glyphs,
page headings, tables, conditionals, indexing, sectioning, toc, environments,
defuns, macros, cross references, insertions,
(/usr/share/texmf-site/tex/generic/epsf/epsf.tex
This is `epsf.tex' v2.7.4 <14 February 2011>
) localization, formatting, and turning on texinfo input format.)
./aaa.texi:5: Argument of @guillemetleft has an extra }.

@par

   }
@txiescapepdf ...se @xdef #1{@pdfescapestring {#1}
  }@fi
@setpdfdestname ...{#1}@txiescapepdf @pdfdestname
  }
@pdfmkdest #1->@setpdfdestname {#1}
   @safewhatsit {@pdfdest name{@pdfdestname ...

@setref #1#2->@pdfmkdest {#1}
 @iflinks {@requireauxfile @atdummies @def @valu...
...
l.5 @section a

?
```

In my investigation:
  With texinfo.tex ver. 2016-08-09.22: failed
  With texinfo.tex ver. 2016-08-09.20: succeed

The difference is the following commit.
http://lists.gnu.org/archive/html/texinfo-commits/2016-08/msg00018.html