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

Preserve inline-level formatting when rewriting text #2

Open
mkremins opened this issue Mar 8, 2017 · 0 comments
Open

Preserve inline-level formatting when rewriting text #2

mkremins opened this issue Mar 8, 2017 · 0 comments

Comments

@mkremins
Copy link
Owner

mkremins commented Mar 8, 2017

When rewriting a block of text into a chunk of poetry, we currently disregard inline-level formatting (such as italics and bolded text) entirely. Human-generated blackout poetry, on the other hand, often makes use of formatting in the underlying text to interesting aesthetic effect.

Perhaps we could take steps to preserve inline-level text formatting in the generated poetry by keeping track of where inline-level HTML tags (such as <em> and <strong>) open and close in the source text, then reinserting these tags in the proper places when writing out the poemified HTML.

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

No branches or pull requests

1 participant