Csv to wiki/html

From DP

Jump to: navigation , search

Contents

Description

This is a simple application that reads a CSV file and convert it to HTML or Wiki format.

How to Use

  • Download the file from the SVN repository.
  • Export Excel files to CSV format
  • The first line of the csv file should be the header and the succeeding lines is the table content.
  • Run the CSV2Wiki.exe with the CSV file as input, and specify the output file format.

c:\dangerousprototypes\CSV2Wiki.exe inputfile.csv --wiki wikioutput.wiki --html htmloutput.html

Please note that you need to enclose in quotes(") those filenames with spaces in windows command prompt.

You should see similar screen below:

Csv2wikiscrn.png

Sample Output

This is a sample output using the bus blaster.csv.

For Wiki Output Copy and paste the content of a .wiki file into wiki editor screen:

Partlist

PartQuantityValuePackage
C1-C7, C13-C21, C2517100nFC805
C813.3uFSMC_A
C9, C10227pFC805
C11, C12, C2234.7uFSMC_A
IC11FT2232HLQFP64
IC31LD1117-3.3SOT223
IC4, IC52SN74AVC4T245TSSOP16
IC6, IC7, IC83SN74LVC2T45DCTRDCT_R_PDSO_G8
JTAG102x10 shrouded header, male 0.1”PAK100/2500-20
L1, L22800mA+ ferrite beadFB805
LED1, LED22LEDCHIPLED_0805
R1112KR805
R2, R921KR805
R3, R4, R5, R7410KR805
R612.2KR805
R81100kR805
R10, R112470RR805
T11NPN transistor, 100mA+SOT23-BEC
USB1USB MINI B SMDMINI-USBB
X1112MHz crystal, small package from Albert4X6


For HTML:

Just Open the html file with your favorite browser, or load into a text editor and edit.

Busblasterhtml.png

Downloads

Download the script here

Compiling the source

This utility was created using Code::Blocks 10.05 with default settings.