Doesn’t look like the attachment was added. I have placed the contents of my UserMenu.txt file after the line of equal signs at the bottom of this reply.
Here’s the latest. I am still not totally finished testing out all of the selections.
D anon467281
Global Publishing Services
Scripture Typesetting trainer & Regular Expression "specialist"
Dallas, TX
———CH/VS SYNTAX—————————#f#
———\v VS NUMBER SYNTAX—————————#f#
CV-01 –IlO— - find invalid characters in \v verse number (found letters I l O endash emdash)#ei#\v\s?\S*:::\S*([–IlO—]|–+)\S*
CV-02 L->1 - change letter lowercase “L” and uppercase “I” in verse number to number “1”#r#\v\s?\S+:::l#1
CV-03 o->0 - change letter uppercase “o” in verse number to number “0”#r#\v\s?\S+:::O#0
CV-04 en/em->dash - change en/em dash and duplicate dashes verse range character in verse number to singledash “-”#r#\v\s?\S+:::[\u2013\u2014]|–+#-
———CH:VS SEPARATOR—————————#f#
CV-11 a- ANALYZE ch:vs separators#csd#\d[:.] ?\d
CV-12 :- STANDARDIZE to : colon ch:vs separators#r#(\d)[:.] ?(\d)#\1:\2
CV-13 .- STANDARDIZE to . period/full stop as ch:vs separators#r#(\d)[:.] ?(\d)#\1.\2
———CHAPTER SEPARATORS “;”—————————#f#
CV-21 ; c- COUNT missing chapter separator#csd#([:.]\d+)( \d+[:.]\d+)
CV-22 ; a- ADD missing chapter separator#r#([:.]\d+)( \d+[:.])#\1;\2
CV-23 9;9 c- COUNT missing spaces after chapter separators “;”#csd#(\d+[:.][\d, \p{Pd}abc\p{Lu}]+)(\d?;)\d[^\]+
CV-24 9; 9 a- ADD missing space after chapter separator “;”–>"; "#r#(\d+[:.][\d, \p{Pd}abc\p{Lu}]+)(\d?;)(?=\d[^\]+)#\1\2
———CHAPTER BRIDGE—————————#f#
CV-31 a- ANALYZE chapter bridge separators#csd#(\d+[.:][\dabc]+(, ?)?[\dabc])\s[\p{Pd}]+\s*(\d+[.:]\d)
CV-32 n- STANDARDIZE to N-dash (u2013) as chapter bridge separator#r#(\d+[.:][\dabc]+(, ?)?[\dabc])\s[\p{Pd}]+\s*(\d+[.:]\d)#\1\u2013\3
CV-33 m- STANDARDIZE to M-dash (u2014) as chapter bridge separator#r#(\d+[.:][\dabc]+(, ?)?[\dabc])\s[\p{Pd}]+\s*(\d+[.:]\d)#\1\u2014\3
———BOOK SEPARATORS/BRIDGES—————————#f#
BS-41 ; L- List invalid book sep - then run CV-42 1st then CV-43#edi#(([12] ?)?\p{Lu}[\w/~]+ \d+[:.][\d,-—a-f]+)[^;\p{Pd}] ?([\w/~]+ \d+([:.][\d,-—a-f]+))
BS-42 ,_ 1st- DO FIRST-Change book separator from ", " -> "; "#r#([123] ?)?(\p{Lu}[\w/~]+ \d+[:.][\d,-—a-f]+), ?(?=([123] ?)?\p{Lu}[\w/~]+ \d+([:.][\d,-—a-f]+))#\1\2;
BS-43 ,|_ 2nd- DO SECOND-Add "; " missing book separator#r#([123] ?)?(\p{Lu}[\w/~]+ \d+[:.][\d,-—a-f]+) (?=([123] ?)?\p{Lu}[\w/~]+ \d+([:.][\d,-—a-f]+))#\1\2;
BS-44 +; - insert missing ; bk sep between vs-no. and \xdc#r#(?<=\x .?\x(dc|ot|nt|t) ).?\x*:::(\d+)( \x(dc|ot|nt|t))#\1;\2
BB-45 – - List all book bridges#edi#(?<=[12] ?\p{Lu}[\w]* \d+[:.][\d,-a-f]+)\p{Pd}+(?=[12] ?\p{Lu}[\w]+ \d+[:.])
BB-46 – - Make all book bridges be – en-dash (u2013) as in 2Sa 9.9–1Ki 9.9#r#(?<=[12] ?\p{Lu}[\w]* \d+[:.][\d,-a-f]+)\p{Pd}+(?=[12] ?\p{Lu}[\w]+ \d+[:.])#\u2013
BB-47 — - Make all book bridges be — em-dash (u2014) as in 2Sa 9.9—1Ki 9.9#r#(?<=[12] ?\p{Lu}[\w]* \d+[:.][\d,-a-f]+)\p{Pd}+(?=[12] ?\p{Lu}[\w]+ \d+[:.])#\u2014
———VERSE SEPARATOR—————————#f#
CV-51 c- ANALYZE verse separators ", " or “,” inside ch/vs refs–Are there more ", " or “,”? Go with majority.#cd#[:.]([\d, -:.abc]+):::,.
CV-52 ,- REMOVE space in ", " vs. sep.#r#[:.]([\d, \p{Pd}:.abc]+):::,\s#,
CV-53 , - ADD space after “,” in vs. sep.#r#[:.]([\d, :.abc]+):::,(?=\S)#,
———DASHES BETWEEN #'s—————————#f#
BV-61 - list verse bridges#csd#[\S-[(]]+\d[-]\d[\S-[\);]]+
BC-62 - list chapter bridges#csd#\S+\d[\u2013]\d[\S-[\);]]+
x
———MARKERS: ADD MISSING 1 TO LEVEL 1————————#f#
M-01 - identify level markers—such as \q,\q1,q2—in order to see level-1 inconsistencies#cs#(\(q|qm|li|mt|mte|ms|s|imt|is|iq|io))(\b|\d)
M-02 - change \q to \q1 (only if there are \q2)–modify to \mt and \s and rerun as needed#r#(\q\b)#\11
M-03 - Move section head & parallel passage ref from BEFORE to AFTER chapter numbers#r#(\c .?\r\n)(\s .?\r\n)(\r .?\r\n)?#\2\3\1
M-04 - Move section head & parallel passage ref from AFTER to BEFORE chapter numbers#r#(\s .?\r\n)(\r .?\r\n)?(\c .?\r\n)#\3\1\2
x
———DASHES BETWEEN WORDS—————————#f#
D-01 - analyze dashes between words#cs#[\p{Pd}]+
D-02 - analyze dashes between numbers#cs#(?<=\d)[\p{Pd}]+(?=\d)
x
———QUOTE MARKS—————————#f#
QT-00 all - view common QUOTATION marks#cu#[’<">\p{Pi}\p{Pf}]
QT-01 seq - list quote mark sequences (check for Valid/Invalid white space)#csd#[`’<">\p{Pi}\p{Pf}]+\s*[’<">\p{Pi}\p{Pf}]*
QT-02 mid - quotes used mid-word#csd#(?<=[\p{L}\p{M}])’<">\p{Pi}\p{Pf}
———LEGACY ENCODING—————————#f#
QT-10 <<<? - <<< must change these manually to either << < or < << BEFORE converting to curly quotes#f#<<<|>>>
QT-11 << to “#r#<<#“
QT-12 >> to ”#r#>>#”
QT-13 < to ‘#r#<#‘
QT-14 > to ’#r#>#’
——FIX DOUBLE QUOTES ENTERED AS “—————————#f#
QT-20 " - view open double inch mark#cs#(.)”([^\\s])|" (’)
QT-21 “->“ - fix open double inch mark#r#(.)”([^\\s])|" (’)#\1“\2
QT-30 " - view close double inch mark#cs#(.)"
QT-31 “->” - fix close double inch mark#r#(.)”#\1”
——FIX GLOTTALS ENTERED AS APOSTROPHES ꞌ—————————#f#
QT-40 a’a - find midword apostrophe/curly close#cs#(\w)’’
QT-41 ‘->ꞌ - chg midword apostrophe/curly close to curly close#r#(\w)’’#\1\uA78C\2
——FIX QUOTES ENTERED AS ‘—————————#f#
QT-50 ‘’=’ - apostrophes that are quote marks#cs# ‘([^’]?)’(\W)
QT-51 ‘’->’ - change apostrophes behaving like single quotes to single quotes#r# ‘([^’]?)’(\W)# ‘\1’\2
QT-52 ‘->‘ - convert word initial straight apostrophe ’ to open curly quote ‘#r#(\s)’(\p{L}*)#\1\u2018\2
——SPACES IN BETWEEN—————————#f#
QT-60 “ ‘ - add space between “‘#r#“‘#“ ‘
QT-61 “ ‘ - add space between ’”#r#’”#’ ”
QT-62 “ ‘ - add space between ‘“#r#‘“#‘ “
QT-63 “ ‘ - add space between ”’#r#”’#” ’
———APOSTROPHES—————————#f#
AP-70 wd’wd - display mid-word straight apostrophe ’ words#csd#(\p{L}+)’(\p{L}+)
AP-71 ‘->ʼ - convert mid-word straight apostrophe ’ to curly apostrophe ʼ \u02bc#r#(\p{L}+)’(\p{L}+)#\1\u02bc\2
AP-71 wd’->ʼ - convert word ending straight apostrophe ’ to curly apostrophe ʼ \u02bc#r#(\p{L}+)’(\W)#\1\u02bc\2
x
———\f FOOTNOTE————————— BEFORE MAKING CHANGES MARK POINT IN PROJECT HISTORY IN PARATEXT FIRST —————————#f#
.have you discovered and changed footnotes (\f) that are really cross refs to \x markup?#f#
.if not, under ———\x XREF——— below, run ——IS FOOTNOTE AN XREF?—— steps first.#f#
x
——CALLER ID—————————#f#
A \f + examine \f caller ids (prefer +)#csd#\f [^\ ]+
B add missing space after fn caller#r#(\f \S+)(\\w+)#\1 \2
C make \f caller + (auto generated) for all#r#(?<=\f )[^\+ ]+ ?#+
D1 \fr find original references missing \fr #f#(?<=\f \S )([\d:.,\p{Pd}a-d]+)
D2 \fr add missing \fr #r#(?<=\f \S )([\d:.,\p{Pd}a-d]+)#\fr \1
D3 no \fr find missing \fr and missing origin ref#f#(?<=\f \S )\f[^r]
D4 no \fr 9.9 add missing \fr with origin reference cv-sep . and ending :#r#(?s)(\c )(\d+)(.?)(\v )(\S+)([^\r]\f \S )(\f[^r])#\1\2\3\4\5\6\fr \2.\5: \7
x
x
——REMOVE UNNEEDED FOOTNOTE MARKERS AND SPACES—————————#f#
E \f?* remove unneeded embedded close markers followed by open embedded marker#r#\f[a-uw-z]*(\f.)(?!*)#\1
E \f?* remove unnecessary footnote closing markers (keep \f*)#r#\f[\w-[iv]]+*#
F \f?…\f? remove repeated \f? (duplicate with text in between)#r#(\f\w )([^\])\1(([^\])\1)?#\1\2\4
G sp\f* remove space from end of \f* closing marker#r# (\f*)#\1
H sp\f remove space before a footnote#r#(?s)(?<!\v \S+)\s+(\f\s)#\1
L \fk…\ft -> …\fk* replace closing fnote key markup with closing " \fk*"#r#(?<=\fk [^\])(\S) ?(\\S+)( \ft)?#\1\fk
x
——ORIGIN REF \fr—————————#f#
I \fr 9.9\ add missing ending space to end of \fr#r#(\fr \S[^\ ]\S)(\)#\1 \2
J1 9.9? examine \fr ch:vs syntax (just stuff before the following #csd#\fr \d+\D[^ \] +
J2 CV : make \fr ch/vs separator : (colon)#rd#(\fr \d+)[^:\d]([^ :\]+)#\1:\2
J3 CV . make \fr ch/vs separator . (period/full stop)#rd#(\fr \d+)[^.\d]([^ \]+)#\1.\2
K \f x \f*… examine footnote marker patterns “\f + \fr … \ft … \f*”#csn#\f .*?\f*
x
———SCRIPTURE REF PREPARATION—————————#f#
———BOOK NAMES——————possible short name and abbreviations for Scripture Reference Settings… in Paratext 7#f#
.Since \TOC2 most often matches \h, you are looking for abbrev. to use in \TOC3.#f#
.Extract pos