Package: asciidoc
Version: 8.6.9-2
Severity: normal

Hello,

I am seeing the following strange behaviour when converting an asciidoc
document into PDF using a2x:

Backticks inside of a listing block are encoded to a different character
inside the PDF.

The following Bash code:

HOST=`hostname`
echo "$HOST"

will become (when copied and pasted from PDF):

HOST=‘hostname‘
echo "$HOST"

See attached example files. The command I use to convert the file is:

a2x -f pdf --dblatex-opts "-P latex.output.revhistory=0" example.txt

I am opening PDF file using evince (if that makes any difference).


Thanks,

George

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages asciidoc depends on:
ii  python          2.7.6-2
ii  python-support  1.0.15

Versions of packages asciidoc recommends:
ii  dblatex        0.3.4-3
pn  docbook-utils  <none>
ii  libxml2-utils  2.9.1+dfsg1-3
ii  xmlto          0.0.25-2

Versions of packages asciidoc suggests:
pn  source-highlight   <none>
ii  vim-addon-manager  0.5.3

-- no debconf information
== Some Bash Code

----
HOST=`hostname`
echo "$HOST"
----

Attachment: example.pdf
Description: Adobe PDF document

Reply via email to