Re: Inconsistent line height with Cambodian Unicode 2

2010-07-09 Thread Didi Kanjahn
Patrick McCarty pnorcks at gmail.com writes:

 Would you like this to be a feature request instead?
 
 ---
 
 Also, a workaround for this problem is to override 'baseline-skip.  I
 modified your LY file to make the example more compact.  See the
 attached files.
 
 Thanks,
 Patrick
 

Hi Patrick,

Thanks for answering and tidying the example - I'm still very much learning what
is possible.

No, I don't think a feature request is necessary, because the workaround gives
me exactly what I need. I had actually found and tried it before, but without
success, thus thinking it did not work (or I did something wrong). The problem
was that I never put the value high enough to see any effect. This workaround
will help me with another problem as well. It's great for vertical space 
control.

Thanks,

Didi


___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Inconsistent line height with Cambodian Unicode 2

2010-07-08 Thread Didi Kanjahn
 I'm not top-posting

All 3 columns in the Khmer example below have a different height.
The latest version tested was 2.13.23-1.
The font selected in the first example is a Microsoft font, but any Khmer
Unicode font I have tested shows the same behavior. The font 'Khmer UI' that
comes with Windows 7 as default font behaves very differently (non-standard)
from other fonts, it may not show the problem. I can provide fonts of my own.

Some fonts can be downloaded at:
http://sourceforge.net/projects/khmer/files/Fonts%20-%20KhmerOS/KhmerOS%20Fonts%205.0-%20LGPL%20Licence/KhmerOS_.ttf/download

Further below a second example using a Khmer Unicode font, but with Roman script
letters only. Here all columns have the same height.

Didi


\version 2.13.3

\markup { 
  \column {
\fill-line {
  \left-column {
\override #'(font-name . Khmer Mool) \fontsize #1 {
ខ្ញុំ
ខ្ញុំ
ខ្ញុំ
ខ្ញុំ
ខ្ញុំ
ខ្ញុំ
ខ្ញុំ
ខ្ញុំ
ខ្ញុំ
ខ្ញុំ
ខ្ញុំ
ខ្ញុំ
}
  }
  \left-column {
\override #'(font-name . Khmer Mool) \fontsize #1 {
ខ្ញុ
ខ្ញុ
ខ្ញុ
ខ្ញុ
ខ្ញុ
ខ្ញុ
ខ្ញុ
ខ្ញុ
ខ្ញុ
ខ្ញុ
ខ្ញុ
ខ្ញុ
}
  }
  \left-column {
\override #'(font-name . Khmer Mool) \fontsize #1 {
ខ្ញ
ខ្ញ
ខ្ញ
ខ្ញ
ខ្ញ
ខ្ញ
ខ្ញ
ខ្ញ
ខ្ញ
ខ្ញ
ខ្ញ
ខ្ញ
}
  }
  \left-column {
\override #'(font-name . Khmer Mool) \fontsize #1 {
ខ
ខ
ខ
ខ
ខ
ខ
ខ
ខ
ខ
ខ
ខ
ខ
}
  }
}
  }
}


-

\version 2.13.3
\markup { 
  \column {
\fill-line {
  \left-column {
\override #'(font-name . Khmer Busra) \fontsize #1 {
n
n
n
n
n
}
  }
  \left-column {
\override #'(font-name . Khmer Busra) \fontsize #1 {
gd
gd
gd
gd
gd
}
  }
  \left-column {
\override #'(font-name . Khmer Busra) \fontsize #1 {
Ä
Ä
Ä
Ä
Ä
}
  }
}
  }
}



___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Inconsistent line height with Cambodian Unicode 2

2010-07-08 Thread Patrick McCarty
On Thu, Jul 8, 2010 at 5:33 AM, Didi Kanjahn didim...@gmx.net wrote:

 All 3 columns in the Khmer example below have a different height.
 The latest version tested was 2.13.23-1.

[...]

 Further below a second example using a Khmer Unicode font, but with Roman 
 script
 letters only. Here all columns have the same height.

Hi Didi,

As far as I know, it's not possible for the line height to be
calculated correctly, because each character or group of characters is
a separate piece of markup.

In the future, we might consider switching more markup functionality
to Pango so that arbitrary text markup is processed line-by-line and
paragraph-by-paragraph.  This would solve the line-height issue you
are seeing.

But I don't know if/when this would ever happen.  It would require a
large overhaul of the markup infrastructure.

Would you like this to be a feature request instead?

---

Also, a workaround for this problem is to override 'baseline-skip.  I
modified your LY file to make the example more compact.  See the
attached files.

Thanks,
Patrick
\version 2.13.3

\markup {
  \override #'(baseline-skip . 4) {
\column {
  ខ្ញុំ
  ខ្ញុំ
  ខ្ញុំ
  ខ្ញុំ
  ខ្ញុំ
  ខ្ញុំ
  ខ្ញុំ
  ខ្ញុំ
  ខ្ញុំ
}
\column {
  ខ្ញុ
  ខ្ញុ
  ខ្ញុ
  ខ្ញុ
  ខ្ញុ
  ខ្ញុ
  ខ្ញុ
  ខ្ញុ
  ខ្ញុ
}
\column {
  ខ្ញ
  ខ្ញ
  ខ្ញ
  ខ្ញ
  ខ្ញ
  ខ្ញ
  ខ្ញ
  ខ្ញ
  ខ្ញ
}
\column {
  ខ
  ខ
  ខ
  ខ
  ខ
  ខ
  ខ
  ខ
  ខ
}
  }
}
attachment: baseline-skip.preview.png___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond