几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-05-06, 04:30 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】japanese te

japanese text
japanese text
hello,
i have this japanese text in my dxf file "{\fms ui gothic|b0|i0|c128|p17;陡颇 颇 狭玖胁牟 恫露}". there also some other japanese text in this dxf file.
the copepage dwgcodepage for this dxf is 1252. so its not converting/displaying this japanese text correctly upon importing. how do i specify codepage to 932(japanese) only for this text?
as a trial, i edited the dwgcodepage in this dxf to 932, the japenese text is imported/displayed correctly.
appreciate your help; thanks in advance,
kedar
a sample file would be helpful...
sergey slezkin
hello sergey,
please find the file attached. its saved as autocad 2000 dxf file.
thanks,
kedar
attached files (15.0 kb, 13 views)

hi,
i havn' t installed the tty-font ms ui gothic on my system, then dwgdirect used a standard font and i saw "...?????..". so i switched the font for the japanese text to
quote:
{\farial unicode ms|b0|i0|c128|p17;陡颇 颇 狭玖胁牟 恫露}
in your example. as result, i can see your japanese text, but can't read.
__________
ralph
attached images (13.6 kb, 23 views)

last edited by hi-cads; 11th january 2007 at 12:43 amfff">.
thanks for the reply, hi-cads. i tried editing the font to arial unicode ms instead of gothic in the dxf; still got the same error.
kedar
hi kedar,
your text string has information about code pade ( |c128 = cp_ansi_932). so this text must be converted to unicode correctly.
what version dwgdirect do you use? and could you explain where and which coding you wish to get text?
possible it will be helpful. textproc() method of odgigeometry... classes has parameter odgitextstyle which has method getcodepage(). it corresponds to code page of passed text.
best regards,
sergey z.
hey sergey,
i m using v1.13. i tried to get the codepage by using explodefragments(). this way, i can retreive the codepage value of this mtext but its in a callback. i checked the examples in the dwg toolkit, but i still have some problems. can you share an example of explodefragments() & oddbtextiterator? i can get the codepage value by using these two methods, right??
thanks,
kedar
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】exporting multi color te yang686526 DirectDWG 0 2009-05-05 10:32 AM
【转帖】drawing extents changes after adding te yang686526 DirectDWG 0 2009-05-04 08:08 PM
【转帖】cannot position a dimension te yang686526 DirectDWG 0 2009-05-04 05:29 PM
【转帖】bug in rendering of te yang686526 DirectDWG 0 2009-05-04 05:06 PM
【转帖】2.7.1 invalid svg output from drawing with te yang686526 DirectDWG 0 2009-05-04 02:55 PM


所有的时间均为北京时间。 现在的时间是 02:39 AM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多