11-18-2017, 03:15 PM | #16 |
Grand Sorcerer
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
There's an improved title case algorithm by John Gruber, which has been ported to JavaScript and Python.
Based on my preliminary tests, the results are better than the default Python title() function, but by no means perfect. |
11-18-2017, 03:59 PM | #17 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Even with Proper Nouns it gets tough. You have names like Hernando de Soto (or "de la" is very common in Spanish). Or "van" + "von" + a whole host of other lowercase surnames. Or names with caps in the middle like McCormick.
Side Note: This capitalization issue also creeps up in how to alphabetize Indexes. Quote:
I may have to revisit it though and do more thorough testing. Last edited by Tex2002ans; 11-18-2017 at 04:01 PM. |
|
11-18-2017, 05:16 PM | #18 | ||
null operator
Posts: 20,421
Karma: 25894272
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Rules are in 8.157 - Principles of Headline Style Capitalization, in which one finds this Quote:
My preference for 'Sentence case' is personal. Very occasionally I'm writing for news media, so I use their house rules. Most non-US news publishers do not use AP headline styles (similar to CMS), e.g. these from today's The Times of India - 'Lebanon PM confirms he will return to Beirut' and 'Buying gold online: 9 things you must not miss' Added : YAC&P titlecase site ==>> https://headlinecapitalization.com/ BR Last edited by BetterRed; 11-18-2017 at 05:22 PM. |
||
11-18-2017, 09:40 PM | #19 | |
Well trained by Cats
Posts: 29,662
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Uppercase all letters Besides, many programs follow the convention used in Sigil and Calibre and it would be terribly confusing to have ONE oddball |
|
11-18-2017, 11:07 PM | #20 |
Guru
Posts: 667
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Yes. We must never correct an error but must perpetuate it forever; and change our English definitions to match the implementation of some coder.
|
11-19-2017, 07:06 AM | #21 |
Grand Sorcerer
Posts: 27,442
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Dude, you really need to learn to let things like this go. It's a free program, it's a freely contributed plugin. That people listen and weigh your suggestions for improvements is a positive on its own. Open Source does not mean you get to have everything work the way you think it should (and be named what you think it should be named). You're running around trying to get Sigil and all Sigil plugins you run into conform to your own personal sense of book-editing feng shui and it's not going to happen. Please consider lightening up a bit.
|
11-19-2017, 07:36 PM | #22 | |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
AlanHK said:
Quote:
So why are you still complaining about this in such a catty and sarky way? To make things clearer, I can only really describe my own driving concerns whenever I put out a plugin for Sigil. Prime above everything else is that my plugin has to be dead simple to use. If it isn't simple, I won't do it. So that's why I rejected your further requests to allow allcap acronyms and allcap roman numerals within titlecased headings in my plugin. I rejected these requests because it would have made plugin usage more difficult to understand probably resulting in reduced usage of the plugin. Another good reason, of course, would be that allowing certain allcap words within titlecased headings would not fit the true definition of either titlecase or "proper" titlecase would it? So to put a nail on it for clarity -- I rejected your requests because I had more to consider than just your needs. Last edited by slowsmile; 11-19-2017 at 10:23 PM. |
|
11-21-2017, 01:05 AM | #23 |
Guru
Posts: 667
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
|
11-21-2017, 01:44 AM | #24 |
Guru
Posts: 667
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
I didn't want to make a big deal about it. Much less make it personal.
You're the one who split off a minor remark and made it into this new thread inviting discussion. I don't know why you target me alone. I think most who responded to your initial post pointed out that most implementations of "title case" were unsatisfactory. I don't expect or demand anyone to jump to do things "my way". I just offer observations, describe problems as they come up when I am using the programs. If you don't think my remarks are worth notice, fine. Just ignore me. |
11-22-2017, 02:48 PM | #25 |
Junior Member
Posts: 1
Karma: 10
Join Date: Nov 2017
Device: Kindle
|
According to the Wikipedia article Letter case, title case aka capital case aka headline style means to capitalize all words except for certain subsets, while start case means that all words are capitalized regardless of function.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use "short" instead of "full" title for title sort & renaming? | wolpi | Library Management | 2 | 08-04-2016 05:25 PM |
A warning for Linux users: slow "Add Books", "Unknown" title and Author | rolgiati | Library Management | 8 | 07-24-2013 04:36 PM |
How to turn off "intelligent" Title case correction ? | AIberto | Library Management | 8 | 02-04-2013 08:53 AM |
"Victorian" literature - is it an ok phrase? | Sparrow | Lounge | 15 | 08-10-2009 11:34 PM |