SvenWerlen / fvtt-data-toolbox

Foundry VTT Data Toolbox
https://www.patreon.com/moulinette
22 stars 8 forks source link

Question on tables #41

Open RinVindor opened 1 month ago

RinVindor commented 1 month ago

A number of the games I run have tables that breakdown effects of a given ability or power. The red box below is an example. I've tried to wrack my brain on how I could go about implementing this into a table inside of an item in Foundry but not entirely sure how. If I could get an example I think it'd help me a ton! Even if it isn't something you can support thanks for all the work on this tool its made things so much easier and less tedious already!

image

Here is how it looks when I import right now as they obviously lack the structure of the tr/td to build the table.

image

And here is how they look after manually formatting them after importing

image

Lyinggod commented 4 days ago

I have tables that import without a problem when they are correctly formatted in the CSV. However when you are trying to move tables directly from the PDF into the description of an item, that is beyond the purview of this module, I think. Some things that have worked for me is copying the PDF table in to a WYSIWYG html editor. I like https://onlinehtmleditor.dev/ with the filter HTML option checked. A depending on how the table in the PDF was originally defined, this will sometimes parse the PDF table into an HTML table which can then be pasted directly into the description. If that doesn't work, sometimes pasting the table into a Google Sheets spreadsheet works. I normally dont paste directly from Google sheets into item description as it brings a lot of HTML "junk" with the paste so I paste it into the html editor to strip away a lot of the junk then paste that into the description.