zcash / zips

Zcash Improvement Proposals
https://zips.z.cash
MIT License
274 stars 156 forks source link

[protocol spec] Generated PDFs have escape characters for ligatures in text content #424

Open stanislavkozlovski opened 3 years ago

stanislavkozlovski commented 3 years ago

Greetings!

I was reading through your protocol specification PDF page and wanted to search for Difficulty. I noticed that my browser wouldn't catch all the places where difficulty was mentioned and when inspecting the word, I saw that it had some strange characters:

e.g difculty is what I get when I copy it from the PDF (notice the unrecognized character and "fi" missing)

It seems to be the U+001B : <control> ESCAPE [ESC] unicode character. When I search for dif<U+001B>culty, I find 23 occurrences in the specification doc

stanislavkozlovski commented 3 years ago

cc @daira

daira commented 3 years ago

This is viewer dependent. It doesn't happen on the PDF viewer I use (Atril 1.20.3 on Debian Buster). Nevertheless, this appears to be a well-known problem and there are some potential fixes here. What viewer are you using and on what platform, so that I can check whether the fix works?

stanislavkozlovski commented 3 years ago

I am using Google Chrome (Version 87.0.4280.66 (Official Build) (64-bit))'s built-in PDF reader on Ubuntu 20.04

daira commented 10 months ago

This works for me on Debian in Atril, Okular, and Firefox's PDF plugin. Please re-test it with the latest version of the spec. (In any case there wouldn't be much else that I can do about it, if it still doesn't work on the reader you're using @stanislavkozlovski .)