discussions on development and implementation of this version of the Refal-5 system.
Alexandr Konovalov also provided a number of very important hints for future users.
The tips were inserted in the pdf-informal documentation.
-- The Refal-5 system is a console application.
The active code page of the console should be set as 65001, i.e. the utf-8 encoding.
See help\Refal-5_Win10_x86_64_documentation-11-09-2025.pdf for additional comments.
При условии правильной установки кодовой страницы вашей консоли, чтобы (пока) некоторые Рефал программы общались
с пользователем по-русски, вторая строка языковых установок вашей операционной системы
должна отождествляться с образцом: 'ru-' s.R s.U ' '
e.info.
Список строк установленных языковых настроек можно посмотреть с помощью команды
Windows_cmd> PowerShell -Command "& {Get-InstalledLanguage}"
Первой строкой, обычно, в этом списке идет строка начинающаяся с приставки: en-US
Если при запуске компилятора refc приходит сообщение Version ПѮ, то это означает, что все языковые настройки установлены правильно,
иначе refc сообщит о Version PZ. (См. также pdf-версию документации о возможных проблемах, связанных с шрифтом консоли.)
-- All Refal-5 program sources should be written using the utf-8 encoding.
In particular, make sure that both Refal-5 sources using unicode symbols and input to the utilities -- crefal.ref, prefal.ref and so on
are written in the utf-8 encoding.
--- A short documentation on this Refal-5 version is distributed in a separate pdf-file.
The pdf-documentation extends the one given in the txt-file that is now read by users.
--- The list of basic encodings has been extended with utf-16le and utf-16be,
which can be used by the corresponding built-in functions for reading/writing from/to streams,
excluding the standard streams: stdin, stdout, stderr and so on.
--- The file-system concepts that are presented in OS Windows by means of the utf-16le encoding are to be seen
by users developing a Refal-5 program as standard strings including unicode symbols given in the utf8 encoding.
The concepts include paths, file names, values of environment variables and arguments of the cmd commands called from
the console used.
--- The preprocessor refpp.ref has been extended. Now users may write any natural number, using the decimal system.
I.e. the lengths of the numbers are not uniformly bounded.
Given such a number written in a file, the preprocessor transforms it to the corresponding sequence of macro-digits.
For example, the following decimal digit sequence
#/0012345678901234567890123456789012345678901234567890/ will be transformed to the following macro-digit sequence
36280689513 12319663444204090490 17926562471779175122 represented the decimal description in the 2^64-base system.
The pair of the "brackets" #/ and / above embracing the digit sequence to be transformed by the preprocessor.
Many thanks to Alexandr Konovalov who proposed such an extension of refpp.ref!
In the case the locale in the operating system Windows x86_64 was installed as following,
the installed languages are described with a list of strings produced by the console command
Windows_cmd> PowerShell -Command "& {Get-InstalledLanguage}"
and the second line in the list may be matched with the partten: 'ru-' s.R s.U ' '
e.info,
the first line, as a rule, starts with the prefix: en-US,
(while the active console code-page is set as 65001, i.e. utf-8 encoding),