Skip to content

Commit

Permalink
simplify for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kepper committed Oct 7, 2024
1 parent 5a16b76 commit f32c061
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ const main = async () => {
main()

const handleData = async (data, triple, verovio) => {
const dtOutDom = prepareDtForRendering(data)
const atOutDom = prepareAtForRendering(data, dtOutDom)
// const dtOutDom = prepareDtForRendering(data)
// const atOutDom = prepareAtForRendering(data, dtOutDom)

const dtSvgString = renderData(dtOutDom, verovio)
const atSvgString = renderData(atOutDom, verovio)
// const dtSvgString = renderData(dtOutDom, verovio)
// const atSvgString = renderData(atOutDom, verovio)

const dtSvgPath = triple.dt.replace('.xml', '.svg').replace('data/', 'cache/')
const atSvgPath = triple.at.replace('.xml', '.svg').replace('data/', 'cache/')
// const ftSvgPath = triple.at.replace('.xml', '.svg').replace('data/', 'cache/').replace('/annotatedTranscripts/', '/fluidTranscripts/')
console.log('Finished Rendering for ' + dtSvgPath)

writeData(dtSvgString, dtSvgPath)
writeData(atSvgString, atSvgPath)
writeData('test diplomatic transcription', dtSvgPath)
writeData('test annotated transcription', atSvgPath)
// console.log(dtSvgString)
}

0 comments on commit f32c061

Please sign in to comment.