gamemanual0 / gm0

Game Manual 0 - The most extensive guide out there for FTC
https://gm0.org
Other
53 stars 84 forks source link

Replace unicode chars that RST auto-substitutes #406

Closed abidingabi closed 8 months ago

abidingabi commented 8 months ago

To check for unicode characters, one can run: find source/docs -name "*.rst" | xargs grep -P '[^\x00-\x7F]'

It may be prudent to remove the remaining unicode characters, but this commit only removes curly quotes, en/em-dashes, non-breaking spaces, and ellipses, for which RST has simple substitions from ASCII.

abidingabi commented 8 months ago

It also may be prudent to add a CI check for this in the future, it is cheap and unicode characters can easily sneak in if text is copied from e.g. Microsoft Word or Google Docs which do their own text substitutions.