View Single Post
Old 01-13-2018, 01:15 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,797
Karma: 6000000
Join Date: Nov 2009
Device: many
Hi Gary,
I will look into it but then every single character chosen by the user would have to be stored in the user's settings and read back in each time it is invoked.

Given xhtml/html named and numeric entities can easily be entered at any keyboard and preserved or autoconverted by Sigil to the character itself, and given a string of special characters can be easily stored on the clipboard for easy access, and given that mathml for mathematical symbols and formulae, exist, perhaps you can easily achieve what you want in some other way?

Most of the papers I write use mathematical symbols and I use LibreOffice's math editor to create the formula and convert to mathml. I then use MathJax to convert them to svg if so desired. For common math symbols used inline with text, I simply create unique two or three letter placeholders in the text to speed typing (ie. *0 for infinity, etc). Once complete, I use search and replace to change the placeholders to their numeric or named entity once across all xhtml files. I then run Mend across all files and any named or numeric entities that are not preserved in the Sigil settings are changed to their character equivalent.

A quicker "solution" might be to extend the Insert Special Character Dialog for our next release. If you feel common symbols are missing, other might agree, and adding them is simple and does not require any additional settings.
KevinH is offline   Reply With Quote