Force a backslash in BBEdit 7 on Japanese keyboards
Feb 02, '04 10:59:00AM • Contributed by: Robin McF
Feb 02, '04 10:59:00AM • Contributed by: Robin McF
Bare Bones has decided to remove the Option key switching capability from their application BBedit 7.*, which allowed people using a Japanese keyboard to get backslashes instead of Yen signs to make it compliant with Japanese Institute of Standards specs. A rather odd move for an application which is used for coding rather than word processing, as the app is no longer capable of writing code escape sequences. No fears however there is a work around:
- Under the "#!" (Unix script) menu, look for "Unix Filters"
- select an existing filter script and option click it - this will open the script for editing.
- leave the shebang line (#! /usr/bin/perl-w) but delete everything else.
- write (no double quotes, leave everything else) "print '';"
- save the newly altered script as something else (I called mine backslash.pl) -- don't change the location shown by the save dialog so the file will be saved in the Unix filter folder (important for this hack to work).
- Under the "Window" menu:
- look for Palettes -> Unix Filters, and select it. You should now see a list of filters including the one you just made.
- Select your script in the palette and click on the "Set Key" button at the top right corner of the palette, this opens a dialog asking for a key setting.
- Press some keys - I wanted to set OPTION ¥, to keep things consistent with how I used to get a backslash, but BBedit won't accept the option key in this dialog, so I settled for APPLE + ¥. By default, this is the key combo for hard formatting line endings in text -- so you will get a confirmation dialog should you choose this combo, asking you to OK the change.
•
[3,237 views]
