.. _functx_format-as-title-en: ========================= functx:format-as-title-en ========================= Moves title words like "the" and "a" to the end of strings Description ~~~~~~~~~~~ The functx:format-as-title-en function treats a sequence of strings like titles, moving the words "A", "An" and "The" to the end. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - titles:string() - the titles to format Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - functx:format-as-title-en(('A Midsummer Night''s Dream', 'The Merchant of Venice', 'Hamlet')) - ('Midsummer Night's Dream, A', 'Merchant of Venice, The', 'Hamlet'''Midsummer Night's Dream, A', 'Merchant of Venice, The', 'Hamlet') Depends On ~~~~~~~~~~ * :ref:`functx_substring-before-match`. See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`upper-case`.