
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? Thanks, Dot -- *************************************** Dot Porter, University of Kentucky ##### Program Coordinator Collaboratory for Research in Computing for Humanities dporter@uky.edu 859-257-9549 ##### Editorial Assistant, REVEAL Project Center for Visualization and Virtual Environments porter@vis.uky.edu ***************************************

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

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

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

Hi James, I see... I will log an enhancement request on our Jira to provide an action called for instance "Insert template" that will trigger the insertion of a template at the current position without looking for an already entered prefix. You should be able to set a shortcut for that and invoke it then type the template name to select it. Another possibility is to have a view showing all the templates and have some insert actions from that view at the current caret position. 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:
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

George Cristian Bina wrote:
Hi James,
I see... I will log an enhancement request on our Jira to provide an action called for instance "Insert template" that will trigger the insertion of a template at the current position without looking for an already entered prefix. You should be able to set a shortcut for that and invoke it then type the template name to select it.
That would seem to be a very good way to do it. So you'd have the template but then have a shortcut key that called that. Any possibility that you could just define those shortcut keys when creating the template? (Rather than have to define the template, then go associate a key with calling it.)
Another possibility is to have a view showing all the templates and have some insert actions from that view at the current caret position.
Less convenient than just being able to map it to a keystroke I'd say, but might be helpful to see them I suppose. Many thanks, -James -- Dr James Cummings, Oxford Text Archive, University of Oxford James dot Cummings at oucs dot ox dot ac dot uk

Thanks to both James and George for helping me with this. I've gone ahead and created code templates that pull up the characters effectively. The space issue is annoying but a great improvement over having to cut and paste or dig through the character map - and I needed something to implement right away. If however an "insert template" is added to oxygen at a later date, I will definitely use that! Thanks again, Dot On 5/16/07, James Cummings <James.Cummings@oucs.ox.ac.uk> wrote:
George Cristian Bina wrote:
Hi James,
I see... I will log an enhancement request on our Jira to provide an action called for instance "Insert template" that will trigger the insertion of a template at the current position without looking for an already entered prefix. You should be able to set a shortcut for that and invoke it then type the template name to select it.
That would seem to be a very good way to do it. So you'd have the template but then have a shortcut key that called that. Any possibility that you could just define those shortcut keys when creating the template? (Rather than have to define the template, then go associate a key with calling it.)
Another possibility is to have a view showing all the templates and have some insert actions from that view at the current caret position.
Less convenient than just being able to map it to a keystroke I'd say, but might be helpful to see them I suppose.
Many thanks,
-James
-- Dr James Cummings, Oxford Text Archive, University of Oxford James dot Cummings at oucs dot ox dot ac dot uk
-- *************************************** Dot Porter, University of Kentucky ##### Program Coordinator Collaboratory for Research in Computing for Humanities dporter@uky.edu 859-257-9549 ##### Editorial Assistant, REVEAL Project Center for Visualization and Virtual Environments porter@vis.uky.edu ***************************************

Hi James, Just to clarify. My proposal was to have an insert template action that will show templates without filtering on already entered prefix - as this filtering makes the templates not to appear when you use CTRL+Space once you already have something typed in after a space. So basically that action will be equivalent in terms of functionality with Press space CTRL+Space ... here you can insert a template or not ... Remove the space added in step one I will add also your idea with defining shortcuts for templates to the Jira entry. 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:
George Cristian Bina wrote:
Hi James,
I see... I will log an enhancement request on our Jira to provide an action called for instance "Insert template" that will trigger the insertion of a template at the current position without looking for an already entered prefix. You should be able to set a shortcut for that and invoke it then type the template name to select it.
That would seem to be a very good way to do it. So you'd have the template but then have a shortcut key that called that. Any possibility that you could just define those shortcut keys when creating the template? (Rather than have to define the template, then go associate a key with calling it.)
Another possibility is to have a view showing all the templates and have some insert actions from that view at the current caret position.
Less convenient than just being able to map it to a keystroke I'd say, but might be helpful to see them I suppose.
Many thanks,
-James
participants (3)
-
Dot Porter
-
George Cristian Bina
-
James Cummings