[oXygen-user] shortcuts for special characters
James Cummings
Wed May 16 09:08:00 CDT 2007
Hi George,
The only problem (as dot pointed out privately to me) with this as a solution to
inputting funny characters quickly, is that code templates need a space in the
editor before the letters you type. So I can't type 'with' and have the 'th' be
part of the code template. I'd have to type 'wi th' and then delete the space.
Another solution would to be to write a commandline java program to output the
right characters and then attach a menu keyboard shortcut to generate each of
them, but that seems a bit like overkill?
-James
George Cristian Bina wrote:
> Hi James and Don,
>
> Sure you can export/import code templates. On the Options->Preferences
> -- Editor -- Code Templates page there are two buttons Export and Import
> that allow you to share the templates with other users.
>
> Note that oXygen has also support for project level options. This makes
> possible configuring a project that has some options already configured,
> including code templates, transformation scenarios, default schema
> associations, catalogs, etc. So basically you can create a project and
> set the options you want to be stored at project level, then you can
> share that project with other users that will see all the options you
> configured at project level when working with that project.
>
> Best Regards,
> George
> ---------------------------------------------------------------------
> George Cristian Bina - http://aboutxml.blogspot.com/
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> http://www.oxygenxml.com
>
>
> James Cummings wrote:
>> Dot Porter wrote:
>>> Hello List,
>>>
>>> I've been using oXygen for a couple of years but mainly for text
>>> encoding, I don't really take advantage of the more advanced
>>> functionality. I apologize for this newbie question and I hope the
>>> answer is simple.
>>>
>>> I would really like to create shortcuts for some characters from the
>>> character map. There are three that I use often and it's a pain to
>>> have to cut and paste or use the character map every time I want to
>>> stick one in. I figured out how to set the menu shortcut keys and I
>>> was able to create a shortcut to bring up the c.m. but what I really
>>> want are shortcuts to insert the letters themselves. Any suggestions?
>>
>> Hi Dot,
>>
>> What I use is 'Code Templates'. For example you create a template
>> called 'thorn' which has the content of:
>>
>> þ${caret}
>>
>> (or the unicode character reference if you want), and then start
>> typing th and then hit control-space.
>>
>> Do similar with THORN (for capital), yogh/YOGH, etc. I suppose I could
>> actually export these code templates and give them to you, but it is
>> just really as easy for you to create them yourself if think.[1]
>>
>> -James
>> [1] My favourite characters, and probably some of yours, are listed
>> http://users.ox.ac.uk/~jamesc/characters.html
>>
>>
>
--
Dr James Cummings, Oxford Text Archive, University of Oxford
James dot Cummings at oucs dot ox dot ac dot uk
More information about the oXygen-user
mailing list