[tex4ht] [bug #241] grave accent letter ` (hex 60) changes to left single quotation mark (hex 0xE2 0x80 0x98)

Michal Hoftich michal.h21 at gmail.com
Fri Jan 16 13:17:54 CET 2015


I will repost my answer on TeX.sx. This is not a bug, but default
LaTeX behaviour:

------------

This is the default behaviour, you will get the same result even with
`pdflatex`. You can use `upquote` package to redefine grave and
upright-quote to produce correct glyphs:

    \documentclass[12pt]{article}
    \usepackage{upquote}
    \begin{document}
    `123`

    \verb|`123`|
    \end{document}

the result:

    <!--l. 6--><p class="noindent" >‘123‘
    </p><!--l. 8--><p class="indent" >   <span
class="obeylines-h"><span class="verb"><span
    class="cmtt-12">`123`</span></span></span> </p>

---------

Best regards,
Michal

2015-01-16 2:52 GMT+01:00 Nasser M. Abbasi <puszcza-hackers at gnu.org.ua>:
> URL:
>   <http://puszcza.gnu.org.ua/bugs/?241>
>
>                  Summary: grave accent letter ` (hex 60) changes to left
> single quotation mark (hex 0xE2 0x80 0x98)
>                  Project: tex4ht
>             Submitted by: nma123
>             Submitted on: Fri 16 Jan 2015 03:52:11 AM EET
>                 Category: None
>                 Priority: 5 - Normal
>                 Severity: 5 - Normal
>                   Status: None
>                  Privacy: Public
>              Assigned to: None
>         Originator Email:
>              Open/Closed: Open
>          Discussion Lock: Any
>
>     _______________________________________________________
>
> Details:
>
> please see
> http://tex.stackexchange.com/questions/223362/tex4ht-changes-a-grave-accent-letter-hex-60-to-left-single-quotation-mark-h
> for more information.
>
> summary:
>
> when running htlatex on this file
>
> \documentclass[12pt]{article}
> \begin{document}
> `123`
>
> \verb|`123`|
>
> \end{document}
>
> the  grave accent character ` is changed to left-single-quotation-mark in
> HTML. I need it to remain  a Hex60 character as it is in the input.
>
> texlive 2014
>
>
>
>
>
>
>     _______________________________________________________
>
> Reply to this item at:
>
>   <http://puszcza.gnu.org.ua/bugs/?241>
>
> _______________________________________________
>   Message sent via/by Puszcza
>   http://puszcza.gnu.org.ua/
>



More information about the tex4ht mailing list