Re: Creating footnotes on import

From: Martin Sevior <>
Date: Wed Jan 19 2011 - 03:50:13 CET

On Wed, Jan 19, 2011 at 11:46 AM, ????? <> wrote:
> From: "Martin Sevior" <>
> Subject: Re: Creating footnotes on import
>> It is important that each footnote has a footnote-id attribute that is
>> unique and where the footnote anchors and reference match. It sounds
>> like you are not doing this. Have a look at the *.abw file with a text
>> editor with a few footnotes in them. You'll quickly see what is
>> needed. Otherwise it looks like you are doing the right thing.
>> On Wed, Jan 19, 2011 at 7:29 AM, ????? <> wrote:
>>> Which is the correct algorithm for import filter to create footnotes?
>>> I tried:
>>> // when parsing body text
>>> if (footnote marker encountered)
>>>   appendObject(PTO_Field,{"type","footnote_ref","footnote-id",<ordinal>})
>>> // after parsing body text
>>> for each (footnote text)
>>>   appendStrux(PTX_SectionFootnote,{"footnote-id",<ordinal>}
>>>   appendObject(PTO_Field,{"type","footnote_anchor","footnote-id",<ordinal>})
>>>   // parse footnote contents
>>>   appendStrux(PTX_EndFootnote)
>>> The resulting document looks weird, the footnotes after 1st are unfocusable, and when editing document occasionally crash. Since no document format specification is available, I would like to know the correct procedure.
> Yes, I'm using unique (and matching)  footnote-id:s.
> But is it important that <foot> element was in the same <p> as its marker? It seems that app is confused by all footnotes being inside of the last paragraph in document, is it possible?.

Ah yes. The footnote strux containing the text of the footnote must be
*immediately* after the footnote field in the same paragraph <p>.

The document structure is:

<p>some text<footnote field reference><foot strux><p><footnote field
anchor> footnote text</foot strux> more paragraph text<p>

What document format are you importing?



Received on Wed Jan 19 03:50:21 2011

This archive was generated by hypermail 2.1.8 : Wed Jan 19 2011 - 03:50:21 CET