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

Better title casing #24

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

SabreCat
Copy link
Contributor

@SabreCat SabreCat commented Jan 19, 2017

Fixes #18 and #25.

Previously, when titlecase was not installed, decoding fell back on Python's builtin title() string operation for uppercasing the card name and subtypes. This resulted in awkwardness like "Brain In A Jar" and "Urza'S Mine".

Now, in MSE and Gatherer modes, if the titlecase module is not present, we at least swap out the most common faulty capitalizations for their lowercase versions.

Previously, default text and forum decoding modes did no postprocessing on lowercase text.

Now, these modes put card names and type lines into title case, and rules text into sentence case. Additionally, card names are made bold in forum mode.

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