Re: Custom character entities

2010-11-26 Thread Alexander Tsyplakov
Guenter Milde milde at users.berlios.de writes: You can bind a key-combo to ert-insert --- and so on... Putting ert-insert --- into the Finction: field does not help. This produces an empty ERT. Alexander

Re: Custom character entities

2010-11-26 Thread Pavel Sanda
Alexander Tsyplakov wrote: Guenter Milde milde at users.berlios.de writes: You can bind a key-combo to ert-insert --- and so on... Putting ert-insert --- of course since it was never meant to work, look at lyx functions manual. what you need is command-sequence, ert-insert, self-insert...

Re: Custom character entities

2010-11-26 Thread Jean-Marc Lasgouttes
Le 24 nov. 2010 à 22:46, Richard Heck a écrit : On 11/24/2010 04:00 PM, Jean-Marc Lasgouttes wrote: Le 24 nov. 2010 à 17:32, Richard Heck a écrit : Certainly part of this would be fairly simple to do. Call it InsetSimpleCommand, and the only thing it does is issue whatever command it is

Re: Custom character entities

2010-11-26 Thread Alexander Tsyplakov
Pavel Sanda sanda at lyx.org writes: Alexander Tsyplakov wrote: Guenter Milde milde at users.berlios.de writes: You can bind a key-combo to ert-insert --- and so on... Putting ert-insert --- of course since it was never meant to work, look at lyx functions manual. what you need is

Re: Custom character entities

2010-11-26 Thread Liviu Andronic
On Wed, Nov 24, 2010 at 10:46 PM, Richard Heck rgh...@comcast.net wrote: I suppose, and really long-term maybe that'd be even better. My dream---I seem to have a lot of these---is for Flex insets that take arguments. So you click on the button and you get a dialog, where you can enter

Re: Custom character entities

2010-11-26 Thread Richard Heck
On 11/26/2010 01:18 PM, Liviu Andronic wrote: On Wed, Nov 24, 2010 at 10:46 PM, Richard Heckrgh...@comcast.net wrote: I suppose, and really long-term maybe that'd be even better. My dream---I seem to have a lot of these---is for Flex insets that take arguments. So you click on the button and

Re: Custom character entities

2010-11-26 Thread Jean-Marc Lasgouttes
Le 26 nov. 2010 à 19:18, Liviu Andronic a écrit : The current solutions (the Schunk environment and the use of Sweave code in ERT insets) are awkward or require unnecessary and prone-to-error typing. I'd much like to come up with a native LyX inset for the Sweave code chunks, a design I've

Re: Custom character entities

2010-11-26 Thread Alexander Tsyplakov
Guenter Milde milde at users.berlios.de writes: You can bind a key-combo to ert-insert --- and so on... Putting ert-insert --- into the Finction: field does not help. This produces an empty ERT. Alexander

Re: Custom character entities

2010-11-26 Thread Pavel Sanda
Alexander Tsyplakov wrote: Guenter Milde milde at users.berlios.de writes: You can bind a key-combo to ert-insert --- and so on... Putting ert-insert --- of course since it was never meant to work, look at lyx functions manual. what you need is command-sequence, ert-insert, self-insert...

Re: Custom character entities

2010-11-26 Thread Jean-Marc Lasgouttes
Le 24 nov. 2010 à 22:46, Richard Heck a écrit : On 11/24/2010 04:00 PM, Jean-Marc Lasgouttes wrote: Le 24 nov. 2010 à 17:32, Richard Heck a écrit : Certainly part of this would be fairly simple to do. Call it InsetSimpleCommand, and the only thing it does is issue whatever command it is

Re: Custom character entities

2010-11-26 Thread Alexander Tsyplakov
Pavel Sanda sanda at lyx.org writes: Alexander Tsyplakov wrote: Guenter Milde milde at users.berlios.de writes: You can bind a key-combo to ert-insert --- and so on... Putting ert-insert --- of course since it was never meant to work, look at lyx functions manual. what you need is

Re: Custom character entities

2010-11-26 Thread Liviu Andronic
On Wed, Nov 24, 2010 at 10:46 PM, Richard Heck rgh...@comcast.net wrote: I suppose, and really long-term maybe that'd be even better. My dream---I seem to have a lot of these---is for Flex insets that take arguments. So you click on the button and you get a dialog, where you can enter

Re: Custom character entities

2010-11-26 Thread Richard Heck
On 11/26/2010 01:18 PM, Liviu Andronic wrote: On Wed, Nov 24, 2010 at 10:46 PM, Richard Heckrgh...@comcast.net wrote: I suppose, and really long-term maybe that'd be even better. My dream---I seem to have a lot of these---is for Flex insets that take arguments. So you click on the button and

Re: Custom character entities

2010-11-26 Thread Jean-Marc Lasgouttes
Le 26 nov. 2010 à 19:18, Liviu Andronic a écrit : The current solutions (the Schunk environment and the use of Sweave code in ERT insets) are awkward or require unnecessary and prone-to-error typing. I'd much like to come up with a native LyX inset for the Sweave code chunks, a design I've

Re: Custom character entities

2010-11-26 Thread Alexander Tsyplakov
Guenter Milde users.berlios.de> writes: > You can bind a key-combo to ert-insert "--- and so on... Putting ert-insert "--- into the "Finction:" field does not help. This produces an empty ERT. Alexander

Re: Custom character entities

2010-11-26 Thread Pavel Sanda
Alexander Tsyplakov wrote: > Guenter Milde users.berlios.de> writes: > > You can bind a key-combo to ert-insert "--- and so on... > > Putting > ert-insert "--- of course since it was never meant to work, look at lyx functions manual. what you need is command-sequence, ert-insert, self-insert...

Re: Custom character entities

2010-11-26 Thread Jean-Marc Lasgouttes
Le 24 nov. 2010 à 22:46, Richard Heck a écrit : On 11/24/2010 04:00 PM, Jean-Marc Lasgouttes wrote: >> Le 24 nov. 2010 à 17:32, Richard Heck a écrit : >>> Certainly part of this would be fairly simple to do. Call it >>> InsetSimpleCommand, and the only thing it does >>> is issue whatever command

Re: Custom character entities

2010-11-26 Thread Alexander Tsyplakov
Pavel Sanda lyx.org> writes: > Alexander Tsyplakov wrote: > > Guenter Milde users.berlios.de> writes: > > > You can bind a key-combo to ert-insert "--- and so on... > > > > Putting > > ert-insert "--- > > of course since it was never meant to work, look at lyx functions manual. > what you need

Re: Custom character entities

2010-11-26 Thread Liviu Andronic
On Wed, Nov 24, 2010 at 10:46 PM, Richard Heck wrote: > I suppose, and really long-term maybe that'd be even better. My dream---I > seem to have a lot of these---is for Flex insets that take arguments. So you > click on the button and you get a dialog, where you can enter

Re: Custom character entities

2010-11-26 Thread Richard Heck
On 11/26/2010 01:18 PM, Liviu Andronic wrote: On Wed, Nov 24, 2010 at 10:46 PM, Richard Heck wrote: I suppose, and really long-term maybe that'd be even better. My dream---I seem to have a lot of these---is for Flex insets that take arguments. So you click on the button and

Re: Custom character entities

2010-11-26 Thread Jean-Marc Lasgouttes
Le 26 nov. 2010 à 19:18, Liviu Andronic a écrit : > The current solutions (the Schunk environment and the use of Sweave > code in ERT insets) are awkward or require unnecessary and > prone-to-error typing. I'd much like to come up with a native LyX > inset for the Sweave code chunks, a design I've

Re: Custom character entities

2010-11-24 Thread Alexander Tsyplakov
Richard Heck wrote Tuesday, November 23, 2010, 20:56:06: RH On 11/23/2010 03:48 AM, Jürgen Spitzmüller wrote: Richard Heck wrote: I see that the file is for unicode symbols only. So this cannot be used for something which is outside unicode table, can it? There are such things? Certainly

Re: Custom character entities

2010-11-24 Thread Jürgen Spitzmüller
Alexander Tsyplakov wrote: Sorry for my vague description of the problem and somewhat confusing title for the thread. Logically any special character is very similar to an inset without text inside. At an abstract level one can think about text markup entities which are elementary in their

Re: Custom character entities

2010-11-24 Thread Richard Heck
On 11/24/2010 11:11 AM, Jürgen Spitzmüller wrote: Alexander Tsyplakov wrote: Sorry for my vague description of the problem and somewhat confusing title for the thread. Logically any special character is very similar to an inset without text inside. At an abstract level one can think about text

Re: Custom character entities

2010-11-24 Thread Jean-Marc Lasgouttes
Le 24 nov. 2010 à 17:32, Richard Heck a écrit : Certainly part of this would be fairly simple to do. Call it InsetSimpleCommand, and the only thing it does is issue whatever command it is supposed to issue. The command in question can be given in a module: InsetCommand InsertEndnotes

Re: Custom character entities

2010-11-24 Thread Richard Heck
On 11/24/2010 04:00 PM, Jean-Marc Lasgouttes wrote: Le 24 nov. 2010 à 17:32, Richard Heck a écrit : Certainly part of this would be fairly simple to do. Call it InsetSimpleCommand, and the only thing it does is issue whatever command it is supposed to issue. The command in question can be

Re: Custom character entities

2010-11-24 Thread Jean-Marc Lasgouttes
Le 24 nov. 2010 à 22:46, Richard Heck a écrit : On 11/24/2010 04:00 PM, Jean-Marc Lasgouttes wrote: Le 24 nov. 2010 à 17:32, Richard Heck a écrit : Certainly part of this would be fairly simple to do. Call it InsetSimpleCommand, and the only thing it does is issue whatever command it is

Re: Custom character entities

2010-11-24 Thread Guenter Milde
On 2010-11-24, Alexander Tsyplakov wrote: My personal need concerns the commands of the Russian babel. In Russian babel there are, for example, 3 commands for Cyrillic dashes: \cdash- in plain text. \cdash~ in compound names \cdash* for denoting direct speech. One can enter them with ERT

Re: Custom character entities

2010-11-24 Thread Alexander Tsyplakov
Richard Heck wrote Tuesday, November 23, 2010, 20:56:06: RH On 11/23/2010 03:48 AM, Jürgen Spitzmüller wrote: Richard Heck wrote: I see that the file is for unicode symbols only. So this cannot be used for something which is outside unicode table, can it? There are such things? Certainly

Re: Custom character entities

2010-11-24 Thread Jürgen Spitzmüller
Alexander Tsyplakov wrote: Sorry for my vague description of the problem and somewhat confusing title for the thread. Logically any special character is very similar to an inset without text inside. At an abstract level one can think about text markup entities which are elementary in their

Re: Custom character entities

2010-11-24 Thread Richard Heck
On 11/24/2010 11:11 AM, Jürgen Spitzmüller wrote: Alexander Tsyplakov wrote: Sorry for my vague description of the problem and somewhat confusing title for the thread. Logically any special character is very similar to an inset without text inside. At an abstract level one can think about text

Re: Custom character entities

2010-11-24 Thread Jean-Marc Lasgouttes
Le 24 nov. 2010 à 17:32, Richard Heck a écrit : Certainly part of this would be fairly simple to do. Call it InsetSimpleCommand, and the only thing it does is issue whatever command it is supposed to issue. The command in question can be given in a module: InsetCommand InsertEndnotes

Re: Custom character entities

2010-11-24 Thread Richard Heck
On 11/24/2010 04:00 PM, Jean-Marc Lasgouttes wrote: Le 24 nov. 2010 à 17:32, Richard Heck a écrit : Certainly part of this would be fairly simple to do. Call it InsetSimpleCommand, and the only thing it does is issue whatever command it is supposed to issue. The command in question can be

Re: Custom character entities

2010-11-24 Thread Jean-Marc Lasgouttes
Le 24 nov. 2010 à 22:46, Richard Heck a écrit : On 11/24/2010 04:00 PM, Jean-Marc Lasgouttes wrote: Le 24 nov. 2010 à 17:32, Richard Heck a écrit : Certainly part of this would be fairly simple to do. Call it InsetSimpleCommand, and the only thing it does is issue whatever command it is

Re: Custom character entities

2010-11-24 Thread Guenter Milde
On 2010-11-24, Alexander Tsyplakov wrote: My personal need concerns the commands of the Russian babel. In Russian babel there are, for example, 3 commands for Cyrillic dashes: \cdash- in plain text. \cdash~ in compound names \cdash* for denoting direct speech. One can enter them with ERT

Re: Custom character entities

2010-11-24 Thread Alexander Tsyplakov
Richard Heck wrote Tuesday, November 23, 2010, 20:56:06: RH> On 11/23/2010 03:48 AM, Jürgen Spitzmüller wrote: >> Richard Heck wrote: I see that the file is for unicode symbols only. So this cannot be used for something which is outside unicode table, can it? >>> There are such

Re: Custom character entities

2010-11-24 Thread Jürgen Spitzmüller
Alexander Tsyplakov wrote: > Sorry for my vague description of the problem and > somewhat confusing title for the thread. Logically > any special character is very similar to an inset > without text inside. At an abstract level one can > think about text markup entities which are > elementary in

Re: Custom character entities

2010-11-24 Thread Richard Heck
On 11/24/2010 11:11 AM, Jürgen Spitzmüller wrote: Alexander Tsyplakov wrote: Sorry for my vague description of the problem and somewhat confusing title for the thread. Logically any special character is very similar to an inset without text inside. At an abstract level one can think about text

Re: Custom character entities

2010-11-24 Thread Jean-Marc Lasgouttes
Le 24 nov. 2010 à 17:32, Richard Heck a écrit : > Certainly part of this would be fairly simple to do. Call it > InsetSimpleCommand, and the only thing it does > is issue whatever command it is supposed to issue. The command in question > can be given in a module: > > InsetCommand

Re: Custom character entities

2010-11-24 Thread Richard Heck
On 11/24/2010 04:00 PM, Jean-Marc Lasgouttes wrote: Le 24 nov. 2010 à 17:32, Richard Heck a écrit : Certainly part of this would be fairly simple to do. Call it InsetSimpleCommand, and the only thing it does is issue whatever command it is supposed to issue. The command in question can be

Re: Custom character entities

2010-11-24 Thread Jean-Marc Lasgouttes
Le 24 nov. 2010 à 22:46, Richard Heck a écrit : On 11/24/2010 04:00 PM, Jean-Marc Lasgouttes wrote: >> Le 24 nov. 2010 à 17:32, Richard Heck a écrit : >>> Certainly part of this would be fairly simple to do. Call it >>> InsetSimpleCommand, and the only thing it does >>> is issue whatever command

Re: Custom character entities

2010-11-24 Thread Guenter Milde
On 2010-11-24, Alexander Tsyplakov wrote: > My personal need concerns the commands of the > Russian babel. In Russian babel there are, for > example, 3 commands for "Cyrillic" dashes: > \cdash- in plain text. > \cdash~ in compound names > \cdash* for denoting direct speech. > One can enter them

Re: Custom character entities

2010-11-23 Thread Jürgen Spitzmüller
Richard Heck wrote: I see that the file is for unicode symbols only. So this cannot be used for something which is outside unicode table, can it? There are such things? Sure. Alexander's proposal is very valid. And actually despetrately needed. Currently, we cannot even make insets like

Re: Custom character entities

2010-11-23 Thread Richard Heck
On 11/23/2010 03:48 AM, Jürgen Spitzmüller wrote: Richard Heck wrote: I see that the file is for unicode symbols only. So this cannot be used for something which is outside unicode table, can it? There are such things? Sure. Alexander's proposal is very valid. And actually despetrately

Re: Custom character entities

2010-11-23 Thread Jürgen Spitzmüller
Richard Heck wrote: I see that the file is for unicode symbols only. So this cannot be used for something which is outside unicode table, can it? There are such things? Sure. Alexander's proposal is very valid. And actually despetrately needed. Currently, we cannot even make insets like

Re: Custom character entities

2010-11-23 Thread Richard Heck
On 11/23/2010 03:48 AM, Jürgen Spitzmüller wrote: Richard Heck wrote: I see that the file is for unicode symbols only. So this cannot be used for something which is outside unicode table, can it? There are such things? Sure. Alexander's proposal is very valid. And actually despetrately

Re: Custom character entities

2010-11-23 Thread Jürgen Spitzmüller
Richard Heck wrote: > > I see that the file is for unicode symbols only. > > So this cannot be used for something which is > > outside unicode table, can it? > > There are such things? Sure. Alexander's proposal is very valid. And actually despetrately needed. Currently, we cannot even make

Re: Custom character entities

2010-11-23 Thread Richard Heck
On 11/23/2010 03:48 AM, Jürgen Spitzmüller wrote: Richard Heck wrote: I see that the file is for unicode symbols only. So this cannot be used for something which is outside unicode table, can it? There are such things? Sure. Alexander's proposal is very valid. And actually despetrately

Re: Custom character entities

2010-11-22 Thread Richard Heck
On 11/22/2010 01:10 AM, Alexander Tsyplakov wrote: LyX has several means of defining customized markup: custom insets, paragraph and character styles. However I can not figure out how to define custom character entities like build-in Ellipsis. Am I missing something? No, there is no provision

Re: Custom character entities

2010-11-22 Thread Alexander Tsyplakov
Richard Heck wrote Monday, November 22, 2010, 21:31:38: RH On 11/22/2010 01:10 AM, Alexander Tsyplakov wrote: LyX has several means of defining customized markup: custom insets, paragraph and character styles. However I can not figure out how to define custom character entities like build

Re: Custom character entities

2010-11-22 Thread Richard Heck
to define custom character entities like build-in Ellipsis. Am I missing something? RH No, there is no provision for this. If some RH character you need is missing, report it as a RH bug to the devel list. Adding it is easy, but RH it has to be done in the source. I meant user customization

Re: Custom character entities

2010-11-22 Thread Guenter Milde
On 2010-11-22, Richard Heck wrote: You can give LyX the ability to recognize (and even display) new characters and such by adding them to the unicodesymbols file, which lives in the system directory, e.g.: /usr/local/share/lyx/ on Linux, by default. As usual with LyX config files, it works

Re: Custom character entities

2010-11-22 Thread Alexander Tsyplakov
Richard Heck wrote Monday, November 22, 2010, 23:56:52: I meant user customization by means of inclusion in layouts and modules. This can be used for logotypes, special babel commands, etc. One can not hard code any special symbol in advance. RH If you want to add custom insets, paragraph or

Re: Custom character entities

2010-11-22 Thread Richard Heck
On 11/22/2010 02:44 PM, Alexander Tsyplakov wrote: RH In fact, though, what I said earlier isn't RH quite true. You can give LyX the ability to RH recognize (and even display) new characters RH and such by adding them to the unicodesymbols RH file, which lives in the system directory, RH

Re: Custom character entities

2010-11-22 Thread Alexander Tsyplakov
Richard Heck wrote Tuesday, November 23, 2010, 2:12:05: RH On 11/22/2010 02:44 PM, Alexander Tsyplakov wrote: RH In fact, though, what I said earlier isn't RH quite true. You can give LyX the ability to RH recognize (and even display) new characters RH and such by adding them to the

Re: Custom character entities

2010-11-22 Thread Richard Heck
On 11/22/2010 03:23 PM, Alexander Tsyplakov wrote: Richard Heck wrote Tuesday, November 23, 2010, 2:12:05: RH On 11/22/2010 02:44 PM, Alexander Tsyplakov wrote: RH In fact, though, what I said earlier isn't RH quite true. You can give LyX the ability to RH recognize (and even display)

Re: Custom character entities

2010-11-22 Thread Richard Heck
On 11/22/2010 01:10 AM, Alexander Tsyplakov wrote: LyX has several means of defining customized markup: custom insets, paragraph and character styles. However I can not figure out how to define custom character entities like build-in Ellipsis. Am I missing something? No, there is no provision

Re: Custom character entities

2010-11-22 Thread Alexander Tsyplakov
Richard Heck wrote Monday, November 22, 2010, 21:31:38: RH On 11/22/2010 01:10 AM, Alexander Tsyplakov wrote: LyX has several means of defining customized markup: custom insets, paragraph and character styles. However I can not figure out how to define custom character entities like build

Re: Custom character entities

2010-11-22 Thread Richard Heck
to define custom character entities like build-in Ellipsis. Am I missing something? RH No, there is no provision for this. If some RH character you need is missing, report it as a RH bug to the devel list. Adding it is easy, but RH it has to be done in the source. I meant user customization

Re: Custom character entities

2010-11-22 Thread Guenter Milde
On 2010-11-22, Richard Heck wrote: You can give LyX the ability to recognize (and even display) new characters and such by adding them to the unicodesymbols file, which lives in the system directory, e.g.: /usr/local/share/lyx/ on Linux, by default. As usual with LyX config files, it works

Re: Custom character entities

2010-11-22 Thread Alexander Tsyplakov
Richard Heck wrote Monday, November 22, 2010, 23:56:52: I meant user customization by means of inclusion in layouts and modules. This can be used for logotypes, special babel commands, etc. One can not hard code any special symbol in advance. RH If you want to add custom insets, paragraph or

Re: Custom character entities

2010-11-22 Thread Richard Heck
On 11/22/2010 02:44 PM, Alexander Tsyplakov wrote: RH In fact, though, what I said earlier isn't RH quite true. You can give LyX the ability to RH recognize (and even display) new characters RH and such by adding them to the unicodesymbols RH file, which lives in the system directory, RH

Re: Custom character entities

2010-11-22 Thread Alexander Tsyplakov
Richard Heck wrote Tuesday, November 23, 2010, 2:12:05: RH On 11/22/2010 02:44 PM, Alexander Tsyplakov wrote: RH In fact, though, what I said earlier isn't RH quite true. You can give LyX the ability to RH recognize (and even display) new characters RH and such by adding them to the

Re: Custom character entities

2010-11-22 Thread Richard Heck
On 11/22/2010 03:23 PM, Alexander Tsyplakov wrote: Richard Heck wrote Tuesday, November 23, 2010, 2:12:05: RH On 11/22/2010 02:44 PM, Alexander Tsyplakov wrote: RH In fact, though, what I said earlier isn't RH quite true. You can give LyX the ability to RH recognize (and even display)

Re: Custom character entities

2010-11-22 Thread Richard Heck
On 11/22/2010 01:10 AM, Alexander Tsyplakov wrote: LyX has several means of defining customized markup: custom insets, paragraph and character styles. However I can not figure out how to define custom character entities like build-in "Ellipsis". Am I missing

Re: Custom character entities

2010-11-22 Thread Alexander Tsyplakov
Richard Heck wrote Monday, November 22, 2010, 21:31:38: RH> On 11/22/2010 01:10 AM, Alexander Tsyplakov wrote: >> LyX has several means of defining customized >> markup: custom insets, paragraph and character >> styles. However I can not figure out how to define >> cus

Re: Custom character entities

2010-11-22 Thread Richard Heck
how to define custom character entities like build-in "Ellipsis". Am I missing something? RH> No, there is no provision for this. If some RH> character you need is missing, report it as a RH> bug to the devel list. Adding it is easy, but RH> it has to be done in

Re: Custom character entities

2010-11-22 Thread Guenter Milde
On 2010-11-22, Richard Heck wrote: > You can give LyX the ability to recognize (and even display) new > characters and such by adding them to the unicodesymbols file, which > lives in the system directory, e.g.: /usr/local/share/lyx/ on Linux, by > default. As usual with LyX config files, it

Re: Custom character entities

2010-11-22 Thread Alexander Tsyplakov
Richard Heck wrote Monday, November 22, 2010, 23:56:52: >> I meant user customization by means of inclusion >> in layouts and modules. This can be used for >> logotypes, special babel commands, etc. One can >> not hard code any special symbol in advance. RH> If you want to add custom insets,

Re: Custom character entities

2010-11-22 Thread Richard Heck
On 11/22/2010 02:44 PM, Alexander Tsyplakov wrote: RH> In fact, though, what I said earlier isn't RH> quite true. You can give LyX the ability to RH> recognize (and even display) new characters RH> and such by adding them to the unicodesymbols RH> file, which lives in the system directory,

Re: Custom character entities

2010-11-22 Thread Alexander Tsyplakov
Richard Heck wrote Tuesday, November 23, 2010, 2:12:05: RH> On 11/22/2010 02:44 PM, Alexander Tsyplakov wrote: >> >> RH> In fact, though, what I said earlier isn't >> RH> quite true. You can give LyX the ability to >> RH> recognize (and even display) new characters >> RH> and such by adding

Re: Custom character entities

2010-11-22 Thread Richard Heck
On 11/22/2010 03:23 PM, Alexander Tsyplakov wrote: Richard Heck wrote Tuesday, November 23, 2010, 2:12:05: RH> On 11/22/2010 02:44 PM, Alexander Tsyplakov wrote: RH> In fact, though, what I said earlier isn't RH> quite true. You can give LyX the ability to RH> recognize (and even