EEVblog > News/Suggestions/Help

Adding a line of UTF-8 symbols to copy from

(1/3) > >>

Sensorcat:
The greek letter Omega is included at the end of the list of icons in the post form, probably for aesthetic reasons, but it does not align with text:

some text  \$\Omega\$ more text

So no one uses it, most prefer to write 'ohm' instead. Earlier, introducing full math support was suggested, but not implemented because, as I understand, additional software would be necessary for that. Since UTF-8 is supported, I suggest to do something simple, which does not need additional software, and include a set of important UTF-8 symbols to the form. Placed above the text input box, they can be used for copy/paste into the text to be posted. The result aligns with normal text and does not need a graphical element inserted into the text (any more):

some text ° ± Δ ε Θ λ μ π Σ φ Φ ω Ω € £ more text

Nominal Animal:

--- Quote from: Sensorcat on May 20, 2024, 12:19:17 am ---Earlier, introducing full math support was suggested, but not implemented
--- End quote ---
Oh but it is, in the form of MathJax!  The only downside is that it does not render yet in the Preview.

For example, if you write \$ 150 \Omega \$, you get \$ 150 \Omega \$.  (Use \$ 150 \, \Omega \$ for \$ 150 \, \Omega\$.)

If you write
    $$ f(x) = \sum_{i=0}^{N} C_i x^i \tag{1}\label{NA_1}$$
you get $$f(x) = \sum_{i=0}^{N} C_i x^i \tag{1}\label{NA_1}$$
and can refer to it using \$\eqref{NA_1}\$, \$\eqref{NA_1}\$.  (The label prefix NA_ is just to allow the same tag in different posts, without mixing them up.)

I often use jbergknoff's MathJax Sandbox to preview my math expressions.  The difference there is that inline math expressions are bracketed by a pair of $ instead of a pair of \$ as here.  Both bracket full-line math expressions using a pair of $$'s.

Sensorcat:

--- Quote from: Nominal Animal on May 20, 2024, 12:33:29 am ---Oh but it is, in the form of MathJax!  The only downside is that it does not render yet in the Preview.

--- End quote ---
Perhaps my wording was not accurate. I have been using Latex many years ago, but I would not want to type an equation in source code, or use an additional tool just to assemble a post. So, with convenience for the user and simplicity in inpementation in mind, my idea was to make the most important symbols easily accessible, such that you can write e.g. 10MΩ, ±3V, or φ=30° both nicely and effortless if you want.

Nominal Animal:
Sure.  I often use a Character Map utility (in Linux) to pick Unicode characters from various blocks, mostly Latin-1 Supplement, Greek and Coptic, General Punctuation, Superscripts and Subscripts, Letterlike Symbols, Arrows, Mathematical Operators, and Box Drawing (especially in [tt][/tt] and code blocks for simple tables), for use in my posts here.

I've been meaning to create a small static HTML tool page that contains them all in a nicely ordered table, where clicking on any copies it to a set (editable box) that is auto-copied to the clipboard for easy pasting to messages, because it'd be faster than the Gnome Character Map I currently have (on Cinnamon Desktop).  Just haven't bothered yet.

Nominal Animal:
I started creating the glyph tool page, here, but started scratching my head how to best arrange all the characters to select from, and only added the non-letter Latin-1 ones for simplicity.

The idea is that when you click on any character, it is added to the text box at the top, and auto-copied to clipboard.  You can click on several ones to get a set, and simply Paste them in any other program or web site you have open at the same time.

It could easily be modified into an SMF extension, a floating tab that is shown and hidden using a single extra button in the SMF message edit dialog.  The glyph input box is then removed, and instead of clipboard, each click adds the glyph to the current caret position in the "message" textarea element.

If you look at the sources, there is a bit of CSS to tune the layout, a few lines of JavaScript to copy the selected glyph to the input box and clipboard, and an onload trigger (activate()) that converts all elements of type glyph into a button that copies the content of that element.  Yes, it is ridiculously simple.  So, to create your preferred set of glyphs, you only need to add a line per glyph, of form
    class="glyph">GLYPH</span><span
If you want to separate groups, just use </span>|<span or </span>
<span .

I consider that page trivial; either non-copyrightable, or licensed under CC0-1.0 International (i.e. public domain: do whatever you wish, just don't blame me).

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod