* Question marks appearing in text

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
avatar
StevieA
Newbie
Posts: 2
Joined: 18 Jan 2021 10:05
Family Historian: V6

Question marks appearing in text

Post by StevieA » 18 Jan 2021 10:18

I hope that someone can tell me why when I put text in quotes it puts ? next to " and the words.
Please see attached screen dump.
Attachments
Capture Wording Snip.PNG
Capture Wording Snip.PNG (11.58 KiB) Viewed 6918 times

User avatar
Jane
Site Admin
Posts: 8441
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Question marks appearing in text

Post by Jane » 18 Jan 2021 11:03

It looks like you might have "smart" quotes, did you copy text in from Word?
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
tatewise
Megastar
Posts: 27082
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Question marks appearing in text

Post by tatewise » 18 Jan 2021 12:05

Welcome to the FHUG Stevie.

Presumably, you did not enter those quotes from your keyboard?
So where did you copy them from?

Is that screenshot of a Notes box or a Report screen?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
RS3100
Famous
Posts: 240
Joined: 05 Nov 2020 12:16
Family Historian: V7
Location: Hertfordshire, UK

Re: Question marks appearing in text

Post by RS3100 » 18 Jan 2021 12:05

Coincidentally I found the same in a record note yesterday. It was information that I had copied and pasted from a website some time ago, but I'm pretty sure that it did not include the question marks when displayed in FH6. I've only noticed it since moving to FH7.

I found that deleting the "?" symbols in the note didn't remove them. As soon as I tabbed out of or closed the note window they reappeared. I fixed it by highlighting and cutting the note from the note window, then pasting it back using the "Paste Unformatted Text" option.

avatar
StevieA
Newbie
Posts: 2
Joined: 18 Jan 2021 10:05
Family Historian: V6

Re: Question marks appearing in text

Post by StevieA » 18 Jan 2021 12:40

The question marks were not entered via the keyboard, they simply appeared as per RS3100 response.
It is a notes box but I can't remember if I copied this text from word, as sometimes I do.
If you correct it, it simply reappears.
I'll try RS3100's solution.
Many thanks all!

User avatar
PeterR
Megastar
Posts: 1129
Joined: 10 Jul 2006 16:55
Family Historian: V7
Location: Northumberland, UK

Re: Question marks appearing in text

Post by PeterR » 18 Jan 2021 14:53

I've just checked my GEDCOM file, and it contains a few examples of “smart” quotes, some from as far back as 2009. They've always displayed correctly (with no extraneous “?”) in FH6 and in FH7.
Peter Richmond (researching Richmond, Bulman, Martin, Driscoll, Baxter, Hall, Dales, Tyrer)

User avatar
LornaCraig
Megastar
Posts: 2996
Joined: 11 Jan 2005 17:36
Family Historian: V7
Location: Oxfordshire, UK

Re: Question marks appearing in text

Post by LornaCraig » 21 Jan 2021 21:57

I began to notice several cases of both double and single quotes being displayed with question marks beside them. All were in text which had been entered in V6 and had displayed correctly in V6. I assume they were all cases where I had copied and pasted from other documents or from something I had written myself in Word.

I have now corrected them all by using Edit> Find and Replace, doing four runs - one for each of the opening and closing quotes for both double and single quotes. There were several hundred in total.
Lorna

User avatar
BillH
Megastar
Posts: 2184
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Question marks appearing in text

Post by BillH » 21 Jan 2021 22:39

Lorna,

I have been following along and am a little confused. So you changed single quote (') and double quote (") to something? What did you change them to?

Thanks,
Bill

User avatar
LornaCraig
Megastar
Posts: 2996
Joined: 11 Jan 2005 17:36
Family Historian: V7
Location: Oxfordshire, UK

Re: Question marks appearing in text

Post by LornaCraig » 21 Jan 2021 23:59

Bill,
The quotes which were displaying oddly (with a question mark after them) were, I think, ones which had come from Word documents or similar, and are known as Smart Quotes. Here's what Wikipedia says:
Quotation marks are written as a pair of opening and closing marks in either of two styles: single (‘...’) or double (“...”). Opening and closing quotation marks may be identical in form (called neutral, vertical, straight, typewriter, or "dumb" quotation marks), or may be distinctly left-handed and right-handed (typographic or, colloquially, curly quotation marks); see quotation mark glyphs for details. Typographic quotation marks are usually used in manuscript and typeset text. Because typewriter and computer keyboards lack keys to directly enter typographic quotation marks, much of typed writing has neutral quotation marks. Some computer software has the feature often called "smart quotes" which can, sometimes imperfectly, convert neutral quotation marks to typographic ones.

FH7 evidently doesn't display these smart quotes correctly in notes, in even though FH6 did. So in the Search for box I pasted a 'smart' quote (single or double, right or left curling) which I copied from a Word document, and in the Replace with box I used the keyboard to enter a 'dumb' quote (single or double, as required).
Lorna

User avatar
BillH
Megastar
Posts: 2184
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Question marks appearing in text

Post by BillH » 22 Jan 2021 00:22

Lorna,

I see. How did you get examples of a smart quotes and double quotes. I couldn't see how to get them using the keyboard, so I tried to produce smart double quotes in word, but I when I typed something like "test", the double quotes were both the same... pointing in the same direction (right to left - looked like ending quotes).

I was just saving this info in case I ever upgrade to FH 7.

Thanks,
Bill

User avatar
LornaCraig
Megastar
Posts: 2996
Joined: 11 Jan 2005 17:36
Family Historian: V7
Location: Oxfordshire, UK

Re: Question marks appearing in text

Post by LornaCraig » 22 Jan 2021 10:32

It might depend on which font you are using in Word. Some fonts make a clearer distinction than others. In Times New Roman, for example, the start and end quotes are clearly different. In Calibri they both slope the same way, though even in Calibri on close inspection they are a different shape. There are probably some fonts where they look identical. These examples are from Word:
fonts.JPG
fonts.JPG (10.1 KiB) Viewed 6700 times
Lorna

User avatar
PeterR
Megastar
Posts: 1129
Joined: 10 Jul 2006 16:55
Family Historian: V7
Location: Northumberland, UK

Re: Question marks appearing in text

Post by PeterR » 22 Jan 2021 12:56

Smart quotes are just UTF-8 characters like any others and can easily be typed using alt-0147 and alt-0148 (or alt-0145 and alt-0146 for single quotes). Whether typed by hand or imported from a Word document or a web page, I find they are always displayed correctly in FH7, as well as they were formerly in FH6.
2021-01-22_125122.jpg
2021-01-22_125122.jpg (1.83 KiB) Viewed 6668 times
The above image is from an FH7 Record Detail Report for a Source record with a Note downloaded from the internet. Note the lack of spurious question marks!
Peter Richmond (researching Richmond, Bulman, Martin, Driscoll, Baxter, Hall, Dales, Tyrer)

User avatar
LornaCraig
Megastar
Posts: 2996
Joined: 11 Jan 2005 17:36
Family Historian: V7
Location: Oxfordshire, UK

Re: Question marks appearing in text

Post by LornaCraig » 22 Jan 2021 13:28

Well I don't know why we are seeing different results, but all I can say is that I have just repeated the exercise and am still seeing the incorrect display. I copied from a Word document and then, to re-create what would have happened with the notes which came from V6, I pasted into a note field in V7 as unformatted text. Then when the note window is subsequently floated, the question marks appear, and remain thereafter.

sample.JPG
sample.JPG (16.42 KiB) Viewed 6661 times

A further odditiy is that if more unformatted text is then pasted into the floating note window and the window is then closed again, the number of question marks increases every time! See below
Attachments
sample2.JPG
sample2.JPG (29.24 KiB) Viewed 6661 times
Lorna

User avatar
tatewise
Megastar
Posts: 27082
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Question marks appearing in text

Post by tatewise » 22 Jan 2021 14:15

I have repeated your process with the latest MS Word and FH v7.0 beta using “test” but do NOT get any ? marks.
So I wonder what is causing the problem.
Do you have a later version of FH v7 that has perhaps introduced a bug?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
LornaCraig
Megastar
Posts: 2996
Joined: 11 Jan 2005 17:36
Family Historian: V7
Location: Oxfordshire, UK

Re: Question marks appearing in text

Post by LornaCraig » 22 Jan 2021 14:28

I am using FH 7.0.1.1. I don't know whether the question marks showed in 7.0.0 (or the beta) because I only started to look for them when I saw this topic. But clearly I am not alone because the problem was reported by StevieA and also RS3100.
Lorna

User avatar
BillH
Megastar
Posts: 2184
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Question marks appearing in text

Post by BillH » 22 Jan 2021 15:05

LornaCraig wrote:
22 Jan 2021 10:32
It might depend on which font you are using in Word. Some fonts make a clearer distinction than others. In Times New Roman, for example, the start and end quotes are clearly different. In Calibri they both slope the same way, though even in Calibri on close inspection they are a different shape. There are probably some fonts where they look identical.
Lorna,

That was the problem for me. I was using Calibri. I switched to Times New Roman and was able to tell the difference and get examples of all four symbols.

Thanks!
Bill

User avatar
PeterR
Megastar
Posts: 1129
Joined: 10 Jul 2006 16:55
Family Historian: V7
Location: Northumberland, UK

Re: Question marks appearing in text

Post by PeterR » 22 Jan 2021 15:26

I was on FH 7.0.0.10 so I've now updated (taking only a few minutes) to FH 7.0.1.2 (evidently the current version). The smart quotes are still being displayed correctly with no extraneous “?” on screen or in a report.
Peter Richmond (researching Richmond, Bulman, Martin, Driscoll, Baxter, Hall, Dales, Tyrer)

User avatar
tatewise
Megastar
Posts: 27082
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Question marks appearing in text

Post by tatewise » 22 Jan 2021 15:43

What do the question marks look like in the GEDCOM?
Are they freestanding normal ANSI question marks?
Do they or the quotes have any rich text formatting around them?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
NickWalker
Megastar
Posts: 2401
Joined: 02 Jan 2004 17:39
Family Historian: V7
Location: Lancashire, UK
Contact:

Re: Question marks appearing in text

Post by NickWalker » 22 Jan 2021 15:56

As a matter of interest, which version of MS Office (if any) do you have installed on your PC Lorna?
Nick Walker
Ancestral Sources Developer

https://fhug.org.uk/kb/kb-article/ancestral-sources/

User avatar
LornaCraig
Megastar
Posts: 2996
Joined: 11 Jan 2005 17:36
Family Historian: V7
Location: Oxfordshire, UK

Re: Question marks appearing in text

Post by LornaCraig » 22 Jan 2021 16:01

Mike:
Here is the mini (one-person) gedcom which contains the example I posted previously, where the number of question marks increased each time I pasted an extra line into the note window and closed then reopened the window.
Test Project.ged
(973 Bytes) Downloaded 73 times

Nick: It's Office 16. But some of the notes which came from V6 would have been created in earlier versions of Word.
Lorna

avatar
RS3100
Famous
Posts: 240
Joined: 05 Nov 2020 12:16
Family Historian: V7
Location: Hertfordshire, UK

Re: Question marks appearing in text

Post by RS3100 » 22 Jan 2021 16:14

The issue I experienced was with text that I copied from a website and pasted into a note in FH6. I know it displayed correctly in FH6, but I subsequently noticed that in FH7 it was displayed both in the Propert Box and separate note window with a question mark immediately after a pair of leading and closing quotation marks (") and also immediately after several hyphens, i.e. (-?) that were also contai9ned in the original, as copied, website text. I did notice that the hyphens as displayed were longer than the standard hyphens that could be entered in the text box using the hyphen key on my keyboard (to the right of the ")0" key).

I attempted to delete the question marks by editing the note window, and whiulst that initially appeared successful, as soon as I clicked on the OK button, or clicked out of the note field in the Property Box, they reappeared within the note. As mentioned above, I eventually fixed the note by cutting and pasting it into notepad, removing the question marks, associated quotation marks and hyphens, then retyping the quotation marks and hyphens, and copying the edited text back into FH7 as unformatted text.

I have since searched my project for any other occurrences, but only that one note was affected. It had never been edited or opened in Word or any other word processor, just copied and pasted from a browser window.

I have just located the same note in an old gedcom file, and copied it into a new note in FH7. It is displaying correctly. The only difference is that I was running either the original release build of FH7 or v7.0.1.1 when I experienced the problem, but I am now running 7.0.1.2 which CP sent me a link to a few days ago in response to a bug report for a different issue.

User avatar
PeterR
Megastar
Posts: 1129
Joined: 10 Jul 2006 16:55
Family Historian: V7
Location: Northumberland, UK

Re: Question marks appearing in text

Post by PeterR » 22 Jan 2021 16:32

I loaded Lorna's Test Project.ged in FH, deleted the question marks, and they did not reappear.
I also looked at the GEDCOM file in PSPad's Hex editor and the smart quotes and question marks all had the expected coding.
Peter Richmond (researching Richmond, Bulman, Martin, Driscoll, Baxter, Hall, Dales, Tyrer)

avatar
RS3100
Famous
Posts: 240
Joined: 05 Nov 2020 12:16
Family Historian: V7
Location: Hertfordshire, UK

Re: Question marks appearing in text

Post by RS3100 » 22 Jan 2021 16:41

This is the text of the note retrieved from my old gedcom file. The start and end quotation marks are clearly different, and you can see the "long" hyphens.

This text now displays correctly for me when pasted into a note in 7.0.1.2 so perhaps it is a fixed bug that was present in an earlier build?
Note.JPG
Note.JPG (29.41 KiB) Viewed 6595 times

User avatar
NickWalker
Megastar
Posts: 2401
Joined: 02 Jan 2004 17:39
Family Historian: V7
Location: Lancashire, UK
Contact:

Re: Question marks appearing in text

Post by NickWalker » 22 Jan 2021 17:05

The richtext control in windows is in a dll and there have been various different versions over many many years. I havent been able to find a really clear timeline for this but I know that there have been versions that have been shipped with Office over the years and Windows, each one adding new features. For example if you use FH7 or AS in Windows 7 you can't drag table columns to resize them (at least without Office installed). So I wondered if the dll that FH is using on Lorna's PC (and others seeing the ?) might be different to the one on Peter's, mine and others where it's working fine. I've been half-expecting an issue to crop up related to this.

I have Office 365 which updates continuously. The dll in question I believe is c:\windows\system32\msftedit.dll and mine is dated 13th Jan 2021 and is: Rich Text Edit Control v8.5 (v10.0.19041.746).
Nick Walker
Ancestral Sources Developer

https://fhug.org.uk/kb/kb-article/ancestral-sources/

avatar
RS3100
Famous
Posts: 240
Joined: 05 Nov 2020 12:16
Family Historian: V7
Location: Hertfordshire, UK

Re: Question marks appearing in text

Post by RS3100 » 22 Jan 2021 17:28

Nick, mine is Rich Text edit Control, v7.5 (v6.3.9600.18818) dated 8th September 2017 and Word v2002 (semi-annual enterprise channel) although as I said, Word has been nowhere near my problem note.

So I don't think that .dll has changed recently, but I can no longer recreate the issue with spurious question marks. What has changed is the version of FH7 I am now using.

Post Reply