Showing posts with label macos. Show all posts
Showing posts with label macos. Show all posts

2015-01-16

Combined Russian-English keyboard layout for Mac (OSX).

I use this layout for more than a year on all my macs, it works just fine: Русско-английская раскладка для OsX с переключением кнопкой CapsLock. Nobody downloaded it yet, so I decided to give one more chance by placing instructions in English.

The combined layout is a single layout, where you have both Cyrillic and English character sets and you can use CapsLock modifier to switch between them. My file combines American layout and Russian Typewriter layouts.

I was using similar layout in Windows before and when I switched to Mac I started to look for a similar solution, but finally I've gave up and done it myself. The layout file is actually just an XML file mapping keyboard codes to unicode characters. There is no code in the layout file, so its safe to install.

Setup:
  1. Download the zip-file.
  2. Open (unpack) zip archive
  3. Copy "us-ru.keylayout" file to the "~/Library/Keyboard Layouts" to install layout for the current user or alternatively to the "/Library/Keyboard Layouts" to install for all users.
  4. If you don't know how to open Library in Finder: use 'Go' menu item in Finder and type "~/Library". It will open that folder.
  5. Open "System Preferences", navigate to "Keyboard / Input Sources", choose "US-RU" and add it to the list of active layouts. You can also make it default.
  6. I recommend to select "Use the same layout in all documents" option in Input Sources.
  7. You need to select this US-RU layout as active using keyboard indicator on menu bar.
  8. The menu indicator stays the same, but CapsLock light would show the actual mode: light on - Russian, light off - English.

There is no "Ё", sorry.

The CapsLock key does switch character set, but doesn't switch input language. Usually apps don't use that information. I don't type in Russian a lot, but it seems everything works just fine. I've tested the layout in Lion and Maverick. I haven't installed Yosemite yet.

Its Ok to ask questions or send me spelling corrections.

2014-01-07

iNetCDF QuickLook Plugin Update

Now it displays values of scalar variables and [first...last] values of one dimensional arrays.

http://tolkov.com/tvsoft/inetcdf/

2013-11-18

NetCDF Finder Plugin

NetCDF is a binary file format for storing regular numerical data. It is mostly used in geophysical research and applications, but the format is generic enough to be useful in any application, requiring storage and exchange of large array-like data.

To help managing these files in OsX, I've written a Finder plugin (QuickLook plugin to be exact), which can preview file metadata as shown on the picture.

If you use NetCDF files, you may find it useful.

Compatibility:
  • The plugin only supports "classic NetCDF" format (version 1 and 2).
  • The plugin does not reqiure NetCDF libraries.

To install:
  1. Download zip archive using this link.
  2. Unpack the archive
  3. In Finder select menu 'Go' and choose 'Go to Folder'
  4. Choose one of two:
    • ~/Library/QuickLook -- to install for the current user only
    • /Library/QuickLook -- to install for all users
  5. If there is a previous version of "iNetCDF.qlgenerator", move it to trash.
  6. Copy the new "iNetCDF.qlgenerator" bundle to the selected folder.


  7. No other steps are required. Finder should now show previews of ".nc" files metadata.


To uninstall: Remove bundle from the Library/QuickLook location.

Enjoy my tool!

2013-09-07

Русско-английская раскладка для OsX с переключением кнопкой CapsLock.

Я уже писал как это можно сделать в Windows. Внутри это не переключение раскладок, а одна раскладка, включающая и русские и английские буквы.

Аналогично можно сделать и на Маке. Я взял за образец американскую раскладку и добавил туда русские буквы скопировав их из русской под модификатором Capslock. Иконка в меню не меняется, но лампочка на клавиатуре включена - русский, нет - английский.

Установка:
  1. Скачать файл.
  2. Архив распаковать, и файл us-ru.keylayout скопировать в каталог "~/Library/Keyboard Layouts" или "/Library/Keyboard Layouts". В первом случае он будет доступен только одному пользователю.
  3. Затем надо войти в System Preferences / Keyboard / Input Sources, найти в списке US-RU и поставить галочку. После чего эту раскладку можно выбрать в качестве текущей (в menu bar) и переключаться с нее уже никуда не надо, капслок будет переключать русский-английский внутри этой раскладки.
  4. Я бы включил также пункт в Input Sources: "Use the same one in all documents". Поскольку состояние Caps - глобально, раскладку тоже удобно сделать глобальной. Но это дело вкуса.

Говорят, что некоторые программы могут не работать с подобными комбинированными раскладками. Я не знаю. Я только-только сделал и спешу поделиться. Если где-то не работает, можно переключать раскладки как раньше.

Да, пока нет буквы йо.

Кстати, есть такая программа Ukelele. Это редактор раскладок. Глючный. Я сначала стал делать в ней, а потом просто перешел в текстовый редактор и поредактировал xml там.

Пока вроде работает. Час ночи, полет нормальный. У меня 10.8.4.