Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

238
Visualizações
how to strikethrough Japanese text using unicode characters

Please take a look at this jsfiddle:

https://jsfiddle.net/darrengates/c5mwohb7/

If you open the console in jsfiddle, you'll see that Japanese text does not "strikethrough" the same way that English does.

English strikethrough: t̶h̶i̶s̶ ̶i̶s̶ ̶E̶n̶g̶l̶i̶s̶h̶ ̶s̶t̶r̶i̶k̶e̶t̶h̶r̶o̶u̶g̶h̶

Japanese strikethrough (on my screen just a bunch of rectangles with lines through): の̶ス̶レ̶ッ̶ド̶で̶、̶ス̶ク̶リ̶ー̶ン̶シ̶

I'm hoping for some way to be able to strikethrough (without using or other html tag-based method) of achieving strikethrough for Japanese and potentially other Asian languages.

Here's the code from the fiddle:

function strike(text) {
    return text
        .split('')
        .map((char) => {
            return char + '\u0336'
        })
        .join('')
}

console.log(strike('this is English strikethrough'))

console.log(strike('のスレッドで、スクリーンシ'))
about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

It does not appear that there is a simple Unicode solution to this issue. Using HTML's (or ) appears to be the best approach. As @skomisa noted in his comments, "text-decoration-style: double" is advisable when doing strikethrough with Japanese.

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda