简体   繁体   English

将大写转换为句子大小写

[英]Convert upper case into sentence case

How do we convert Upper case text like this:我们如何像这样转换大写文本:

WITHIN THE FIELD OF LITERARY CRITICISM, "TEXT" ALSO REFERS TO THE ORIGINAL INFORMATION CONTENT OF A PARTICULAR PIECE OF WRITING;在文学批评领域内,“文”还指特定作品的原始信息内容; THAT IS, THE "TEXT" OF A WORK IS THAT PRIMAL SYMBOLIC ARRANGEMENT OF LETTERS AS ORIGINALLY COMPOSED, APART FROM LATER ALTERATIONS, DETERIORATION, COMMENTARY, TRANSLATIONS, PARATEXT, ETC.也就是说,作品的“文本”是原始组成的字母的原始符号排列,除了后来的修改、恶化、评论、翻译、旁文等。 THEREFORE, WHEN LITERARY CRITICISM IS CONCERNED WITH THE DETERMINATION OF A "TEXT," IT IS CONCERNED WITH THE DISTINGUISHING OF THE ORIGINAL INFORMATION CONTENT FROM WHATEVER HAS BEEN ADDED TO OR SUBTRACTED FROM THAT CONTENT AS IT APPEARS IN A GIVEN TEXTUAL DOCUMENT (THAT IS, A PHYSICAL REPRESENTATION OF TEXT).因此,当文学批评涉及“文本”的确定时,它涉及区分原始信息内容与在给定文本文档中出现的内容中添加或删减的内容(即,文本的物理表示)。

Into usual sentence case like this:像这样进入通常的句子情况:

Within the field of literary criticism, "text" also refers to the original information content of a particular piece of writing;在文学批评领域中,“文本”也指特定作品的原始信息内容; that is, the "text" of a work is that primal symbolic arrangement of letters as originally composed, apart from later alterations, deterioration, commentary, translations, paratext, etc. Therefore, when literary criticism is concerned with the determination of a "text," it is concerned with the distinguishing of the original information content from whatever has been added to or subtracted from that content as it appears in a given textual document (that is, a physical representation of text).也就是说,一部作品的“文本”是指最初构成的字母的原始符号排列,除了后来的修改、变质、评论、翻译、副文本等。因此,当文学批评关注“文本”的确定时” 它涉及将原始信息内容与出现在给定文本文档(即文本的物理表示)中的内容中添加或删除的任何内容区分开来。

The base answer is just to use the LOWER() function.基本答案就是使用 LOWER() 函数。

It's easy enough to separate the sentences by CHARINDEX()ing for the period (and then using UPPER() on the first letter of each sentence...).通过 CHARINDEX() 来分隔句子很容易(然后在每个句子的第一个字母上使用 UPPER() ......)。

But even then, you'll end-up leaving proper names, acronyms, etc. in lower-case.但即便如此,您最终还是会以小写形式留下专有名称、首字母缩略词等。

Distinguishing proper names, etc. from the rest is beyond anything that can be done in TSQL.将专有名称等与其他名称区分开来超出了 TSQL 中所能做的任何事情。 I've seen people attempt it in code using the dictionary from MS Word, etc...but even then, Word doesn't always get it right either.我已经看到人们使用 MS Word 等的字典在代码中尝试它......但即便如此,Word 也并不总是正确。

我发现一个简单的解决方案是使用 INITCAP()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM