Easy insertion of en/em-dash

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 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 ------------------------------------------------------------------

Personally, I would not want a default autocorrect setting like this in oXygen because I usually want literal "--" and "---" if I type them (because I am usually in the XML editor and of course "--" is used in comments, etc.). But if it were added to the Autocorrect options and turned off by default, it wouldn't be a problem. (OS X has built-in keyboard shortcuts for en-dash (Alt-hyphen) and em-dash (Shift-Alt-hyphen) so I just use those.) David S. On Oct 1, 2014, at 12:12 PM, Jirka Kosek <jirka@kosek.cz> wrote:
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 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 ------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi Jirka, 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. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 10/1/2014 7:12 PM, Jirka Kosek wrote:
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
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (3)
-
David Sewell
-
Jirka Kosek
-
Oxygen XML Editor Support (Radu Coravu)