lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Japanese text with furigana


From: Caagr98
Subject: Japanese text with furigana
Date: Wed, 6 Dec 2017 22:00:57 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

I'm trying to insert a bit of Japanese text in some markup. Putting the text 
itself works fine, but as soon as I try adding furigana (small kana above the 
kanji), it looks terrible. Is there anything I can do about that?

——————

\version "2.19.80"

#(define-markup-command (furi layout props kanji kana) (markup? markup?)
   (interpret-markup layout props
     (markup
      (#:override '(baseline-skip . 0)
        #:center-column
         (#:magnify 1/2 kana
          kanji)))))

\markup {
  \box 一番 % Works fine
}

\markup {
  \box \concat { % Terribly misaligned
    \furi 一 "いち"
    \furi 番 "ばん"
  }
}

Attachment: furigana.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]