Re: Line Reverse
Tom Hacohen <[email protected]> Thu, 31 May 2012 10:57:58 +0300
| Newsgroups | gmane.comp.internationalization.fribidi |
|---|---|
| Message-ID | <[email protected]> |
On 31/05/12 10:48, Kueffen Heiko wrote: > Thank you, indeed this looks helpful. I think the flexibility given by this API is great. > > Anyway I think it would be useful to get one function for text in -> text out like the log2vis which correctly handles line breaks and maybe could obey paragraph marks (U+00B6). You can't. Although there are specific line breaks in unicode, there are also layout restrictions, for example: line wrapping. You really can't assume to know all the reasons to break lines from inside fribidi, it's something you only now in your layout engine. Unfortunately BiDi support is a pain and there are no real shortcuts. > I'm not familiar with Arabic but I think it should work for Hebrew. I don't quite understand what you mean. Have you considered using EFL ( www.enlightenment.org ) for your project? There's BiDi (and more) support there and the libraries are really thin and fast. Text is only a minor part there, they also provide whatever you may need to write an interactive application. They are used in various embedded projects, and by very big companies, including: Samsung and Intel (Disclaimer: I'm on the developers of the EFL). If you are determined to use your own renedring framework, have you considered using pango? It should help you layout your text and will probably do what you want as well. Both solutions provide a "simple" text_in -> text_out (not really, text out, but more like layout_out or bitmap_out) solution that may suite you. -- Tom.