Re: Toggle capitalisation

2024-10-14 Thread Andrew Parsloe
On 15/10/2024 6:06 am, José Matos wrote: On Mon, 2024-10-14 at 18:20 +0200, Jean-Marc Lasgouttes wrote: Looking at that, I discover that we do not change case correctly, anyway. We should do that relative to the current language. The main example I know about that is i in Turkish. JMarc IIRC

Re: [LyX/master] Add LFUN_WORD_TOGGLECASE (word-togglecase)

2024-10-14 Thread Pavel Sanda
On Mon, Oct 14, 2024 at 04:27:03PM +, Jean-Marc Lasgouttes wrote: > word-lowcase: it toggles each character between lowcase and upcase, > which is useful when one FORGOT THE cAPS lOCK KEY. I'll add this to doxy, otherwise I'd struggle to find proper context for this binding as user. P

Re: Toggle capitalisation

2024-10-14 Thread José Matos
On Mon, 2024-10-14 at 18:20 +0200, Jean-Marc Lasgouttes wrote: > Looking at that, I discover that we do not change case correctly, > anyway. We should do that relative to the current language. > > The main example I know about that is i in Turkish. > > JMarc IIRC j is the same, right? -- José

Re: Toggle capitalisation

2024-10-14 Thread Jürgen Spitzmüller
Am Montag, dem 14.10.2024 um 18:20 +0200 schrieb Jean-Marc Lasgouttes: > Looking at that, I discover that we do not change case correctly, > anyway. We should do that relative to the current language. > > The main example I know about that is i in Turkish. I am not sure whether looking into QLoc

Re: Toggle capitalisation

2024-10-14 Thread Jürgen Spitzmüller
Am Montag, dem 14.10.2024 um 18:22 +0200 schrieb Jean-Marc Lasgouttes: > Oh. I am not sure we want to go this far. Didn't want to suggest that. This is just an academic discussion. -- Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: Toggle capitalisation

2024-10-14 Thread Jean-Marc Lasgouttes
Le 14/10/2024 à 18:00, Jürgen Spitzmüller a écrit : Am Montag, dem 14.10.2024 um 16:33 +0200 schrieb Jean-Marc Lasgouttes: Do you know what word/libreoffice do? BTW for a seemingly rather sophisticated approach for emacs, check out https://codeberg.org/acdw/titlecase.el Oh. I am not sure we

Re: Toggle capitalisation

2024-10-14 Thread Jean-Marc Lasgouttes
Le 14/10/2024 à 17:24, Jürgen Spitzmüller a écrit : Am Montag, dem 14.10.2024 um 17:18 +0200 schrieb Jean-Marc Lasgouttes: If you select text, it is fair that it does not look at context outside of selection. How would it know what you mean? I would expect a function called "Capitalize first l

Re: Toggle capitalisation

2024-10-14 Thread Jürgen Spitzmüller
Am Montag, dem 14.10.2024 um 16:33 +0200 schrieb Jean-Marc Lasgouttes: > Do you know what word/libreoffice do? BTW for a seemingly rather sophisticated approach for emacs, check out https://codeberg.org/acdw/titlecase.el -- Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.l

Re: Toggle capitalisation

2024-10-14 Thread Jürgen Spitzmüller
Am Montag, dem 14.10.2024 um 17:18 +0200 schrieb Jean-Marc Lasgouttes: > If you select text, it is fair that it does not look at context > outside of selection. How would it know what you mean? I would expect a function called "Capitalize first letter in sentence" (that's how they as they call it)

Re: Toggle capitalisation

2024-10-14 Thread Jean-Marc Lasgouttes
Le 14/10/2024 à 16:52, Jürgen Spitzmüller a écrit : Am Montag, dem 14.10.2024 um 16:46 +0200 schrieb Jean-Marc Lasgouttes: They don't even look at periods as end of sentences? Oh, yes, they do that. But if you select: "This is a German Text" from the second character, you'll end up with "THis

Re: Toggle capitalisation

2024-10-14 Thread Jürgen Spitzmüller
Am Montag, dem 14.10.2024 um 16:46 +0200 schrieb Jean-Marc Lasgouttes: > They don't even look at periods as end of sentences? Oh, yes, they do that. But if you select: "This is a German Text" from the second character, you'll end up with "THis is a german text". -- Jürgen -- lyx-devel mailing

Re: Toggle capitalisation

2024-10-14 Thread Jean-Marc Lasgouttes
Le 14/10/2024 à 16:37, Jürgen Spitzmüller a écrit : Am Montag, dem 14.10.2024 um 16:33 +0200 schrieb Jean-Marc Lasgouttes: Do you know what word/libreoffice do? They lowercase all but the first character in the selection no matter whether it makes sense or not, and independent of language. T

Re: Toggle capitalisation

2024-10-14 Thread Jürgen Spitzmüller
Am Montag, dem 14.10.2024 um 16:33 +0200 schrieb Jean-Marc Lasgouttes: > Do you know what word/libreoffice do? They lowercase all but the first character in the selection no matter whether it makes sense or not, and independent of language. -- Jürgen -- lyx-devel mailing list lyx-devel@lists.ly

Re: Toggle capitalisation

2024-10-14 Thread Jean-Marc Lasgouttes
Le 14/10/2024 à 16:32, Jürgen Spitzmüller a écrit : Am Montag, dem 14.10.2024 um 16:27 +0200 schrieb Jean-Marc Lasgouttes: Well, sentence would be just uppercasing the first word. We have no title casing. I would think that the concept of "sentence casing" only makes sense where there is also

Re: Toggle capitalisation

2024-10-14 Thread Jürgen Spitzmüller
Am Montag, dem 14.10.2024 um 16:27 +0200 schrieb Jean-Marc Lasgouttes: > Well, sentence would be just uppercasing the first word. We have no > title casing. I would think that the concept of "sentence casing" only makes sense where there is also other casing with which you can toggle. -- Jürgen

Re: Toggle capitalisation

2024-10-14 Thread Jean-Marc Lasgouttes
Le 14/10/2024 à 15:44, Jürgen Spitzmüller a écrit : Am Montag, dem 14.10.2024 um 13:33 +0200 schrieb Jean-Marc Lasgouttes: Sentence casing can make sense in French, but does not strike me as important enough to be implemented. Do you have the concept of Title/sentence casing? I didn't know tha

Re: Toggle capitalisation

2024-10-14 Thread Jürgen Spitzmüller
Am Montag, dem 14.10.2024 um 15:44 +0200 schrieb Jürgen Spitzmüller: > BTW as to Title Casing, JabRef has a really good implementation that > considers stop words (which are not changed). Also for sentence casing (where specific terms such as geographic names are never lowercased). JaRef uses int

Re: Toggle capitalisation

2024-10-14 Thread Jürgen Spitzmüller
Am Montag, dem 14.10.2024 um 13:33 +0200 schrieb Jean-Marc Lasgouttes: > Sentence casing can make sense in French, but does not strike me as > important enough to be implemented. Do you have the concept of Title/sentence casing? I didn't know that. I thought French has strict casing rules. BTW a

Re: Toggle capitalisation

2024-10-14 Thread Jürgen Spitzmüller
Am Montag, dem 14.10.2024 um 13:50 +0200 schrieb Jean-Marc Lasgouttes: > What about adding char-lowercase and char-uppercase instead? This would work as well. -- Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: Toggle capitalisation

2024-10-14 Thread Jürgen Spitzmüller
Am Montag, dem 14.10.2024 um 13:31 +0200 schrieb Jean-Marc Lasgouttes: > Fair point. But it is not correct to have a lowercase "a" at the > start of this word, right? This is more in the spellchecking use case > than casing, IMO. Yes. But this is just an example > > It is well possible that Libre

Re: Toggle capitalisation

2024-10-14 Thread Jean-Marc Lasgouttes
Le 14/10/2024 à 13:31, Jean-Marc Lasgouttes a écrit : It is well possible that Libre and MS don't get this right either (probably since they have an anglocentric concept of "a word"), but that does not mean that we shouldn't. So why not offer an additional function? You mean a pair of addition

Re: Toggle capitalisation

2024-10-14 Thread Jean-Marc Lasgouttes
Le 14/10/2024 à 12:52, Jürgen Spitzmüller a écrit : Am Montag, dem 14.10.2024 um 11:40 +0200 schrieb Jean-Marc Lasgouttes: 3/ In LibreOffice, I find tOGGLE cASE for times when one forgot to reset the Caps Key. I find that interesting too, although there will be a clash of names with the previous

Re: Toggle capitalisation

2024-10-14 Thread Jean-Marc Lasgouttes
Le 14/10/2024 à 12:43, Jürgen Spitzmüller a écrit : Consider German, where you have a lot of in-word capitalization if you consider compounds. For instance, changing the (often wrongly spelled) word "ad-hoc-Aktion" to the orthographically correct "Ad-hoc-Aktion" would give you "Ad-hoc-aktion" whi

Re: Toggle capitalisation

2024-10-14 Thread Jürgen Spitzmüller
Am Montag, dem 14.10.2024 um 11:40 +0200 schrieb Jean-Marc Lasgouttes: > 3/ In LibreOffice, I find tOGGLE cASE for times when one forgot to > reset the Caps Key. I find that interesting too, although there will > be a clash of names with the previous one.  Yes, I see the usefulness of this. > The

Re: Toggle capitalisation

2024-10-14 Thread Jürgen Spitzmüller
Am Montag, dem 14.10.2024 um 11:40 +0200 schrieb Jean-Marc Lasgouttes: > 1/ I would be ready to do that if you point me to one editor that has > this functionality (I tested Emacs and MS Word and LibreOffice). I > think changing the first character is almost as fast, and I do not > foresee using th

Re: Toggle capitalisation

2024-10-14 Thread Jean-Marc Lasgouttes
Le 14/10/2024 à 09:13, Jürgen Spitzmüller a écrit : Am Montag, dem 14.10.2024 um 08:54 +0200 schrieb Jürgen Spitzmüller: I also agree that the new one is what most people might expect, but on the other hand, I am not sure if people would expect to change camelCase to Camelcase (rather than Camel

Re: Toggle capitalisation

2024-10-14 Thread Jürgen Spitzmüller
Am Montag, dem 14.10.2024 um 08:54 +0200 schrieb Jürgen Spitzmüller: > I also agree that the new one is what most people might expect, but > on the other hand, I am not sure if people would expect to change > camelCase to Camelcase (rather than CamelCase). By that I mean that I would definitely ex