If I have Photoshop or some similar software, how can I select an area of the photo that contains text and then make it editable such that I can type new text that will appear in the same style as the original text?
P.S. My question is very similar to this one but I am already fully aware of how Photoshop files and layers work and how text shown in jpg photos isn't directly editable. I'm thinking there is probably a new tool or feature available sort of like
Edit > Fill > Content Aware.
UPDATE (in response to comments):
Look at this screenshot of my iPhone's Google Translate app translating this StackExchange page from English to Spanish on the fly:
What you're looking at here is not a webpage. (Yes, Google Translate does have a webpage, and it's totally easy to understand how to replace text within HTML. This is different. We're looking at an iPhone app that manipulates whatever live image my iPhone camera is currently looking at. It's augmented reality.)
It's pretty amazing, and it seems to be better than rudimentary "drawing a rectangle over the text in the same color as the background and creating the text again". In fact, if I hold my phone camera at an angle, it's able to replace the text at that same angle (and color, etc).
And here are a couple other great examples: