> the crux of which is spelled out in (IMHO),
> 
>   http://www.hpc.uh.edu/fvwm/archive/0303/msg00199.html
> 
> > > If I extend my function that does composing to fill in an array mapping
> > > character position in the in-string to their visual position.
> > > 
> > > For example, let's say there is "o" + "some obscure composing char" + "a",
> > > where there is no pre-composed form for an "o" with "some obscure
> > > composing char", it would give an array: [0,0,1]
> > > That is the first 2 characters should get drawn in first "square", the
> > > last in the second square.
> > > 
> > > What could perhaps be tricky is to handle BIDI. The mapping array must be
> > > rearranged as characters are reorganised by the BIDI algorithm.
> > >
> > 
> > I do not understand the problem, sorry. But two remarks/questions:
> > What about merging FCombineChars, FBidi and FBidiJoin?
> 
> I think, as was noted previously, the best approach to take here is to
> do the following (order matters - I'm listing in execution order),
> 
>  1. Do Bidi
>     - if needed of course
>  2. Do Shaping (sometimes described/termed joining)
>     - Shaping/Joining is the morphing of characters based on their
>       location within a word (initial/medial/final/stand-alone)
>  3. Do Combining
>     - There are some characters out there that will need to be combined
>       (meaning you take A+B -> C -- yup, two characters result in one;
>        this is a complete replacement act. C is brand new glyph)
>  4. Do Composing
>     - This is the superimposition of one character on top of one that
>       proceeds it (meaning you take E+F -> G -- yup two characters result
>       in one; the key here is that G is NOT a new glyph its simply E with
>       F superimposed on it).
> 
> Everything is currently coded-up (in one state or another) except for #4
> above (its still a mystery to me how that is done, Olivier ?).
> 
I've done 4 also.
But I do 3 and 4 before 1 and 2. maybe this is not so good.
How does the BIDI handle combining characters?
Does it preserve the order?
So that for example "Alef + combining character" is not swapped.

If that's the case, maybe I should do the combing and composing after
BIDI and then extract remaining combining characters to allow for
"superimposing"

//Marcus

--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to