Re: Toggle capitalisation

2024-10-15 Thread Jürgen Spitzmüller
Am Montag, dem 14.10.2024 um 11:40 +0200 schrieb Jean-Marc Lasgouttes: > 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 found one: TeXStudio. This also has "smart" TitleCasing (considering stop words). -- J

Re: Toggle capitalisation

2024-10-15 Thread Jürgen Spitzmüller
Am Dienstag, dem 15.10.2024 um 10:18 +1300 schrieb Andrew Parsloe: > LaTeX3 has two functions for titlecase, \text_titlecase_all:n and > \text_titlecase_first:n. The 'all' option uppercases the first letter > of all words including (in English) 'a', 'the', 'and' and so on. The reason for this bein

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: 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

Re: Toggle capitalisation

2024-10-13 Thread Jürgen Spitzmüller
Am Sonntag, dem 13.10.2024 um 17:16 -0400 schrieb Richard Kimberly Heck: > It is conceivable that someone likes the previous behavior, but it's > hard to imagine that most people would expect it. I'd say go ahead. > And for stable, too. How about another function that preserves the old behavior?

Re: Toggle capitalisation

2024-10-13 Thread José Matos
On Sun, 2024-10-13 at 17:16 -0400, Richard Kimberly Heck wrote: > It is conceivable that someone likes the previous behavior, but it's > hard to imagine that most people would expect it. I'd say go ahead. > And for stable, too. > > Riki +1 -- José Abílio -- lyx-devel mailing list lyx-devel@lis

Re: Toggle capitalisation

2024-10-13 Thread Richard Kimberly Heck
On 10/13/24 4:15 PM, Jean-Marc Lasgouttes wrote: [moved discussion to lyx-devel] Le 13/10/2024 à 21:56, Jean-Marc Lasgouttes a écrit : Le 13/10/2024 à 20:38, Richard Kimberly Heck a écrit : On 10/12/24 7:37 PM, Jean-Marc Lasgouttes wrote: I would say that this is a bug that we should fix In

Re: Toggle capitalisation

2024-10-13 Thread Jean-Marc Lasgouttes
[moved discussion to lyx-devel] Le 13/10/2024 à 21:56, Jean-Marc Lasgouttes a écrit : Le 13/10/2024 à 20:38, Richard Kimberly Heck a écrit : On 10/12/24 7:37 PM, Jean-Marc Lasgouttes wrote: I would say that this is a bug that we should fix In the sense of changing the shortcut or changing th