Easy insertion of en/em-dash

I use the standard keyboard shortcut of Alt+0151, but I'd love to see en-dashes and em-dashes added to the Entities tab. I also tried added them in the code templates, and while it does work, it gives them the appearance of being actual elements, rather than character entities. Thanks, DC Message: 1 Date: Wed, 01 Oct 2014 18:12:27 +0200 From: Jirka Kosek <jirka@kosek.cz<mailto:jirka@kosek.cz>> To: oxygen-user@oxygenxml.com<mailto:oxygen-user@oxygenxml.com> Subject: [oXygen-user] Easy insertion of en/em-dash Message-ID: <542C27EB.3080601@kosek.cz<mailto:542C27EB.3080601@kosek.cz>> Content-Type: text/plain; charset="utf-8" Hi, good text content should properly use en-dash and em-dash characters. Easy way to type them would be similar to how auto-correction work in some editors: Typed characters => output - => - -- => ? (en-dash) --- => ? (em-dash) ---- => - (cycle back to hyphen and so on) Has already someone implemented this as a pluging? Or would it be possible to provide this feature directly in oXygen, probably as a part of existing auto-corrections? If answer is no, I will do it myself, but I thought that I would ask first :-) TIA, Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz<mailto:jirka@kosek.cz> http://xmlguru.cz ------------------------------------------------------------------ Professional XML consulting and training services DocBook customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep. ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------ Don Cwiklowski, Jr. Senior Technical Communicator Customer Technical Communications | Operations and Technology MasterCard 2200 MasterCard Blvd | O'Fallon, MO 63366 tel 636-722-6802 don_cwiklowski@mastercard.com<mailto:don_cwiklowski@mastercard.com> [cid:image001.gif@01CFDD74.C7F794B0]<www.mastercard.com> Please think of the environment before printing this email. CONFIDENTIALITY NOTICE This e-mail message and any attachments are only for the use of the intended recipient and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, any disclosure, distribution or other use of this e-mail message or attachments is prohibited. If you have received this e-mail message in error, please delete and notify the sender immediately. Thank you.

Hello, Personally I'm not aware of such a plugin, but I think that one can indeed be implemented (and sounds like a nice idea). As current workarounds, other than the already mentioned code templates, I can also think of: - the "Insert from Character Map..." dialog. The action is available in the Edit menu. You can use it to insert the needed "dash" elements. There is also a "Symbols" toolbar that presents the recently used characters. So the "dash" characters will be just one click away (maybe two). - in the Author page (if this editing mode is an option), you can define author actions, each one inserting a specific "dash". You can associate shortcuts to these actions of add them in the toolbar, menu etc. Best regards, Alex -- Alex Jitianu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 10/1/2014 8:39 PM, Cwiklowski, Don wrote:
I use the standard keyboard shortcut of Alt+0151, but I'd love to see en-dashes and em-dashes added to the Entities tab.
I also tried added them in the code templates, and while it does work, it gives them the appearance of being actual elements, rather than character entities.
Thanks,
DC
Message: 1
Date: Wed, 01 Oct 2014 18:12:27 +0200
From: Jirka Kosek <jirka@kosek.cz <mailto:jirka@kosek.cz>>
To: oxygen-user@oxygenxml.com <mailto:oxygen-user@oxygenxml.com>
Subject: [oXygen-user] Easy insertion of en/em-dash
Message-ID: <542C27EB.3080601@kosek.cz <mailto:542C27EB.3080601@kosek.cz>>
Content-Type: text/plain; charset="utf-8"
Hi,
good text content should properly use en-dash and em-dash characters.
Easy way to type them would be similar to how auto-correction work in some editors:
Typed characters => output
- => -
-- => ? (en-dash)
--- => ? (em-dash)
---- => - (cycle back to hyphen and so on)
Has already someone implemented this as a pluging? Or would it be possible to provide this feature directly in oXygen, probably as a part of existing auto-corrections?
If answer is no, I will do it myself, but I thought that I would ask first :-)
TIA,
Jirka
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka@kosek.cz <mailto:jirka@kosek.cz> http://xmlguru.cz
------------------------------------------------------------------
Professional XML consulting and training services
DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
Bringing you XML Prague conference http://xmlprague.cz <http://xmlprague.cz>
------------------------------------------------------------------
*Don Cwiklowski, Jr.*
Senior Technical Communicator
Customer Technical Communications| Operations and Technology
MasterCard
2200 MasterCard Blvd| O'Fallon, MO 63366
tel 636-722-6802
don_cwiklowski@mastercard.com <mailto:don_cwiklowski@mastercard.com>
<www.mastercard.com>
//
/Please think of the environment before printing this email./
CONFIDENTIALITY NOTICE This e-mail message and any attachments are only for the use of the intended recipient and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, any disclosure, distribution or other use of this e-mail message or attachments is prohibited. If you have received this e-mail message in error, please delete and notify the sender immediately. Thank you.
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

On 2.10.2014 8:55, Alex Jitianu wrote:
As current workarounds, other than the already mentioned code templates, I can also think of: - the "Insert from Character Map..." dialog. The action is available in the Edit menu. You can use it to insert the needed "dash" elements. There is also a "Symbols" toolbar that presents the recently used characters. So the "dash" characters will be just one click away (maybe two).
Yes, but this is too slow if such characters has to be typed often.
- in the Author page (if this editing mode is an option), you can define author actions, each one inserting a specific "dash". You can associate shortcuts to these actions of add them in the toolbar, menu etc.
Yes, this is what I did for now, I have mapped Ctrl+Shift+minus to insert fragment action. But direct support for typing just several "-" strokes would be nicer as I'm used to this from TeX and Emacs input mode.
We have some future plans to add proper Auto-correction support in Oxygen (with more than em-dash insertion) by using the auto-correct rule files which are bundled with Open Office. Maybe we'll find some time to implement this in an Oxygen 17.x release next year. Probably this auto-correct will initially be available only in the Author visual editing mode.
That would be nice. Also it makes sense to have a list of elements where auto-corrections will not be active even in Author mode. Imagine writing computer book -- you don't want to change dashes and quotes to other characters inside elements like programlisting and code (in DocBook). Thanks and have a nice day, Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML consulting and training services DocBook customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep. ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------

I'm with David S. on this. oXygen is an editor, not a word processor. So if you (SyncRO) create such a feature, please leave it disabled by default. That said, David's right. It's plenty easy to insert an en-dash or an em-dash in Mac OS X using the standard input method. One could also use the Unicode Hex input method (opt-2 opt-0 opt-1 opt-4, e.g.). Not as convenient, but it allows insertion of arbitrary Unicode characters. BUT the keyboard shortcut for inserting arbitrary Unicode characters using my Ubuntu 14.04 system (ctl-shift-u 2 0 1 4 ret) does NOT work in oXygen, and I really wish it did.

On 2.10.2014 14:11, Syd Bauman wrote:
I'm with David S. on this. oXygen is an editor, not a word processor. So if you (SyncRO) create such a feature, please leave it disabled by default.
I tend to disagree -- oXygen has two different products hidden below "Text" and "Author" tabs. From author mode one would expect word processor like features and current auto-correct options for smart quotes can already be enabled/disabled. Of course in text mode editor shouldn't mess with typed characters.
That said, David's right. It's plenty easy to insert an en-dash or an em-dash in Mac OS X using the standard input method. One could also use the Unicode Hex input method (opt-2 opt-0 opt-1 opt-4, e.g.). Not as convenient, but it allows insertion of arbitrary Unicode characters.
Well, on Windows its Alt + 0 1 5 0 which is really headache compared to - - Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML consulting and training services DocBook customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep. ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------

Two remarks for something Syd said:
BUT the keyboard shortcut for inserting arbitrary Unicode characters using my Ubuntu 14.04 system (ctl-shift-u 2 0 1 4 ret) does NOT work in oXygen, and I really wish it did.
We'll look into this. And to something that Jirka said:
Well, on Windows its Alt + 0 1 5 0 which is really headache compared to - -
We also have plans to allow keyboard shortcuts to be assigned to a defined code template. So you could define a code template for inserting m-dash and assign a simpler keyboard shortcut to it. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 10/2/2014 3:30 PM, Jirka Kosek wrote:
On 2.10.2014 14:11, Syd Bauman wrote:
I'm with David S. on this. oXygen is an editor, not a word processor. So if you (SyncRO) create such a feature, please leave it disabled by default.
I tend to disagree -- oXygen has two different products hidden below "Text" and "Author" tabs. From author mode one would expect word processor like features and current auto-correct options for smart quotes can already be enabled/disabled. Of course in text mode editor shouldn't mess with typed characters.
That said, David's right. It's plenty easy to insert an en-dash or an em-dash in Mac OS X using the standard input method. One could also use the Unicode Hex input method (opt-2 opt-0 opt-1 opt-4, e.g.). Not as convenient, but it allows insertion of arbitrary Unicode characters.
Well, on Windows its Alt + 0 1 5 0 which is really headache compared to - -
Jirka
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

That depends on what mode you are using it under. If you are editing a DocBook, DITA, TEI, etc. in Author mode, then it could be considered a words 😉 processor. Sent from my iPad
On Oct 2, 2014, at 8:11 AM, Syd Bauman <syd@paramedic.wwp.northeastern.edu> wrote:
I'm with David S. on this. oXygen is an editor, not a word processor. So if you (SyncRO) create such a feature, please leave it disabled by default.
That said, David's right. It's plenty easy to insert an en-dash or an em-dash in Mac OS X using the standard input method. One could also use the Unicode Hex input method (opt-2 opt-0 opt-1 opt-4, e.g.). Not as convenient, but it allows insertion of arbitrary Unicode characters.
BUT the keyboard shortcut for inserting arbitrary Unicode characters using my Ubuntu 14.04 system (ctl-shift-u 2 0 1 4 ret) does NOT work in oXygen, and I really wish it did. _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Good point. I concede that I meant in "text" mode, and don't care much what hapens in author mode. JK> I tend to disagree -- oXygen has two different products hidden JK> below "Text" and "Author" tabs. From author mode one would expect JK> word processor like features and current auto-correct options for JK> smart quotes can already be enabled/disabled. Of course in text JK> mode editor shouldn't mess with typed characters. LC> That depends on what mode you are using it under. If you are editing LC> a DocBook, DITA, TEI, etc. in Author mode, then it could be LC> considered a words 😉 processor.
participants (6)
-
Alex Jitianu
-
Cwiklowski, Don
-
Jirka Kosek
-
Loren Cahlander
-
Oxygen XML Editor Support (Radu Coravu)
-
Syd Bauman