Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Ocaml source-code examples are not "copy-paste-able" (if they employ apostrophe-character) #5497
Original bug ID: 5497
The program that renders HTML and PDF version of the Reference Manual projects ordinary apostrophe-character to (in case of HTML)
and in case of PDFs probably to some non-ASCII character.
As a result, when reader tries to copy-paste provided examples to Ocaml toplevel, e.g.
he gets an error:
Error: Illegal character (\128)
"Reader-friendly-ness" can be improved if source-code excerpts, that include apostrophe-characters, can be freely copy-pasted without the need to manually translate characters.
Comment author: @xavierleroy
The LaTeX sources for the manual do not use the listings package, but some old TeX hacks very similar to verbatim and alltt styles. And, yes, these are proper ASCII single quote characters in the LaTeX sources.
For the PDF output, we really don't control what's going on between pdflatex and the PDF reader. However, for the Hevea-generated HTML output, one would hope that ASCII quotes can be generated. Luc, could you please have a look at this issue?