Page 1 of 1

Publish - Book Errors

Posted: 12 Oct 2022 02:19
by trevithick
Yesterday I "Published" a Book for the first time using FH 7.0.15, and was amazed at the detail of the results, and that it was 281 pages in length.

I then started perusing it and noticed that it is leaving HTML code in places. For example <<b>>Mark<</b>>, and for italics and tabs.

I used the default settings when publishing other than changing the font to Times New Roman.

ColeValleyGirl has posted a How To in the Forum, and I will go back and read it (thank you for your colossal efforts) , but it doesn't appear to deal with issues, and only publishing options. :?:

Re: Publish - Book Errors

Posted: 12 Oct 2022 10:34
by tatewise
Can you please explain exactly where those HTML codes are appearing?
Are they within Narrative Sentences produced by Sentence Templates, or in text derived from Rich Text Notes, or what?
If you Publish the same standalone Report as you have added to the Book does it exhibit the same issues?

Re: Publish - Book Errors

Posted: 12 Oct 2022 10:45
by ColeValleyGirl
I wonder if it's relevant that the project may have originated in Legacy? Did Legacy allow embedded html in text?

Re: Publish - Book Errors

Posted: 16 Oct 2022 05:49
by trevithick
Mike,

What appears as HTML is in the body of the book text. I attempted to attach snippets of them in my original post, but all I get is Image. I see no way to attach a file, but here is a small sample of the errors.

They appear first on page 4 of my Ancestry section as follows:

John Arthur (Art) Trevithick
«i»November 12, 1926 – July 8, 2013
«/i»
«b»Mark's «/b»
«b»
Father's Day Card 2013:
«/b»

The first error is parsed from the Birth and Death Dates and is not a text string. I have checked both FH and Legacy and neither have HTML.


ColeValleyGirl,

Yes, Legacy allows embedded HTML, so I checked the profiles of the persons, John Arthur (Art) Trevithick, specifically to see if that was the source of the problem. It is not.

Re: Publish - Book Errors

Posted: 16 Oct 2022 11:26
by tatewise
To post a screenshot see FHUG KB Forum Usage Tips under Attachments and Taking Screenshots.
A screenshot of the problem including its full context such as what type of Report you are using will be helpful.

Codes such as «i» and «b» are not HTML but do look like Legacy text formatting codes.

In FH please use Edit > Find... and Search For: those codes that I suspect are in text imported from Legacy.

As asked before, if you produce a standalone Report similar to the one you embed in the Book do you get the same problem?

Re: Publish - Book Errors

Posted: 16 Oct 2022 17:08
by trevithick
Thank you Mike,

You are absolutely correct, the errors are not HTML, but formatting codes.

Snippets are attached of the error(s) in question, and of the Family Historian Search, as well as a similar search in Legacy. Neither <<b>>, nor <<i>> are found in either file.

The Book I created was generated by Publish / Books & Booklets, and then creating a Book name, and using the default settings.

Regards,
Mark

Re: Publish - Book Errors

Posted: 16 Oct 2022 17:20
by tatewise
Your text searches are incorrect. You must search for «i» and «b» which are very different from <<b>> and <<i>>

«i» and «b» are only three characters each, whereas <<b>> and <<i>> are five characters each.

Copy the three characters from the line above here that are not bold.

Alternatively, search for November 12, 1926 – July 8, 2013 which you should find surrounded by the codes.

I assure you it is nothing to do with the Book Report.

Re: Publish - Book Errors

Posted: 17 Oct 2022 03:30
by trevithick
Thank you again Mike,

Searching for the correct text that you pointed out, did the trick. They do in fact exist in FH, and I will check Legacy tomorrow.

I'm guessing that there are Ascii Codes for those characters? Regardless, I have some work to do to clean the files before attempting to create a book again.

Re: Publish - Book Errors

Posted: 17 Oct 2022 11:10
by tatewise
Those characters do not have ASCII codes because they are not one of the basic A-Z 0-9 a-z or symbols of the 128 ASCII set.
They are one of the thousands of Unicode UTF-8 characters supported by FH and most modern programs.
That Unicode set includes all the foreign language characters with accents, Asian languages, and a vast array of symbols of which « and » are just two. See FHUG Knowledge Base How to Enter Accented and Other Special Characters.