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

Allow decimal comma (at least as substitute in output) #318

Open
novamax opened this issue Jun 19, 2024 · 3 comments
Open

Allow decimal comma (at least as substitute in output) #318

novamax opened this issue Jun 19, 2024 · 3 comments

Comments

@novamax
Copy link

novamax commented Jun 19, 2024

For use in Europe, it would greatly appreciate if, instead of the decimal point, a decimal comma could be used as an option.

I can imagine this is a bit more of programming on the input side, but maybe it is easier to substitute it in the output side (which would already be great). Currently, I have to substitute one for the other in a text processor before printing. But that might also substitute full stops in comments, or other uses of the the point char. So this workaround is neither a comfortable nor reliable.

@Proektsoftbg
Copy link
Owner

Hi! It is not possible to do it for the input, but for the output - no problem.
We can add this as an option, but until then, you can easily customize your Calcpad to do that. Download the file bellow and unzip "template.html" in your c:\Program Files\Calpcad\doc folder. Replace the old one.
template.zip

Also, you can add the following lines in your "template.html" just after $(document).ready(function () {:

  $(".eq").each(function () {
      var s = $(this).html().replace(".", ",");
      $(this).html(s);
  });

This will replace all decimal points in equations with commas, but not in the other text.

@novamax
Copy link
Author

novamax commented Jun 20, 2024

The fix does exactly what I needed: sparing me from parsing the output. So that solves the main problem. Also thanks for working on an easy customization option for all users.

I do understand that making the input side of the interpreter configurable is more challenging. And writing a point instead of a comma is something one can easily get used to.

@Proektsoftbg
Copy link
Owner

Great! I am glad I could help.

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

2 participants