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

Add language support for HTML files #10

Closed
ijacobs-cpa opened this issue Sep 28, 2023 · 1 comment
Closed

Add language support for HTML files #10

ijacobs-cpa opened this issue Sep 28, 2023 · 1 comment
Assignees

Comments

@ijacobs-cpa
Copy link
Owner

Allow for a language tag to be passed to the program with a -l, --lang tag that will update any converted HTML's lang tag to the passed language. For example:

./textml.py french.txt --lang fr would set <HTML lang="fr"> in the root <html> element.

A way to implement this could be to add a new option to argparse to accept the -l, --lang tag and pass the value to each convert function to be generated in the final HTML file function write_html_content()

If no language is provided default to en-CA using argparse's default value

@ijacobs-cpa ijacobs-cpa self-assigned this Sep 28, 2023
@ijacobs-cpa
Copy link
Owner Author

Added support in commit c1e4bff

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