🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.framemaker.sgml
2 messages
2 total messages Started by Gaurav_Bajaj Fri, 11 Jul 2008 19:03
CrossRefMarker problem
#983
Author: Gaurav_Bajaj
Date: Fri, 11 Jul 2008 19:03
30 lines
1637 bytes
Hello, I am working with a CrossRefMarker element.

In the structure view, the CrossRefMarker is show as:
(Refer to Test1 Test2 Test3 in Chapter 1, Section 2, for additional information.)

Here is the code I have:

case SW_EVT_XREF:

XREFId = F_ApiGetId(docId, eventP->fm_elemid, FP_Object);			
XRefFile= F_ApiGetString(docId, XREFId, FP_XRefFile);

XRefSrcText = F_ApiGetString(docId, XREFId, FP_XRefSrcText);



//get the text range
tr = F_ApiGetTextRange(docId, XREFId, FP_TextRange);

//get the text
textItems = F_ApiGetTextForRange(docId, &tr, FTI_String);

O/p of XRefSrcText= BABEGEDB: Title(Level1): Test1 Test2 Test3
O/p of textItems= (Refer to

I want to capture the entire text of the CrossRefMarker element i.e "(Refer to Test1 Test2 Test3 in Chapter 1, Section 2, for additional information.)"

Any pointers on how this can be done would be appreciated.

Thanks...
Re: CrossRefMarker problem
#979
Author: Russ Ward
Date: Mon, 14 Jul 2008 13:02
5 lines
1289 bytes
Guarav,

Are you sure that the text items terminate at "Refer to"? In other words, does the TextItemsT structure only have one item (ie, textItems.len == 1)? If there is another type of text item such as a line break, it will split the string, resulting in multiple text items with the FTI_String type. Whenever I retrieve textitems with the purpose of getting the string, I run the TextItemsT structure through a concatenation function afterwards which steps through each item and combines any FTI_Strings into a single string. In summary, when retrieving text, don't assume that textItems.val[0] is the entire string.

Russ
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads