nedoPC.org

Electronics hobbyists community established in 2002
Atom Feed | View unanswered posts | View active topics It is currently 16 Apr 2024 06:47



Reply to topic  [ 60 posts ]  Go to page Previous  1, 2, 3, 4  Next
Подключение телеграфного аппарата РТА-80. 
Author Message
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22517
Location: Silicon Valley
Reply with quote
Вобщем вот описание МТК-2 из документа:

Attachment:
MTK-2.png
MTK-2.png [ 58.68 KiB | Viewed 5830 times ]


Поглядел я в исходники хевиметала:
https://github.com/lu8aja/HeavyMetal
Там уже есть поддержка МТК-2 через codes.ini
Code:
[MTK2]
label=MTK-2 (5bits / 3 shifts) for Russia
comment=http://www.sensi.org/~alec/locale/other/mtk-2.html
import=ITA2
order=20
bits=5
mask_shift=b110 00000
mask_shared=b001 00000
shift.LTRS=b000 00000
shift.FIGS=b100 00000
shift.RUS=b010 00000
# @ RUS shared
b011 00000=<NUL>
b011 00010=<LF>
b011 00100=<SP>
b011 01000=<CR>
b011 11011=shift.FIGS
b011 11111=shift.LTRS
# @ RUS
b010 10111=Я
b010 10011=В
b010 00001=Е
b010 01010=Р
b010 10000=Т
b010 10101=Ы
b010 00111=У
b010 00110=И
b010 11000=О
b010 10110=П
b010 00011=А
b010 00101=С
b010 01001=Д
b010 01101=Ф
b010 11010=Г
b010 10100=Х
b010 01011=Й
b010 01111=K
b010 10010=Л
b010 10001=З
b010 11101=Ь
b010 01110=Ц
b010 11110=Ж
b010 11001=Б
b010 01100=Н
b010 11100=М
# @ FIGS
b100 01101=Э
b100 11010=Ш
b100 10100=Щ
b100 01011=Ю

Посмотри в свой codes.ini для HeavyMetal - если там этого нету, то просто добавь эту секцию и где-то в опциях переключись на него - после этого оно будет работать с тремя шифтами вместо двух

_________________
:dj: https://mastodon.social/@Shaos


05 Jan 2021 23:39
Profile WWW
Senior

Joined: 22 Oct 2010 11:36
Posts: 101
Location: 178.122.227.140
Reply with quote
Понятно.


05 Jan 2021 23:43
Profile
Senior

Joined: 22 Oct 2010 11:36
Posts: 101
Location: 178.122.227.140
Reply with quote
Программа находится на сайте. Оттуда скачиваю Metal 3.1.003-EXE.
Распаковываю и получаю. И там нет INI. Что не так делаю?


Attachments:
Doc2.docx [27.37 KiB]
Downloaded 253 times
06 Jan 2021 00:15
Profile
Senior

Joined: 22 Oct 2010 11:36
Posts: 101
Location: 178.122.227.140
Reply with quote
То-есть вот этот зип распаковать и скопировать распакованные файлы в распакованную Metal 3.1.003-EXE?


Attachments:
HeavyMetal-master.zip [247.05 KiB]
Downloaded 254 times
06 Jan 2021 00:42
Profile
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22517
Location: Silicon Valley
Reply with quote
Metal 3.1.003-EXE это упакованный файл как я понял - запусти его для начала, чтобы он проинсталлировал программу со всеми зависимыми файлами - там где-то должен будет быть codes.ini

P.S. Посмотрел - это старая версия и там нету INI - всё зашито прямо в перл - надо запускать версию из исходников c GitHub - ставь ActivePerl ( http://www.activestate.com/activeperl/downloads ) и запускай heavymetal.bat:
Quote:
  • The project is now on GitHub: https://github.com/lu8aja/HeavyMetal
  • The version there will work if you have the proper full Perl environment.
  • I will try to update the packed versions as I find time, but that is not as easy, time is scarce in my life :)


Вот отличия исходников от последнего EXE:
Code:
# v3.1.004 2013-03-25 New: Support for External codes & External Custom Commands. Remote Control.
# v3.2.000 2014-10-20 Domain LU8AJA.com.ar replaced with albinarrate.com.
# v3.2.001 2015-04-08 Readded AP Today in history via custom command $TODAY.
#                     DEPRECATED: Twitter (RSS API), MSN, Google Weather
Как можно видеть внешние codes добавились в версии 3.1.004

P.P.S. Вот полная инструкция по установке для винды:
Code:
## HeavyMetal v3.1 in Windows

The following is a step by step list to get heavyMetal working on Windows.
You may need to adapt some steps to best fit your needs.
Please note that is you are using an HeavyMetal version with ActivePerl
already packaged, you do not need to follow these instructions.

1- Download and install latest ActivePerl community edition 32 bits x86
   Do not use 64 bits!
   http://www.activestate.com/activeperl/downloads
   In my case ActivePerl-5.14.2.1402-MSWin32-x86-295342.msi
   
2- Once installed, execute the Perl Package Manager you can find in the
   Start menu or use the ppm-shell command

3- Install the following components:
   Tkx
   Tkx-Scrolled
   Win32-API
   Clipboard
   Crypt-SSLeay
   Finance-YahooQuote
   HTML-TreeBuilder
   Weather-Google
   XML-RSS-Parser

   Remember that some of these may already be installed in your perl
   setup while some other module not mentioned here may be missing
   in your setup.
   
   During HM initialization, you will see a list of perl modules being
   loaded. If some one fails it will be notified there. Also keep in
   mind that most modules are optional and they are reported as
   OPTIONAL. Hence if a module does not load, HM will initialize
   properly, but the features that require the failed module will
   simply not work.
   
4- DONE! Go to the heavymetal dir, and do:
   perl heavymetal.pl
   
   You may need to add the perl/bin folder to your path environment
   variable.
   On initialization the list of modules will come up and if there
   is any error it will be mentioned. You might need to install more
   packages according to your environment.
   Most modules are optional, and if they do not load, whatever feature
   that relies on them will be disabled.
   That means that even with some modules missing, you may get the GUI working.

причём make.bat может собрать heavymetal.exe как я понял (но можно и через perl.exe запускаться)

_________________
:dj: https://mastodon.social/@Shaos


06 Jan 2021 01:04
Profile WWW
Senior

Joined: 22 Oct 2010 11:36
Posts: 101
Location: 178.122.227.140
Reply with quote
1- Загрузите и установите последнюю 32-разрядную версию ActivePerl для сообщества x86.
Не используйте 64 бита!
http://www.activestate.com/activeperl/downloads
В моем случае ActivePerl-5.14.2.1402-MSWin32-x86-295342.msi

Эта не существует по ссылке.


Last edited by Savoj on 06 Jan 2021 01:29, edited 1 time in total.



06 Jan 2021 01:21
Profile
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22517
Location: Silicon Valley
Reply with quote
Savoj wrote:
Если Вам не трудно скачайте с сайта Metal 3.1.003-EXE, распакуйте, нажмите на heavymetal.exe. Выскочит черное окно, я на нем тоже нажал два раза мышкой.
Выскочит потом сама программа. Там что-то не найду что делать.
Это старая версия - я выше написал что в исходниках добавилась
Стирай EXE и запускайся из исходников по инструкции

_________________
:dj: https://mastodon.social/@Shaos


06 Jan 2021 01:26
Profile WWW
Senior

Joined: 22 Oct 2010 11:36
Posts: 101
Location: 178.122.227.140
Reply with quote
Savoj wrote:
То-есть вот этот зип распаковать и скопировать распакованные файлы в распакованную Metal 3.1.003-EXE?


Вот это сделать?


06 Jan 2021 01:31
Profile
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22517
Location: Silicon Valley
Reply with quote
Savoj wrote:
Savoj wrote:
То-есть вот этот зип распаковать и скопировать распакованные файлы в распакованную Metal 3.1.003-EXE?


Вот это сделать?

нет - снести все что было в этом архиве и взять HeavyMetal-master.zip и работать только с ним (ну и ActivePerl поставить, если у тебя его ещё нету)

_________________
:dj: https://mastodon.social/@Shaos


06 Jan 2021 01:32
Profile WWW
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22517
Location: Silicon Valley
Reply with quote
Savoj wrote:
1- Загрузите и установите последнюю 32-разрядную версию ActivePerl для сообщества x86.
Не используйте 64 бита!
http://www.activestate.com/activeperl/downloads
В моем случае ActivePerl-5.14.2.1402-MSWin32-x86-295342.msi

Эта не существует по ссылке.

Ну видимо надо самую последнюю версию качать

P.S. Старая версия указанная выше легко гуглится - например она есть вот тут: http://lowpensky.com/perl/

_________________
:dj: https://mastodon.social/@Shaos


06 Jan 2021 01:37
Profile WWW
Senior

Joined: 22 Oct 2010 11:36
Posts: 101
Location: 178.122.227.140
Reply with quote
А где, на сайте нет ее.


06 Jan 2021 01:38
Profile
Senior

Joined: 22 Oct 2010 11:36
Posts: 101
Location: 178.122.227.140
Reply with quote
Хорошо.


06 Jan 2021 01:40
Profile
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22517
Location: Silicon Valley
Reply with quote
Savoj wrote:
А где, на сайте нет ее.

На сайте я вижу версии 5.26 и 5.28:


Attachments:
Screenshot from 2021-01-06 00-40-21.png
Screenshot from 2021-01-06 00-40-21.png [ 24.47 KiB | Viewed 5827 times ]

_________________
:dj: https://mastodon.social/@Shaos
06 Jan 2021 01:41
Profile WWW
Senior

Joined: 22 Oct 2010 11:36
Posts: 101
Location: 178.122.227.140
Reply with quote
На сайте по установке написано...
Для Windows вам просто нужно загрузить ActivePerl , установить его (НИКОГДА не используйте 64-битную версию, потому что вы пожалеете об этом), а затем установите модули, упомянутые ниже, с помощью инструмента ppm (у него даже есть графический интерфейс), который поставляется с ActivePerl.
После работы наверное загрущу, потому что не знаю что и как....
.....а затем установите модули, упомянутые ниже, с помощью инструмента ppm....
На работе видимо фильтр стоит.....не установил 32 битную версию -перл- надо пароль какой-то.


06 Jan 2021 04:42
Profile
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22517
Location: Silicon Valley
Reply with quote
Да - там что-то было про то, что 32-битная версия требует платной подписки

Можно попробовать поставить то, что гуглится - может оно фришное

_________________
:dj: https://mastodon.social/@Shaos


06 Jan 2021 04:51
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 60 posts ]  Go to page Previous  1, 2, 3, 4  Next

Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.