Display accented letters in log window

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Display accented letters in log window

Franky
Dear all,

How can I (simply) display accented characters like : é, è or à in the log
window with the print command? I would prefer to stay in the Imagej macro
language...

Thank you in advance



--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Display accented letters in log window

Gabriel Landini
On Wednesday, 5 August 2020 20:58:08 BST francois.rasselet  wrote:
> é, è or à

Hi, this macro line seems to work fine:

print("é, è or à");

to input those characters in the editor, it might depend on your operating
system.

Regards

Gabriel.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Display accented letters in log window

Cammer, Michael-3
In reply to this post by Franky
I think this will solve your problem:
https://imagej.nih.gov/ij/macros/Unicode.txt 

Michael Cammer, Sr Research Scientist, DART Microscopy Laboratory
NYU Langone Health, 540 First Avenue, SK2 Microscopy Suite, New York, NY  10016
Office: 646-501-0567 Cell: 914-309-3270  [hidden email]  
http://nyulmc.org/micros  http://microscopynotes.com/
 




-----Original Message-----
From: Franky <[hidden email]>
Sent: Wednesday, August 5, 2020 3:58 PM
To: [hidden email]
Subject: Display accented letters in log window

[EXTERNAL]

Dear all,

How can I (simply) display accented characters like : é, è or à in the log window with the print command? I would prefer to stay in the Imagej macro language...

Thank you in advance



--
Sent from: https://urldefense.proofpoint.com/v2/url?u=http-3A__imagej.1557.x6.nabble.com_&d=DwIFaQ&c=j5oPpO0eBH1iio48DtsedeElZfc04rx3ExJHeIIZuCs&r=E0xNnPAQpUbDiPlC50tp7rW2nBkvV7fujQf0RknE5bU&m=jKkogwMJ1NYrAa5iA4bsRtpMv9ZjWcBJofB6TdIgdZ8&s=soDkLaV8sER1fQ_6lp0kjXmImzelEt4XUy_LO5tkIyc&e=

--
ImageJ mailing list: https://urldefense.proofpoint.com/v2/url?u=http-3A__imagej.nih.gov_ij_list.html&d=DwIFaQ&c=j5oPpO0eBH1iio48DtsedeElZfc04rx3ExJHeIIZuCs&r=E0xNnPAQpUbDiPlC50tp7rW2nBkvV7fujQf0RknE5bU&m=jKkogwMJ1NYrAa5iA4bsRtpMv9ZjWcBJofB6TdIgdZ8&s=eeqHe4Q6o8dVIcEZeADW5TxvSD8oCLhLfrN6P9eaJEc&e=

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Display accented letters in log window

CARL Philippe (LBP)
In reply to this post by Franky
Dear Franky,
You can use the fromCharCode method:
https://imagej.nih.gov/ij/developer/macro/functions.html#fromCharCode
And thus use:
print(fromCharCode(0x00ea) + fromCharCode(0x00e9));
or
print(fromCharCode(0x00ea, 0x00e9));
My best regards,
Philippe

----- Mail original -----
De: "Franky" <[hidden email]>
À: "imagej" <[hidden email]>
Envoyé: Mercredi 5 Août 2020 21:58:08
Objet: Display accented letters in log window

Dear all,

How can I (simply) display accented characters like : é, è or à in the log
window with the print command? I would prefer to stay in the Imagej macro
language...

Thank you in advance



--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Display accented letters in log window

CARL Philippe (LBP)
In reply to this post by Cammer, Michael-3
Dear Michael,
Very unfortunately our mails crossed, but your answer with a nice overview of all the useful codes is way better!
I'm going to save you link!
Take care,
Philippe

----- Mail original -----
De: "Cammer, Michael" <[hidden email]>
À: "imagej" <[hidden email]>
Envoyé: Mercredi 5 Août 2020 22:25:41
Objet: Re: Display accented letters in log window

I think this will solve your problem:
https://imagej.nih.gov/ij/macros/Unicode.txt 

Michael Cammer, Sr Research Scientist, DART Microscopy Laboratory
NYU Langone Health, 540 First Avenue, SK2 Microscopy Suite, New York, NY  10016
Office: 646-501-0567 Cell: 914-309-3270  [hidden email]  
http://nyulmc.org/micros  http://microscopynotes.com/
 




-----Original Message-----
From: Franky <[hidden email]>
Sent: Wednesday, August 5, 2020 3:58 PM
To: [hidden email]
Subject: Display accented letters in log window

[EXTERNAL]

Dear all,

How can I (simply) display accented characters like : é, è or à in the log window with the print command? I would prefer to stay in the Imagej macro language...

Thank you in advance



--
Sent from: https://urldefense.proofpoint.com/v2/url?u=http-3A__imagej.1557.x6.nabble.com_&d=DwIFaQ&c=j5oPpO0eBH1iio48DtsedeElZfc04rx3ExJHeIIZuCs&r=E0xNnPAQpUbDiPlC50tp7rW2nBkvV7fujQf0RknE5bU&m=jKkogwMJ1NYrAa5iA4bsRtpMv9ZjWcBJofB6TdIgdZ8&s=soDkLaV8sER1fQ_6lp0kjXmImzelEt4XUy_LO5tkIyc&e=

--
ImageJ mailing list: https://urldefense.proofpoint.com/v2/url?u=http-3A__imagej.nih.gov_ij_list.html&d=DwIFaQ&c=j5oPpO0eBH1iio48DtsedeElZfc04rx3ExJHeIIZuCs&r=E0xNnPAQpUbDiPlC50tp7rW2nBkvV7fujQf0RknE5bU&m=jKkogwMJ1NYrAa5iA4bsRtpMv9ZjWcBJofB6TdIgdZ8&s=eeqHe4Q6o8dVIcEZeADW5TxvSD8oCLhLfrN6P9eaJEc&e=

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html