r/talesfromtechsupport • • Apr 18 '20

Short "don't use ctrl+f, use ctrl+h"

so a few years back one of my publishers called me in to help with an emergency project, basically me translating and editing a huge body of boring-ass text. and it had to be done in the office cause it was a "key national project"

in the office there was a girl about my age who was relatively new. she just sat there all week working intensely but slowly, mumbling and looking stressed

on the second to last day of my project we're alone in the office, i make some comment about "ugh this is so incredibly tedious" and she says something to the effect of "you're telling me".

we talk for a bit i explain what im doing... "wait, what are you doing?"

apparently for an equally huge book someone really high up in government decided he didn't like a bunch of the specific terms they made up for the project so at last minute, hands over a list of 40 or so, they all need to be swapped out

shes been at it for like 8 days. im thinkin ok thats like an hour of work at the most if its all in one big file... wait a minute... oh no "uhh... can you show me how you're doing this?"

she finds a word, pastes over it manually, next, find, paste, next...

"uhh... don't use ctrl+f, use ctrl+h"

"what's that?"

"ctrl+f is find, ctrl+h is find... and replace"

"but that's what im already doing!"

"look.. just try... i.. just do it youll see"

pops it up, kinda speaking to herself "what's this?? find and.. source text.. target text... replace... REPLACE ALL?!"

she starts mumbling to herself "oh my god, oh my god, oh no, oh my god, why, oh my god, oh no..." and crying softly

poor girl lol

4.8k Upvotes

329 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Apr 18 '20

[deleted] — view deleted comment

177

u/mehum Apr 18 '20

Is ms-word a good editor though? Cos that’s what 90% of editing is done on.

303

u/gargravarr2112 See, if you define 'fix' as 'make no longer a problem'... Apr 18 '20

No, but it does have 'whole word' replace, at least...

59

u/ShabachDemina Apr 18 '20

You know, I've never considered there might be better word editing software out there. What would some examples of better ones be?

118

u/gargravarr2112 See, if you define 'fix' as 'make no longer a problem'... Apr 18 '20

Almost all Office-esque WYSIWYG word processors are basically bug-compatible with Word, even Libre office. You'd have to avoid the mainstream stuff; many *nix fans still swear by LaTeX.

168

u/Fraerie a Macgrrl in an XP World Apr 18 '20

I thought people mostly swore at LaTeX...

158

u/CreideikiVAX Apr 19 '20

As a LaTeX user: Yes I do swear at it vigorously.

 

Then I look at the fancy shit I'm doing that is causing the vigorous swearing and realize I'd be swearing even more if I tried just half of it in Word.

 

Also I can manage the project in git while utilizing the full feature set of git. So that's nifty too, I guess.

24

u/Goran_Alkovic Apr 19 '20

Word had collaborative editing with version control built-in too. Not as fun as commuting and pushing in git, but works pretty well.

I prefer both tools, they each have their uses.

6

u/CreideikiVAX Apr 19 '20

Word had collaborative editing with version control built-in too.

I had no idea that was even a thing. All I remember is the execrable "track changes" feature that no one I know uses, and trying to merge documents with the same filename usually with terrible results.

Though yes, of course different tools for different uses. I'm not going to craft a pretty LaTeX document to send in a part pull list or material requisition at work when I can just bash it out with the Word templates we have. Just like I won't be setting a math and programming heavy manuscript in Word when I have LaTeX around.

→ More replies (3)

6

u/[deleted] Apr 19 '20

I wrote my thesis in LaTeX (well, pandoc + fancy latex templates). Bibliography was an absolute bliss compared to word and the like.

→ More replies (6)
→ More replies (1)

14

u/redwall_hp Apr 19 '20

LaTeX is the best thing ever. When you have to write papers full of equations, it is so much faster than screwing around with WYSIWTF editors.

7

u/OldschoolSysadmin Relaxen und watchen das Blinkenlights Apr 19 '20

ed

→ More replies (2)

21

u/deevandiacle Apr 18 '20

SublimeText is great for plaintext manipulation and just writing in general! I type almost everything there and then paste into Google docs for grammatical/spelling analysis when completed.

→ More replies (10)

4

u/[deleted] Apr 19 '20

Scrivener is fantastic.

→ More replies (1)
→ More replies (1)

18

u/mbrenneis The Good Son Apr 19 '20

It depends on who is driving it. A Ferrari is a fine car, but it will still crash in the hands of a poor driver.
Word has a lot of power and some of us understand how to use it. It is finally getting to where I can do the things I used to do with Emacs and nroff.

7

u/Istalriblaka Shock Jock Apr 19 '20

I'm not familiar with LaTeX firsthand (except the one time I needed to put formulae in Google Slides...), but reading over some of the other comments I get the gist it's like the difference between Excel and MATLab. Excel will show you your data in a pretty-ish way and you can make adjustments cell by cell easily and charts are click and edit. But if you need to perform perform matrix math or any other complex math or do anything untraditional at all with a chart then you should probably use MATLab.

→ More replies (1)

8

u/ChrisAngel0 Apr 19 '20

Notepad++ is a free text editor and can replace with carriage return, remove lines with no text, and can even replace using regex.

0

u/[deleted] Apr 18 '20

[deleted] — view deleted comment

6

u/bigj231 Apr 19 '20

Between that, a pretty full-featured syntax highlighting, and a good portable version it's pretty much all I used for general typing and coding in college.

4

u/Rampage_Rick Angry Pixie Wrangler Apr 19 '20

And you can even add new languages. I use N++ for IEC 61131-3 Structured Text, in addition to C# and C++

→ More replies (1)
→ More replies (1)

13

u/atimholt Apr 18 '20

docx files are just compressed xml. I'd still prefer using Vim (or similar) for that kind of thing. With tool familiarity, you could unzip into a git repository with a build script that will recompress it back to what Word expects.

Or, rather, you could go in thinking that's a good idea, then run into a million caveats and subtle unknowns. Or not. I tend to go too deep into rabbit holes until I lose sight of the main goal. In fact, attempting to do this right now would be me diving into a distraction, so I'll just outline what I'd try.

  • Decompress the document into a new folder and turn it into a git repository.
  • Poke around in the xml to get an idea of how it's structured, to inform how I'll write my search & replace command.
  • Use a search & replace command, searching by patterns that are able to distinguish whether what it finds is actually content instead of metadata or xml tags.
  • Check every replace by running a side-by-side diff. I'd probably use the fugitive plugin so I don't have to pull up both versions manually, but Vim can already handle all the diff view commands you'd need.
  • Re-compress everything, sticking the zip command in a one-line script so I don't have to worry about what flags the command needs in the future. Make sure the document opens and behaves in Word, then commit the new version.

And I wouldn't care about how many steps that is, because it's still easier to get that process right than in Word. I'd be most of the way to having a general tool for such a process, as well.

For what it's worth, though, you can diff in Word, if you save each version separately.

5

u/r4ib3n Apr 19 '20

Ehh, I've been there before, unfortunately. You may find that you're better off using a library like Apache POI, being disgusted at the bugs, trying to implement your own, then giving up.

→ More replies (3)
→ More replies (8)

15

u/cgimusic ((FlairedUser) new UserFactory().getUser("cgimusic")).getFlair() Apr 18 '20

Regex find-and-replace has allowed me to do so much janky data munging without any programming, which is awesome. Just don't ask me to do the same thing with a new set of data a week later.

→ More replies (3)

5

u/JasonDJ Apr 19 '20

Y'all motherfuckers need regex.

\b[Mm]age(s|\b)
→ More replies (2)
→ More replies (7)