From f1ac45625e0891e8ace34581143515158097c28e Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 30 Jun 2004 07:06:27 +0000 Subject: [PATCH] *** empty log message *** --- NEWS | 6 ++-- src/m17n-core.c | 88 ++++++++++++++++++++++++++++++++++++++----------------- 2 files changed, 64 insertions(+), 30 deletions(-) diff --git a/NEWS b/NEWS index a97d60b..5c75101 100644 --- a/NEWS +++ b/NEWS @@ -10,9 +10,9 @@ See the end for copying conditions. ** The "configure" script now detects Fontconfig, Xft2, and GD libraries. -If Fontconfig library is found, find local font files (that are to be -handled by the Freetype library) by fontconfig, and if Xft2 library is -also found, draw text by Xft. +If Fontconfig library is found, the library find local font files +(that are to be handled by the Freetype library) by fontconfig, and if +Xft2 library is also found, draw text by Xft. ** Mdevice (new symbol) is recoginized as a key in the argument PLIST of mframe (). diff --git a/src/m17n-core.c b/src/m17n-core.c index c2c01ae..ba14e21 100644 --- a/src/m17n-core.c +++ b/src/m17n-core.c @@ -40,28 +40,45 @@ It provides modules that utilize the m17n database (code conversion, character property, etc). They load various kinds of data from the database on demand. To use this API, an application - program must include and be linked by -lm17n (some system - requires -lm17n-core in addition). With that, CORE API is also available. + program must include and be linked by -lm17n-core -lm17n. + + When you use this API, CORE API is also available.
  • GUI API It provides GUI modules such as drawing and inputting M-texts on a graphic device. The API itself is independent on a graphic device but most of functions require an argument MFrame which is created - for a specific type of graphic device. Currently, X Window - System, gdImagePtr of GD library, and null device are supported as - a graphic device. To use this API, an application program must - include , and be linked by -lm17n-gui (some system - requires -lm17n-core -lm17n in addition). With that, CORE and - SHELL APIs are also available. + for a specific type of graphic device. Currently, a null device, + X Window System, and an image date (gdImagePtr) of GD library are + supported as a graphic device. + + With the null device, you can't draw text nor use an input method + (but, for instance, the funciton mdraw_glyph_list () is + available). To use this device, an application program must + include and be linked by -lm17n-core -lm17n + -lm17n-gui. + + With the X Window System, you can use the whole GUI API. To use + this device, an application program must include and be + linked by -lm17n-core -lm17n -lm17n-gui -lm17n-X. + + With an image of GD library, you can use all drawing API but can't + use input method. To use this device, an application program must + include , and be linked by -lm17n-core -lm17n + -lm17n-gui -lm17n-gd. + + It is also possible to use multiple devices. + + When you use this API, CORE and SHELL API are also available.
  • MISC API It provides miscellaneous functions to support error handling and - debugging. This API cannot be used by itself, but with one or more - APIs listed above. To use the API, an application program must - include in addition to one of , - , and . + debugging. This API cannot be used by itself, but with one or + more APIs listed above. To use the API, an application program + must include in addition to one of a header file + described above. @@ -144,28 +161,45 @@ m17n ¥Ç¡¼¥¿¥Ù¡¼¥¹¤òÍøÍѤ¹¤ë¥â¥¸¥å¡¼¥ë¡Ê¥³¡¼¥ÉÊÑ´¹¡¢Ê¸»ú¥×¥í¥Ñ¥Æ¥£ Åù¡Ë¤òÄ󶡤¹¤ë¡£¥â¥¸¥å¡¼¥ë¤Ï¥Ç¡¼¥¿¥Ù¡¼¥¹¤«¤éɬÍפ˱þ¤¸¤Æ¿Íͤʥǡ¼ ¥¿¤ò¥í¡¼¥É¤¹¤ë¡£ÍøÍѤ¹¤ë¤¿¤á¤Ë¤Ï¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥×¥í¥°¥é¥à¤Ï - ¤ò include ¤·¡¢ -lm17n ¤Ç¥ê¥ó¥¯¤µ¤ì¤Ê¤¯¤Æ¤Ï¤Ê¤é¤Ê¤¤¡Ê¥·¥¹ - ¥Æ¥à¤Ë¤è¤Ã¤Æ¤Ï -lm17n-core ¤âɬÍסˡ£¤³¤¦¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¥³¥¢ API - ¤â»ÈÍѤǤ­¤ë¡£ + ¤ò include ¤·¡¢ -lm17n-core -lm17n ¤Ç¥ê¥ó¥¯¤µ¤ì¤Ê¤¯¤Æ¤Ï¤Ê + ¤é¤Ê¤¤¡£ + + ¤³¤Î API ¤ò»ÈÍѤ¹¤ëºÝ¤Ë¤Ï¥³¥¢ API ¤â»ÈÍѤǤ­¤ë¡£
  • GUI API M-texts ¤ò¥°¥é¥Õ¥£¥Ã¥¯¥Ç¥Ð¥¤¥¹¾å¤Çɽ¼¨¤·¤¿¤êÆþÎϤ·¤¿¤ê¤¹¤ë¤È¤¤¤Ã¤¿¡¢ - ¥°¥é¥Õ¥£¥Ã¥¯¥æ¡¼¥¶¥¤¥ó¥¿¥Õ¥§¡¼¥¹¥â¥¸¥å¡¼¥ë¤òÄ󶡤¹¤ë¡£API ¼«ÂΤϥ¦¥£ - ¥ó¥É¥¦¥·¥¹¥Æ¥à¤È¤ÏÆÈΩ¤Ç¤¢¤ë¤¬¡¢Â¿¤¯¤Î´Ø¿ô¤ÏÆÃÄê¤Î¥°¥é¥Õ¥£¥Ã¥¯¥Ç¥Ð - ¥¤¥¹¾å¤ËºîÀ®¤µ¤ì¤¿ MFrame ¤ò°ú¿ô¤Ë¼è¤ë¡£¸½»þÅÀ¤Ç¤Ï¡¢X ¥¦¥£¥ó¥É¥¦¥· - ¥¹¥Æ¥à¡¢GD ¥é¥¤¥Ö¥é¥ê¤Î gdImagePtr¡¢¥Ì¥ë¥Ç¥Ð¥¤¥¹¤¬¥°¥é¥Õ¥£¥Ã¥¯¥Ç¥Ð - ¥¤¥¹¤È¤·¤Æ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¡£ÍøÍѤ¹¤ë¤¿¤á¤Ë¤Ï¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥×¥í - ¥°¥é¥à¤Ï ¤ò include ¤·¡¢-lm17n-gui ¤Ç¥ê¥ó¥¯¤µ¤ì¤Ê¤¯¤Æ - ¤Ï¤Ê¤é¤Ê¤¤¡Ê¥·¥¹¥Æ¥à¤Ë¤è¤Ã¤Æ¤Ï -lm17n-core -lm17n ¤âɬÍסˡ£¤³¤¦¤¹ - ¤ë¤³¤È¤Ë¤è¤Ã¤Æ¥³¥¢ API ¤È¥·¥§¥ë API ¤â»ÈÍѤǤ­¤ë¡£ + ¥°¥é¥Õ¥£¥Ã¥¯¥æ¡¼¥¶¥¤¥ó¥¿¥Õ¥§¡¼¥¹¥â¥¸¥å¡¼¥ë¤òÄ󶡤¹¤ë¡£API ¼«ÂΤϥ° + ¥é¥Õ¥£¥Ã¥¯¥Ç¥Ð¥¤¥¹¤È¤ÏÆÈΩ¤Ç¤¢¤ë¤¬¡¢Â¿¤¯¤Î´Ø¿ô¤ÏÆÃÄê¤Î¥°¥é¥Õ¥£¥Ã¥¯ + ¥Ç¥Ð¥¤¥¹¾å¤ËºîÀ®¤µ¤ì¤¿ MFrame ¤ò°ú¿ô¤Ë¼è¤ë¡£¸½»þÅÀ¤Ç¤Ï¡¢¥Ì¥ë¥Ç¥Ð¥¤ + ¥¹¡¢X ¥¦¥£¥ó¥É¥¦¥·¥¹¥Æ¥à¡¢GD ¥é¥¤¥Ö¥é¥ê¤Î¥¤¥á¡¼¥¸¡ÊgdImagePtr¡Ë¡¢¤¬ + ¥°¥é¥Õ¥£¥Ã¥¯¥Ç¥Ð¥¤¥¹¤È¤·¤Æ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¡£ + + ¥Ì¥ë¥Ç¥Ð¥¤¥¹¾å¤Ç¤Ïɽ¼¨¤âÆþÎϤâ¤Ç¤­¤Ê¤¤¡Ê¤¿¤À¤·¤¿¤È¤¨¤Ð + mdraw_glyph_list () ¤Ê¤É¤Î´Ø¿ô¤Ï»ÈÍѲÄǽ¡Ë¡£¤³¤Î¥Ç¥Ð¥¤¥¹¤ò»ÈÍѤ¹¤ë + ¤¿¤á¤Ë¤Ï¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥×¥í¥°¥é¥à¤Ï ¤ò include ¤·¡¢ + -lm17n-core -lm17n -lm17n-gui ¤Ç¥ê¥ó¥¯¤µ¤ì¤Ê¤¯¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£ + + X ¥¦¥£¥ó¥É¥¦¥·¥¹¥Æ¥à¾å¤Ç¤Ï¤¹¤Ù¤Æ¤Î GUI API ¤¬»È¤¨¤ë¡£¤³¤Î¥Ç¥Ð¥¤¥¹¤ò + »ÈÍѤ¹¤ë¤¿¤á¤Ë¤Ï¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥×¥í¥°¥é¥à¤Ï ¤ò + include ¤·¡¢-lm17n-core -lm17n -lm17n-gui -lm17n-X ¤Ç¥ê¥ó¥¯¤µ¤ì¤Ê¤¯ + ¤Æ¤Ï¤Ê¤é¤Ê¤¤ + + GD ¥é¥¤¥Ö¥é¥ê¤Î¥¤¥á¡¼¥¸¾å¤Ç¤Ï¡¢ÉÁ²èÍѤΠAPI ¤Ï¤¹¤Ù¤Æ»È¤¨¤ë¤¬ÆþÎÏ¤Ï + ¤Ç¤­¤Ê¤¤¡£¤³¤Î¥Ç¥Ð¥¤¥¹¤òÍøÍѤ¹¤ë¤¿¤á¤Ë¤Ï¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥×¥í¥°¥é¥à + ¤Ï ¤ò include ¤·¡¢-lm17n-core -lm17n -lm17n-gui + -lm17n-gd ¤Ç¥ê¥ó¥¯¤µ¤ì¤Ê¤¯¤Æ¤Ï¤Ê¤é¤Ê¤¤ + + Ê£¿ô¤Î¥Ç¥Ð¥¤¥¹¤òƱ»þ¤Ë»ÈÍѤ¹¤ë¤³¤È¤â¤Ç¤­¤ë¡£¤¢ + + ¤³¤Î API ¤ò»ÈÍѤ¹¤ëºÝ¤Ë¤Ï¡¢¥³¥¢ API ¤È¥·¥§¥ë API ¤â»ÈÍѤǤ­¤ë¡£
  • ¤½¤Î¾¤Î API - ¥¨¥é¡¼½èÍý¡¢¥Ç¥Ð¥Ã¥°ÍѤΤ½¤Î¾¤Î´Ø¿ô¤òÄ󶡤¹¤ë¡£¤³¤Î API ¤Ï¤½¤ì¤À - ¤±¤Ç¤Ï»ÈÍѤǤ­¤º¡¢¾åµ­¤Î¾¤Î¤â¤Î¤È¶¦¤Ë»È¤¦¡£ÍøÍѤ¹¤ë¤¿¤á¤Ë¤Ï - , , ¤Î¤¤¤º¤ì¤«¤Ë²Ã¤¨¤Æ¡¢ - ¤ò include ¤·¤Ê¤¯¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£ + ¥¨¥é¡¼½èÍý¡¢¥Ç¥Ð¥Ã¥°ÍѤΤ½¤Î¾¤Î´Ø¿ô¤òÄ󶡤¹¤ë¡£¤³¤Î API ¤Ï¤½¤ì¤À¤± + ¤Ç¤Ï»ÈÍѤǤ­¤º¡¢¾åµ­¤Î¾¤Î¤â¤Î¤È¶¦¤Ë»È¤¦¡£ÍøÍѤ¹¤ë¤¿¤á¤Ë¤Ï¡¢¾åµ­¤Î + ¤¤¤º¤ì¤«¤Î include ¥Õ¥¡¥¤¥ë¤Ë²Ã¤¨¤Æ¡¢ ¤ò include ¤·¤Ê + ¤¯¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£ -- 1.7.10.4