Re: [NTG-context] Input methods

2017-03-22 Thread Hans Åberg

> On 26 Sep 2016, at 11:25, Wolfgang Schuster  
> wrote:
> 
> Can you provide your file(s) for download?

I made a C++ program "text_to_plist" that computes a text substitution plist 
from a sequence of input files [1]. It checks for duplicates, does some XML 
translations, and sorts it, making it fairly easy to try different setups. 
There is an example, showing how to generate them.

1. 
https://secure2.storegate.com/Shares/Home.aspx?ShareID=f20eb983-f0d9-4440-ab28-c45abeae9ba1


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Input methods

2016-09-29 Thread Hans Åberg

> On 26 Sep 2016, at 11:25, Wolfgang Schuster  
> wrote:
> 
> Can you provide your file(s) for download?

I have made a new set, at [1], as before:

Abbreviations using non-alphanumerical symbols now drop the leading "\", as 
they seemed to caused strange conflicts. Easier to type, but will have funny 
consequences in say C++ code.

The alphanumerical abbreviations all start with a "\". I have changed the 
letters for bold, italic and bold italic, so as to not conflict with Greek 
two-letter abbreviations. In addition, added one letter shorthands for normal 
italic, as they are so common.

Also, some ConTeXt commands added.

Not all of these math letters work: the MacOS implementation is buggy. All 
symbols work, though.

I also experimented with a variation where math letter abbreviations used 
non-alphanumerical symbols, but it turns out they are harder to use, because 
one needs to learn where they are on the keyboard. So it seems, using 
letter-only abbreviations is most efficient, except for a few common cases.

1. 
https://secure2.storegate.com/Shares/Home.aspx?ShareID=f20eb983-f0d9-4440-ab28-c45abeae9ba1


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Input methods

2016-09-26 Thread Hans Åberg

> On 26 Sep 2016, at 11:25, Wolfgang Schuster  
> wrote:
>> Hans Åberg 26. September 2016 um 11:00
>>> FYI, I made interactive text substitutions (on MacOS) for the Unicode math 
>>> letters plus a number of symbols. With it in hand, it is not particularly 
>>> difficult to use Unicode symbols in the input file.
> Can you provide your file(s) for download?

They are at [1] with instructions.

Using an escape character as "\" is not necessary, but helps against unwanted 
replacements. And it is not necessary to use letters only. For the math 
letters, I have focused on making them short and easy to remember.

1. 
https://secure2.storegate.com/Shares/Home.aspx?ShareID=f20eb983-f0d9-4440-ab28-c45abeae9ba1


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Input methods

2016-09-26 Thread Wolfgang Schuster

Hans Åberg 
26. September 2016 um 11:00
FYI, I made interactive text substitutions (on MacOS) for the Unicode 
math letters plus a number of symbols. With it in hand, it is not 
particularly difficult to use Unicode symbols in the input file.

Can you provide your file(s) for download?

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Input methods

2016-09-26 Thread Hans Åberg
FYI, I made interactive text substitutions (on MacOS) for the Unicode math 
letters plus a number of symbols. With it in hand, it is not particularly 
difficult to use Unicode symbols in the input file.


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Input methods

2016-09-16 Thread Hans Åberg

> On 15 Sep 2016, at 20:19, Wolfgang Schuster  
> wrote:


> Another input method is shown in the following video [1] where each symbol 
> get its own command, e.g. \mbfitx is equal to {\bi x}.

This works on MacOS 10.12 in any application that uses the standard text 
services. One has an XML .plist file as listed below. Then in such an 
application, one turns on "Text Replacements". (The video shows TeXShop.)

Using the .plist file below, \mbfitx is translated into 풙. The replacement text 
can be anything.



http://www.apple.com/DTDs/PropertyList-1.0.dtd;>



phrase
풙
shortcut
\mbfitx


phrase
풚
shortcut
\mbfity


phrase
풛
shortcut
\mbfitz







___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___