robhurring / atom-change-case

atom plugin for node-change-case
MIT License
34 stars 14 forks source link

Changing a string to title case removes punctuation #36

Open alerque opened 8 years ago

alerque commented 8 years ago

I'm working with a language that often has apostrophes in the middle of words, e.g. tanrı'nın. When title casing this word in a string the plugin is changing the apostrophe to a space and capitalizing the orphaned suffix as Tanrı Nın.

Other punctuation such as commas, question marks, etc. also gets removed.

None of the other modes seem to be affected by this issue.

deiga commented 8 years ago

Here's the "reasoning" behind why this happens https://github.com/blakeembrey/title-case/issues/3

It requires some work to find a suitable module title casing strings and then some unknown effort to actually take that into use

deiga commented 7 years ago

@alerque I've submitted a PR to change-case which resolves this issue, if it gets accepted