[Cuis] New updates: Mathematical symbols in Smalltalk code
Juan Vuletich
juan at jvuletich.org
Thu Dec 3 07:51:03 CST 2015
Hi Folks,
I've just pushed to GitHub quite several updates. Besides some fixes and
enhancement to Morphic display updates, etc, the biggest news is a set
of 32 mathematical symbols, as requested by Luciano. They can also be
used as binary selectors, (although such code might have portability
issues).
Clipboard copy & paste with Unicode apps work ok. For example this:
'←→↑↓
!"#$%&''()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~∀∂∃∄∅∞ℂℍℕℙℚℝℤℵ⨀⨁⨂∑∫⨕≠≡≢≣≤≥≦≧≨≩∘∙
¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ'
is the result of evaluating
String streamContents: [ :strm | 28 to: 255 do: [ :i | strm nextPut:
(Character value: i) ]]
and doing a simple copy / paste.
I also added some convenience methods, like 'Character forAll',
'Character directSum' or 'Character rationalNumbers'.
When updating existing images you will be asked for recreating DejaVu
StrikeFonts. For this to work, you need to unzip
AdditionalFontData/DejaVuSans.zip in that folder. If you are using
DejaVuSansMono, you need to recreate the fonts after the update.
A nice detail, suggested by Leandro Caniglia is that you can do
'StrikeFont useRightArrow' and now the assignment is shown as
→ . Play
with it. It gives a new perspective on what the code is doing!
Thanks Luciano for suggesting the addition of the mathematical symbols.
Keep tuned, next will come superscripts and subscripts.
Cheers,
Juan Vuletich
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mathSymbols.png
Type: image/png
Size: 32714 bytes
Desc: not available
URL: <http://jvuletich.org/pipermail/cuis_jvuletich.org/attachments/20151203/60a853ac/attachment-0003.png>
More information about the Cuis
mailing list