learning-unlimited / ESP-Website

A website to help manage the logistics of large, short-term educational programs
82 stars 57 forks source link

PDF catalog generation is broken #620

Open pricem opened 11 years ago

pricem commented 11 years ago

David from Duke reports that the PDF catalog failed to generate (on the morning of their program). A quick investigation reveals that this may have something to do with Unicode characters not being properly escaped. We should add some non-standard characters into the course descriptions used by our test code to find out whether this is the specific issue, and then fix it.

benjaminjkraft commented 11 years ago

The texescape function definitely doesn't properly escape unicode characters; it escapes a specific short list of characters, as I recall.

I seem to recall someone came across a TeX escaping function that we could use, so we don't have to write our own; I don't remember who it was, though.

On Tue, Mar 26, 2013 at 11:16 PM, Michael Price notifications@github.comwrote:

David from Duke reports that the PDF catalog failed to generate (on the morning of their program). A quick investigation reveals that this may have something to do with Unicode characters not being properly escaped. We should add some non-standard characters into the course descriptions used by our test code to find out whether this is the specific issue, and then fix it.

— Reply to this email directly or view it on GitHubhttps://github.com/learning-unlimited/ESP-Website/issues/620 .

lenaqr commented 11 years ago

This is the one I used in my TeX-merging script for Junction: http://www.profv.de/texcaller/

I have no idea if it handles Unicode characters.

On Tue, Mar 26, 2013 at 11:25 PM, Ben Kraft notifications@github.comwrote:

The texescape function definitely doesn't properly escape unicode characters; it escapes a specific short list of characters, as I recall.

I seem to recall someone came across a TeX escaping function that we could use, so we don't have to write our own; I don't remember who it was, though.

On Tue, Mar 26, 2013 at 11:16 PM, Michael Price notifications@github.comwrote:

David from Duke reports that the PDF catalog failed to generate (on the morning of their program). A quick investigation reveals that this may have something to do with Unicode characters not being properly escaped. We should add some non-standard characters into the course descriptions used by our test code to find out whether this is the specific issue, and then fix it.

— Reply to this email directly or view it on GitHub< https://github.com/learning-unlimited/ESP-Website/issues/620> .

— Reply to this email directly or view it on GitHubhttps://github.com/learning-unlimited/ESP-Website/issues/620#issuecomment-15502333 .

benjaminjkraft commented 11 years ago

Looks like it will as long as we \usepackage[utf8]{inputenc} or so in all templates, which we may already or can easily do.

On Tue, Mar 26, 2013 at 11:33 PM, Anthony Lu notifications@github.comwrote:

This is the one I used in my TeX-merging script for Junction: http://www.profv.de/texcaller/

I have no idea if it handles Unicode characters.

On Tue, Mar 26, 2013 at 11:25 PM, Ben Kraft notifications@github.comwrote:

The texescape function definitely doesn't properly escape unicode characters; it escapes a specific short list of characters, as I recall.

I seem to recall someone came across a TeX escaping function that we could use, so we don't have to write our own; I don't remember who it was, though.

On Tue, Mar 26, 2013 at 11:16 PM, Michael Price < notifications@github.com>wrote:

David from Duke reports that the PDF catalog failed to generate (on the morning of their program). A quick investigation reveals that this may have something to do with Unicode characters not being properly escaped. We should add some non-standard characters into the course descriptions used by our test code to find out whether this is the specific issue, and then fix it.

— Reply to this email directly or view it on GitHub< https://github.com/learning-unlimited/ESP-Website/issues/620> .

— Reply to this email directly or view it on GitHub< https://github.com/learning-unlimited/ESP-Website/issues/620#issuecomment-15502333>

.

— Reply to this email directly or view it on GitHubhttps://github.com/learning-unlimited/ESP-Website/issues/620#issuecomment-15502547 .