Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by h1439878.stratoserver.net (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id v3N8otvw016570 for ; Sun, 23 Apr 2017 10:50:56 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx012 [212.227.15.9]) with ESMTPS (Nemesis) id 0Lx3jF-1bwKp60ooL-016jY3 for ; Sun, 23 Apr 2017 10:50:49 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.15.2/8.15.2) with ESMTP id v3N8ojep024967; Sun, 23 Apr 2017 10:50:45 +0200 Received: from listserv (localhost [127.0.0.1]) by listserv.uni-heidelberg.de (Postfix) with ESMTP id 7FF33126AFC; Sun, 23 Apr 2017 10:50:45 +0200 (CEST) Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 16689063 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sun, 23 Apr 2017 10:50:45 +0200 Delivered-To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (Postfix) with ESMTP id 7527D126A93 for ; Sun, 23 Apr 2017 10:50:45 +0200 (CEST) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by relay.uni-heidelberg.de (8.15.2/8.15.2) with ESMTP id v3N8oedi024940 for ; Sun, 23 Apr 2017 10:50:42 +0200 Received: from [192.168.0.11] ([213.47.104.76]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MQih7-1cYgNZ1JPR-00Tzaq for ; Sun, 23 Apr 2017 10:50:40 +0200 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) References: <87h91h7lsa.fsf@fencepost.gnu.org> <710D47B3-391D-42C2-8D5B-B58AB23F29B1@gmx.at> <76ba7fdb-921c-ec17-e34c-bd5562b3960e@gmail.com> X-Mailer: Apple Mail (2.3124) X-Provags-ID: V03:K0:9W6DLdbR6k/A81oePeX7KUtdtMKNgSLe/LESW5mcunPjmfENXPd G476LgvoBu3tD4Q5Jam703t8ehjw68eA3H8R603/70lINSZgevF9riVID7VvGUJsLUDf/FG EkGDxVeU4P+JblxgnYSVOZ8jYDD/qM+dJm0fINYgS2G3AvM6QbjJdhcYBQk6dQK+h9NyiO3 pZQerki7yz10ST3mut0mw== Message-ID: Date: Sun, 23 Apr 2017 10:50:39 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Benedikt Vitecek Subject: Re: Using d<> and babel with option spanish To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <76ba7fdb-921c-ec17-e34c-bd5562b3960e@gmail.com> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:R2fMzLZP6hA=:YF0pXGRXBS0VzdsVoAMtuj8zTz p8aKuSJbALMBjeqz2pMycKnHPGMxl6RKkps0NmWACFnP0JFbKuwQMvSlQyRNDYIdBeEuKIoX5 OYMAzf8ESgc2ekk/z1lGSA1kuRTeh+RAF9gN81JS6J9EcVYhk8QIRvp7R2qjre48mQmmTQ2un A9OegN2QnzTsCtCyrB+DhfIi04q+hROPXWqtHmGZG/bfFeIU/mI77N4cyOkKTJA21L15vjEpI obd0mcVzTJz6aD1cH3fcjvwKoIOJRJh8kXagtTweyByQWZA9oPJ5vsE9oEjHDgR7MpbAXAciQ 3xhQA5A8Iiyh7WGKTvSmynGtCa8+FL31L+OqMXbbihwfERS7XrXyJgliahOZLPeVAUGeMw0Is e+rk/9ivcc7mEBww3+m0LSKyFEKE5J4uDsffvX8wPJvWAKjhrJh4OIT8luF4AOv2dE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xf1j5zFoPrT37ECZfwKhLScgCtwW2UU7JQkNdWAcC r9SYfCHaKGdwON9HKFcSKbuUcTwacgiU7GI1jifk5M7n102tOKROxl087eyllYg== X-UI-Loop:V01:D6+jifba38Y=:VUEKt26zhHqnlJZgbFhbpWVGBpJdvlMhubGXYBJF8kA= X-UI-Out-Filterresults: notjunk:1;V01:K0:FZansaRf3kU=:l4V1ZPbGE7uTrkXmjLu8l2 d4fK1Y0MdnWHVnLD0LIzeeHjnoNd4X5nOshDBe53CXxFznocU/rmfGHTahMxpyY3iPYrFxo2T jdtQxkZGFZWOfzn5Y+B81d9EiMWWNurRdhq6qouqF8GUujDKOBeR0FoNGYpoloYmly/tyHB6n YaAiX5ZSPqVlhNLocOtEjueTGma+obK720rmpG0+2vQ3ImK1t2FP3hmvWZCM/TUfyhP/zWWtl 0dKNS+DxdBaNXwaExCNCqTXYsWvYuYT0Rtq6zQ5ab+6MrYjY7gO+fVRNU6maUZFGqRSGCZr/i vmKoWEZsrmZbc2OJwLmE5yh+sJi1ZstFnFeToU4ur/6K0vNIShBwAtuG5/67ao6VAObBpbZgw 0Dkg65zxiBrzD9OsQCtekQLNgOXDidOC13LKAY+mQhNXQdrQtrkifp//TSupQn5+GS0Ghcp8/ DZVlqSMOtg== X-Scanned-By: MIMEDefang 2.71 on 85.214.41.38 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by h1439878.stratoserver.net id v3N8otvw016570 Status: R X-Status: X-Keywords: X-UID: 7969 > What happens if you do your definition \AtBeginDocument? Does babel > turn on shorthands too late for that? I’ve tried it before and sadly it doesn’t work and produces the same output: \documentclass[spanish]{scrartcl} \usepackage{babel} \usepackage{xparse} \ExplSyntaxOn \AtBeginDocument{ \NewDocumentCommand \Something { d<> m } { Optional: #1 \\ Mandatory: #2 \\ Other: } } \ExplSyntaxOff \begin{document} \Something{World} \end{document} > Here at some point the > command you define must grab an argument delimited by ">". Given how > TeX works, we need to know what category code this ">" will have. In > principle it could be conceivable to do that depending on the category > code of the "<" that started the argument, or depending on the current > category code of ">" I am glad that this is the first (maybe second) time I have to deal with category codes, it seems to be quite complicated. I think what I might be able to do locally is to check if the „m“ argument grabs the token „<„ (which I should be able to test with \str_if_eq:nn {#2} { < } ), define a macro which collects the next tokens until it encounters a „>“ (again tested with \str_if_eq:nn) and then maybe call my main command again. This is only a rough idea and I would need to figure out how to implement it, but it could solve (at least for me) the category code problem. Ben