Re: [HarfBuzz] A couple of clarifications regarding HarfBuzz

2010-10-26 Thread Tom Hacohen
On Mon, 2010-10-25 at 21:23 -0400, Behdad Esfahbod wrote: Not yet. But you can use hb_unicode_get_combining_class(). Thanks, Tom. ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/harfbuzz

Re: [HarfBuzz] A couple of clarifications regarding HarfBuzz

2010-10-24 Thread Tom Hacohen
Dear Behdad, My replies are below. On Thu, 2010-10-21 at 14:55 -0400, Behdad Esfahbod wrote: It's more than just Latin. Yeah, also Yiddish and Hebrew, Arabic and Persian I know them, they just didn't pop to my head. If you have UTF-32 or UTF-16, just pass the length indeed. For UTF-8,

Re: [HarfBuzz] A couple of clarifications regarding HarfBuzz

2010-10-21 Thread Tom Hacohen
Hi Behdad, Thanks a lot for your response, my comments are below: On Wed, 2010-10-20 at 20:17 -0400, Behdad Esfahbod wrote: Yes, that's it. It's more than plain reversal at the end though. You get the direction from the output of UAX#9 (eg. FriBidi). What does it do more than a plain

Re: [HarfBuzz] A couple of clarifications regarding HarfBuzz

2010-10-21 Thread Behdad Esfahbod
On 10/21/10 04:10, Tom Hacohen wrote: Language is used to do language-specific adjustments when appropriate. You typically just pass the locale or whatever your higher-level tells you (think of lang attribute in html) to hb_language_from_string. As I thought, thanks, I wasn't thinking about

[HarfBuzz] A couple of clarifications regarding HarfBuzz

2010-10-20 Thread Tom Hacohen
Dear all, I have a couple of questions about things I don't completely understand. 1. What does the direction in hb_buffer mean (I'm only talking about LTR and RTL, TTB and BTT have more implications)? From what I've seen, it only controls whether it should reverse the order of buffer, or not. 2.

Re: [HarfBuzz] A couple of clarifications regarding HarfBuzz

2010-10-20 Thread Tom Hacohen
On Wed, 2010-10-20 at 17:50 +0200, Khaled Hosny wrote: Each OpenType lookup is associated with script(s) and language(s) where it should be active. Oh, right, didn't think about those Latin users, my bad. What's the best way to detect languages? Just use locale? or is there a better way? There

Re: [HarfBuzz] A couple of clarifications regarding HarfBuzz

2010-10-20 Thread Khaled Hosny
On Wed, Oct 20, 2010 at 06:01:40PM +0200, Tom Hacohen wrote: On Wed, 2010-10-20 at 17:50 +0200, Khaled Hosny wrote: Each OpenType lookup is associated with script(s) and language(s) where it should be active. Oh, right, didn't think about those Latin users, my bad. What's the best way to

Re: [HarfBuzz] A couple of clarifications regarding HarfBuzz

2010-10-20 Thread Behdad Esfahbod
On 10/20/10 11:07, Tom Hacohen wrote: Dear all, Hi Tom, I have a couple of questions about things I don't completely understand. 1. What does the direction in hb_buffer mean (I'm only talking about LTR and RTL, TTB and BTT have more implications)? From what I've seen, it only controls