Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-17-2017, 11:37 AM   #1
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Semantic discussion on the phrase "Title Case"

While you're definitely grammatically correct. "Titlecase" is what this particular feature is called in various automated routines ... such as regex. The function capitalizes the first letter of every word with zero regard for filtering words that wouldn't typically be capitalized. In the world of grepping and regexping, "Titlecase" is the familiar terminology for the function being provided. I personally think "Capitalize" would probably confuse more people than it would help.
DiapDealer is offline   Reply With Quote
Old 11-17-2017, 12:08 PM   #2
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by DiapDealer View Post
I personally think "Capitalize" would probably confuse more people than it would help.
Really? Who could not understand "Capitalise"?

This is not about grepping and regexping, it's about chapter titles in a book.
What coders call a routine isn't really relevant to book editors -- the people who invented the term.

Though the coders who created this site: https://saijogeorge.com/title-case-converter did know he difference.

Anyway, it does what it does, but don't mislabel it. It is NOT title case.
It's a good start, but I'd have to finish the job manually.

For instance, it makes:
CHAPTER XI—FINDS PRINT OF MAN’S FOOT ON THE SAND
to
Chapter Xi—Finds Print Of Man’S Foot On The Sand

Last edited by AlanHK; 11-17-2017 at 12:22 PM.
AlanHK is offline   Reply With Quote
Advert
Old 11-17-2017, 01:16 PM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Don't yell at me. I'm just saying what I know. Start a thread in the Sigil forum about how to go about "titlecasing" text and see for yourself, if you won't take my word for it. I promise you, you'll get a lot of regular expressions before you get any grammar/typography lessons. But it's not my plugin afterall, so I don't really care.
DiapDealer is offline   Reply With Quote
Old 11-17-2017, 01:31 PM   #4
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
I'm not trying to change how anyone uses the term, except when it really is referring to book titles.

Also, I'm NOT SHOUTING at anyone (yet).

I know what regular expressions are, but the usage in that technical sphere is irrelevant to the usage in the book editor's sphere.

This is a tool used by book editors to edit text that is presented to the reader. Not to prettify code. The result has to follow the rules of book editors, not coders. If a book editor says title case, he does not mean "Finds Print Of Man’S Foot On The Sand".
AlanHK is offline   Reply With Quote
Old 11-17-2017, 03:40 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I don't know what calibre uses for case shifting (home grown or open source library) but it offers both, pretty sure they do as AlanHK would have them do.

Click image for larger version

Name:	2.jpg
Views:	173
Size:	15.6 KB
ID:	160079

But why not call it Capital case

FWIW : In a ToC I would shift "CHAPTER XI—FINDS PRINT OF MAN’S FOOT ON THE SAND" to "Chapter XI—Finds print of man’s foot on the sand" - i.e. Sentence case.

BR

Last edited by BetterRed; 11-17-2017 at 03:45 PM. Reason: Added FWIW
BetterRed is offline   Reply With Quote
Advert
Old 11-17-2017, 04:07 PM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I realize this thread begins very awkwardly, but we're not going to clutter up @slowsmile's plugin thread with a semantic debate. So I'm splitting the last few posts there out into their own thread. I really have nothing further to say on the subject, but others can continue if they like. I would point out to AlanHK, however, that not all users of Sigil are "Book Editors" (in the capitalized sense). There's quite a large contingent of users who are merely tweaking, correcting, or otherwise making sure their personal purchases comply with their own sense of "correctness." Because they can.

Last edited by DiapDealer; 11-17-2017 at 04:20 PM.
DiapDealer is offline   Reply With Quote
Old 11-17-2017, 04:48 PM   #7
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Title Casing... this is a pretty serious issue I waste a lot of time on manually correcting. :P

There are multiple different types of Title Casing too (Chicago, APA, MLA, [...]).

As AlanHK said, most of the automated tools out there cause mistakes. Another problem a lot of these tools do is they only do a SINGLE pass, and they don't take properly take into account punctuation (especially em dashes and colons). They also don't play nice with Roman Numerals or words that need to stay ALL CAPS like "FBI".

And some of the rules get hard (especially when dealing with lowercase conjunctions). Some words can be conjunctions or not depending on usage (which requires a human).

I found this site is pretty decent:

https://capitalizemytitle.com/

But the problem with many of these sites is you have to copy/paste the input one-at-a-time.
Tex2002ans is offline   Reply With Quote
Old 11-17-2017, 06:44 PM   #8
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
as with most things you have to finish the job with a bit of spit and polish.

I think AlanHK's main issue was naming it 'Title case' rather than what it did.

Semantically speaking 'Capital case', or better yet 'Proper case', would preferable

Capitalise is what businesses do to raise funds, re-capitalise what governments do for TBTF businesses - like busted banks, insolvent insurers and ludicrous lenders.

BR

Last edited by BetterRed; 11-17-2017 at 06:47 PM.
BetterRed is offline   Reply With Quote
Old 11-17-2017, 07:22 PM   #9
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,094
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
[aside]

What I wouldn't give to have a proper "Title Case" regex function in Sigil - with maybe a user generated ini file with a list of all the words that should NOT be capitalized (properly spelled with a "z" )....sigh

[/aside]
Turtle91 is offline   Reply With Quote
Old 11-18-2017, 12:36 AM   #10
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by BetterRed View Post
I think AlanHK's main issue was naming it 'Title case' rather than what it did.

Semantically speaking 'Capital case', or better yet 'Proper case', would preferable

Capitalise is what businesses do to raise funds.
"Proper case" means nothing to me. And I don't think the business meaning of capitalise has any potential for confusion. "Capital" has several distinct meanings.

"Title case" however only refers to titles in text, and the plugin in question, and Sigil itself, don't do that and should not claim to.
AlanHK is offline   Reply With Quote
Old 11-18-2017, 01:22 AM   #11
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Proper Case and is how I case Proper Names.
BetterRed is offline   Reply With Quote
Old 11-18-2017, 02:38 AM   #12
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
For me Capitalize would mean that only the first word in a sentence would have an uppercase letter and the rest not. Titlecase would capitalize each word.
Toxaris is offline   Reply With Quote
Old 11-18-2017, 09:15 AM   #13
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Toxaris View Post
For me Capitalize would mean that only the first word in a sentence would have an uppercase letter and the rest not. Titlecase would capitalize each word.
Now there's a couple of Humpty Dumptyisms.
AlanHK is offline   Reply With Quote
Old 11-18-2017, 09:16 AM   #14
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by BetterRed View Post
Proper Case and is how I case Proper Names.
There isn't any other choice with those, except all caps.
AlanHK is offline   Reply With Quote
Old 11-18-2017, 12:04 PM   #15
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Quote:
Originally Posted by BetterRed View Post
FWIW : In a ToC I would shift "CHAPTER XI—FINDS PRINT OF MAN’S FOOT ON THE SAND" to "Chapter XI—Finds print of man’s foot on the sand" - i.e. Sentence case.
The TOC follows standard title-capitalization rules, i.e.:

Finds Print of Man's Foot on the Sand

See Fig. 1.9 in the Chicago Manual of Style.
Notjohn is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 08:31 PM.


MobileRead.com is a privately owned, operated and funded community.