FEATURE REQUEST: Automatic pair completition for German quotes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Scribes |
Fix Released
|
Wishlist
|
Mystilleef |
Bug Description
Version:
==========
Scribes version 0.4-dev-build849 on Ubuntu 10.04 Lucid Lynx
Issue:
==========
Scribes currently features automatic pair completition for most quotation marks except German ones which are are also used in several languages of the Balkans ( http://
Refering to numbers English quotation marks opens with “ looking like a 66 and closes with ” looking like a 99. Single marks accordingly with ‘ looking like a 6 and ’ looking like a 9.
The German counterpart opens with „ looking like a 99 and closes with “ looking like a 66. Single marks with ‚ looking like a 9 and ‘ looking like a 6. Except of the fact the opening character is on the bottom of the line the opening and closing characters are vice versa compared to the English variant.
The problem now is when using Scribes for e.g. writing textes with some markup language like reStructruredText the German closing character is the same as the English open character. Means, pair completition for English quotation marks is always invoked when trying to close a German quotation.
I guess on most common Linux systems xmodmap refers those characters to [Alt Gr] + ([Shift] (for single quotes)) + [v] (German opening), [b] (German closing, English opening) and [n] (English closing). It would be very, very nice if automatic pair completition is implemented for the German opening character as well so you get a „“ when pressing [Alt Gr] + [v] resp. ‚‘ when pressing [Alt Gr] + [Shift] + [v].
Remaining problem here would be an implementation of hungarian quotation marks because they use German opening and English closing character, but such exceptions could be solved by allowing to disable the automatic pair completition manually by the user. Which might be as well very helpful when writing wiki entries or board/blog posts locally with a syntax containing other characters effected by this auto completition.
This is my first entry to your bug list so i will of course drop a line to tell you how much i appreciate your efforts. Scribes is a really great editor. My default one for now and hopefully still in remote future.
Thanks,
Andreas Lis
summary: |
- Automatic pair completition for German quotes + FEATURE REQUEST: Automatic pair completition for German quotes |
description: | updated |
description: | updated |
description: | updated |
Changed in scribes: | |
status: | In Progress → Fix Committed |
Changed in scribes: | |
status: | Fix Committed → Fix Released |
Well, i had a brief look in GenericPlugins/ BracketCompleti on/Manager. py and correct me if i'm wrong...
Somewhere between lines 4-23 add:
KEYSYMS = { singlelowquotem ark : keysyms. leftsinglequote mark, doublelowquotem ark : keysyms. leftdoublequote mark,
...
keysyms.
keysyms.
}
And somewhere between lines 41-49 add:
self.__ open_pair_ characters = [..., keysyms. singlelowquotem ark, keysyms. doublelowquotem ark]