Skip to content

Adds missing characters á and ṣ - #30

Closed
lukasdotcom wants to merge 4 commits into
tyxla:masterfrom
lukasdotcom:master
Closed

lukasdotcom wants to merge 4 commits into
tyxla:masterfrom
lukasdotcom:master

Conversation

@lukasdotcom

@lukasdotcom lukasdotcom commented Oct 31, 2022 •

Copy link
Copy Markdown
Contributor

Fixes #29
Fixes #28

Comment thread package-lock.json Resolved
@lukasdotcom

Copy link
Copy Markdown
Contributor Author

Oops I didn't notice that I added that file. I just removed it.

@tyxla tyxla left a comment •

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work here @lukasdotcom!

One more thing - does it also make sense to add the capital versions of those characters?

It's going to need a rebase as well.

@lukasdotcom

Copy link
Copy Markdown
Contributor Author

I don't know about the capital letters. The issues did not mention them so I did not add them.

@tyxla

tyxla commented Nov 24, 2022

Copy link
Copy Markdown
Owner

I don't know about the capital letters. The issues did not mention them so I did not add them.

I understand your confusion. Anyway, when a character has its own corresponding accented capital letter, it only makes sense to support that as well.

@lukasdotcom

Copy link
Copy Markdown
Contributor Author

I added the capital versions of the letters now.

@tyxla tyxla left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lukasdotcom, this is really close. I've left a few suggestions to address before we're are able to merge this.

Comment thread index.js
"Ầ": "A",
"Ằ": "A",
"Ȃ": "A",
"Á": "A",

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just found that the capital Á actually is already supported - see L3. Just the capital though - the lowercase was not supported. Would you mind removing the capital one from the PR before we merge it?

Comment thread test.js

tape('remove accents from string', function(t) {
var input = 'ÀÁÂÃÄÅẤẮÆẦẰÇḈÈÉÊËẾḖỀḔÌÍÎÏḮÐÑÒÓÔÕÖØỐṌṒÙÚÛÜÝàáâãäåấắæầằçḉèéêëếḗềḕìíîïḯñòóôõöøốṍṓùúûüýÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģǴǵĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķḰḱĹĺĻļĽľĿŀŁłḾḿŃńŅņŇňʼnŌōŎŏŐőŒœŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵẂẃŶŷŸŹźŻżŽžſƒƠơƯưǍǎǏǐǑǒǓǔǕǖǗǘǙǚǛǜỨứṸṹǺǻǼǽǾǿðÞþṔṕṤṥX́x́ЃѓЌќA̋a̋E̋e̋I̋i̋ǸǹỒồṐṑỪừẀẁỲỳȀȁȄȅȈȉȌȍȐȑȔȕẲẴẶḜẳẵặḝC̆c̆ḪḫK̆k̆M̆m̆N̆n̆P̆p̆R̆r̆T̆t̆V̆v̆X̆x̆Y̆y̆ȂȆȊȎȃȇȋȏȒȓȖȗșțȘȚB̌b̌F̌f̌ǦǧȞȟJ̌ǰǨǩM̌m̌P̌p̌Q̌q̌ṦṧV̌v̌W̌w̌X̌x̌Y̌y̌A̧a̧B̧b̧ḐḑȨȩƐ̧ɛ̧ḨḩI̧i̧Ɨ̧ɨ̧M̧m̧O̧o̧Q̧q̧U̧u̧X̧x̧Z̧z̧ß';
var input = 'ÁÀÁÂÃÄÅẤẮÆẦẰÇḈÈÉÊËẾḖỀḔÌÍÎÏḮÐÑÒÓÔÕÖØỐṌṒṢÙÚÛÜÝàáâãäåấắæầằáçḉèéêëếḗềḕìíîïḯñòóôõöøốṍṓùúûüýÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģǴǵĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķḰḱĹĺĻļĽľĿŀŁłḾḿŃńŅņŇňʼnŌōŎŏŐőŒœŔŕŖŗŘřŚśŜŝŞşŠšṣŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵẂẃŶŷŸŹźŻżŽžſƒƠơƯưǍǎǏǐǑǒǓǔǕǖǗǘǙǚǛǜỨứṸṹǺǻǼǽǾǿðÞþṔṕṤṥX́x́ЃѓЌќA̋a̋E̋e̋I̋i̋ǸǹỒồṐṑỪừẀẁỲỳȀȁȄȅȈȉȌȍȐȑȔȕẲẴẶḜẳẵặḝC̆c̆ḪḫK̆k̆M̆m̆N̆n̆P̆p̆R̆r̆T̆t̆V̆v̆X̆x̆Y̆y̆ȂȆȊȎȃȇȋȏȒȓȖȗșțȘȚB̌b̌F̌f̌ǦǧȞȟJ̌ǰǨǩM̌m̌P̌p̌Q̌q̌ṦṧV̌v̌W̌w̌X̌x̌Y̌y̌A̧a̧B̧b̧ḐḑȨȩƐ̧ɛ̧ḨḩI̧i̧Ɨ̧ɨ̧M̧m̧O̧o̧Q̧q̧U̧u̧X̧x̧Z̧z̧';

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we messed up a rebase here and this removes support for ß that was added in #31 and #32. We'll have to address this before merging.

@KittySparkles

Copy link
Copy Markdown
Contributor

@tyxla It seems the PR authored gave up on this one. If I were to open this PR fresh (and fix the remaining comments), would you merge and publish it?

@tyxla

tyxla commented Jul 16, 2025

Copy link
Copy Markdown
Owner

@KittySparkles sure thing - thanks!

Let's make sure to give credit to the original author via Co-authored-by (see https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors)

@KittySparkles

Copy link
Copy Markdown
Contributor

The first character (in both cases) is already on master:

The second character (in both cases) was moved to #55.

@tyxla tyxla closed this in #55 Jul 21, 2025
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.

Combining acute accent is not removed accent not removed

3 participants