\documentclass{article}
\newcommand{\tinycommand}{\hmm{t}iny command}
\newcommand\hmm[1]{\ifnum\ifhmode\spacefactor\else2000\fi>1000 \uppercase{#1}\else#1\fi}
\begin{document}
The desired input:
This is some text and a \tinycommand. This is some text. \tinycommand.
\end{document}
If you use \frenchspacing then you would need
\def\frenchspacing{\sfcode`\.1001 \sfcode`\?1001 \sfcode`\!1001
\sfcode`\:1001 \sfcode`\;1001 \sfcode`\,1001 }
So that end of sentence is flagged but the change of spacing won't be noticeable.
csquotes has its own french spacing values, from csquotes.sty
\def\csq@setfrcodes{%
\ifnum\sfcode`\A=\@m
\else
\csq@setazcodes
\fi
\sfcode`\,=1003
\sfcode`\;=1004
\sfcode`\:=1005
\sfcode`\.=1006
\sfcode`\!=1007
\sfcode`\?=1008
}
so a value of greater than 1005 is end of sentence, so you just need to adjust the values
\documentclass{article}
\usepackage{csquotes}
\usepackage{fmtcount}
% \def\frenchspacing{\sfcode`\.1001 \sfcode`\?1001 \sfcode`\!1001 \sfcode`\:1000 \sfcode`\;1000 \sfcode`\,1000 } % autocapitalise auch mit frenchspacing
\frenchspacing % remove extra space after punctuation
\newcommand{\tinycommand}{\hmm{t}iny command}
\newcommand\hmm[1]{\ifnum\ifhmode\spacefactor\else2000\fi>1005 \uppercase{#1}\else#1\fi}
\begin{document}
The desired input:
This is some text and a \tinycommand. This is some text. \tinycommand. And, \tinycommand.
And; \tinycommand.
\textquote{And;} \tinycommand.
\end{document}
_in command names/ – David Carlisle Apr 17 '13 at 12:14stringstringsortitlecapspackages may give you some tools to work with. – Steven B. Segletes Apr 17 '13 at 12:16titlecapson CTAN gives nill results. A link to more info, please. – Johan_E Apr 17 '13 at 12:26titlecapsis on ctan:http://mirror.ctan.org/macros/latex/contrib/titlecaps/-- it ought to have stabilised by now -- where were you looking (and when)? – wasteofspace Apr 17 '13 at 16:02http://ctan.org/and entered (copy-paste'd)titlecapsin the search-box at the top and pressed enter (i.e. the search button). This is what I usually do when someone mentions a package I don’t know about. – Johan_E Apr 18 '13 at 15:19titlecapsunsearchable in their database. It has been fixed. The package is at http://ctan.org/pkg/titlecaps – Steven B. Segletes Sep 05 '13 at 18:57\frenchspacingafter you redefine it! Please, remove the edits. – egreg Sep 05 '13 at 19:21