[Cuis-dev] [RFC] AsciArt for UnicodeInput
Gerald Klix
cuis.01 at klix.ch
Tue Nov 7 03:23:20 PST 2023
I added this "\+<hex unicode>" hack to the editor, because
I wanted to write characters like $š in every editor. I still
don't know whether I want this Latex stuff in every editor.
One can certainly argue, that the same point also holds
for ASCII Art input. As I said, the current implementation is crude.
When I come to think about it,
it probably makes sense, to do this in a more user-friendly manner.
Use some control key to display a small morph just like the completer
does and let user enter what ever describes the Unicode code best.
This way one can also give live feedback.
I will add this changes to my Haverize package – it converts
a Cuis image to a Haver image – and play around with it
until I will "see the light".
Thanks again for helping,
Gerald
On 11/7/23 10:56 AM, Luciano Notarfrancesco via Cuis-dev wrote:
> Oh, I see, I guess you had to implement something separate for \. in Editor
> because \ is implemented in SmalltalkEditor and doesn’t work in general
> Editors. How about moving the implementation of \ up to Editor, so we don’t
> need \.? Or is \. something that you specifically want instead of \?
>
>
> On Tue, Nov 7, 2023 at 16:12 Gerald Klix <cuis.01 at klix.ch> wrote:
>
>> Hi,
>>
>> Thanks for asking all these questions (after all it's an RFC).
>>
>> I choose a dot, because I tried to find a character, that is less visible,
>> thus not visually impairing the ASCI art picture. Maybe an underscore
>> is a better choice. Up to to now I paid attention, that every picture
>> symbol starts with a non-letter. Therefore we could get away
>> with a backslash only.
>>
>> Now that I think about it, we might even get away with a single
>> space after the backslash. I will try.
>>
>> BTW: I changed some of the pictures. I used an underscore to
>> depict a down arrow, which was bad idea. A single $v is much
>> better suited.
>>
>> Thanks again for your comments and
>>
>>
>> Best Regards,
>>
>> Gerald
>>
>>
>>
>> On 11/7/23 6:20 AM, Luciano Notarfrancesco via Cuis-dev wrote:
>>
>> Hi,
>> Oh, I didn’t see the code (for some reason gmail app only show me the
>> contents of some changesets, and not others). But why the dot? Why two
>> different ways to do the same?
>>
>> On Tue, Nov 7, 2023 at 02:47 Gerald Klix <cuis.01 at klix.ch> <cuis.01 at klix.ch> wrote:
>>
>>
>> Luciano,
>>
>> I added these symbols to this very method and this very dictionary.
>>
>> A neat side effect that you can type "\.left" in any text editor
>> (not only code editor)
>> and it will be replaced by the left arrow (→) or – if you don't know Latex
>> well – you can type \.-> and get the same.
>>
>> I personally find it easier to remember than those Latex names,
>> although I write letters and invoices with Latex.
>>
>>
>> Just my 0.00€,
>>
>> Gerald
>>
>>
>>
>>
>> On 11/6/23 8:34 PM, Luciano Notarfrancesco via Cuis-dev wrote:
>>
>> Hi Gerald,
>> Some of those are already implemented, for example you can input subscripts
>> and superscripts like \^n or \_0. Also you can extend the named characters
>> by adding entries to the Dictionary of named characters (in
>> UnicodeCodePoint class), you can add entries to the dictionary or change
>> the initialization method that creates the default named characters.
>>
>> On Tue, Nov 7, 2023 at 01:55 Gerald Klix <cuis.01 at klix.ch> <cuis.01 at klix.ch> <cuis.01 at klix.ch> <cuis.01 at klix.ch> wrote:
>>
>>
>> Hi all, Hi Juan,
>>
>> I found it a bit tedious to remember various Unicode codes points
>> to just input characters like ⧐, therefore I added a method
>> to input them conveniently.
>>
>> With the attached change set, you type \.||> ("\." is the prefix
>> just like "\+" for numerical input) in any text editor,
>> this input will be replaced replaced by ⧐ after you enter a space.
>>
>> *Question: Is this the way to go?*
>>
>> The implementation is a bit crude
>> and needs to be refined if we add this concept to the core image.
>>
>>
>> Best Regards,
>>
>> Gerald
>>
>>
>>
>> Encl.:
>> Current symbol mappings:
>>
>> '
>> " ̈
>> $$ $
>> $B ฿
>> $C ₵
>> $E €
>> $L ₺
>> $N ₪
>> $NIS ₪
>> $P £
>> $R ₹
>> $W ₩
>> $Y ¥
>> '' ́
>> (C) ©
>> (TM) ™
>> ** ×
>> +- ±
>> -- —
>> --> ⟶
>> --| ⊣
>> -/-> ↛
>> -> →
>> ->> ↠
>> ->| ⇥
>> -^^ ↟
>> -|-> ⇸
>> -||-> ⇻
>> -[> ⇾
>> -__ ↡
>> ... …
>> .;^ ⋰
>> // ÷
>> 0* ⊛
>> 0+ ⊕
>> 0+> ⟴
>> 0- ⊖
>> 0. ⊙
>> 0/ ⊘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₀
>> _1 ₁
>> _2 ₂
>> _3 ₃
>> _4 ₄
>> _5 ₅
>> _6 ₆
>> _7 ₇
>> _8 ₈
>> _9 ₉
>> _| ⌋
>> _h ₕ
>> _i ᵢ
>> _j ⱼ
>> _k ₖ
>> _l ₗ
>> _m ₘ
>> _n ₙ
>> _p ₚ
>> _r ᵣ
>> _s ₛ
>> _t ₜ
>> _u ᵤ
>> _v ᵥ
>> ` ̀
>> {| ⦃
>> }> ⟩' .
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20231107/791553ad/attachment.htm>
More information about the Cuis-dev
mailing list