# Space between KANJI stretch to match furigana

**URL:** <https://forums.ankiweb.net/t/space-between-kanji-stretch-to-match-furigana/59851>\
**Category:** Card Design\
**Created:** [April 27, 2025, 10:14am UTC](https://forums.ankiweb.net/t/space-between-kanji-stretch-to-match-furigana/59851 "2025-04-27T10:14:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![DrVin](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/drvin/32/28455_2.png) [@DrVin](https://forums.ankiweb.net/u/DrVin)\
**Post date:** [April 27, 2025, 10:14am UTC](https://forums.ankiweb.net/t/space-between-kanji-stretch-to-match-furigana/59851/1 "2025-04-27T10:14:01Z")

</div>

How can i achieve normal spacing between kanji when furigana (ruby) (which might be longer) stretches the kanji text? The spacing always hints at how long the furigana word is so it spoils it. For reference, when the set of kanji are wider than the furigana spelling, the kanji are spaced normally but it just stretches when its the reverse.

PLEASE HELP! ☹

 ![Screenshot 2025-04-27 100623](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/c/0/c0b6191d67a4fd4e37b2fce1c27a647feef0fcb7.png)  
 ![Screenshot 2025-04-27 095804](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/6/7/676faa9c59f80817a8ce78c1d391a5ca3727485d.png)  
 ![Screenshot 2025-04-27 095810](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/5/8/581926c51468d1c7ee2b9707b0546a7dbd6e2ab7.png)

---

<div class="post-metadata">

**Author:** ![sorata](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/sorata/32/34115_2.png) [@sorata](https://forums.ankiweb.net/u/sorata)\
**Post date:** [April 27, 2025, 11:25am UTC](https://forums.ankiweb.net/t/space-between-kanji-stretch-to-match-furigana/59851/2 "2025-04-27T11:25:12Z")

</div>

This is not an issue with the `kanji:` filter. I assume you’re not using that to hide the furigana on front. _See_ [Field Replacements - Anki Manual](http://docs.ankiweb.net/templates/fields.html#ruby-characters).

For example, on the front you’ll have:

```handlebars
{{kanji:Question}}

```

On backside:

```handlebars
{{furigana:Question}}

```

---

<div class="post-metadata">

**Author:** ![DrVin](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/drvin/32/28455_2.png) [@DrVin](https://forums.ankiweb.net/u/DrVin)\
**Post date:** [May 7, 2025, 12:34pm UTC](https://forums.ankiweb.net/t/space-between-kanji-stretch-to-match-furigana/59851/3 "2025-05-07T12:34:26Z")

</div>

Hey sorata, ive been looking through the site but i am such a simpleton when it comes to stuff like this and I cant really understand what I am doing wrong. Is there any chance you can see here what the problem is with the script that I have. would really appreciate anyhelp, I have rare pokemon in ankimon that I would gladly give you. 🥺

 ![Screenshot 2025-05-07 121045](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/7/1/71ca58a19bb90ed1a986d9a68490a7956af176d8.png)  
 ![Screenshot 2025-05-07 121051](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/c/7/c73c3133ec33bc53bd6853ddbb6c702d6ac510e7.png)  
 ![Screenshot 2025-05-07 121057](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/5/c/5cdb6e79545f9a10199ce39479a248376b6fdab2.png)  
 ![Screenshot 2025-05-07 121104](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/2/b/2b81e082cb71f388e5cca6073b42f2ee611f6d4a.png)

---

<div class="post-metadata">

**Author:** ![sorata](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/sorata/32/34115_2.png) [@sorata](https://forums.ankiweb.net/u/sorata)\
**Post date:** [May 7, 2025, 12:43pm UTC](https://forums.ankiweb.net/t/space-between-kanji-stretch-to-match-furigana/59851/4 "2025-05-07T12:43:26Z")

</div>

> [@DrVin](#):
>
> Is there any chance you can see here what the problem is with the script that I have.

Sure, in the front template you’ll need to replace `{{Question}}` with this:

```auto
{{kanji:Question}} 

```

In the back template, replace `{{FrontSide}}` with this:

```auto
{{furigana:Question}}

```

* * *

After this, you can have a card with Question field like this:

```auto
 雨空[あまぞら]

```

This will show up without furigana on front, and with furigana on the back. Let know if it works.

> [@DrVin](#):
>
> I have rare pokemon in ankimon that I would gladly give you. 🥺

Haha, I don’t need it but thanks.

---

<div class="post-metadata">

**Author:** ![DrVin](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/drvin/32/28455_2.png) [@DrVin](https://forums.ankiweb.net/u/DrVin)\
**Post date:** [May 7, 2025, 1:48pm UTC](https://forums.ankiweb.net/t/space-between-kanji-stretch-to-match-furigana/59851/5 "2025-05-07T13:48:10Z")

</div>

I did the changes, but the spacing is still off 😔

 ![Screenshot 2025-05-07 134600](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/3/f/3f4f578ea0130cfc7d8b9646c67dca9aa2edeaf4.png)  
 ![Screenshot 2025-05-07 134628](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/0/a/0a70fc44d90c18032b7516d3cfca2c5af88b524e.png)

---

<div class="post-metadata">

**Author:** ![mbrubeck](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/mbrubeck/32/19595_2.png) [@mbrubeck](https://forums.ankiweb.net/u/mbrubeck)\
**Post date:** [May 7, 2025, 3:06pm UTC](https://forums.ankiweb.net/t/space-between-kanji-stretch-to-match-furigana/59851/6 "2025-05-07T15:06:27Z")

</div>

Another thing you can try is changing `visibility: hidden;` to `visibility: none;` in the front-side styling.

---

<div class="post-metadata">

**Author:** ![sorata](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/sorata/32/34115_2.png) [@sorata](https://forums.ankiweb.net/u/sorata)\
**Post date:** [May 7, 2025, 4:45pm UTC](https://forums.ankiweb.net/t/space-between-kanji-stretch-to-match-furigana/59851/7 "2025-05-07T16:45:16Z")

</div>

I didn’t notice you had custom styling for your ruby text. It’s better you remove it if you don’t particularly need it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [June 6, 2025, 4:46pm UTC](https://forums.ankiweb.net/t/space-between-kanji-stretch-to-match-furigana/59851/8 "2025-06-06T16:46:03Z")

</div>

Closed on June 6, 2025, 4:46pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
