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

Bug#959908: marked as done (pandoc: please upgrade to 2.4 or newer to support parsing man format)



Your message dated Fri, 12 Jun 2020 21:22:59 +0200
with message-id <159198977972.4184237.7949419595677049267@auryn.jones.dk>
and subject line Re: Bug#959851: pandoc: $ in nroff table causes spurious TeX-related failure
has caused the Debian Bug report #959908,
regarding pandoc: please upgrade to 2.4 or newer to support parsing man format
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
959908: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959908
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: pandoc
Version: 2.2.1-3+b2
Severity: normal

How to reproduce:

1. Start with this nroff input file:

.TH "BBC BASIC" 5 2020-05-06 \" -*- nroff -*-

.SH "SOME EXAMPLE TABLE"

.TS
tab(|) allbox;
lb  lb
l  l.
Byte|Keyword
0xBC|"VPOS"
0xBD|"CHR$"
0xBE|"GET$"
.TE

2. Run Pandoc on it like this:

pandoc -s -o bbcbasic.html /tmp/minimal_nroff.man

3. Observe that this failed with an error message.

The error message seems to relate to the use of $.  Whiel $ is special
to TeX, it is not special to nroff, so this failure should not occur.
If the Pandoc conversion process requires nroff -> HTML to go via *TeX,
then such characters should be quoted.

Here is the error message under consideration:

$ pandoc -s  -o bbcbasic.html /tmp/minimal_nroff.man 
[WARNING] Could not convert TeX math '" 0xBE|"GET', rendering as TeX:
  " 0xBE|"GET
  ^
  unexpected '"'
  expecting "%", "\\label", "\\nonumber", whitespace, "\\bangle", "\\brace", "\\brack", "\\choose", "\\displaystyle", "{", letter, digit, ".", "\\mbox", "\\text", "\\textbf", "\\textit", "\\textrm", "\\textsf", "\\texttt", "\\bm", "\\boldsymbol", "\\mathbb", "\\mathbf", "\\mathbfcal", "\\mathbffrak", "\\mathbfit", "\\mathbfscr", "\\mathbfsfit", "\\mathbfsfup", "\\mathbfup", "\\mathbold", "\\mathcal", "\\mathfrak", "\\mathit", "\\mathrm", "\\mathscr", "\\mathsf", "\\mathsfit", "\\mathsfup", "\\mathtt", "\\mathup", "\\pmb", "\\symbf", "\\texttt", "\\sqrt", "\\surd", "\\mspace", "\\mathop", "\\mathrel", "\\mathbin", "\\mathord", "\\mathopen", "\\mathclose", "\\mathpunct", "\\phantom", "\\boxed", "\\overset", "\\stackrel", "\\underset", "\\frac", "\\tfrac", "\\dfrac", "\\binom", "\\genfrac", "\\substack", "_", "^", "\\begin", "\\ensuremath", "(", ")", "[", "]", "\\{", "\\}", "\\lbrack", "\\lbrace", "\\rbrack", "\\rbrace", "\\llbracket", "\\rrbracket", "\\langle", "\\rangle", "\\lfloor", "\\rfloor", "\\lceil", "\\rceil", "|", "\\|", "\\lvert", "\\rvert", "\\vert", "\\lVert", "\\rVert", "\\Vert", "\\ulcorner", "\\urcorner", "\\bigg", "\\Bigg", "\\big", "\\Big", "\\biggr", "\\Biggr", "\\bigr", "\\Bigr", "\\biggl", "\\Biggl", "\\bigl", "\\left", "\\not", "!", "'", "''", "'''", "''''", "*", "+", ",", "-", ".", "/", ":", ":=", ";", "<", "=", ">", "?", "@", "~", "\\", "\\operatorname" or end of input
[WARNING] This document format requires a nonempty <title> element.
  Please specify either 'title' or 'pagetitle' in the metadata.
  Falling back to 'minimal_nroff'





-- System Information:
Debian Release: 10.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-8-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_USER
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pandoc depends on:
ii  libatomic1   8.3.0-6
ii  libc6        2.28-10
ii  libffi6      3.2.1-9
ii  libgmp10     2:6.1.2+dfsg-4
ii  liblua5.1-0  5.1.5-8.1+b2
ii  libpcre3     2:8.39-12
ii  libyaml-0-2  0.2.1-1
ii  pandoc-data  2.2.1-3
ii  zlib1g       1:1.2.11.dfsg-1

pandoc recommends no packages.

Versions of packages pandoc suggests:
pn  context                    <none>
ii  ghc                        8.4.4+dfsg1-3
ii  groff                      1.22.4-3
ii  libjs-mathjax              2.7.4+dfsg-1
pn  librsvg2-bin               <none>
pn  node-katex                 <none>
ii  nodejs                     10.19.0~dfsg1-1
pn  pandoc-citeproc            <none>
ii  perl                       5.28.1-6
pn  php                        <none>
ii  python                     2.7.16-1
ii  r-base-core                3.5.2-1
ii  ruby                       1:2.5.1
ii  texlive-latex-extra        2018.20190227-2
ii  texlive-latex-recommended  2018.20190227-2
pn  texlive-luatex             <none>
ii  texlive-xetex              2018.20190227-2
pn  wkhtmltopdf                <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 2.5-1

Quoting Jonas Smedegaard (2020-05-06 22:16:35)
> Hereby forking the bugreport to separately track upgrading the pandoc 
> package to a version which supports parsing man format.

...and closing with Debian release 2.5-1.

 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature


--- End Message ---

Reply to: