-
June 3rd, 2018, 21:12 #11
You can also load a PDF into GIMP to extract images; yay for open source free software and all that jazz. For that matter, just right clicking an image in Acrobat Reader will give you the option of opening it in Paint (or whatever the one included with Win10 is called).
If it helps, once I do a text export with Acrobat (Pro) I load it into Notepad++ and do an advanced search replace for " \r" to "\r" and " \n" to "\n" to get rid of all those sentences and paragraphs with a trailing space that PDFs seem to like. Then I replace the smart single quotes with a dumb single quote (mainly because they look silly in FG's teensy weensy fonts) but I keep smart double quotes, which if I decide to keep in reference manual pages I will replace with their ASCII equivalents.
After those few find/replaces, that usually gets things ready to work with and easier to copy/paste either directly into FG or into the XML file I'm working in.
-
June 3rd, 2018, 21:36 #12
Again Talyn, thanks for responding...
Gimp... I haven't gotten around to it, not because I'm afraid, it's just, how many graphics editors do I need? Right? Photoshop, Gimp, Krita, Inkscape, blah, blah, blah-blah....
Hadn't tried the Reader... I'll give that a go too...
As I mentioned to Lord Entrails, I wrote a little extension that strips all those little nasties (CRs and LFs) plus does the ASCII substitutions and warns of any ASCII character > 127. It also does ligature fixes for me. All inside the Windows Clipboard. So when I Ctrl-V into my Story window in FG all that yuck is gone.
It needs some cleaning up and then I'll probably post it.
Thanks....Last edited by Minty23185Fresh; June 4th, 2018 at 04:49.
-
June 16th, 2018, 00:08 #13
I think I'm about done here. I hope some find this of interest and assistance.
The real meat of this work is in post 2 & 3 above
If readers have anything, anything at all, that they would like to add to the summaries in posts 2 & 3 of this thread please let me know.Last edited by Minty23185Fresh; June 16th, 2018 at 00:11.
Current Projects:
Always...
Community Contributions:
Extensions: Bardic Inspiration, Druid Wild Shapes, Local Dice Tower, Library Field Filters
Tutorial Blog Series: "A Neophyte Tackles (coding) the FG Extension".
-
June 26th, 2018, 08:06 #14
I convert from pdf to FG and I use the FG program for data entry. I think I go about twice as fast as you, but that is probably from practice.
I use the free adobe reader and GIMP. I usually copy images via adobe and paste into gimp where I size them.
This thread is a helpful resource, thanks.Ultimate License. Running Hyperborea and CoC. Asks lots of questions. Mgpotter.com. PureVPN is a tested solution to run games when traveling. https://billing.purevpn.com/aff.php?aff=33044
-
June 26th, 2018, 17:37 #15
Thanks for this thread, for the record, Gimp ignores pw protection too, but converts everything to a graphic
Two roads diverged in the woods and I, I took the one less traveled, and that has made me hopelessly lost!
-
June 30th, 2018, 16:12 #16
I do too. I've read elsewhere how you employ Word to do text cleanup prior to pasting to FG. My machinations are similar, instead I use a little extension I wrote that does similar cleanup. I was going to add a table importer to it and then I saw celestian's extension.
Noted. I corrected the table in post 3.
And I've added a few more "Useful Tools" to the list.
Myrdin & Erin, thanks for the input.
-
April 24th, 2019, 19:35 #17
- Join Date
- Jun 2018
- Posts
- 23
I find all of these tips extremely useful. However, I do have one question... What if the PDF is just a compilation of JPGs? Meaning there is no way to identify all of the text so you can just copy and paste directly into FG.
Currently, I copy the image and paste into OneNote and then "Copy Text from Image". Only downfall of this method is that sometimes extra spaces or symbols will be copied in the text and in order to get things right I have to go through and edit everything.
Anything you have learned to make this process faster would be appreciated, I'm converting over 150 monsters from reddit UnearthedArcana basically. And well unless there's an easier way, I think I've become a little over ambitious. lol.
-
April 24th, 2019, 21:08 #18
For 5e NPCs there's NPC Engineer.
Otherwise copy to something like Notepad++ and use search/replace to get rid of extra spaces and unwanted hyphens etc and paste that into FG.If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here https://www.fantasygrounds.com/featu...rerequests.php
-
April 25th, 2019, 01:10 #19
That's the problem with text recognition, it has flaws.
If you want lots of monsters, see Maasq's conversion of the Monster a Day / 1d6 Adventures. It has over 400 NPCs in it; https://www.fantasygrounds.com/forum...ter-Compendium
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
-
April 25th, 2019, 19:23 #20
One of the threads in post two (text from images) talks a bit about this. But if I understand correctly OneNote might be doing this for you? Sometimes software included with printers can deal with OCR too.
This isn't specific to your particular project. In every module I have been converting there seems to be some issue with "extra characters".
I use some lua code to help me clean out extra line feeds, carriage returns, and unprintable characters.Current Projects:
Always...
Community Contributions:
Extensions: Bardic Inspiration, Druid Wild Shapes, Local Dice Tower, Library Field Filters
Tutorial Blog Series: "A Neophyte Tackles (coding) the FG Extension".
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks