lilypond-user
[Top][All Lists]
Advanced

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

Re: Japanese text with furigana


From: Carl Sorensen
Subject: Re: Japanese text with furigana
Date: Wed, 6 Dec 2017 22:50:25 +0000
User-agent: Microsoft-MacOutlook/f.28.0.171108


On 12/6/17, 2:00 PM, "Caagr98" <address@hidden> wrote:

    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?
    

Since the kanji should be perfectly aligned in a row, I did this.

\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 番 "ばん"
  }
}

\markup {
  \box \concat { % Seems OK to me
    \furi "一番" "いちばん"
  }
}


Hope this helps,

Carl




reply via email to

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