🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.framemaker
Article #22205

Re: Read Special characters using FDK

#22205
From: Paul Scott
Date: Tue, 14 Jan 2003 15:06
11 lines
1731 bytes
Manoj <manoj_k@mindtree.com> wrote in message news:<1de72bba.-1@WebX.la2eafNXanI>...
> I am using FDK to get the string in each frame and create an XML structure. although most of my functions are working fine. the special characters such as '"' etc are giving me trouble. FDK manuals tell me that i should denote special characters with the appropriate hex or oct codes.
> The question is how do i find out whether the text in a frame has any special characters.
> I am using the F_ApiGetText function and then i iterate through the FTI_String types and do a print of (StringT)tTi->u.sdata.
> Anybody who has tried this?


 I don't know of an elegant solution - I wrote a simple function that
parses the text, replacing the special characters that it finds. I
basically went through all of the special characters by hand, mapping
them to the correct display character. It's ugly, but it works.
Technical Details
Message-ID: <3081fdc.0301140706.477de923@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <1de72bba.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fd315,2e3a1e42b5193ef4
X-Google-Attributes: gidfd315,public
X-Google-ArrivalTime: 2003-01-14 07:06:01 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: paulscott@sympatico.ca (Paul Scott)
Newsgroups: adobe.framemaker
Subject: Re: Read Special characters using FDK
Date: 14 Jan 2003 07:06:00 -0800
Organization: http://groups.google.com/
Lines: 11
Message-ID: <3081fdc.0301140706.477de923@posting.google.com>
References: <1de72bba.-1@WebX.la2eafNXanI>
NNTP-Posting-Host: 64.231.36.167
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1042556761 4744 127.0.0.1 (14 Jan 2003 15:06:01 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 14 Jan 2003 15:06:01 GMT