Update: TomiNote v1.0 beta5
The last update was not very successful, PasteFromClipboard can not be fully controlled, resulting in history record error, so this time I delete the PasteFromClipboard function, use SelText:=ClipBoard.AsText to paste text, this code will cause the contents of the memo box automatically scroll (In the GTK2 environment), it will make the user experience worse, I can not solve this problem, wait for Lazarus support GTK3.
At the previous update, I use the BoyerMoore string search function in StrUtils, but it has a BUG, so this time I didn't use it, I wrote an improved version of the BoyerMoore function.
I saw all the fixes before, are basically to fix the "history" and "search" two major functions, and the database didn't find any problems. so far, I have not received any feedback, except Chronos gave me some Feedback, probably no one to use this software, I can only test it myself, I feel it is relatively stable now, I will use for some time, if there is no problem, I will release version 1.0.
Fix Bug:
1, PasteFromClipboard caused the history record error.
2, BoyerMoore function caused the search results error.
3, UTF8-BOM is not detected when importing the file, resulting BOM is also imported into the database.
other:
1, support \xFF escape characters in the search and replacement string, you can search for any character.
Note: The previous version did not detect the UTF8-BOM when importing the file, so UTF8-BOM might exist in the database. You can use the Replace function to replace \xEF\xBB\xBF with null to remove the UTF8-BOM. (Import operation only supports UTF8 format text file, please do not import other format files)
更新:TomiNote v1.0 beta5
上次更新不是很成功,PasteFromClipboard 无法完全控制,导致历史记录出错,所以这次我删除了 PasteFromClipboard 函数,改用 SelText := ClipBoard.AsText 实现粘贴操作,此代码会引起编辑框中的内容自动滚动(在 GTK2 环境下),它会让用户体验变差,我没有办法解决这个问题,等待 Lazarus 支持 GTK3 吧。
之前更新时使用的 StrUtils 中的 BoyerMoore 字符串搜索函数有 BUG,所以这次我没有使用 StrUtils 中的函数,而是仿照 StrUtils 中的 BoyerMoore 函数写了一个改进的版本。
我看了之前的所有修复,基本上都是在修补“历史记录”和“搜索”两大功能,数据库整体没有发现什么问题,到目前为止,我没有收到任何反馈,除了 Chronos 给了我一些反馈,大概没有什么人使用这个软件吧,我只能依靠自己进行测试,我感觉它已经比较稳定了,我会再使用一段时间,如果没有问题,我会发布 1.0 版本。
修复 Bug:
1、PasteFromClipboard 导致的历史记录出错。
2、BoyerMoore 函数导致的搜索结果出错。
3、在导入文件时没有检测 UTF8-BOM,导致 BOM 也被导入到数据库中。
其它:
1、在搜索和替换字符串中支持 \xFF 转义字符,可以搜索任意字符。
注意:之前的版本在导入文件时没有检测 UTF8-BOM,所以数据库中可能存在 UTF8-BOM 内容,可以使用替换功能将 \xEF\xBB\xBF 替换为空来去除 UTF8-BOM。(导入操作只支持 UTF8 格式的文本文件,请不要导入其它格式的文件)
You can get this program and the source code here:
https://github.com/tomitomy/TomiNote