Skip to content

Conversation

@danielwohlgemuth
Copy link

Replaced � with –, “, ”, or ’ as appropriate

I came across your paper "Cellular Automata for Physical Modelling" from Randall's Youtube video
"Programming a New Physics Engine for my Game" in which he mentions it (https://youtu.be/AGnMNor_r-Y?t=378). As can be seen in his video, some characters are rendered as � (Replacement character, https://en.wikipedia.org/wiki/Specials_(Unicode_block). What I did is replace the � character with –, “, ”, or ’ as shown on Github. Strangely, Github shows the correct characters and makes these changes look identical, but when opening the raw format or in a text editor, the � character is visible. This change should make the mentioned paper and a few other more pleasant to read.

@mattdm
Copy link

mattdm commented Jun 3, 2020

Rather than manually replacing, I suggest using iconv -f WINDOWS-1252 -t utf-8.

@danielwohlgemuth
Copy link
Author

Thanks! Didn't know about that. Redid the replacement using iconv.

@yoieh
Copy link

yoieh commented Sep 5, 2021

@danielwohlgemuth you have removed about 200 lines from the "cellular_automata_for_physical_modelling.html" file..
+247 −1,096 changes.

@danielwohlgemuth
Copy link
Author

Thanks @yoieh for pointing it out!
I noticed two other files had the same problem, so I ran iconv again on the unmodified files and saw it crash with the message Bus error (core dumped), deleting everything from where it failed to the end of the file. In cellular_automata_for_physical_modelling.html it failed on line 656, in gem_imp_filt.html on line 450, and in gem_vipm_webversion.html on line 697. I added the missing parts from my manual attempt, so it should be complete now.

The commands that I used to convert the files using iconv were these:

iconv -f WINDOWS-1252 -t utf-8 papers/papers.html -o papers/papers.html
iconv -f WINDOWS-1252 -t utf-8 papers/trilight/trilight.html -o papers/trilight/trilight.html
iconv -f WINDOWS-1252 -t utf-8 papers/cellular_automata_for_physical_modelling.html -o papers/cellular_automata_for_physical_modelling.html
iconv -f WINDOWS-1252 -t utf-8 papers/gem_imp_filt.html -o papers/gem_imp_filt.html
iconv -f WINDOWS-1252 -t utf-8 papers/gem_vipm_webversion.html -o papers/gem_vipm_webversion.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants