projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6df5e74
)
(compose_glyph_string): Improve script detection.
author
handa
<handa>
Fri, 7 Sep 2007 08:03:19 +0000
(08:03 +0000)
committer
handa
<handa>
Fri, 7 Sep 2007 08:03:19 +0000
(08:03 +0000)
src/draw.c
patch
|
blob
|
history
diff --git
a/src/draw.c
b/src/draw.c
index
041bac8
..
5709638
100644
(file)
--- a/
src/draw.c
+++ b/
src/draw.c
@@
-369,8
+369,16
@@
compose_glyph_string (MFrame *frame, MText *mt, int from, int to,
{
this_script = (MSymbol) mchar_get_prop (c, Mscript);
if (this_script == Minherited || this_script == Mcommon)
- this_script = script;
- if (this_script == Mcommon)
+ {
+ if (g > MGLYPH (1))
+ {
+ MSymbol category = mchar_get_prop (g[-1].c, Mcategory);
+
+ if (MSYMBOL_NAME (category)[0] != 'Z')
+ this_script = script;
+ }
+ }
+ if (this_script == Mcommon && non_latin_script)
this_script = non_latin_script;
if (this_script == Mcommon)
{