Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How to capture text from DF /not perfect/  (Read 1153 times)

Petr Ga

  • Bay Watcher
    • View Profile
How to capture text from DF /not perfect/
« on: May 10, 2010, 10:45:31 am »

just for curiosity, it can be done via OneNote

Steps:
  • Windows+S (activates screen capture), drag region around DF window
  • image is now in clipboard
  • in onenote press ctrl+v, image is pasted
  • in onenote, on image, press right mouse button, select "Copy text from Picture"
  • text is now in clipboard
  • press Ctrl+v for pasting text anywhere
  • you're done!

result:
Spoiler (click to show/hide)

It is not perfect, but way better correct this than type everything by hand
Logged
2: Give RMs a gas syndrome that causes RMs only to breed profusely.

Oglokoog

  • Bay Watcher
  • [INTERNET_DEPENDENT]
    • View Profile
Re: How to capture text from DF /not perfect/
« Reply #1 on: May 10, 2010, 10:52:52 am »

I've never used OneNote, but doesn't it have some option to add a font to make the text recognition of that font better? I think if it "knew" curses, it would produce much better results.
Logged
So we got monsters above, monsters below, dwarves in the middle and a party in the dining hall. Sounds good to me.
If all else fails, remember one thing:  kittens are delicious, nutritious little goblin-baiters, cavern explorers, and ambush-finders.

Petr Ga

  • Bay Watcher
    • View Profile
Re: How to capture text from DF /not perfect/
« Reply #2 on: May 10, 2010, 10:56:42 am »

I've never used OneNote, but doesn't it have some option to add a font to make the text recognition of that font better? I think if it "knew" curses, it would produce much better results.

maybe if I add font into system fonts. is there *.ttf?

onenote is this one sw
Logged
2: Give RMs a gas syndrome that causes RMs only to breed profusely.

Urist McDepravity

  • Bay Watcher
    • View Profile
Re: How to capture text from DF /not perfect/
« Reply #3 on: May 11, 2010, 05:06:03 pm »

You can do better with something like FineReader. It is nearly perfect for such cases.
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: How to capture text from DF /not perfect/
« Reply #4 on: May 11, 2010, 07:18:20 pm »

Crop out the title bar and you'll get better results.
Beyond that, it has trouble with the Curses M.
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

axus

  • Bay Watcher
  • Axe Murderer
    • View Profile
Re: How to capture text from DF /not perfect/
« Reply #5 on: May 12, 2010, 12:49:11 pm »

Pretty cool!
Logged

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Re: How to capture text from DF /not perfect/
« Reply #6 on: May 12, 2010, 01:04:38 pm »

Modifying tileset to be more easily recognizable is an option too.

Arkose

  • Bay Watcher
    • View Profile
Re: How to capture text from DF /not perfect/
« Reply #7 on: May 12, 2010, 03:27:48 pm »

As a more accurate solution, it probably wouldn't be too difficult to hack the SDL port to include a key command for "Take ASCII screenshot".

Or you could use NCurses render mode to play in a unicode-capable terminal and just copy it from there, but if I recall correctly that only works on Unix-type systems at the moment. (Unless someone has already implemented a PDCurses port for Windows?)
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: How to capture text from DF /not perfect/
« Reply #8 on: May 15, 2010, 01:34:47 am »

Also don't forget that there's gamelog.txt which MIGHT have the text you need.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository