There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Trying (failing) to use MS Word wildcards to detect any two capitalized letters, and insert a space between them...

Follow-up to this thread - this is way more specific, so hopefully worthy of its own thread. I think wildcards are the best option for my skill level (basically none), and have gotten a good chunk of what I wanted to accomplish done with those.

An issue I’ve run into and can’t seem to google my way out is making TTS pronounce acronyms in a sensible way. For example “PACU” (post-anesthesia care unit) is usually vocalized as “pack-you” but my TTS software likes to say things like “pace-uh”. Or “PO” (latin abbreviation for ‘by mouth’) is vocalized by just saying the letters, but TTS says “Poe”. Stuff like that.

When the TTS comes across a capitol letter with a space on either side, it just pronounces the letter, so I’d still lose things like “pack-you” but at least hearing it spell out “pee ay see you” would make sense, vs “pace-uh” which is gibberish and confusing at high playback speeds.

Best I’ve come up with so far is <([A-Z]{2})> on the Find side, but that’s only spotting the two character terms like PO, and ignoring the longer ones… I’d hoped it would see PACU and detect PA, AC, and CU as three distinct sets of two that could cobbled into “P A C U”.

Nothing I’ve done on the Replace side comes close to working. It either does nothing at all, or it’ll do something like turn “PO” into <([A- Z]{2})>. Not sure if preserving the original characters is something A-Z is actually capable of - seems not, but I’m kind of an idiot with stuff like this, so any tips would be appreciated!

Thank you!

BearOfaTime ,

Maybe replace the acronym with the closest word phonetically?

Since PACU sounds like “pack you”, just do a search and replace - at least in the doc that’s going to be read out by TTS.

This may not solve all acronyms, but it’ll get some, and quickly, leaving more time for working on the more difficult things.

Is there any way to modify your TTS utility? (Does it accept a user dictionary?)

unmagical , (edited )

<span style="color:#323232;">Find: ([A-Z])([A-Z])
</span><span style="color:#323232;">Replace: 1 2
</span>

Click the “Replace All” twice and it should do what you need.

Unfortunately it seems like MS Word uses a non standard configuration for advanced searches so functions like “positive lookahead” are not available. That’s why you need to replace twice.

What TTS software are you using? Is there a way to add pronunciation guides that will apply across all software, not just word?

Edit: Untested:


<span style="color:#323232;">Replace (without quotes): "1 2 "
</span>

This might mean you only need to replace once, but it will add an extra space after acronyms (“PACU” > "P A C U ") and will inject space in mixed case scenarios (“PACUpacu” > “P A C U pacu”).

BearOfaTime ,

Won’t this just reverse the order of the two groups? (My regex is minimal)

unmagical ,

The parenthetical groups in the search query define what is to be captured. They are numbered from left to right. In this case that is a capital letter assigned to group 1 and then an immediately following capital letter assigned to group 2. If we used a replace of only “\1\2” then we would get no change from the original input. If we want to switch them then we just need to swap the order in the replace “\2\1”.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines