PB Bug: The limit on TOC entries is calculated incorrectly

Page 1 of 1 (5 items)
This post has 4 Replies | 0 Followers

Posts 13417
Mark Barnes | Forum Activity | Posted: Wed, Feb 26 2014 2:14 PM

There's a 256 character limit on entries in the table of contents. The problem is that the limit is calculated before Logos markup is handled, not afterwards. So if your markup is lengthy , then your TOC entries will be truncated.

In my case I had an entry which said:

[[@Page:3215]][[@Headword:Church Father]][[@Headword:Early Church Fathers]][[@Headword:Early Church Father]][[@Headword:Greek Fathers]][[@Headword:Holy Fathers]][[@Headword:Fathers of the Church]][[@Headword:Latin Fathers]][[@Headword:Church Fathers]]Church Fathers

Which was truncated to 'Churc'.

It's an even bigger problem when the 256th character is in the middle of a bit of Logos' markup. So another example:

[[@Page:3254]][[@Headword:Church of God (7th day) - Salem Conference]][[@Headword:General Conference of the Church of God (Seventh-Day)]][[@Headword:Church of God (7th day)]][[@Headword:Church of God (Seventh Day)]][[@Headword:Church of God (7th day) – Salem Conference]][[@Headword:Church of God (Seventh-Day)]]Church of God (Seventh-Day)

This became a TOC entry of '[[@Headword:Church of God (7th day) – Sal'.

Although I'm giving headwords as an example, the problem would also be likely to occur if you had URL links in your headings.

The solution, presumably, is to parse the markup, then truncate, rather than the other way around.

Posts 2895
Beloved Amodeo | Forum Activity | Replied: Wed, Feb 26 2014 3:38 PM

Mark Barnes:
There's a 256 character limit on entries in the table of contents. The problem is that the limit is calculated before Logos markup is handled, not afterwards.

So Mark,

Is the solution as simple as implied, namely to apply the limit after the markup?

Meanwhile, Jesus kept on growing wiser and more mature, and in favor with God and his fellow man.

International Standard Version. (2011). (Lk 2:52). Yorba Linda, CA: ISV Foundation.

MacBook Pro macOS Big Sur 11.2.3

Posts 13417
Mark Barnes | Forum Activity | Replied: Wed, Feb 26 2014 3:52 PM

Beloved:
Is the solution as simple as implied, namely to apply the limit after the markup?

That's for the programmers to decide. I have a habit of declaring things to be simple, only to be told there are five good reasons why it wasn't done that way.

A workaround for us, would be to move the headwords from the beginning of the line to the end.

Posts 1471
Angela Murashov | Forum Activity | Replied: Fri, Feb 28 2014 9:26 AM

Mark Barnes:
There's a 256 character limit on entries in the table of contents. The problem is that the limit is calculated before Logos markup is handled, not afterwards. So if your markup is lengthy , then your TOC entries will be truncated.

I will create a case for Development to investigate this issue.

Posts 1471
Angela Murashov | Forum Activity | Replied: Wed, Jan 14 2015 2:14 PM

Angela Murashov:

Mark Barnes:
There's a 256 character limit on entries in the table of contents. The problem is that the limit is calculated before Logos markup is handled, not afterwards. So if your markup is lengthy , then your TOC entries will be truncated.

I will create a case for Development to investigate this issue.

This should be fixed in 6.0b.

Page 1 of 1 (5 items) | RSS