Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
04f6ee9
Fix Enter key on char input mode
Raidar Jan 14, 2018
9c5cc58
Add logs commented
Raidar Jan 14, 2018
79283ae
Fix comment
Raidar Jan 14, 2018
f315729
3.3.6.3
Raidar Jan 14, 2018
6cb1d9c
3.3.6.3
Raidar Jan 14, 2018
d30ee47
3.3.6.3
Raidar Jan 14, 2018
2d0d54b
Fix last line skip
Raidar Jan 23, 2018
b6601e7
Fix visible row count
Raidar Jun 18, 2018
f17db83
Add Template Insert to Dialogs
Raidar Jun 18, 2018
df6b243
Shrink dialog width for wide FAR window
Raidar Aug 19, 2018
1e3caaa
3.3.6.5
Raidar Aug 19, 2018
5344b10
Fix: Insert text to dialog item
Raidar Nov 16, 2018
64e6fcf
Add item for Z
Raidar Nov 16, 2018
12dea5d
Add hot item for FantLab tag
Raidar Nov 16, 2018
b2eaabc
Fix: Insert text to dialog item without sel
Raidar Nov 16, 2018
ed0997f
Extract templates for file extensions
Raidar Nov 18, 2018
e52c9ee
Change log code
Raidar Feb 2, 2019
3cf7802
Rewrite some templates
Raidar Feb 2, 2019
ef205d3
Change menu items
Raidar Feb 2, 2019
6525e24
Fix flag renaming
Raidar Feb 2, 2019
6f3e7ec
Add some chars
Raidar Feb 2, 2019
a9e2300
Fix flag renaming
Raidar Feb 2, 2019
cc3f19d
Refactor Git menu
Raidar Apr 26, 2019
619bf9c
Fix hot key for Quotes
Raidar May 7, 2019
db45bdf
Fix hot keys according to Git`s keys
Raidar May 7, 2019
2b340ab
Refactor items and keys for convenience
Raidar May 7, 2019
45cce66
Refactor items
Raidar May 8, 2019
e13b3df
Fix desciption of key
Raidar Jul 14, 2019
084077c
Fix section template
Raidar Aug 18, 2019
7782ef0
Refactor
Raidar Aug 18, 2019
74a96d3
add common Tagging to Quoting
Raidar Dec 28, 2019
f90bd8c
Fix locals` names
Raidar Feb 17, 2020
90a93ad
Fix help content
Raidar Feb 17, 2020
8799357
Fix methods of TTime
Raidar Apr 13, 2020
c423095
show start of clause for subs
Raidar Apr 28, 2020
0db1fd7
fix annotation
Raidar Apr 28, 2020
7565c2b
Fix reopen Blocks
Raidar Jan 3, 2021
0c8797d
Add some words
Raidar Jan 3, 2021
edd0c03
Small change in items for LUM for Dialog
Raidar Jan 16, 2021
9801587
Add: actions without checkout
Raidar Jul 27, 2021
02fa5c9
Disable 'S+J' item
Raidar Jul 27, 2021
dd79ba6
Fix some quoting chars
Raidar Jul 27, 2021
4a23e39
Fix shortkeys for some Characater menus
Raidar Aug 2, 2021
4bad0b3
Fix hot keys for Git and tSVN
Raidar Dec 7, 2021
9411659
Add commands for remote url
Raidar Dec 8, 2021
8073bda
Change filename and extension templates
Raidar Apr 17, 2022
21989c9
Separate menu to work with master
Raidar Apr 17, 2022
7faf278
Fix filename templates for DUM
Raidar May 7, 2022
2457ea1
Fix transcript: Greek-to-Latin
Raidar Jun 17, 2022
97b8981
Add 1/2 char
Raidar Jun 29, 2022
2190563
3.3.8.0
Raidar Jun 29, 2022
19eba60
Fix: Exploranto
Raidar Sep 6, 2022
8160ab0
Extend some dialog templates
Raidar Sep 6, 2022
986a900
Work with develop branch
Raidar Nov 9, 2022
40cbec1
Add some changes to exts and langs for dialog lum
Raidar Nov 9, 2022
ba55fd2
Fix Calendar help page
Raidar Mar 10, 2023
9d2dc3e
Refactor code for Transcript
Raidar May 21, 2024
2ea3c5a
Use 'event' instead of 'fete'
Raidar May 21, 2024
61ea9fb
Extend extensions and fix some names
Raidar May 21, 2024
6a69bc1
Fix description of some functions
Raidar May 21, 2024
180ccbe
Remove deprecated grapheme use
Raidar Mar 21, 2025
fae04a9
Support flag's rename
Raidar Mar 21, 2025
262a60f
Refactor Transcript sets
Raidar Mar 21, 2025
23a5efd
Chinese sets for Transcript
Raidar Mar 21, 2025
861c7ba
Add chinese lat-cyr transcript
Raidar Mar 21, 2025
ae1797a
Add chars to Characters menu
Raidar Mar 21, 2025
c02dc38
Refactor extensions to insert
Raidar Mar 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Common/Calendar/Terra.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
--[[ Fetes: Terra ]]--
--[[ Отмечаемые даты: Земля ]]--
--[[ Events: Terra ]]--
--[[ События: Земля ]]--

----------------------------------------
--[[ description:
-- Feast and memorial days.
-- Праздничные и памятные дни.
-- Days of events.
-- Дни событий.
--]]
--------------------------------------------------------------------------------

Expand Down
14 changes: 7 additions & 7 deletions Common/Calendar/locales/TerraDef.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
--------------------------------------------------------------------------------
local Data = {
----------------------------------------
-- Common fests:
-- Common events:
NewYear = "New Year", -- N.Y. -- 01-01
SaintValentineDay = "Saint Valentine's Day", -- SVD -- 02-14
SaintValentineDay = "Saint Valentine`s Day", -- SVD -- 02-14
FatherlandDayDefender = "Defender of the Fatherland Day", -- 02-23
InternationalWomensDay = "International Women's Day", -- IWD -- 03-08
AllFoolsDay = "All Fools' Day", -- AFD -- 04-01
InternationalWomensDay = "International Women`s Day", -- IWD -- 03-08
AllFoolsDay = "All Fools` Day", -- AFD -- 04-01
InterAnimationDay = "International Animation Day",-- IAD -- 10-28
InternationalMensDay = "International Men's Day", -- IMD -- 11-19
NewYearsEve = "New Year's Eve", -- NYE -- 12-31
Expand All @@ -25,9 +25,9 @@ local Data = {
-- International Day of Human Space Flight
WorldCosmonauticsDay = "World Cosmonautics Day", -- 04-12
SystemAdminsDay = "System Administrator Appreciation Day",-- 07
ProgrammersDay = "Programmers' Day", -- 09-12/13
UpbringersDay = "Upbringers' Day", -- ??? -- 09-27
WorldTeachersDay = "World Teachers' Day", -- 10-05
ProgrammersDay = "Programmers` Day", -- 09-12/13
UpbringersDay = "Upbringers` Day", -- ??? -- 09-27
WorldTeachersDay = "World Teachers` Day", -- 10-05
InterAccountantsDay = "International Accountants' Day", -- 11-10
----------------------------------------
} --- Data
Expand Down
2 changes: 1 addition & 1 deletion Common/Calendar/locales/TerraRus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
--------------------------------------------------------------------------------
local Data = {
----------------------------------------
-- Common fests:
-- Common events:
NewYear = "Новый год", -- Н.г.
SaintValentineDay = "День святого Валентина",
FatherlandDayDefender = "День защитника Отечества",
Expand Down
19 changes: 12 additions & 7 deletions Common/CharsMap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,8 @@ function TMain:MakeProps ()
MaxHeight = 1 + 1 +
self.RowCount +
1 +
(CharsBlocks and (1 + 2) or 0) +
--(CharsBlocks and (1 + 2) or 0) +
EdgeRows.Count +
0,

Colors = self.Colors,
Expand Down Expand Up @@ -584,8 +585,6 @@ function TMain:FillMenu () --> (table)
local SelChar = self.Char -- Код текущего символа
local SelIndex -- Индекс пункта с текущим символом

local glen = unicode.grapheme.len

for i = 1, CharRows do
p = p + ColCount

Expand Down Expand Up @@ -1065,7 +1064,7 @@ end ---- MakeProps

function TBlocks:MakeItems () --| (Blocks_Items)

if self.Items then return end
if self.Items then return true end

local Main = self.Main

Expand Down Expand Up @@ -1157,6 +1156,7 @@ function TMain:ChooseBlock (Data)
local Blocks = self.Blocks
Blocks.FilterCol = 2

--logShow(Blocks, "ChooseBlock", 1)
Blocks:MakeProps()
if not Blocks:MakeItems() then return end
Blocks:InitFilter()
Expand Down Expand Up @@ -1268,22 +1268,24 @@ do

function TMain:FindCharInput ()

local Input = self.Input or ""
local Input = makeplain(self.Input or "")
if Input == "" then return end

if Input:sub(1, 1) ~= "^" then
Input = ".*"..Input

end

--logShow(Input, self.Char)

--if Input:sub(-1, -1) ~= "$" then
-- Input = Input..".*"
--
--end

--logShow(self, Input)
--return u8byte(Input:sub(1, 1)) -- TEMP
return uFindCode(makeplain(Input), self.Char + 1)
return uFindCode(Input, self.Char + 1)

end ---- FindCharInput

Expand Down Expand Up @@ -1322,6 +1324,8 @@ end ---- StopCharInput

function TMain:GotoCharInput (Data)

--logShow(Data, 'GotoCharInput')

self.Char = self:FindCharInput() or Data.Char

return self:FillInputCount()
Expand Down Expand Up @@ -1549,7 +1553,8 @@ function TMain:AssignEvents () --> (bool | nil)
return { Kind = "CtrlEnter", }, CloseFlag

elseif SKey == "CtrlB" then
if not CharsBlocks then return end
--logShow(Input, SKey)
--if not CharsBlocks then return end

local Char = self:ChooseBlock(Data)
if type(Char) == 'number' then
Expand Down
12 changes: 7 additions & 5 deletions Common/CommonEng.hlf
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ $ #Characters map# (CharsMap)
\37Num* | Clear\- (Num5)  — ¦the last chosen character.
\37CtrlB\-  — ¦to show a character blocks
and to go to a first character of the chosen block.
\37CtrlF\-  — ¦to show all characters, that contain
name of current character, and to go to a first character of the chosen block.
\37CtrlF\-  — ¦to show all characters,
that contain name of current character, and to go to the chosen character.
\37CtrlC\-  — ¦to copy the character to clipboard.
\37CtrlShiftC\-  — ¦to copy code point of the character to clipboard.
\37CtrlV\-  — ¦to go to a character from clipboard.
Expand Down Expand Up @@ -270,10 +270,12 @@ $ #Calendar for one month# (Calendar)
Area with date information is displayed on the left,
the calendar itself is displayed on the right.
In the area with date information the following is displayed:
— ¦a number of the year day is on the left of the fullname of the week day,
— ¦a number of the year week is on the right,
— ¦a year and a month with arrow-buttons to select value,
— ¦the date in \3AYYYY‑MM‑DD\- format is from above,
— ¦the time for current date в формате in \3AHH‑NN‑SS\-  format is from below.
— ¦the fullname of the week day with special values:
¦a number of the year day is on the left,
¦a number of the year week is on the right,
— ¦the time for current date в формате in \3AHH‑NN‑SS\-  format.
In the calendar area the following is displayed:
— ¦a number of the month week is on the first row,
— ¦a number of the year week is on the last row,
Expand Down
22 changes: 12 additions & 10 deletions Common/CommonRus.hlf
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ $ #Таблица символов# (CharsMap)
\37Num* | Clear\- (Num5)  — ¦последний выбранный символ.
\37CtrlB\-  — ¦отображение блоков символов
и переход на первый символ выбранного блока.
\37CtrlF\-  — ¦отображение всех символов, содержащих
название текущего символа, и переход на первый символ выбранного блока.
\37CtrlF\-  — ¦отображение всех символов,
содержащих название текущего символа, и переход на выбранный символ.
\37CtrlC\-  — ¦копирование символа в буфер обмена.
\37CtrlShiftC\-  — ¦копирование кодовой точки символа в буфер обмена.
\37CtrlV\-  — ¦переход на символ из буфера обмена.
Expand Down Expand Up @@ -273,15 +273,17 @@ $ #Календарь на один месяц# (Calendar)
Calendar — скрипт для отображения календаря на один месяц.

Область с информацией о дате отображается слева, сам календарь — справа.
В области с информацией о дате отображается следующее:
— ¦номер дня года — слева от полного названия дня недели,
— ¦номер недели года — справа,
— ¦выбранная дата в формате \3AГГГГ‑ММ‑ДД\- — сверху,
— ¦время для текущей даты в формате \3AЧЧ‑ММ‑СС\- — снизу.
В области с информацией о дате отображается следующее (top down):
— ¦год и месяц с кнопками-стрелками выбора значения,
— ¦выбранная дата в формате \3AГГГГ‑ММ‑ДД\- с кнопками ввода смещения,
— ¦полное название дня недели со специальными значениями:
¦слева — номер дня года,
¦справа — номер недели года,
— ¦время для текущей даты в формате \3AЧЧ‑ММ‑СС\- .
В области календаря дополнительно отображается следующее:
— ¦номер недели месяца — на первой строке,
— ¦номер недели года — на последней строке,
— ¦сокращённые названия дней недели — в последнем столбце.
— ¦на первой строке — номер недели месяца,
— ¦на последней строке — номер недели года,
— ¦в последнем столбце — сокращённые названия дней недели.

Клавиши навигации:
\37Alt+(Left|Right)\-  — ¦предыдущий/следующий месяц.
Expand Down
20 changes: 12 additions & 8 deletions Common/rhsConfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ function unit.ConfigDlg (Data)

} --
local DBox = Config.DBox

DBox.FixWidth = 2 + -- Edge
2 + -- + 2 margins
--5 + -- + 1 column: txt
Expand All @@ -698,18 +699,26 @@ function unit.ConfigDlg (Data)
(DBox.chkItem +
DBox.edtName) * 2 -- + 2 columns: chk + edt

DBox.FixHeight = 2 + -- Edge
(1 + 1) + -- + (button separator + buttons)
1 + -- + group separators
2 * 2 + -- + group empty lines
#CfgDataOrder - 1 -- + group item lines

local FarBox = farUt.GetFarRect()
local dWidth = FarBox.Width - DBox.FixWidth - 4
if dWidth > 0 then
local dName = numbers.divf(dWidth, 4)
local dExtra = numbers.divf(dWidth, 4)

local dName = dExtra
if dName > 0 then
if dName > 4 then dName = 4 end
DBox.edtHKey = DBox.edtHKey + dName
DBox.edtName = DBox.edtName + dName

end
local dDesc = (dWidth - dName * 3)
if dDesc > 5 then dDesc = 5 end
local dDesc = (dWidth - dExtra * 4)
if dDesc > 2 then dDesc = 2 end
DBox.lblDesc = DBox.lblDesc + dDesc

--logShow({ dWidth, dName, dDesc, DBox })
Expand All @@ -724,11 +733,6 @@ function unit.ConfigDlg (Data)
DBox.lblDesc +
(DBox.chkItem + DBox.edtName) * 2

DBox.FixHeight = 2 + -- Edge
(1 + 1) + -- + (button separator + buttons)
1 + -- + group separators
2*2 + -- + group empty lines
#CfgDataOrder - 1 -- + group item lines
DBox.Height = DBox.FixHeight
--DBox.Height = 2 +
-- (1 + 1) +
Expand Down
5 changes: 3 additions & 2 deletions Editor/TextTemplate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ function TMain:MakeProps ()
if not Cfg.CharEnum then Cfg.CharEnum = "%S" end
--| Тип текущего файла, открытого в редакторе:
self.Current = { FileType = Cfg.FileType or curFileType() }
--logShow(Cfg, "MakeProps", "d2")

return true

Expand Down Expand Up @@ -491,7 +492,7 @@ function TMain:FindTemplates () --> (table)
--logShow(Kits, self.Options.SuitName, 1)

local Cfg, CurCfg = self.CfgData, self.Current
--logShow(Cfg, "FindTemplates", "d2 t")
--logShow({ Cfg, CurCfg }, "FindTemplates", "d4")
local CurSlab = CurCfg.Slab -- CurCfg.Frag

local t, tLast = {} -- Результаты поиска
Expand All @@ -503,7 +504,7 @@ function TMain:FindTemplates () --> (table)
local Kit = self:TypeKit(Kits, tp)
if not Kit then break end
--logShow(Kit, tp, 1)
--logShow({ Kit, Cfg, Cfg.CharEnum }, tp, 1)
--logShow({ Kit, Cfg, Cfg.CharEnum }, tp, 2)

local Word, Slab
local Ctrl = Cfg.CharEnum ~= Kit.CharEnum and Kit.CharControl
Expand Down
Loading