[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Japanese text with furigana
From: |
Caagr98 |
Subject: |
Re: Japanese text with furigana |
Date: |
Thu, 7 Dec 2017 00:58:42 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
That works for that particular example, yes. Doesn't work for anything other
than exactly two kana per kanji, though.
On 12/06/17 23:50, Carl Sorensen wrote:
>
>
> 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
>
>
>