-
Notifications
You must be signed in to change notification settings - Fork 2
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
Make --semanticLaTeX switch #26
Comments
CLI -- Command Line Interface |
For parser.pegjs and parser.js, wouldn't it be easier to just make a copy of them so that one has the @ symbols while one doesn't? Or is that not allowed? Also, would the additions such as (a)_n -> \pochhammer{a}{n} and \qPochhammer{x}{y}{z} still be in the parser without the @ signs? |
Good question about the \pochhammer. I don't know anything about the first question @physikerwelt. |
I think the --useAt switch is not a good descriptor. Perhaps, --semanticLaTeX ? In this case, the \pochhammer and \qPochhammer replacements fall in this category. |
👍 for @HowardCohl 's suggestions w.r.t to --semanticLaTeX |
@physikerwelt, what I meant was that since the issue only explicitly states to use it for commands that use the @ symbol, should the program without using --semanticLaTeX still perform replacements that I added previously and do not use the @ symbol? |
I think the answer to the question is that, if the switch is set, then perform the replacements, if it isn't then don't. All the replacements that we have identified for you are specifically for Semantic LaTeX only. |
@physikerwelt do you then think --SemanticLaTeX is preferred to --useSemanticLaTeX ? |
@ClaudeZou I think that are two mixed things. The replacement |
@physikerwelt tell me if you agree. The "required list" should be obtained from a csv file. Which should be demarked using .gitignore so that it does not show up on the repository. |
@HowardCohl use the name for the switch that you think is best. |
@physikerwelt am I allowed to make two copies of parser.js and parser.pegjs, one with the replacements and one without them? It isn't explicitly prohibited in the constraints given but I want to ask just to be safe. |
@ClaudeZou did you have a look at wikimedia/mediawiki-services-texvcjs@11bc16d I think this shows why it`s not required to make copies. |
Finished with pull request #41 |
@physikerwelt @ClaudeZou I'm glad this works, but it should be also added as a issue on the texer repo. |
This issue was moved to DRMF/texer#12 |
Add a CLI option to control if @ -symbols are used in the output
Constraint: One should not need to recompile to switch the behaiviour.
PS:
This would be also helpful to solve wikimedia#7 which is somehow stalled because I don't know how to implement a --MathJax switch
The text was updated successfully, but these errors were encountered: