Feature SS-157
2 votes

Maxima: Translation of strings with \

Created by Martin Kraska on 6/1/2014 4:11 PM Last Updated by Martin Kraska on 8/15/2017 7:59 PM
%
 (hrs)
Logged: 0   (hrs)

 Description

In Maxima, you have to write literal backslash characters as \\.

This affects path names generated by SMath e.g. by the functions CurrentDirectory() and DocumentDirectory()

The back-translation from \\ to \ is not essential, as double backslashes seem to work in SMath path names. However, this translation would be more consistent.

    Martin Kraska (Tuesday, August 15, 2017 7:59 PM) #

    Martin Kraska (Thursday, July 13, 2017 2:32 AM) #

Confirmed in SMath 6398 and Maxima 2418.

However, there is no chance to input strings like <code> "$"A\B"$"</code>

 

    Martin Kraska (Sunday, July 27, 2014 2:06 PM) #

Workaround for translation of  path names to Maxima:

It might be a better idea to provide a name translation function instead of converting all backslashes to double backslashes in every string.

Pathname2Maxima() could do the workaround in a transparent way without collateral damage to string translation.