Bug 146001 - Wish: Acents and "ñ" in LaTeX Style
Summary: Wish: Acents and "ñ" in LaTeX Style
Status: RESOLVED FIXED
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: 1.9.3
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-26 22:58 UTC by Alejandro Diaz Caro
Modified: 2009-02-25 10:09 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch (8.93 KB, patch)
2009-02-23 20:25 UTC, David Lonie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro Diaz Caro 2007-05-26 22:58:36 UTC
Version:           1.9.3 (using KDE 3.5.7, Kubuntu (feisty) 4:3.5.7-0ubuntu1~feisty2)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.20-15-generic

I would like that the accents (like á, é, í, ó and ú) and the "ñ" appears in LaTeX Style (i.e. \'a, \'e, \'{\i}, \'o and \'u, and \~n). Just like the quotation marks " appears ''.
Comment 1 Thomas Braun 2007-07-03 21:27:26 UTC
Hello,

currently the only way to get this is to use File->Convert to-> ASCII.
This should cover most of the symbols.

Comment 2 David Lonie 2009-02-23 00:34:47 UTC
SVN commit 930292 by dlonie:

Adds in support for the special charater keys listed at 
http://doc.trolltech.com/4.5/qt.html#Key-enum
I don't have a keyboard to test any of these, so if the 
reporter could let me know if this provides the desired 
behavior or not, I'd appreciate it :)

CCBUG: 146001
GUI



 M  +52 -1     editorextension.cpp  
 M  +5 -0      editorextension.h  
 M  +135 -2    eventfilter.cpp  
 M  +4 -0      kile.kcfg  
 M  +107 -84   widgets/latexconfigwidget.ui  


WebSVN link: http://websvn.kde.org/?view=rev&revision=930292
Comment 3 Alejandro Diaz Caro 2009-02-23 01:04:20 UTC
Hi. Nowadays I have a PowerBook (MacOS X 10.4.11), and I don't know how to compile kile here (actually, I am using kile, however, I installed it by using the fink package).

If you can guide me how to do it, I will be happy to help.

Btw, you don't need a special keyboard to test it, you just have to set up the keyboard as Spanish layout or English International (then, by pressing the key ' and a vowel, you obtain that with accent, and with <alt gr> + n you obtain a ñ).

Cheers
Comment 4 David Lonie 2009-02-23 02:43:08 UTC
Hmm, I'm not sure about how to compile it for a Mac, but on linux you can do this:

$ svn co svn://anonsvn.kde.org/home/kde/trunk/extragear/office/kile kile-svn
$ mkdir kile-build
$ cd kile-build
$ cmake ../kile-svn
$ make
$ sudo make install

Can you modify that to work for mac?

You will need subversion, kde4, and cmake to do that, just be sure to uninstall any existing kile installations first. 

I'll try switching my layout to test it, too -- thanks for the tip! Feel free to email me directly or the kile-devel list if you have any trouble (the list might be able to help more with installation issues :) ).

Do any of the the cc'd folks know about compiling on OS X?
Comment 5 David Lonie 2009-02-23 03:10:08 UTC
After trying this with the modified layout, it doesn't work.

I turns out that these signals aren't sent as key presses, but QIMEvents. I'll work on getting those supported as well.

Dave
Comment 6 David Lonie 2009-02-23 03:45:42 UTC
Info:

http://doc.trolltech.com/4.5/qinputmethodevent.html

Dave
Comment 7 Thomas Braun 2009-02-23 11:20:05 UTC
Checkout http://websvn.kde.org/trunk/extragear/office/kile/README.MacOSX?revision=880135&view=markup, you might try directly the alternative way.
In case of questions mail to kile-devel where our new kile-on-MacOSX maintainer can help you.
Comment 8 Alejandro Diaz Caro 2009-02-23 14:20:11 UTC
Thanks for all the advises about compiling it on Mac. I will try it as soon as I can free a bit my disk (because right now I have only 2Gb free here).
Anyway, I asked a friend to try it with a French keyboard.
Comment 9 Alejandro Diaz Caro 2009-02-23 14:34:19 UTC
I get some space in my Mac, so I will try to install it! (and it could be nice to have kile natively, as right now I have it in X, installed using fink).
Well, let me some time to fight with it, and I will tell how it works :)
Comment 10 David Lonie 2009-02-23 20:25:25 UTC
Created attachment 31578 [details]
Patch

I doubt that the current svn will fully work (it should catch the \~n, etc that are single key presses, but the <'> + <a> type accents won't work).

Try applying the attached patch like this:

Goto where you've checked out kile-svn, and run
$ patch < specialchars.patch

then recompile. This is a rough patch, I still need to clean it up and add some more characters, but it works over here.

Dave
Comment 11 David Nadlinger 2009-02-24 08:23:49 UTC
Marking as resolved at request of David Lonie (he seems to have no b.k.o permissions yet).

I must admit that I had no time to test this myself yet...
Comment 12 Alejandro Diaz Caro 2009-02-24 09:58:31 UTC
I am trying to test it in my Mac (French Keyboard, Spanish, English and French layouts), but I get stuck trying to compile it (in fact, in a previous step: compiling apple-gcc-4.2, as the tutorial Thomas sent says). I asked in the kile-devel mailing list, so I am waiting for some help.
As soon as I can, I will be glad to test any patch or any changes you do.
Comment 13 renan fargetton 2009-02-24 23:05:29 UTC
I compiled kile under Linux yesterday from trunk. It's working for french accents "é", "è", "à", "ç" or "ù" which are single key press on my french keyboard.

It's not working for "ê" which needs two key press. I didn't applied the patch from dave...
Comment 14 David Lonie 2009-02-24 23:18:13 UTC
Good to hear. You don't need the patch anymore -- it's been applied to trunk. Try updating svn and let me know if your 2 keypress characters are working.

Dave
Comment 15 renan fargetton 2009-02-25 10:09:07 UTC
I recompiled this night from trunk and I confirm it's working for all french accents, including double click :
-single click
à : \`a
é : \'e
è : \`e
ù : \`u
-double click 
â : \^a
ä : \"a
ê : \^e
ë : \"e
î : \^i
ï : \"i
ô : \^o
ö : \"o
û : \^u
ü : \"u