Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created function that generates singular block for markdown #18

Merged
merged 2 commits into from
Jul 9, 2021

Conversation

zarbod
Copy link
Collaborator

@zarbod zarbod commented Jul 8, 2021

Created function that creates singular block for markdown file. Function's parameter's are the row index and the file name.

@sanketgarade
Copy link
Contributor

Function's parameter's are the row index and the file name.

the input parameter should actually be just a text string of comma separated values.
e.g. pseudo code -

# string extracted by calling parent function 
str = csvfile.row[i]

# now, the string is: str = 'experience,अनुभव,daily,I have experience in this.,मला यात अनुभव आहे.'

wordBlock = generate_block(str)

and the return should be a string of the output block

wordBlock =
'## experience = अनुभव

|I have experience in this.|
|---|
|मला यात अनुभव आहे.|'

@zarbod zarbod marked this pull request as draft July 8, 2021 15:50
@zarbod zarbod marked this pull request as ready for review July 8, 2021 16:30
sanketgarade added a commit that referenced this pull request Jul 9, 2021
script to take in 1 csv row stream and output text stream of 1 word-block
@sanketgarade sanketgarade merged commit 60f0d57 into mukta-strot:main Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants