[ 
https://issues.apache.org/jira/browse/FREEMARKER-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16509834#comment-16509834
 ] 

T X edited comment on FREEMARKER-97 at 6/12/18 4:35 PM:
--------------------------------------------------------

David Gouch wrote:
{quote}It’s fine with me if you want to include my title case implementation or 
translate it to Java. In fact, I’m pretty sure the MIT license means you can do 
that whether I’m fine with it or not.
{quote}
Now we have permission to take the first JavaScript implementation shown, 
translate it to Java, put an Apache 2 License on it, and distribute it. For 
completeness, here's the permission request I wrote to David Gouch, John Resig, 
and John Gruber:
{quote}Regarding the following implementations:
 * [http://individed.com/code/to-title-case/] (David Gouch)
 * [https://daringfireball.net/2008/05/title_case] (John Gruber)
 * [https://johnresig.com/files/titleCaps.js] (John Resig)

Would it be permissible to re-license the (JavaScript) code under an Apache 2 
License for inclusion within Apache FreeMarker? (Translated to Java...)
{quote}
Only David Gouch has responded.


was (Author: thangalin):
David Gouch wrote:
{quote}It’s fine with me if you want to include my title case implementation or 
translate it to Java. In fact, I’m pretty sure the MIT license means you can do 
that whether I’m fine with it or not.
{quote}
Now we have permission to take the first JavaScript implementation shown, 
translate it to Java, put an Apache 2 License on it, and distribute it. For 
completeness, here's what I wrote to David Gouch, John Resig, and John Gruber:
{quote}Regarding the following implementations:
 * [http://individed.com/code/to-title-case/] (David Gouch)
 * [https://daringfireball.net/2008/05/title_case] (John Gruber)
 * [https://johnresig.com/files/titleCaps.js] (John Resig)

Would it be permissible to re-license the (JavaScript) code under an Apache 2 
License for inclusion within Apache FreeMarker? (Translated to Java...)
{quote}
Only David Gouch has responded.

> Header capitalization using standard styles
> -------------------------------------------
>
>                 Key: FREEMARKER-97
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-97
>             Project: Apache Freemarker
>          Issue Type: Wish
>          Components: engine
>    Affects Versions: 2.3.28
>            Reporter: T X
>            Priority: Minor
>
> FreeMarker offers a couple of simple algorithms for changing the case of 
> titles:
>  * 
> [https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builtin_cap_firs|https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builtin_cap_first]
>  * 
> [https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builtin_capitalizet|https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builtin_cap_first]
> Neither of these capitalize the text in ways that adhere to various standard 
> styles:
>  * [Chicago Manual of 
> Style|https://en.wikipedia.org/wiki/The_Chicago_Manual_of_Style]
>  * [Associated Press|https://en.wikipedia.org/wiki/AP_Stylebook]
>  * [MLA Style Manual|https://en.wikipedia.org/wiki/MLA_Style_Manual]
>  * [APA Style|https://en.wikipedia.org/wiki/APA_style]
> Consider the following texts:
>  * On iPhone the Transcript Extends Outside of Screen Frame
>  * PEAR And GNA Report Performance
>  * BCMailPlusFTPClient Sends Document without Document ID
>  * JWebUnit: Non-PEN Orders main.xhtml Meta Refresh Tag Issue
> These are correct as written and must not be adjusted by an algorithm that 
> changes the text title. There are a couple of web sites that produce the 
> expected titles (note that the second site capitalizes the word "without," 
> which implies the algorithm does not use Chicago conventions):
>  * [https://titlecaseconverter.com/]
>  * [http://individed.com/code/to-title-case/]
> There are a variety of implementations that perform such a feat:
> * 
> [JavaScript|https://github.com/gouch/to-title-case/blob/master/to-title-case.js]
> * [Perl|https://gist.github.com/gruber/9f9e8650d68b13ce4d78]
> * [PHP|https://gist.github.com/HipsterJazzbo/2532c93a18db7451b0cec529c95b53c4]
> These implementations do not require a whitelist. (So "iPhone" and 
> "ClassName" will remain as given.) Apache Commons' {{WordUtils}} class does 
> not implement Chicago Style, and I suspect it is also a fairly simple 
> algorithm.
> Since {{?capitalize}} and {{?cap_first}} are taken, I propose {{?title_case}} 
> with an optional parameter (default is Chicago):
>  * chicago
>  * ap
>  * apa
>  * mla
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to