help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: title-case function


From: Jean-Christophe Helary
Subject: Re: title-case function
Date: Sun, 21 Apr 2019 21:59:07 +0900


> On Apr 21, 2019, at 21:45, Paul W. Rankin <address@hidden> wrote:
> 
> 
> On Sun, Apr 21 2019, Jean-Christophe Helary wrote:
>> I'm not aware that we have title-case needs in French, or in any other 
>> language I know, but just as a precaution I renamed "title-case-minor-words" 
>> to "title-case-minor-english-words".
> 
> This seems a little redundant to me if title case is an English-only thing.

*That*, we don't know. And even if it's an English only thing, it's better to 
identify the thing the strings have in common. They are not just arbitrary 
short strings.

> But also it's a defcustom, so the user is free to make the words any other 
> language (which would then make the name quite silly).

No, if would make the user conscious that the list is for English and instead 
of just adding a string to the list, she would create a defcustom for her 
language and modify the rest of the code, thus introducing her to simple elisp 
code modifications.

And the next step could be for her to imagine a way to identify the contents of 
a given string to know which defcustom she should use, etc.

> That said, anyone pasting this into their init file is more than welcome to 
> rename the option whatever they like!

Definitely, but you asked for suggestions...

And honestly, the fact that developers generally don't consider english strings 
as exceptions in the world of symbolic expressions is the main reason why 
emacs's internationalization lags so far behind other projects. So why not 
start where it is easy to start ?

Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune




reply via email to

[Prev in Thread] Current Thread [Next in Thread]