One quiz at a time
- Old Bridge
- Warre’s Traditional LBV
- Posts: 343
- Joined: 11:33 Thu 22 Dec 2016
- Location: Telemark, Norway
Re: One quiz at a time
(Aside: are you flailing around or is somebody doing the logic? The guesses suggest flailing.)
- Old Bridge
- Warre’s Traditional LBV
- Posts: 343
- Joined: 11:33 Thu 22 Dec 2016
- Location: Telemark, Norway
Re: One quiz at a time
2902? And yes...just flailing around, but trying to apply some logic too/guess.
Re: One quiz at a time
Second. Much more cunning.
Third.
- Old Bridge
- Warre’s Traditional LBV
- Posts: 343
- Joined: 11:33 Thu 22 Dec 2016
- Location: Telemark, Norway
Re: One quiz at a time
Even though it is the best guess so far, less cunning than I had hoped.
- Old Bridge
- Warre’s Traditional LBV
- Posts: 343
- Joined: 11:33 Thu 22 Dec 2016
- Location: Telemark, Norway
- Old Bridge
- Warre’s Traditional LBV
- Posts: 343
- Joined: 11:33 Thu 22 Dec 2016
- Location: Telemark, Norway
Re: One quiz at a time
Ahh. not my turn.
I shall go to bed. We are an hour ahead of you.
I shall go to bed. We are an hour ahead of you.
Re: One quiz at a time
I am going to bed soon as well. A few more guesses might help somebody post some logic, to lessen the flailing.
- Old Bridge
- Warre’s Traditional LBV
- Posts: 343
- Joined: 11:33 Thu 22 Dec 2016
- Location: Telemark, Norway
-
- Dalva Golden White Colheita 1952
- Posts: 3522
- Joined: 14:22 Wed 15 Dec 2010
- Location: Near Cambridge, UK
Re: One quiz at a time
2585
(based on logic; I may be one off).
(based on logic; I may be one off).
Re: One quiz at a time
New best.
Logic is over-rated, Mr. 11th-Best. I’m disappointed.
- Old Bridge
- Warre’s Traditional LBV
- Posts: 343
- Joined: 11:33 Thu 22 Dec 2016
- Location: Telemark, Norway
Re: One quiz at a time
The book has several indexes, so the entries each need an index identifier. Word has no built-in means of knowing whether any of these have been mis-typed, so I wrote a script.
Code: Select all
' © 2017 Julian D. A. Wiseman, contactable via www.jdawiseman.com
' Copying and distribution of this file, with or without modification, are permitted in any medium without royalty
' provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.
Sub FieldIdentifiers()
Dim i, j, k, numDifferentIdentifiers, iIndentifierCount(1 To 100) As Integer
Dim thisIdent, strIdentifier(1 To 100), ans As String
Dim fld As Field
Dim thisIdentExists As Boolean
numDifferentIdentifiers = 0
For Each fld In ActiveDocument.Fields
If fld.Type = wdFieldIndexEntry Then
i = InStr(1, fld.Code.Text, "\f", 1)
If i = 0 Then
MsgBox "No \f in “" & fld.Code.Text & "”", 0, "XE missing \f"
Else
thisIdent = Mid(fld.Code.Text, i + 3, Len(fld.Code.Text) - i - 3)
thisIdentExists = False
For j = 1 To numDifferentIdentifiers
If thisIdent = strIdentifier(j) Then
iIndentifierCount(j) = 1 + iIndentifierCount(j)
thisIdentExists = True
Exit For
End If ' thisIdent = strIdentifier(j)
Next j
If Not (thisIdentExists) Then
numDifferentIdentifiers = 1 + numDifferentIdentifiers
strIdentifier(numDifferentIdentifiers) = thisIdent
iIndentifierCount(numDifferentIdentifiers) = 1
End If ' Not(thisIdentExists)
End If ' i=0
End If ' wdFieldIndexEntry
Next fld
' Sort, not efficiently as done once and list not long
For i = 1 To numDifferentIdentifiers - 1: For j = i + 1 To numDifferentIdentifiers
If strIdentifier(j) < strIdentifier(i) Then
ans = strIdentifier(j): strIdentifier(j) = strIdentifier(i): strIdentifier(i) = ans ' ans is temp variable
k = iIndentifierCount(j): iIndentifierCount(j) = iIndentifierCount(i): iIndentifierCount(i) = k ' k is temp variable
End If
Next j: Next i
ans = "": k = 0
For j = 1 To numDifferentIdentifiers
k = k + iIndentifierCount(j)
' In next line the ‘2’ is approximate, being relative width of digit and space
ans = ans & Space(2 * (Len(Format(iIndentifierCount(1), "#,##0")) - Len(Format(iIndentifierCount(j), "#,##0")))) _
& Format(iIndentifierCount(j), "#,##0") & " * " & strIdentifier(j) & vbNewLine
Next j
ans = ans & vbNewLine & "Total = " & k
MsgBox ans, 0, "Frequencies of \f (and subsequent) parameters in XE index entries"
End Sub ' FieldIdentifiers
Perhaps henceforth questions of the form ‘how many …?’ could have answers in the form ‘nth-best guess’.
Second-best of the guesses up to it.
-
- Dalva Golden White Colheita 1952
- Posts: 3522
- Joined: 14:22 Wed 15 Dec 2010
- Location: Near Cambridge, UK
Re: One quiz at a time
Me too. Stupid calculation error (mis-read/typed an 8 for a 3). At the time (of Simon's 4800 guess) we knew that the answer was >2583, and <2837 (a smaller range than you indicated), unfortunately a typo led me to <2587 instead of 2837, which was less helpful.
{Sackcloth}
Re: One quiz at a time
I'm staying in a hotel tonight. Which chain?