Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
cstham@adobeforums.com #1
Chinese character extraction:
Hi i wonder to extract Chinese character, anyone can give me some guidelines?
I use AVTextCopyProcCBExtract proc to extract english word, which callback is used to extract the chinese character?
Thanks your concern.
Regards,
Tham
cstham@adobeforums.com Guest
-
Showing Chinese character:
I wonder to show a chinese word in AVAlertNote, is it possible? Please give me some guidelines if it can. Thanks your concern. Regards, Tham -
CF 5 or MX 7 support chinese character?
Does any one know if CF 5 or MX 7 support chinese character or not? if so, what kind of additional file or extension i need to install? Can i use... -
Chinese Character in SQL 2000
Hi, I know someone has asked similar question but the solution in this forum seems can't help me. I am now using SQL 2000 (ENG version) and... -
display chinese character
hi, i wonder why dreamweaver can't display the chinese character that i entered...boxes appeared; but correct chinese characters display in... -
Chinese Character in Director?
I am using English WinXP and English DirectorMX. I need to produce a Chinese-CD, and I am facing difficulties in embeding the fonts into director.... -
Leonard_Rosenthol@adobeforums.com #2
Re: Chinese character extraction:
Did you read the documentation for AVDocGetPageText()? It is very clear about how to get Unicode text:
IN/OUT The format in which the text is desired. The following are allowed values (these strings must be converted to ASAtom objects using ASAtomFromString()): Allowed value Description All (Mac OS/Windows) Calls copyProc once with each available format. Text (Mac OS/Windows) Calls copyProc twice. The first time, it passes the text in the specified selection. The text is passed using the same platform encoding as when it is put onto the clipboard (format = Text ). The second time, it passes a Unicode version of the text (format = UCSText ). Style (Mac only) Calls copyProc twice. The first time, it passes the Text representation. The second time, it passes a StyleInfo record. RTF (Mac OS/Windows) Calls copyProc twice. The first time, it passes the text in Rich Text Format. The second time, it passes a Unicode version of the text. Upon using or manipulating the text, you should check the format in copyProc .
Leonard_Rosenthol@adobeforums.com Guest
-
cstham@adobeforums.com #3
Re: Chinese character extraction:
I use code below to extract chinese character but it didn't function (the callback doesn't work). Any mistake i make?
AVTextCopyProc cbAVTextCopyProc = ASCallbackCreateProto(AVTextCopyProc, &AVTextCopyProcCBExtract);
AVDocGetPageText(avDoc, pageNum, ts, ASAtomFromString("UCSText"), cbAVTextCopyProc, NULL);
ASCallbackDestroy((void*)cbAVTextCopyProc);
Thanks your concern.
Regards,
Tham
cstham@adobeforums.com Guest
-
cstham@adobeforums.com #4
Re: Chinese character extraction:
Ya i use AVDocGetPageText(avDoc, pageNum, ts, ASAtomFromString("RTF"), cbAVTextCopyProc, NULL) and it shows me the unicode. But i want show the chinese character in an AVAlertNote, how can i use ASText to show? Is it AVAlertNote((char*)(ASText)pBuf) since it AVAlertNote only support "char*" type? Please give me some guides.
Thanks your concern.
Regards,
Tham
cstham@adobeforums.com Guest
-
Leonard_Rosenthol@adobeforums.com #5
Re: Chinese character extraction:
Nice to see you recieved the Unicode data as expected when you followed the documentation.
Now, as noted in the other email, do the same things for ASText - read the docs and look at the samples!
Leonard_Rosenthol@adobeforums.com Guest
-
cstham@adobeforums.com #6
Re: Chinese character extraction:
Below is the code i am trying to show chinese character in an ANVlertNote. But it's failed. It's showed nothing in the AVAlertNote. Please insists me where is wrong?
ASText asText = NULL;
ASUnicodeFormat uFormat = kASSimplifiedChineseScript;
asText = ASTextFromUnicode ((const ASUns16*)pBuf, uFormat);
AVAlertNote((char*)asText);
Thanks your concern.
Regards,
Tham
cstham@adobeforums.com Guest
-
Leonard_Rosenthol@adobeforums.com #7
Re: Chinese character extraction:
I thought we went over this already - you can NOT coerce an ASText to a char* that way..
Please review the documentation on ASText.
Leonard_Rosenthol@adobeforums.com Guest
-
cstham@adobeforums.com #8
Re: Chinese character extraction:
I use ASTextSetPDText(asText, pInfo) and ASTextSetScriptText (asText, pInfo, kASSimplifiedChineseScript) to convert asText to char* to show but it still shows nothing in AVAlertNote. Is this function wrong? Please give me some guides
Thanks your concern.
Regards,
Tham
cstham@adobeforums.com Guest
-
Leonard_Rosenthol@adobeforums.com #9
Re: Chinese character extraction:
ASTextSetXXX convert from SOMETHING to ASText. You need to convert ASText TO SOMETHING - try ASTextGetXXXX
Leonard_Rosenthol@adobeforums.com Guest



Reply With Quote

