xsl-list
[Top] [All Lists]

Re: [xsl] XSLT function for title capitalization?

2018-04-10 10:08:02
It isn't a matter of word-length. It is a question of part of speech.
"Is" is a verb. Generally verbs are capitalized in titles.


On Tue, Apr 10, 2018 at 8:08 AM, Eliot Kimber ekimber(_at_)contrext(_dot_)com <
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

I would not have capitalized the “is”.



Cheers,



E.

--

Eliot Kimber

http://contrext.com





*From: *"Michael Kay mike(_at_)saxonica(_dot_)com" <xsl-list-service@lists.
mulberrytech.com>
*Reply-To: *<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
*Date: *Monday, April 9, 2018 at 5:09 PM
*To: *xsl-list <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
*Subject: *Re: [xsl] XSLT function for title capitalization?



My copy-editors at Wiley tried to impose US-style title capitalization on
my book, I found it incredibly ugly:


‘Lula’ Is Inmate at Prison He Opened as Brazil’s President
<https://www.nytimes.com/2018/04/09/world/americas/brazil-lula-jail.html>



"Is", "at", "He", "as"? Where's the logic?



Michael Kay

Saxonica



On 9 Apr 2018, at 21:52, David Sewell dsewell(_at_)virginia(_dot_)edu <
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:



Wondering if anyone has a serviceable function (preferably in XSLT 2/3 but
v1 is fine if it works) that takes a string as input and returns it with
title capitalization according to English-language editorial practice (for
example, Chicago Manual of Style).  So for example

A MEMORANDUM OF UNDERSTANDING ==> A Memorandum of Understanding

WHERE DID THE DRUIDS COME FROM? ==> Where Did the Druids Come From?

BEING FOR THE BENEFIT OF [MR.] KITE ==> Being for the Benefit of [Mr.] Kite

Use case is, as you might guess, processing a lot of titles transcribed as
all caps, wanting to convert them to standard title case format.

It doesn't have to be perfect, just anything that will minimize the need
for hand-editing.

David S.

--
David Sewell
Manager of Digital Initiatives
The University of Virginia Press
Email: dsewell(_at_)virginia(_dot_)edu <dsewell(_at_)virginia(_dot_)edu>   
Tel: +1 434 924 9973
Web: http://www.upress.virginia.edu/rotunda



XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>

EasyUnsubscribe <http://-list/1278982> (by email)
XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
EasyUnsubscribe <-list/1312897> (by
email <>)




-- 

"A false conclusion, once arrived at and widely accepted is not dislodged
easily, and the less it is understood, the more tenaciously it is held." -
Cantor's Law of Preservation of Ignorance.
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>