blocktube icon indicating copy to clipboard operation
blocktube copied to clipboard

Add filtering of special fonts

Open Pbroc opened this issue 3 years ago • 4 comments

Some videos use special fonts that Blocktube doesn't catch, here some examples:

Normal font: A, N Special font: 𝘼, ℕ

And so on...

Is it possible to add this?

Thanks!

Pbroc avatar Mar 31 '21 18:03 Pbroc

(By adding I mean, blocking based on words independently of the font, to be clear)

Pbroc avatar Mar 31 '21 18:03 Pbroc

Unfortunately they are not special fonts, they are different characters alltogether. That's why they are not caught.

A whole character replacement map for each font would need to be built-in, which would likely cause problems/conflicts with foreign languages.

The "Arial" font, have atleast 62 different "lookalike" variations to replace the letter A with alone.. (and that's without lowercase variations) Example: ÄÅÁÀ@ÂÃĀĂĄƋǞǠȂǺȦɄΆΑαАӐӒᴀᵃḀẢẤẦẨẪẬẮẰẲẴẶἈἊἉἋἌἍἎἏᾈᾉᾊᾋᾌᾍᾎᾏᾸᾹᾺΆᾼ₳ꜲꜸ

Spaceship3000 avatar Apr 02 '21 17:04 Spaceship3000

Too bad, I guess the best would be letting YouTube deal with it, but like you said, if foreign languages use it, we're screwed then.

Pbroc avatar Apr 02 '21 17:04 Pbroc

If you use this, you will not be able to block foreign languages.

  • https://github.com/codebox/homoglyph
  • https://github.com/DavidJacobson/SafeText
  • https://github.com/vhf/confusable_homoglyphs
  • https://github.com/life4/homoglyphs
  • https://github.com/NebulousLabs/glyphcheck

BradKML avatar Aug 03 '21 06:08 BradKML