Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing confusing html character codes #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dbolser
Copy link

@dbolser dbolser commented Mar 31, 2015

This is motivated by the fact that ‑ is actually a different symbol from - (the minus sign on my kbd). This causes problems for simple find (Ctrl-f) in chrome, as searching for --match isnt the same as searching for ‑‑match! This could additionally cause problems when examples are coppied and pasted from the html page, i.e. "ls ‑l" gives "ls: cannot access ‑l: No such file or directory", hahahaha. Since I was getting rid of 98% the codes anyway, I went ahead and removed the other 2% for consistency as well. I imagine they just got used by a copy paste from a text editor on a mac or so...

This is motivated by the fact that ‑ is actually a different symbol from - (the minus sign on my kbd). This causes problems for simple find (Ctrl-f) in chrome, as searching for --match isnt the same as searching for ‑‑match! This could additionally cause problems when examples are coppied and pasted from the html page, i.e. "ls ‑l" gives "ls: cannot access ‑l: No such file or directory", hahahaha. Since I was getting rid of 98% the codes anyway, I went ahead and removed the other 2% for consistency as well. I imagine they just got used by a copy paste from a text editor on a mac or so...
@dbolser
Copy link
Author

dbolser commented Mar 31, 2015

To prove my sanity, copy paste the ‑ from the sentence "the fact that ‑ is actually" and stick it in this script:

perl -e 'print ord("‑"), "\n"'
# 226

and do the same for the - from the sentence "different symbol from - (the minus sign on my kbd)":

perl -e 'print ord("‑"), "\n"'
# 45

Confusing eh?

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.

1 participant